Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » ServerTools (WTP) » Need debugging help
Need debugging help [message #140873] Tue, 27 September 2005 13:53 Go to next message
James Norris is currently offline James NorrisFriend
Messages: 52
Registered: July 2009
Member
I can no longer get web services to work from my client application (eclipse
product) and can't figure out why. The service works as expected in the web
services explorer though and I get the "Hi there, this is an axis service"
message if I enter the endpoint in a browser. I'm getting is a
RemoteException with a java.lang.NullPointerException from the
_call.invoke() method in the stub with no indication of what is causing the
null pointer exception. If I was missing a jar file I would expect to see a
class not found exception in the eclipse log file in the runtime .metadata
folder but I don't. I'm running the tomcat server in debug mode but don't
get any breakpoints hit in the impl class. Everything is running on my
local machine. I have logging enabled in the web service (commons-logging
with log4j) but never get anything logged (even when running it with the web
services explorer).

This morning I did a clean install of eclipse, WTP 1.0M8 and BIRT 1.0.1 to
get rid of other plugins not needed by the application and still get the
problem. I am using apache 5.5.9.

I need to deploy the application next week for a customer trial so I'm
really desperate for some help on resolving this problem. So any help on
enabling debugging/logging on the web service side of things would be
appreciated.

Thanks,
Jim
Re: Need debugging help [message #140894 is a reply to message #140873] Tue, 27 September 2005 14:20 Go to previous messageGo to next message
James Norris is currently offline James NorrisFriend
Messages: 52
Registered: July 2009
Member
BTW, I used the web services Generate Java Bean wizard to generate the code
from the wsdl file.

Here's part of the stack trace. Since the QName appears to be the source of
the null pointer at least now I can track it down. Time to add the axis
source.
AxisFault

faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userExcept ion

faultSubcode:

faultString: java.lang.NullPointerException

faultActor:

faultNode:

faultDetail:

{http://xml.apache.org/axis/}stackTrace:java.lang.NullPointe rException

at javax.xml.namespace.QName.toString(QName.java:113)

at
org.apache.axis.configuration.FileProvider.getService(FilePr ovider.java:233)

at org.apache.axis.AxisEngine.getService(AxisEngine.java:311)

at org.apache.axis.MessageContext.setTargetService(MessageConte xt.java:755)

at org.apache.axis.client.Call.invoke(Call.java:2671)

at org.apache.axis.client.Call.invoke(Call.java:2424)

at org.apache.axis.client.Call.invoke(Call.java:2347)

at org.apache.axis.client.Call.invoke(Call.java:1804)

"jnorris" <james.norris@pb.com> wrote in message
news:dhbise$k4e$1@news.eclipse.org...
>I can no longer get web services to work from my client application
>(eclipse product) and can't figure out why. The service works as expected
>in the web services explorer though and I get the "Hi there, this is an
>axis service" message if I enter the endpoint in a browser. I'm getting is
>a RemoteException with a java.lang.NullPointerException from the
>_call.invoke() method in the stub with no indication of what is causing the
>null pointer exception. If I was missing a jar file I would expect to see
>a class not found exception in the eclipse log file in the runtime
>.metadata folder but I don't. I'm running the tomcat server in debug mode
>but don't get any breakpoints hit in the impl class. Everything is running
>on my local machine. I have logging enabled in the web service
>(commons-logging with log4j) but never get anything logged (even when
>running it with the web services explorer).
>
> This morning I did a clean install of eclipse, WTP 1.0M8 and BIRT 1.0.1 to
> get rid of other plugins not needed by the application and still get the
> problem. I am using apache 5.5.9.
>
> I need to deploy the application next week for a customer trial so I'm
> really desperate for some help on resolving this problem. So any help on
> enabling debugging/logging on the web service side of things would be
> appreciated.
>
> Thanks,
> Jim
>
Re: Need debugging help [message #140915 is a reply to message #140873] Tue, 27 September 2005 15:13 Go to previous message
James Norris is currently offline James NorrisFriend
Messages: 52
Registered: July 2009
Member
Here is what I have discovered.

I removed the axis jars as plugin dependencies and added them to the project
under the Libraries tab in project properties so i could add a java source
location for debugging. In this case everything worked. I then changed the
system back to add the jars as plugin dependencies and again it didn't work.
I moved the axis jars to the beginning of the Classpath section of the
Runtime tab in plugin.xml and then it worked again. So my problem appears
to have been classpath related.

-Jim

"jnorris" <james.norris@pb.com> wrote in message
news:dhbise$k4e$1@news.eclipse.org...
>I can no longer get web services to work from my client application
>(eclipse product) and can't figure out why. The service works as expected
>in the web services explorer though and I get the "Hi there, this is an
>axis service" message if I enter the endpoint in a browser. I'm getting is
>a RemoteException with a java.lang.NullPointerException from the
>_call.invoke() method in the stub with no indication of what is causing the
>null pointer exception. If I was missing a jar file I would expect to see
>a class not found exception in the eclipse log file in the runtime
>.metadata folder but I don't. I'm running the tomcat server in debug mode
>but don't get any breakpoints hit in the impl class. Everything is running
>on my local machine. I have logging enabled in the web service
>(commons-logging with log4j) but never get anything logged (even when
>running it with the web services explorer).
>
> This morning I did a clean install of eclipse, WTP 1.0M8 and BIRT 1.0.1 to
> get rid of other plugins not needed by the application and still get the
> problem. I am using apache 5.5.9.
>
> I need to deploy the application next week for a customer trial so I'm
> really desperate for some help on resolving this problem. So any help on
> enabling debugging/logging on the web service side of things would be
> appreciated.
>
> Thanks,
> Jim
>
Previous Topic:IDataModel questions
Next Topic:extension points for web service related plug-ins
Goto Forum:
  


Current Time: Fri Apr 26 11:53:08 GMT 2024

Powered by FUDForum. Page generated in 0.03328 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top