NPE With Web Service Method

Description

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

Environment

None

Activity

Show:

Jamie Jackson 21 May 2024 at 20:40

I’m not heartbroken about it. I filed the ticket in 2015 but we finally stopped using that provider last year and I have no more need for its antiquated web service anymore.

Michael Offner 21 May 2024 at 19:59

this part of the project is deprecated and only get security fixes, sorry.

Ben Jones 11 March 2019 at 20:07

Thanks. The "memory scope" (probably not) only is affected by some super silly code that takes form submissions from request scope to a cookie, and then back to a DB. It's ridiculous.

What are the recommended memory settings for java 8/ tomcat 8 for Lucee?

Ben Jones 11 March 2019 at 19:56

thanks very much. I really want to figure out the subtle differences and get it going
. Once I get back to the ACF9 --> Lucee migration, I will figure out which pages are loading slower, and gather some code/metrics. Some bits of the application - rely on web service calls, and other remote calls that are not CF/Lucee.
In general- the page load times just aren't as quick.
I'd give away my favorite goat to get Lucee running on this app

Thank you very much for the feedback.

Michael Offner 11 March 2019 at 19:48

we consider bad performance as bug that we address with high priority.
If you can show a code snipped that is slower than on ACF, we will look into it and fix it.

Fixed

Details

Assignee

Reporter

Priority

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

Flag notifications