Re: [Axis2][Post 1.0 - SVN] JVM crash (XMLBeans - WebLogic 8.1 - Axis2 embedded in EAR)

2006-08-22 Thread Ali Sadik Kumlali
Hi all,

The mystery(!) has been solved at last.

What do you expect if you deploy classes complied with JDK 1.5 into WebLogic 
8.1 which runs against JDK 1.4? :)

In Eclipse, I had mistakenly selected "Separate JRE: JDK 1.5" option of runtime 
JRE that is used by Ant script which I used for compiling the service code.

Another question might arise here: How could the error disappear when I broke 
the single line statement down into several statements? Actually, when I made 
this change, I only copied the class of updated file from build/classes folder 
of Eclipse to the WebLogic. Since the project in Eclipse used JDK 1.4, there 
were no Java version conflict occured.

Sorry for spending your valuable time for this stupid mistake :(

Regards,

Ali Sadik Kumlali

- Original Message 
From: Ali Sadik Kumlali <[EMAIL PROTECTED]>
To: axis-user 
Sent: Friday, August 18, 2006 5:29:40 PM
Subject: [Axis2][Post 1.0 - SVN] JVM crash (XMLBeans - WebLogic 8.1 - Axis2 
embedded in EAR)

Hi all,

Sorry for the long post. But, as everybody says :), I run into very strange 
problem: When my service is called, JVM that WebLogic runs in crashes. Here is 
the exception:

--
  An unexpected exception has been detected in native code outside the VM.
 Unexpected Signal : EXCEPTION_ACCESS_VIOLATION (0xc005) occurred at 
PC=0x617
 0612F
 Function=[Unknown.]
 Library=(N/A)
 
 NOTE: We are unable to locate the function name symbol for the error
   just occurred. Please refer to release documentation for possible
   reason and solutions.
 
 
 Current Java thread:
 at java.lang.Class.getClassLoader0(Native Method)
 at java.lang.Class.getClassLoader(Class.java:516)
 at 
com.mycompany.ws.schemas.account_1_0.AccountRequestDocument.(Acc
 ountRequestDocument.java:19)
 at java.lang.Class.forName0(Native Method)
 at java.lang.Class.forName(Class.java:141)
 at 
com.mycompany.ws.definitions.mycompany.MyCompanyServicesMessageReceiverInOnly.invoke
 BusinessLogic(MkkServicesMessageReceiverInOnly.java:81)
 at 
org.apache.axis2.receivers.AbstractInMessageReceiver.receive(Abstract
 InMessageReceiver.java:34)
 at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:503)
 at org.apache.axis2.transport.njms.AxisMdb.onMessage(AxisMdb.java:246)
 at weblogic.ejb20.internal.MDListener.execute(MDListener.java:370)
 at weblogic.ejb20.internal.MDListener.onMessage(MDListener.java:262)
 at progress.message.jimpl.Session.deliver(Unknown Source)
 at progress.message.jimpl.Session.run(Unknown Source)
 at progress.message.jimpl.Session$SessionThread.run(Unknown Source)
 
 Dynamic libraries:
 0x0040 - 0x0040B000 C:\J2SDK1~1.2_0\bin\java.exe
 0x77F8 - 0x77FFD000 C:\WINNT\system32\ntdll.dll
 ...
 0x38C7 - 0x38C7F000 C:\j2sdk1.4.2_08\jre\bin\net.dll
 0x690A - 0x690AB000 C:\WINNT\system32\PSAPI.DLL
 
 Heap at VM Abort:
 Heap
  def new generation   total 235968K, used 115192K [0x1001, 0x2001, 
0x200
 1)
   eden space 209792K,  44% used [0x1001, 0x15b5f788, 0x1ccf)
   from space 26176K,  82% used [0x1ccf, 0x1e21e930, 0x1e68)
   to   space 26176K,   0% used [0x1e68, 0x1e68, 0x2001)
  tenured generation   total 262144K, used 12912K [0x2001, 0x3001, 
0x3001
 )
the space 262144K,   4% used [0x2001, 0x20cac2f8, 0x20cac400, 
0x3001)
 
  compacting perm gen  total 131072K, used 29432K [0x3001, 0x3801, 
0x3801
 )
the space 131072K,  22% used [0x3001, 0x31cce320, 0x31cce400, 
0x3801)
 
 
 Local Time = Fri Aug 18 13:51:14 2006
 Elapsed Time = 68
 #
 # The exception above was detected in native code outside the VM
 #
 # Java VM: Java HotSpot(TM) Client VM (1.4.2_08-b03 mixed mode)
 #
 # An error report file has been saved as hs_err_pid3456.log.
 # Please refer to the file for further information.
 #
 
--
 
 
The exception is thrown where static variable of generated interface is set:

 
--
  // Generated. This line causes JVM crash.
  public static final org.apache.xmlbeans.SchemaType type = 
(org.apache.xmlbeans.SchemaType)
 
org.apache.xmlbeans.XmlBeans.typeSystemForClassLoader(AccountRequestDocument.class.getClassLoader(),
 
"schemaorg_apache_xmlbeans.system.s67CA6C5D556F95E00282C4FAF31E3C3B").resolveHandle("accountrequest7895doctype");
  
--
  
 
As you've seen here, there are

[Axis2][Post 1.0 - SVN] JVM crash (XMLBeans - WebLogic 8.1 - Axis2 embedded in EAR)

2006-08-18 Thread Ali Sadik Kumlali
Hi all,

Sorry for the long post. But, as everybody says :), I run into very strange 
problem: When my service is called, JVM that WebLogic runs in crashes. Here is 
the exception:

--
  An unexpected exception has been detected in native code outside the VM.
 Unexpected Signal : EXCEPTION_ACCESS_VIOLATION (0xc005) occurred at 
PC=0x617
 0612F
 Function=[Unknown.]
 Library=(N/A)
 
 NOTE: We are unable to locate the function name symbol for the error
   just occurred. Please refer to release documentation for possible
   reason and solutions.
 
 
 Current Java thread:
 at java.lang.Class.getClassLoader0(Native Method)
 at java.lang.Class.getClassLoader(Class.java:516)
 at 
com.mycompany.ws.schemas.account_1_0.AccountRequestDocument.(Acc
 ountRequestDocument.java:19)
 at java.lang.Class.forName0(Native Method)
 at java.lang.Class.forName(Class.java:141)
 at 
com.mycompany.ws.definitions.mycompany.MyCompanyServicesMessageReceiverInOnly.invoke
 BusinessLogic(MkkServicesMessageReceiverInOnly.java:81)
 at 
org.apache.axis2.receivers.AbstractInMessageReceiver.receive(Abstract
 InMessageReceiver.java:34)
 at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:503)
 at org.apache.axis2.transport.njms.AxisMdb.onMessage(AxisMdb.java:246)
 at weblogic.ejb20.internal.MDListener.execute(MDListener.java:370)
 at weblogic.ejb20.internal.MDListener.onMessage(MDListener.java:262)
 at progress.message.jimpl.Session.deliver(Unknown Source)
 at progress.message.jimpl.Session.run(Unknown Source)
 at progress.message.jimpl.Session$SessionThread.run(Unknown Source)
 
 Dynamic libraries:
 0x0040 - 0x0040B000 C:\J2SDK1~1.2_0\bin\java.exe
 0x77F8 - 0x77FFD000 C:\WINNT\system32\ntdll.dll
 ...
 0x38C7 - 0x38C7F000 C:\j2sdk1.4.2_08\jre\bin\net.dll
 0x690A - 0x690AB000 C:\WINNT\system32\PSAPI.DLL
 
 Heap at VM Abort:
 Heap
  def new generation   total 235968K, used 115192K [0x1001, 0x2001, 
0x200
 1)
   eden space 209792K,  44% used [0x1001, 0x15b5f788, 0x1ccf)
   from space 26176K,  82% used [0x1ccf, 0x1e21e930, 0x1e68)
   to   space 26176K,   0% used [0x1e68, 0x1e68, 0x2001)
  tenured generation   total 262144K, used 12912K [0x2001, 0x3001, 
0x3001
 )
the space 262144K,   4% used [0x2001, 0x20cac2f8, 0x20cac400, 
0x3001)
 
  compacting perm gen  total 131072K, used 29432K [0x3001, 0x3801, 
0x3801
 )
the space 131072K,  22% used [0x3001, 0x31cce320, 0x31cce400, 
0x3801)
 
 
 Local Time = Fri Aug 18 13:51:14 2006
 Elapsed Time = 68
 #
 # The exception above was detected in native code outside the VM
 #
 # Java VM: Java HotSpot(TM) Client VM (1.4.2_08-b03 mixed mode)
 #
 # An error report file has been saved as hs_err_pid3456.log.
 # Please refer to the file for further information.
 #
 
--
 
 
The exception is thrown where static variable of generated interface is set:

 
--
  // Generated. This line causes JVM crash.
  public static final org.apache.xmlbeans.SchemaType type = 
(org.apache.xmlbeans.SchemaType)
 
org.apache.xmlbeans.XmlBeans.typeSystemForClassLoader(AccountRequestDocument.class.getClassLoader(),
 
"schemaorg_apache_xmlbeans.system.s67CA6C5D556F95E00282C4FAF31E3C3B").resolveHandle("accountrequest7895doctype");
  
--
  
 
As you've seen here, there are three steps at a single line which makes 
debugging difficult. So, I broke the line down into statements by allowing log 
messages beetween them:

  
--
   public interface AccountRequestDocument extends org.apache.xmlbeans.XmlObject
 {
 // Not generated. Added by me.
 public static final class Test
 {
 static {
 // Here I do nothing except breaking the generated line down into 
several statements.
 try {
 System.out.println("");
   ClassLoader cl = 
AccountRequestDocument.class.getClassLoader();
   System.out.println("ClassLoader: " + cl);
   Object obj = 
org.apache.xmlbeans.XmlBeans.typeSystemForClassLoader(AccountRequestDocument.class.getClassLoader(),
 
"schemaorg_apache_xmlbeans.system.s67CA6C5D556F95E00282C4FAF31E3C3B").resolveHandle("accountrequest7895doct