You are viewing a plain text version of this content. The canonical link for it is here.
Posted to bcel-dev@jakarta.apache.org by bu...@apache.org on 2008/09/26 14:09:51 UTC

DO NOT REPLY [Bug 45897] New: org.apache.bcel.classfile.ClassFormatException

https://issues.apache.org/bugzilla/show_bug.cgi?id=45897

           Summary: org.apache.bcel.classfile.ClassFormatException
           Product: BCEL
           Version: 5.1
          Platform: Sun
        OS/Version: Solaris
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Main
        AssignedTo: bcel-dev@jakarta.apache.org
        ReportedBy: krishna.kunderu@tcs.com


During Deploying of our application in the application server (OC4J of Oracle)
we are getting some exception, while the application is getting deployed
without any issue. Below is the stack trace for the same.

At the first instance I feel like some concurrent issue in bcel happening for
the applications on application server. It could be that current version of
bcel (5.1) I am using is not thread safe.

I am not sure whether this is already an identified bug, if so please let me
know in which version of bcel, is this fixed?

java.lang.InstantiationException:
org.apache.bcel.classfile.ClassFormatException: Invalid method signature:
(ILoracle/sql/STR
UCT;)V
        at
oracle.j2ee.connector.proxy.BCELProxyFactory.createProxy(BCELProxyFactory.java:382)
        at
oracle.j2ee.connector.proxy.BCELProxyFactory.getProxy(BCELProxyFactory.java:141)
        at
oracle.oc4j.sql.proxy.SQLBCELProxyFactory.getProxy(SQLBCELProxyFactory.java:47)
        at
oracle.j2ee.connector.proxy.AbstractProxy.oc4j_getProxyForReturnedObject(AbstractProxy.java:105)
        at oracle_jdbc_driver_T4CConnection_Proxy.prepareCall()
        at com.hubinterface.helper.DbHelper.isSwitchOn(DbHelper.java:440)
        at
com.hubinterface.helper.DbHelper.sendToDatabaseEoi(DbHelper.java:486)
        at
com.hubinterface.helper.SubmitOrderAction.processRequest_EOI(SubmitOrderAction.java:478)
        at com.hubinterface.mq.MQMessageListener.run(MQMessageListener.java:29)
        at java.lang.Thread.run(Unknown Source)
Caused by: org.apache.bcel.classfile.ClassFormatException: Invalid method
signature: (ILoracle/sql/STRUCT;)V
        at org.apache.bcel.generic.Type.getArgumentTypes(Type.java:224)
        at
oracle.oc4j.sql.proxy.SQLBCELProxyBuilder.buildMethod(SQLBCELProxyBuilder.java:171)
        at
oracle.j2ee.connector.proxy.BCELProxyFactory.addInterfaceMethods(BCELProxyFactory.java:550)
        at
oracle.j2ee.connector.proxy.BCELProxyFactory.addMethods(BCELProxyFactory.java:522)
        at
oracle.j2ee.connector.proxy.BCELProxyFactory.createProxy(BCELProxyFactory.java:370)
        ... 9 more


Also sometimes when some concurrent requests are coming into our application
which is deployed on OC4J Application server, at some point in the code the
following exception is happening

2008-09-24 05:00:45,386|ERROR|sendToDatabaseSuspendResumeEoi Database error
when placing order: org.apache.bcel.classfile.ClassFormatException: Invalid
method signature: ava/lang/String;Ljava/lang/String;)V
2008-09-24 05:00:45,402|ERROR|processRequest_EOI Problem accessing R1OSS:
Database error when placing order (java.sql.SQLExce
ption: org.apache.bcel.classfile.ClassFormatException: Invalid method
signature: ava/lang/String;Ljava/lang/String;)V)
2008-09-24 05:00:45,402|ERROR|processRequest_EOI Problem accessing R1OSS
calling dbvalidateexceptions api: Database error whe
n placing order (java.sql.SQLException:
org.apache.bcel.classfile.ClassFormatException: Invalid method signature:
ava/lang/St
ring;Ljava/lang/String;)V)


-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bcel-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: bcel-dev-help@jakarta.apache.org


DO NOT REPLY [Bug 45897] org.apache.bcel.classfile.ClassFormatException

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=45897





--- Comment #3 from Dave Brosius <db...@apache.org>  2008-09-28 22:17:40 PST ---
I would think you would need to add synchronization in the method 

com.hubinterface.helper.DbHelper.sendToDatabaseEoi

and other methods/classes that also use

oracle.j2ee.connector.proxy.AbstractProxy


Or you could file a bug with oracle if you believe oracle should be providing
this synchronization. I'm not familiar with OC4J to be of help in this regard.


Having said all that, i'm going on your assertion that it is a synchronization
issue. I'm not convinced that is the case.

It seems odd to me that it says the signature in question is

(ILoracle/sql/STR
UCT;)V


Perhaps this is just a forum post issue, but that signature should not be split
over two lines, and must be

(ILoracle/sql/STRUCT;)V

If you are seeing the two lines as well in your logs, i'd think that is more
likely your problem.


-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bcel-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: bcel-dev-help@jakarta.apache.org


DO NOT REPLY [Bug 45897] org.apache.bcel.classfile.ClassFormatException

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=45897





--- Comment #2 from Krishna Kunderu <kr...@tcs.com>  2008-09-28 22:02:54 PST ---
Could you please suggest how to make BCEL to be thread safe, directly in our
application, we are not using anywhere the BCEL related stuff. Internally I
suppose these classes would be called. Could you please suggest where exactly
we can fix this issue.


-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bcel-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: bcel-dev-help@jakarta.apache.org


DO NOT REPLY [Bug 45897] org.apache.bcel.classfile.ClassFormatException

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=45897

Torsten Curdt <tc...@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |WONTFIX

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bcel-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: bcel-dev-help@jakarta.apache.org


DO NOT REPLY [Bug 45897] org.apache.bcel.classfile.ClassFormatException

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=45897





--- Comment #1 from Dave Brosius <db...@apache.org>  2008-09-26 06:46:10 PST ---
BCEL is not perported to be thread safe, it's up to you to enforce that.


-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bcel-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: bcel-dev-help@jakarta.apache.org


DO NOT REPLY [Bug 45897] org.apache.bcel.classfile.ClassFormatException

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=45897


Krishna Kunderu <kr...@tcs.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |krishna.kunderu@tcs.com




-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bcel-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: bcel-dev-help@jakarta.apache.org


DO NOT REPLY [Bug 45897] org.apache.bcel.classfile.ClassFormatException

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=45897





--- Comment #4 from Krishna Kunderu <kr...@tcs.com>  2008-09-28 23:39:17 PST ---
Yes, as you said it's copy paste error in the forum post. Actually the error
came as you pointed out (ILoracle/sql/STRUCT;)V

I will try having the Synchronized method and I will post same issue to Oracle
OC4J community as well. Thanks for the help.


-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bcel-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: bcel-dev-help@jakarta.apache.org