webservice problem (Tomcat/Railo)

조회수 73회
읽지 않은 첫 메시지로 건너뛰기

Tom Sucaet

읽지 않음,
2011. 1. 21. 오전 5:43:5411. 1. 21.
받는사람 Railo
I'm trying to call a webservice, but I get an
"java.lang.NullPointerException".

This is the code I run (on CentOS 5.5, Railo 3.2 with Apache Tomcat
6):
<cfset oWS = structNew() >
<cfset oWS = createObject("webservice","http://www.webservicex.net/
stockquote.asmx?WSDL")>
<cfdump var="#oWS#"><!--- This dump works, shows details of method and
arguments of the webservice --->

<cfdump var="#oWS.GetQuote("YHOO")#"><!--- This dump doesn't work:
"java.lang.NullPointerException", see stacktrace --->

STACKTRACE:
java.lang.NullPointerException at
org.apache.axis.client.Service.getEngineConfiguration(Service.java:
813):813 at org.apache.axis.client.Service.getAxisClient(Service.java:
104):104 at org.apache.axis.client.Service.<init>(Service.java:178):
178 at
railo.runtime.net.rpc.client.RPCClient._callMethod(RPCClient.java:207):
207 at railo.runtime.net.rpc.client.RPCClient.call(RPCClient.java:177):
177 at railo.runtime.net.rpc.client.RPCClient.call(RPCClient.java:198):
198 at
railo.runtime.util.VariableUtilImpl.callFunctionWithoutNamedValues(VariableUtilImpl.java:
733):733 at
railo.runtime.PageContextImpl.getFunction(PageContextImpl.java:1438):
1438 at test_cfm$cf.call(/var/www/html/mura/test.cfm:11):11 at
railo.runtime.PageContextImpl.doInclude(PageContextImpl.java:764):764
at
railo.runtime.listener.ModernAppListener._onRequest(ModernAppListener.java:
205):205 at
railo.runtime.listener.MixedAppListener.onRequest(MixedAppListener.java:
23):23 at railo.runtime.PageContextImpl.execute(PageContextImpl.java:
1973):1973 at
railo.runtime.engine.CFMLEngineImpl.serviceCFML(CFMLEngineImpl.java:
280):280 at railo.loader.servlet.CFMLServlet.service(CFMLServlet.java:
32):32 at javax.servlet.http.HttpServlet.service(HttpServlet.java:717):
717 at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:
290):290 at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:
206):206 at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:
233):233 at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:
191):191 at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:
127):127 at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:
102):102 at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:
109):109 at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:
298):298 at
org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:190):
190 at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:
291):291 at
org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:774):774
at
org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:
703):703 at org.apache.jk.common.ChannelSocket
$SocketConnection.runIt(ChannelSocket.java:896):896 at
org.apache.tomcat.util.threads.ThreadPool
$ControlRunnable.run(ThreadPool.java:690):690 at
java.lang.Thread.run(Thread.java:662):662 at
railo.runtime.op.Caster.toPageException(Caster.java:2987):2987 at
railo.runtime.net.rpc.client.RPCClient.call(RPCClient.java:180):180 at
railo.runtime.net.rpc.client.RPCClient.call(RPCClient.java:198):198 at
railo.runtime.util.VariableUtilImpl.callFunctionWithoutNamedValues(VariableUtilImpl.java:
733):733 at
railo.runtime.PageContextImpl.getFunction(PageContextImpl.java:1438):
1438 at test_cfm$cf.call(/var/www/html/mura/test.cfm:11):11 at
railo.runtime.PageContextImpl.doInclude(PageContextImpl.java:764):764
at
railo.runtime.listener.ModernAppListener._onRequest(ModernAppListener.java:
205):205 at
railo.runtime.listener.MixedAppListener.onRequest(MixedAppListener.java:
23):23 at railo.runtime.PageContextImpl.execute(PageContextImpl.java:
1973):1973 at
railo.runtime.engine.CFMLEngineImpl.serviceCFML(CFMLEngineImpl.java:
280):280 at railo.loader.servlet.CFMLServlet.service(CFMLServlet.java:
32):32 at javax.servlet.http.HttpServlet.service(HttpServlet.java:717):
717 at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:
290):290 at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:
206):206 at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:
233):233 at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:
191):191 at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:
127):127 at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:
102):102 at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:
109):109 at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:
298):298 at
org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:190):
190 at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:
291):291 at
org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:774):774
at
org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:
703):703 at org.apache.jk.common.ChannelSocket
$SocketConnection.runIt(ChannelSocket.java:896):896 at
org.apache.tomcat.util.threads.ThreadPool
$ControlRunnable.run(ThreadPool.java:690):690 at
java.lang.Thread.run(Thread.java:662):662


When I tested this on Railo Express on Mac OS X, it works fine!
So, I think it has something to do with my Tomcat setup, but I didn't
find a solution.

Thanks!

Todd Rafferty

읽지 않음,
2011. 1. 21. 오전 7:23:2711. 1. 21.
받는사람 ra...@googlegroups.com
Works for me using Tomcat / Railo 3.2 / Apache / Windows:

<StockQuotes><Stock><Symbol>YHOO</Symbol><Last>16.2295</Last><Date>1/20/2011</Date><Time>4:00pm</Time><Change>0.00</Change><Open>N/A</Open><High>N/A</High><Low>N/A</Low><Volume>0</Volume><MktCap>21.155B</MktCap><PreviousClose>16.2295</PreviousClose><PercentageChange>0.00%</PercentageChange><AnnRange>12.94 - 19.12</AnnRange><Earns>0.77</Earns><P-E>21.08</P-E><Name>Yahoo! Inc.</Name></Stock></StockQuotes>

Let me check my centos box.
--
~Todd Rafferty
Volunteer
Community Manager
Railo Server - Open Source
----

Todd Rafferty

읽지 않음,
2011. 1. 21. 오전 7:25:1811. 1. 21.
받는사람 ra...@googlegroups.com
My centos box running Tomcat / Railo 3.2 / Apache:

Tom Sucaet

읽지 않음,
2011. 1. 21. 오전 7:56:1011. 1. 21.
받는사람 Railo
Tanx for checking out, looks I'll have to check my tomcat/railo
configuration.



On 21 jan, 13:25, Todd Rafferty <t...@getrailo.org> wrote:
> My centos box running Tomcat / Railo 3.2 / Apache:http://web-rat.com/test.cfm
>
>
>
> On Fri, Jan 21, 2011 at 7:23 AM, Todd Rafferty <t...@getrailo.org> wrote:
> > Works for me using Tomcat / Railo 3.2 / Apache / Windows:
>
> > <StockQuotes><Stock><Symbol>YHOO</Symbol><Last>16.2295</Last><Date>1/20/2011</Date><Time>4:00pm</Time><Change>0.00</Change><Open>N/A</Open><High>N/A</High><Low>N/A</Low><Volume>0</Volume><MktCap>21.155B</MktCap><PreviousClose>16.2295</PreviousClose><PercentageChange>0.00%</PercentageChange><AnnRange>12.94
> > - 19.12</AnnRange><Earns>0.77</Earns><P-E>21.08</P-E><Name>Yahoo!
> > Inc.</Name></Stock></StockQuotes>
>
> > Let me check my centos box.
>
> > On Fri, Jan 21, 2011 at 5:43 AM, Tom Sucaet <tom.suc...@gmail.com> wrote:
>
> >> I'm trying to call a webservice, but I get an
> >> "java.lang.NullPointerException".
>
> >> This is the code I run (on CentOS 5.5, Railo 3.2 with Apache Tomcat
> >> 6):
> >> <cfset oWS = structNew() >
> >> <cfset oWS = createObject("webservice","http://www.webservicex.net/
> >> stockquote.asmx?WSDL <http://www.webservicex.net/stockquote.asmx?WSDL>")>
> > ~Todd Rafferty*
> > Volunteer** *Community Manager
> > Railo Server - Open Source
> > ----
> > Get Railo:http://getrailo.org/
> > Write Documentation:http://wiki.getrailo.org/
> > Report Bugs:https://issues.jboss.org/browse/RAILO
> > Request Features:https://railo.uservoice.com/
>
> --
> ~Todd Rafferty*
> Volunteer** *Community Manager

Todd Rafferty

읽지 않음,
2011. 1. 21. 오전 8:35:0811. 1. 21.
받는사람 ra...@googlegroups.com
Are you using the installer from Railo's website or did you configure it on your own? Can you hit *any* webservice out there? Do you have something blocking your call?

Tom Sucaet

읽지 않음,
2011. 1. 21. 오전 9:27:2811. 1. 21.
받는사람 Railo
I did setup a new box with CentOS 5.5 (64bit) and I used the installer
from viviotech (http://railo.viviotech.net/) for the installation of
railo and tomcat (=Railo 3.2 / Tomcat 6.0.29) which is pretty handy.
Everything is working fine, except those webservices calls. I also
tried with an internal webservice, but I got the same problem.
There's nothing that is blocking my call I think, because I can ping
to these webservices. I also can connect to the webservice, but it
shows the error when I tried to call a function of a webservice.

With some googling I found this:
http://www.tomcatexpert.com/ask-the-experts/tomcat-64-bit-webservice-connection-failures

Could it something has to do with Tomcat + 64bit?

Todd Rafferty

읽지 않음,
2011. 1. 21. 오전 9:28:5411. 1. 21.
받는사람 ra...@googlegroups.com
No idea, but the centos box and windows box I posted information from are both running 64 bit tomcat.
--
~Todd Rafferty
Volunteer
Community Manager

Todd Rafferty

읽지 않음,
2011. 1. 21. 오전 9:30:1211. 1. 21.
받는사람 ra...@googlegroups.com
The only difference I see so far is you used Jordan's installer and I didn't. I manually setup my tomcat for some reason. Perhaps Jordan is using a newer Tomcat than what I'm using. I'm at work at the moment, so I can check for you.


On Fri, Jan 21, 2011 at 9:28 AM, Todd Rafferty <to...@getrailo.org> wrote:
No idea, but the centos box and windows box I posted information from are both running 64 bit tomcat.

 

Todd Rafferty

읽지 않음,
2011. 1. 21. 오전 9:30:1911. 1. 21.
받는사람 ra...@googlegroups.com
er.. can't check for you.

Tom Sucaet

읽지 않음,
2011. 1. 21. 오후 2:01:2811. 1. 21.
받는사람 Railo
I have setup the same configuration in a local VM (with VirtualBox)
and everything seems working, so it has probably nothing to do with
railo, tomcat or 64bit.
I'll start with a "fresh" installation.
Tanx

On 21 jan, 15:30, Todd Rafferty <t...@getrailo.org> wrote:
> er.. can't check for you.
>
>
>
>
>
> On Fri, Jan 21, 2011 at 9:30 AM, Todd Rafferty <t...@getrailo.org> wrote:
> > The only difference I see so far is you used Jordan's installer and I
> > didn't. I manually setup my tomcat for some reason. Perhaps Jordan is using
> > a newer Tomcat than what I'm using. I'm at work at the moment, so I can
> > check for you.
>
> > On Fri, Jan 21, 2011 at 9:28 AM, Todd Rafferty <t...@getrailo.org> wrote:
>
> >> No idea, but the centos box and windows box I posted information from are
> >> both running 64 bit tomcat.
>
> > --
> > ~Todd Rafferty*
> > Volunteer** *Community Manager
> > Railo Server - Open Source
> > ----
> > Get Railo:http://getrailo.org/
> > Write Documentation:http://wiki.getrailo.org/
> > Report Bugs:https://issues.jboss.org/browse/RAILO
> > Request Features:https://railo.uservoice.com/
>
> --
> ~Todd Rafferty*
> Volunteer** *Community Manager
전체답장
작성자에게 답글
전달
새 메시지 0개