[JBossWS] - problems with EJB3WS invoked from J2ME client
by MmarcoM
hi all,
i wrote an EJB3 webservice and i am tryingn to connect to it using J2ME client written using WTK 2.5
Now, webservice is fine because when i try to connect to it using a java standalone client, everything works fine
But wihth J2ME, i receive following exception
| javax.xml.rpc.JAXRPCException: java.rmi.MarshalException: (1)Missing end tag for Body or Envelope
| at com.sun.j2mews.xml.rpc.SOAPDecoder.decode(+243)
| at com.sun.j2mews.xml.rpc.OperationImpl.invoke(+90)
| at com.mm.j2me.ws.WSRemoteSEI_Stub.login(+48)
| at com.mm.j2me.midp.model.HTTPCommunicationHandler.createAccount(+36)
| at com.mm.j2me.midp.model.RemoteModelRequestHandler.createAccount(+16)
| at com.mm.j2me.midp.model.RemoteModelProxy.createAccount(+16)
| at com.mm.j2me.midp.model.ModelFacade.createAccount(+16)
| at com.mm.j2me.midp.ui.UIController$EventDispatcher.run(+277)
| Remote exception in invoking WS...
| java.lang.ArrayIndexOutOfBoundsException
| at com.mm.j2me.midp.model.ModelFacade.createAccount(+31)
| at com.mm.j2me.midp.ui.UIController$EventDispatcher.run(+277)
|
Now, i have seen a similar thread where it was said that J2ME clients are not HTTP1.1 compliant, and the solution suggeste dwas to list the J2ME agent in tomcat\server.xml
my tomcat\server.xml looks like this:
| <!-- A HTTP/1.1 Connector on port 8080 -->
| <Connector port="8090" address="${jboss.bind.address}"
| maxThreads="250" strategy="ms" maxHttpHeaderSize="8192"
| emptySessionPath="true"
| enableLookups="false" redirectPort="8443" acceptCount="100"
| connectionTimeout="20000" disableUploadTimeout="true"
| restrictedUserAgents="^.*MS Web Services Client Protocol 1.1.4322.*$ .*MIDP*" />
|
but still i am getting the exception...
can anyone suggest me any workaround? or any solutions?
thanks in advance and regards
Marco
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3991452#3991452
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3991452
18 years, 1 month