You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Ali Sadik Kumlali <as...@yahoo.com> on 2006/08/18 16:29:40 UTC

[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 (0xc0000005) 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.<clinit>(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:
 0x00400000 - 0x0040B000         C:\J2SDK1~1.2_0\bin\java.exe
 0x77F80000 - 0x77FFD000         C:\WINNT\system32\ntdll.dll
 ...
 0x38C70000 - 0x38C7F000         C:\j2sdk1.4.2_08\jre\bin\net.dll
 0x690A0000 - 0x690AB000         C:\WINNT\system32\PSAPI.DLL
 
 Heap at VM Abort:
 Heap
  def new generation   total 235968K, used 115192K [0x10010000, 0x20010000, 0x200
 10000)
   eden space 209792K,  44% used [0x10010000, 0x15b5f788, 0x1ccf0000)
   from space 26176K,  82% used [0x1ccf0000, 0x1e21e930, 0x1e680000)
   to   space 26176K,   0% used [0x1e680000, 0x1e680000, 0x20010000)
  tenured generation   total 262144K, used 12912K [0x20010000, 0x30010000, 0x3001
 0000)
    the space 262144K,   4% used [0x20010000, 0x20cac2f8, 0x20cac400, 0x30010000)
 
  compacting perm gen  total 131072K, used 29432K [0x30010000, 0x38010000, 0x3801
 0000)
    the space 131072K,  22% used [0x30010000, 0x31cce320, 0x31cce400, 0x38010000)
 
 
 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("accountrequest7895doctype");
                   System.out.println("typeSystemForClassLoader: " + obj);
                   org.apache.xmlbeans.SchemaType typ =  (org.apache.xmlbeans.SchemaType) obj;
                   System.out.println("SchemaType: " + typ);
                   System.out.println("----------------------------------------");
             } catch (Throwable e) {
                 e.printStackTrace();
             }
         }
     }
 
     // Not generated. Added by me.
      public static final Test test = new Test ();
 
     // 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");
 
 ...
 }
 
--------------------------------------------------------------------------------------------------------------------------
   
After this change, I didn't get the exception anymore. Since I was shocked :) with the result, rolled back the changes and tried again. And got the exception again.

I'm confused and really need help. If you feel there is lack of information here, please be kind enough to ask.

Thanks in advance,

Ali Sadik Kumlali



---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


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

Posted by Ali Sadik Kumlali <as...@yahoo.com>.
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 <as...@yahoo.com>
To: axis-user <ax...@ws.apache.org>
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 (0xc0000005) 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.<clinit>(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:
 0x00400000 - 0x0040B000         C:\J2SDK1~1.2_0\bin\java.exe
 0x77F80000 - 0x77FFD000         C:\WINNT\system32\ntdll.dll
 ...
 0x38C70000 - 0x38C7F000         C:\j2sdk1.4.2_08\jre\bin\net.dll
 0x690A0000 - 0x690AB000         C:\WINNT\system32\PSAPI.DLL
 
 Heap at VM Abort:
 Heap
  def new generation   total 235968K, used 115192K [0x10010000, 0x20010000, 0x200
 10000)
   eden space 209792K,  44% used [0x10010000, 0x15b5f788, 0x1ccf0000)
   from space 26176K,  82% used [0x1ccf0000, 0x1e21e930, 0x1e680000)
   to   space 26176K,   0% used [0x1e680000, 0x1e680000, 0x20010000)
  tenured generation   total 262144K, used 12912K [0x20010000, 0x30010000, 0x3001
 0000)
    the space 262144K,   4% used [0x20010000, 0x20cac2f8, 0x20cac400, 0x30010000)
 
  compacting perm gen  total 131072K, used 29432K [0x30010000, 0x38010000, 0x3801
 0000)
    the space 131072K,  22% used [0x30010000, 0x31cce320, 0x31cce400, 0x38010000)
 
 
 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("accountrequest7895doctype");
                   System.out.println("typeSystemForClassLoader: " + obj);
                   org.apache.xmlbeans.SchemaType typ =  (org.apache.xmlbeans.SchemaType) obj;
                   System.out.println("SchemaType: " + typ);
                   System.out.println("----------------------------------------");
             } catch (Throwable e) {
                 e.printStackTrace();
             }
         }
     }
 
     // Not generated. Added by me.
      public static final Test test = new Test ();
 
     // 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");
 
 ...
 }
 
--------------------------------------------------------------------------------------------------------------------------
   
After this change, I didn't get the exception anymore. Since I was shocked :) with the result, rolled back the changes and tried again. And got the exception again.

I'm confused and really need help. If you feel there is lack of information here, please be kind enough to ask.

Thanks in advance,

Ali Sadik Kumlali



---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org





---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org