alp carsikarsi

Ranch Hand
+ Follow
since Dec 27, 2005
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
2
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by alp carsikarsi

Thanks for quick response Steve and Ulf.
Yes i need to ensure that only a JPEG can be stored. When i detect that byte array is not a jpeg, i'll send 406 not acceptable response.

7 years ago
Hello,


I wrote a servlet that gets image files and save into DB as BLOB.
Is there a way to detect jpeg file while reading byte array ?

Best Regards.

7 years ago
Hello everybody,

I have a resource list in XCAP server. And i want to add new entry for the list (rcs_pnb_chat_blockedusers). When i sent following xpath and put xml body content, rcs_pnb_chat_blockedusers is modifying with <entry uri="test@bjk.com.tr"/> . I don't want to modify existing entry, i want to add a new entry. Is there a something wrong with my xpath request ?

PUT "$XPATH_ROOT/John/resource-list/~~/resource-lists/list%5B@name=%22rcs_pnb_chat_blockedusers%22%5D/entry"
..
Content-Type: application/xml-fragment-body
..
..
<entry uri="test@bjk.com.tr"/>



<resource-lists xmlns="urn:ietf:params:xml:ns:resource-lists">
<!-- The list of blocked contacts -->
<list name="rcs_blockedcontacts">
<display-name>My blocked contacts</display-name>
</list>

<list name="rcs_pnb_chat_blockedusers">
<display-name>My chat blacklist</display-name>
<entry uri="tel:+123456"/>
</list>

<list name="rcs_pnb_ft_blockedusers">
<display-name> My file transfer blacklist </display-name>
</list>

</resource-lists>




Best Regards
Thanks Ulf Dittmer.
Your link is what i found recently, Yes it is promising.

Best Regards.
Unfortunately, the link was broken.
But i found this page: http://docs.jboss.org/mobicents/jain-slee/2.7.0.FINAL/enablers/xdm-client/user-guide/en-US/html_single/#preinstall_requirements_and_prerequisites

I think this one is good sample for me.
svn co http://mobicents.googlecode.com/svn/tags/servers/jain-slee/2.x.y/enablers/xdm-client/1.0.0.FINAL slee-enabler-xdm-client-1.0.0.FINAL

Is there anybody familiar with the XCAP/XDM Clients ?

Best Regards.
Thanks for usefull information. As i see there isn't any documention but i can analyze this code.

Best Regards.
Hello,

I deployed Mobicents' XDM Server. I want to test it that it works properly with a XDM Client. I coudn't find any sample code for XDM client. (XCAP Client)
I'm new to XDM and XCAP technologies.
I need a sample source code for general understanding of XDM and XCAP requests.

Best Regards.
Thanks a lot Stephan van Hulst...

I solved my problem. I'm grateful.
Hello,

I'm writing a sip application which will run in JBOSS Mobicent. I'm using eclipse-link (JPA API) for database issues. When i tried to deploy my application to JBOSS i'm getting following exception.
I tried many combinations but i failed. What am i doing wrong ?

MY persistence.xml :



stsCore-ds.xml :


i also put stsCore-ds.xml into WEB-INF folder:


MY EXCEPTION (JBOSS) :

PLOYMENTS MISSING DEPENDENCIES:
Deployment "persistence.unit:unitName=#stsCore" is missing the following dependencies:
Dependency "jboss.jca:name=stsCore,service=DataSourceBinding" (should be in state "Create", but is actually in state "** NOT FOUND Depends on 'jboss.jca:name=stsCore,service=DataSourceBinding' **")

DEPLOYMENTS IN ERROR:
Deployment "jboss.jca:name=stsCore,service=DataSourceBinding" is in error due to the following reason(s): ** NOT FOUND Depends on 'jboss.jca:name=stsCore,service=DataSourceBinding' **

at org.jboss.deployers.plugins.deployers.DeployersImpl.checkComplete(DeployersImpl.java:993)
at org.jboss.deployers.plugins.deployers.DeployersImpl.checkComplete(DeployersImpl.java:939)
at org.jboss.deployers.plugins.main.MainDeployerImpl.checkComplete(MainDeployerImpl.java:873)
at org.jboss.system.server.profileservice.repository.MainDeployerAdapter.checkComplete(MainDeployerAdapter.java:128)
at org.jboss.system.server.profileservice.hotdeploy.HDScanner.scan(HDScanner.java:369)
at org.jboss.system.server.profileservice.hotdeploy.HDScanner.run(HDScanner.java:255)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:351)
at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:178)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:165)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:267)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
at java.lang.Thread.run(Thread.java:636)
9 years ago
Thanks jayesh. is this solution works on heavy simultaneus request load ?

Best regards.
Hello,

I wrote an application which is sending Sip Invite Message to a destination. After some period (10 ms,100 ms,whatever) response message comes from destination. I'm doing some businnes in processResponse.
So this issues are asynchronous!!! By the way i'm using nist library for sip messaging.

Another project team requesting a library from me. They want to use my application by calling synchronously.

What is the simplest way to do this ?
How can i call my asynchronous task via synchronous method ?

Could you share code samples,if you have any ?

Best Regards.





Hello everybody,

I am using (mobicents/mss-1.5.0.FINAL-jboss-jdk6-5.1.0.GA) .
I wrote jaxws web service and deployed glassfish before.Everything was working fine there.

I try to deploy my web service .war file to JBOSS. I see that my application is deployed successfully from log files.
But when i tried to reach my wsdl file or project. i am getting 404 not found error.

I am getting 404 for all these request :

http://192.168.20.121:8080/PSR_PS/PSR?wsdl
http://192.168.20.121:8080/PSR_PS

Please , any ideas ??


10 years ago
I've been using ZK Framework 3.0 in my web application . In ZK 3.0 contains org.zkoss.web.fn.XMLFns class.
I decided to pass to a new version of ZK Framework 5.0.
ZK 5.0 doesn't contain XMLFns class but i am getting ClassNotFoundException.

Do you have any idea about this problem ?

Exception :

org.zkoss.lang.SystemException: java.lang.ClassNotFoundException: org.zkoss.web.fn.XMLFns
at jrockit.reflect.NativeConstructorInvoker.newInstance([Ljava.lang.Object;)Ljava.lang.Object;(Unknown Source)
at java.lang.reflect.Constructor.newInstance([Ljava.lang.Object;I)Ljava.lang.Object;(Unknown Source)
at org.zkoss.lang.Classes.newInstance(Classes.java:76)
at org.zkoss.lang.Exceptions.wrap(Exceptions.java:162)
at org.zkoss.lang.SystemException$Aide.wrap(SystemException.java:45)
at org.zkoss.util.resource.ResourceCache.get(ResourceCache.java:156)
at org.zkoss.xel.taglib.Taglibs.load(Taglibs.java:217)
at org.zkoss.xel.util.TaglibMapper.load(TaglibMapper.java:83)
at org.zkoss.xel.util.TaglibMapper.load(TaglibMapper.java:109)
at org.zkoss.xel.util.TaglibMapper.load(TaglibMapper.java:91)
at org.zkoss.xel.taglib.Taglibs.getFunctionMapper(Taglibs.java:134)
at org.zkoss.xel.taglib.Taglibs.getFunctionMapper(Taglibs.java:110)
at org.zkoss.zk.ui.metainfo.PageDefinition.getTaglibMapper(PageDefinition.java:814)
at org.zkoss.zk.ui.metainfo.PageDefinition.initXelContext(PageDefinition.java:379)
at org.zkoss.zk.ui.impl.UiEngineImpl.execNewPage0(UiEngineImpl.java:352)
at org.zkoss.zk.ui.impl.UiEngineImpl.execNewPage(UiEngineImpl.java:286)
at org.zkoss.zk.ui.http.DHtmlLayoutServlet.process(DHtmlLayoutServlet.java:237)
at org.zkoss.zk.ui.http.DHtmlLayoutServlet.doGet(DHtmlLayoutServlet.java:159)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:226)
at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:124)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:283)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:175)
Caused by: java.lang.ClassNotFoundException: org.zkoss.web.fn.XMLFns
at java.lang.Class.forName(Ljava.lang.String;ZLjava.lang.ClassLoader;)Ljava.lang.Class;(Unknown Source)
at java.lang.Class.forName(Ljava.lang.String;I)Ljava.lang.Class;(Unknown Source)
at org.zkoss.lang.Classes.forNameByThread(Classes.java:208)
at org.zkoss.xel.taglib.Taglibs.load(Taglibs.java:244)
at org.zkoss.xel.taglib.Taglibs$TaglibLoader.load(Taglibs.java:304)
at org.zkoss.util.resource.ResourceCache$Info.load(ResourceCache.java:226)
at org.zkoss.util.resource.ResourceCache$Info.(ResourceCache.java:200)
at org.zkoss.util.resource.ResourceCache.get(ResourceCache.java:133)
at org.zkoss.xel.taglib.Taglibs.load(Taglibs.java:217)
at org.zkoss.xel.util.TaglibMapper.load(TaglibMapper.java:83)
at org.zkoss.xel.util.TaglibMapper.load(TaglibMapper.java:109)
at org.zkoss.xel.util.TaglibMapper.load(TaglibMapper.java:91)
at org.zkoss.xel.taglib.Taglibs.getFunctionMapper(Taglibs.java:134)
at org.zkoss.xel.taglib.Taglibs.getFunctionMapper(Taglibs.java:110)
at org.zkoss.zk.ui.metainfo.PageDefinition.getTaglibMapper(PageDefinition.java:814)
at org.zkoss.zk.ui.metainfo.PageDefinition.initXelContext(PageDefinition.java:379)
at org.zkoss.zk.ui.impl.UiEngineImpl.execNewPage0(UiEngineImpl.java:352)
at org.zkoss.zk.ui.impl.UiEngineImpl.execNewPage(UiEngineImpl.java:286)
at org.zkoss.zk.ui.http.DHtmlLayoutServlet.process(DHtmlLayoutServlet.java:237)
at org.zkoss.zk.ui.http.DHtmlLayoutServlet.doGet(DHtmlLayoutServlet.java:159)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:226)
at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:124)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:283)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:175)
at weblogic.servlet.internal.RequestDispatcherImpl.invokeServlet(RequestDispatcherImpl.java:503)
at weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:245)
at weblogic.servlet.internal.ServletResponseImpl.sendError(ServletResponseImpl.java:731)
at org.zkoss.zk.ui.http.Utils.handleError(Utils.java:92)
at org.zkoss.zk.ui.http.DHtmlLayoutServlet.handleError(DHtmlLayoutServlet.java:299)
at org.zkoss.zk.ui.http.DHtmlLayoutServlet.doGet(DHtmlLayoutServlet.java:160)



All problems in my mind is resolved.

Thanks a lot.
12 years ago