web service crash

328 views
Skip to first unread message

fhu...@gmail.com

unread,
Nov 23, 2015, 5:40:36 AM11/23/15
to iDempiere
Hello, I'm trying to use the SOAP API but anything I run returns an error:
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
   <soap:Body>
      <soap:Fault>
         <faultcode>soap:Client</faultcode>
         <faultstring>UNMARSHAL_ERROR</faultstring>
      </soap:Fault>
   </soap:Body>
</soap:Envelope>

and the server logs:
Nov 23, 2015 11:35:48 AM org.apache.cxf.phase.PhaseInterceptorChain doDefaultLogging
WARNING: Interceptor for {http://idempiere.org/ADInterface/1_0}ModelADService#{http://idempiere.org/ADInterface/1_0}createData has thrown exception, unwinding now
org.apache.cxf.interceptor.Fault: UNMARSHAL_ERROR
    at org.apache.cxf.xmlbeans.DataReaderImpl.doRead(DataReaderImpl.java:113)
    at org.apache.cxf.xmlbeans.DataReaderImpl.read(DataReaderImpl.java:63)
    at org.apache.cxf.xmlbeans.DataReaderImpl.read(DataReaderImpl.java:45)
    at org.apache.cxf.binding.soap.interceptor.RPCInInterceptor.handleMessage(RPCInInterceptor.java:178)
    at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:262)
    at org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:121)
    at org.apache.cxf.transport.http.AbstractHTTPDestination.invoke(AbstractHTTPDestination.java:211)
    at org.apache.cxf.transport.servlet.ServletController.invokeDestination(ServletController.java:213)
    at org.apache.cxf.transport.servlet.ServletController.invoke(ServletController.java:193)
    at org.apache.cxf.transport.servlet.CXFNonSpringServlet.invoke(CXFNonSpringServlet.java:130)
    at org.apache.cxf.transport.servlet.AbstractHTTPServlet.handleRequest(AbstractHTTPServlet.java:221)
    at org.apache.cxf.transport.servlet.AbstractHTTPServlet.doPost(AbstractHTTPServlet.java:141)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
    at org.apache.cxf.transport.servlet.AbstractHTTPServlet.service(AbstractHTTPServlet.java:197)
    at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:808)
    at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:587)
    at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143)
    at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:577)
    at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:223)
    at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1127)
    at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:515)
    at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:185)
    at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1061)
    at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)
    at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:215)
    at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:110)
    at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:97)
    at org.eclipse.jetty.server.Server.handle(Server.java:499)
    at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:310)
    at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:257)
    at org.eclipse.jetty.io.AbstractConnection$2.run(AbstractConnection.java:540)
    at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:635)
    at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:555)
    at java.lang.Thread.run(Thread.java:745)

I'm using soapUI and it crashes anytime I include ModelCRUDRequest tag, removing it and it's data it passes and returns a proper error(no crash).
Any suggestions? Running 3.1

fhu...@gmail.com

unread,
Nov 25, 2015, 7:46:59 AM11/25/15
to iDempiere
This is a shameful bump to hopefully bring some attention. Last night I reinstalled the whole iDempiere 3.1 installation as per instructions http://wiki.idempiere.org/en/Installing_iDempiere for development, with a fresh eclipse installation and a fresh release-3.1 code pull, starting the project and building it I still encounter this error.
Has anyone had any success in pulling the repo and successfully compiling/running and getting proper response by sending a request to http://localhost:8082/ADInterface/services/ModelADService?wsdl ?

Carlos Antonio Ruiz Gomez

unread,
Nov 25, 2015, 8:01:52 AM11/25/15
to idem...@googlegroups.com
You can test the provided SOAPUI test samples against the test.idempiere.org server



On 25/11/15 a las 07:46, fhu...@gmail.com wrote:

fhu...@gmail.com

unread,
Nov 26, 2015, 6:14:40 AM11/26/15
to iDempiere
Alright. So I have tried grabbing the wsdl from the corresponding sites in soapui and it gives proper reponses on
test.idempiere.com
locally deployed 3.1 from http://sourceforge.net/projects/idempiere/files/v3.1/daily-server/idempiereServer3.1Daily.gtk.linux.x86_64.deb

but when i follow the guides on http://wiki.idempiere.org/en/Install_Development_Prerequisites and the subsequent pages it gives this error. This is on a newly created virtual machine so there's nothing that can affect it.

fhu...@gmail.com

unread,
Dec 2, 2015, 3:52:22 PM12/2/15
to iDempiere
Testing with SOAPUI against https://demo.globalqss.com/ADInterface/services with the ModelADService gives the same errors, now that you are running 3.1 too with the latest build.


On Wednesday, November 25, 2015 at 2:01:52 PM UTC+1, Carlos Antonio Ruiz Gómez wrote:

Carlos Antonio Ruiz Gomez

unread,
Dec 2, 2015, 8:06:50 PM12/2/15
to idem...@googlegroups.com
Can you please test again, the server was outdated.

fhu...@gmail.com

unread,
Dec 3, 2015, 11:39:42 AM12/3/15
to iDempiere
I pulled the latest changes and I can confirm the errors are solved!
Reply all
Reply to author
Forward
0 new messages