Fixed
Details
Assignee
Michael OffnerMichael OffnerReporter
Imported User 69Imported User 69Priority
BlockerLabels
New Issue warning screen
Before you create a new Issue, please post to the mailing list first https://dev.lucee.org
Once the issue has been verified, one of the Lucee team will ask you to file an issue
Affects versions
Details
Details
Assignee
Michael Offner
Michael OffnerReporter
Imported User 69
Imported User 69Priority
Labels
New Issue warning screen
Before you create a new Issue, please post to the mailing list first https://dev.lucee.org
Once the issue has been verified, one of the Lucee team will ask you to file an issue
Affects versions
Created 9 February 2015 at 16:08
Updated 21 May 2024 at 20:40
Resolved 21 May 2024 at 19:59
I'm trying to port an ACF9 site over to Railo 4.2. There weren't too many big surprises, and nothing I couldn't work around, but I've hit a roadblock with this web service call. (I'm calling it a blocker because I'm not aware of a workaround, and it's a mission-critical part of my app.)
Code
<cfscript> wsUrl = "https://sb1.geolearning.com/geonext/testhudexchangelearn/webservices/geonext.asmx?wsdl"; argSct.username = "scrubbed"; argSct.password = "scrubbed"; ws = createObject("webservice", wsUrl, argSct); writeDump(var=ws, expand=false); // this method does work writeOutput("User Exists? #ws.userExists(argSct.username)#"); /* this is a straightforward function that doesn't seem to work Message ; nested exception is: java.lang.NullPointerException Cause org.apache.axis.AxisFault */ user = ws.GenerateUserObject(); // ACF yields a com.geolearning.geonext.webservices.User object </cfscript> ``` It's authenticated, and I've removed the username and password, but I can supply them to an individual upon request. h1. Error Here's the error--a NPE from ws.GenerateUserObject(): ``` #!stacktrace Web Service (Axis 1) https://sb1.geolearning.com/geonext/testhudexchangelearn/webservices/geonext.asmx?wsdl User Exists? true Railo 4.2.1.008 Error (org.apache.axis.AxisFault) Message ; nested exception is: java.lang.NullPointerException Cause org.apache.axis.AxisFault Stacktrace The Error Occurred in /var/www/vmhost/apps/hudexchange/cfml/deployment_root/wwwroot/test/SumTotal_WebServices/test3.cfm: line 18 16: Cause org.apache.axis.AxisFault 17: */ 18: user = ws.GenerateUserObject(); // ACF yields a com.geolearning.geonext.webservices.User object 19: 20: // Need to instantiate this object out of generated classes or ws classloader somehow Java Stacktrace ; nested exception is: java.lang.NullPointerException at org.apache.axis.encoding.ser.BeanDeserializer.onStartChild(BeanDeserializer.java:325):325 at org.apache.axis.encoding.DeserializationContext.startElement(DeserializationContext.java:1035):1035 at org.apache.axis.message.SAX2EventRecorder.replay(SAX2EventRecorder.java:165):165 at org.apache.axis.message.MessageElement.publishToHandler(MessageElement.java:1141):1141 at org.apache.axis.message.RPCElement.deserialize(RPCElement.java:236):236 at org.apache.axis.message.RPCElement.getParams(RPCElement.java:384):384 at org.apache.axis.client.Call.invoke(Call.java:2467):2467 at org.apache.axis.client.Call.invoke(Call.java:2366):2366 at org.apache.axis.client.Call.invoke(Call.java:1812):1812 at railo.runtime.net.rpc.client.Axis1Client.invoke(Axis1Client.java:419):419 at railo.runtime.net.rpc.client.Axis1Client._callMethod(Axis1Client.java:340):340 at railo.runtime.net.rpc.client.Axis1Client.call(Axis1Client.java:180):180 at railo.runtime.net.rpc.client.Axis1Client.call(Axis1Client.java:198):198 at railo.runtime.util.VariableUtilImpl.callFunctionWithoutNamedValues(VariableUtilImpl.java:724):724 at railo.runtime.PageContextImpl.getFunction(PageContextImpl.java:1547):1547 at test.sumtotal_webservices.test3_cfm$cf.call(/var/www/vmhost/apps/hudexchange/cfml/deployment_root/wwwroot/test/SumTotal_WebServices/test3.cfm:18):18 at railo.runtime.PageContextImpl.doInclude(PageContextImpl.java:909):909 at railo.runtime.PageContextImpl.doInclude(PageContextImpl.java:861):861 at railo.runtime.listener.ModernAppListener._onRequest(ModernAppListener.java:206):206 at railo.runtime.listener.MixedAppListener.onRequest(MixedAppListener.java:18):18 at railo.runtime.PageContextImpl.execute(PageContextImpl.java:2212):2212 at railo.runtime.PageContextImpl.execute(PageContextImpl.java:2179):2179 at railo.runtime.engine.CFMLEngineImpl.serviceCFML(CFMLEngineImpl.java:331):331 at railo.loader.servlet.CFMLServlet.service(CFMLServlet.java:29):29 at javax.servlet.http.HttpServlet.service(HttpServlet.java:727):727 at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303):303 at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208):208 at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52):52 at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241):241 at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208):208 at org.apache.catalina.filters.RemoteIpFilter.doFilter(RemoteIpFilter.java:834):834 at org.apache.catalina.filters.RemoteIpFilter.doFilter(RemoteIpFilter.java:870):870 at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241):241 at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208):208 at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220):220 at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122):122 at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:503):503 at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:170):170 at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103):103 at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116):116 at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:421):421 at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1070):1070 at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:611):611 at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:314):314 at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source):-1 at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source):-1 at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61):61 at java.lang.Thread.run(Unknown Source):-1 Timestamp 2/9/15 9:51:05 AM CST
References
https://groups.google.com/d/msg/railo/Zbujxz56gCI/Vky-0oaqeToJ
https://github.com/cfmlprojects/cfjarsoap/issues/1
https://github.com/cfmlprojects/cfjarsoap/issues/2