0 Replies Latest reply on Dec 5, 2006 3:56 PM by Marco

    problems with EJB3WS invoked from J2ME client

    Marco Novice

      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...
       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"
       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