mmm.. How did you make XFire work on BEA WebLogic 9.2? I was having a
problem with Classloading XML-related classes (
http://forums.bea.com/bea/message.jspa?messageID=400004159&tstart=0 )

On 5/9/07, Anshumn Sagar <[EMAIL PROTECTED]> wrote:

Hi Tonio,

Thanks for your response. I was able to figure out the
problem yesterday and am sorry that could not post it
today.

It was a very strange problem and finally I figured
out that it was due to jdk incompatibility. I had
developed the service in my local machine on tomcat
and used jdk 1.4 as the production environment uses
Weblogic 8.1 which uses 1.4 jvm. But inspite of doing
that I found out that the problem was arising due to
some jdk incompatibility as I was not able to
correctly debug the program since all the debug points
were not reached while debugging. I knew that
invocationTargetException arises if the invoked method
internally throws some exception, so I wanted to check
the code statement which was causing it, but due to
the strange behaviour arising of the jvm
incompatibility, the debugger would suddenly jump out
to some other statements.

I am using Eclipse as the IDE and its very nice
feature to explicitely impose the excat jdk
compatibility solved the entire issue(Menu option
Project -> Properties -> Java Compiler -> Jdk
Compliance)!

Thanks again for your response!

Regards,
Anshumn

--- Tonio Caputo <[EMAIL PROTECTED]> wrote:

> Hi Anshum,
>
> The problem here is that de stack-trace information
> is not good.
>
> You must run your code through a debugger and stop
> in AbstractInvoker (I'm not sure if that's the class
> name)
> , and see what the TargetException is
> (method getTargetException() in
> InvocationTargetException class)
> these will let you know the real cause of the error.
>
> After this I'm sure you will be able to detect your
> problem.
>
> I faced a similar problem a week ago, and I was
> going to send
> an e-mail to see if this problem (?) can be fixed.
>
> Hope it helps
> tonio
>
>
> On Mon, 2007-05-07 at 17:47 -0700, Anshumn Sagar
> wrote:
> > Hi,
> >
> > I am facing a problem while calling the web
> service
> > which returns a list of objects. The service is
> > written using spring+xfire. The problem occurs
> when I
> > deploy the service on Weblogic 8.1. If I call the
> > service from my client, I
> > get InvocationTargetException. The stack trace
> appears
> > as -
> >
> ----------------------------------------------------
> > org.codehaus.xfire.XFireRuntimeException:
> Exception
> > while calling:
> > http://myserver02:7001/service/PartnerDataService
> > arguments: service.beans.LicenseSearchInput :
> > [EMAIL PROTECTED] |. Nested
> > exception is org.codehaus.xfire.fault.XFireFault:
> > Error invoking
> >
>
'service.IPartnerDataService.searchLicenses(
service.beans.LicenseSearchInput)'.
> > Nested exception is
> > java.lang.reflect.InvocationTargetException: null
> > org.codehaus.xfire.fault.XFireFault: Error
> invoking
> >
>
'service.IPartnerDataService.searchLicenses(
service.beans.LicenseSearchInput)'.
> > Nested exception is
> > java.lang.reflect.InvocationTargetException: null
> >     at
> >
>
org.codehaus.xfire.fault.Soap11FaultSerializer.readMessage(
Soap11FaultSerializer.java:31)
> >     at
> >
>
org.codehaus.xfire.fault.SoapFaultSerializer.readMessage(
SoapFaultSerializer.java:28)
> >     at
> >
>
org.codehaus.xfire.soap.handler.ReadHeadersHandler.checkForFault(
ReadHeadersHandler.java:111)
> >     at
> >
>
org.codehaus.xfire.soap.handler.ReadHeadersHandler.invoke(
ReadHeadersHandler.java:67)
> >     at
> >
>
org.codehaus.xfire.handler.HandlerPipeline.invoke(HandlerPipeline.java
:131)
> >     at
> >
>
org.codehaus.xfire.client.Client.onReceive(Client.java:387)
> >     at
> >
>
org.codehaus.xfire.transport.http.HttpChannel.sendViaClient(
HttpChannel.java:139)
> >     at
> >
>
org.codehaus.xfire.transport.http.HttpChannel.send(HttpChannel.java:48)
> >     at
> >
>
org.codehaus.xfire.handler.OutMessageSender.invoke(OutMessageSender.java
:26)
> >     at
> >
>
org.codehaus.xfire.handler.HandlerPipeline.invoke(HandlerPipeline.java
:131)
> >
>
-----------------------------------------------------
> >
> > The same call works fine in Weblogic 9.2, but it
> is
> > failing on Weblogic 8.1. And it happens only for
> the
> > service method calls where I am returning a list
> of
> > beans, the other methods where I just return a
> plain
> > object instead of a list works fine in weblogic
> 8.1.
> >
> > I have made my aegis.xml mapping file as -
> >
> >
>
-----------------------------------------------------
> > <mappings>
> >     <mapping>
> >             <method name="searchLicenses">
> >                     <return-type
> > componentType="service.beans.License"/>
> >             </method>
> >     </mapping>
> > </mappings>
> >
>
-----------------------------------------------------
> >
> > Can someone help in finding out the problem? This
> is
> > very urgent for me.
> >
> > Thanks in advance!!
> > Regards,
> > Anshumn
> >
> > __________________________________________________
> > Do You Yahoo!?
> > Tired of spam?  Yahoo! Mail has the best spam
> protection around
> > http://mail.yahoo.com
> >
> >
>
---------------------------------------------------------------------
> > To unsubscribe from this list please visit:
> >
> >     http://xircles.codehaus.org/manage_email
> >
>
>
>
---------------------------------------------------------------------
> To unsubscribe from this list please visit:
>
>     http://xircles.codehaus.org/manage_email
>
>


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around
http://mail.yahoo.com

---------------------------------------------------------------------
To unsubscribe from this list please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to