axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jeff Greif <jgr...@alumni.princeton.edu>
Subject Re: IncompatibleClassChangeError
Date Fri, 08 Jul 2005 04:39:10 GMT
In Websphere, there are obscure parameters that control whether the J2EE 
container's classpath is consulted before or after the application's 
classpath.  These can be set per application or per module, in a 
configuration editor for .war files.  Perhaps SAP's container is similar.

Jeff

Anil Arora wrote:

>I shouldn't really be picking up their version of saaj, which is 1.1.
>I'll have to talk to the SAP folks about that.
>
>Shouldn't the class change error indicate what the error is?  It seems
>that the original error message is getting swallowed.
>
>Anil
>
>
>
>  
>
>>-----Original Message-----
>>From: Jeff Greif [mailto:jgreif@alumni.princeton.edu]
>>Sent: Thursday, July 07, 2005 7:33 PM
>>To: axis-user@ws.apache.org
>>Subject: Re: IncompatibleClassChangeError
>>
>>It appears that the application server is loading an older version of
>>saaj.jar. Maybe the SAP app server has some default of preferring the
>>container's classpath to the EAR's classpath, and perhaps that default
>>is changeable.
>>
>>Jeff
>>
>>Anil Arora wrote:
>>
>>    
>>
>>>I am currently running into getting an IncompatibleClassChangeError
>>>      
>>>
>in
>  
>
>>>my J2EE application when deployed on SAP NetWeaver 04 SP11. I
>>>      
>>>
>haven't
>  
>
>>>run into this problem on any other app servers.
>>>
>>>I'm using Axis 1.2.1 and Xerces 2.7. I've also made sure that I am
>>>using the same dependant libs that came with the binary distribution
>>>of Axis.
>>>
>>>I noticed that there was a change to this class prior to 1.2.1
>>>      
>>>
>coming
>  
>
>>>out. Unfortunately, the change in question does not dump the
>>>underlying exception detain information. So, it is hard to determine
>>>what the actual cause of the exception is.
>>>
>>>+        } catch (java.lang.IncompatibleClassChangeError e) {
>>>
>>>+            Text text = new org.apache.axis.message.Text(s);
>>>
>>>+            this.appendChild(text);
>>>
>>>+            return this;
>>>
>>>Shouldn't we do something like...
>>>
>>>+        } catch (java.lang.IncompatibleClassChangeError e) {
>>>
>>>+            throw new SOAPException(e);
>>>
>>>Instead? I don't know if SOAPException keeps the original stack
>>>      
>>>
>trace
>  
>
>>>around.
>>>
>>>Perhaps the catch block should be catching all Throwable exceptions
>>>and wrapping them up in SOAPException.
>>>
>>>Anil
>>>
>>>2005-07-07 16:07:58,905 [SAPEngine_Application_Thread[impl:3]_35]
>>>EXCEPTIONS INFO - Exception:
>>>
>>>java.lang.IncompatibleClassChangeError
>>>
>>>at
>>>
>>>      
>>>
>org.apache.axis.message.MessageElement.addTextNode(MessageElement.java:1
>38
>  
>
>>7)
>>    
>>
>>>at
>>>      
>>>
>org.apache.axis.message.SOAPHandler.addTextNode(SOAPHandler.java:148)
>  
>
>>>at
>>>      
>>>
>org.apache.axis.message.SOAPHandler.endElement(SOAPHandler.java:112)
>  
>
>>>at
>>>
>>>      
>>>
>org.apache.axis.encoding.DeserializationContext.endElement(Deserializati
>on
>  
>
>>Context.java:1087)
>>    
>>
>>>at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown
>>>      
>>>
>>Source)
>>    
>>
>>>at
>>>
>>>      
>>>
>org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(Unknown
>  
>
>>>Source)
>>>
>>>at
>>>
>>>      
>>>
>org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDis
>pa
>  
>
>>tcher.dispatch(Unknown
>>    
>>
>>>Source)
>>>
>>>at
>>>
>>>      
>>>
>org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unkno
>wn
>  
>
>>>Source)
>>>
>>>at org.apache.xerces.parsers.XML11Configuration.parse(Unknown
>>>      
>>>
>Source)
>  
>
>>>at org.apache.xerces.parsers.XML11Configuration.parse(Unknown
>>>      
>>>
>Source)
>  
>
>>>at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
>>>
>>>at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
>>>
>>>at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown
>>>Source)
>>>
>>>at javax.xml.parsers.SAXParser.parse(SAXParser.java:345)
>>>
>>>at
>>>
>>>      
>>>
>org.apache.axis.encoding.DeserializationContext.parse(DeserializationCon
>te
>  
>
>>xt.java:227)
>>    
>>
>>>at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:696)
>>>
>>>at org.apache.axis.Message.getSOAPEnvelope(Message.java:424)
>>>
>>>at
>>>
>>>      
>>>
>org.apache.axis.server.AxisServer.initSOAPConstants(AxisServer.java:345)
>  
>
>>>at org.apache.axis.server.AxisServer.invoke(AxisServer.java:279)
>>>
>>>at
>>>      
>>>
>org.apache.axis.transport.http.AxisServlet.doPost(AxisServlet.java:699)
>  
>
>>>at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
>>>
>>>at
>>>
>>>      
>>>
>org.apache.axis.transport.http.AxisServletBase.service(AxisServletBase.j
>av
>  
>
>>a:327)
>>    
>>
>>>at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
>>>
>>>at
>>>
>>>      
>>>
>com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(H
>tt
>  
>
>>pHandlerImpl.java:391)
>>    
>>
>>>at
>>>
>>>      
>>>
>com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleReques
>t(
>  
>
>>HttpHandlerImpl.java:265)
>>    
>>
>>>at
>>>
>>>      
>>>
>com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(R
>eq
>  
>
>>uestAnalizer.java:345)
>>    
>>
>>>at
>>>
>>>      
>>>
>com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(R
>eq
>  
>
>>uestAnalizer.java:323)
>>    
>>
>>>at
>>>
>>>      
>>>
>com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebConta
>in
>  
>
>>er(RequestAnalizer.java:865)
>>    
>>
>>>at
>>>
>>>      
>>>
>com.sap.engine.services.httpserver.server.RequestAnalizer.handle(Request
>An
>  
>
>>alizer.java:240)
>>    
>>
>>>at
>>>      
>>>
>com.sap.engine.services.httpserver.server.Client.handle(Client.java:92)
>  
>
>>>at
>>>
>>>      
>>>
>com.sap.engine.services.httpserver.server.Processor.request(Processor.ja
>va
>  
>
>>:148)
>>    
>>
>>>at
>>>
>>>      
>>>
>com.sap.engine.core.service630.context.cluster.session.ApplicationSessio
>nM
>  
>
>>essageListener.process(ApplicationSessionMessageListener.java:37)
>>    
>>
>>>at
>>>
>>>      
>>>
>com.sap.engine.core.cluster.impl6.session.UnorderedChannel$MessageRunner
>.r
>  
>
>>un(UnorderedChannel.java:71)
>>    
>>
>>>at
>>>      
>>>
>com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
>  
>
>>>at java.security.AccessController.doPrivileged(Native Method)
>>>
>>>at
>>>
>>>      
>>>
>com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:
>94
>  
>
>>)
>>    
>>
>>>at
>>>
>>>      
>>>
>com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:162)
>  
>
>
>
>
>  
>


Mime
View raw message