VerifyError

I'm switching from jdk1.3 to 1.4.1_01 and I'm getting a java.lang.VerifyError when I dynamically load a class into my own Classloader and then try to access the Constructor.
Class guiClass = myLoader.loadClass(className);
Constructor constr = guiClass.getConstructor(new Class[] { resourceBundleClass });
The 2nd line is where the error occurs. I deleted all my .class files and recompiled, but that didn't work. This worked fine under JDK 1.3.
Any thoughts?

I figured it out actually.
Turns out I had 2 versions of the same class file. I compiled one group into a jar, which I used to compile the majority of my classes, but then when I ran I didn't use the jar, I used just the regular class files. The files in the jar must have gotten old and there was a discrepancy. By rebuilding my jar and recompiling everything, it worked.
Thanks.

Similar Messages

  • VerifyError trying intantiate the oracles TransformerFactory for XSL

    Hi,
    When I try intantiating the Oracle4s TransformerFactory, I obtain a verifyError, next is the error message.
    (class: oracle/xml/jaxp/JXSAXTransformerFactory, method: reportConfigException signature: (Ljava/lang/Exception;IILjavax/xml/transform/SourceLocator;)V) Incompatible object argument for function call
    This occurs, setting the environment variable "javax.xml.transform.TransformerFactory" to values null and "oracle.xml.jaxp.JXSAXTransformerFactory";
    With this error it4s imposible process any xml with an xsl file.
    I would regard any help
    Thanks,
    Rodolfo

    It is the content of the "type" attribute of the "xml-stylesheet" processing instruction that leads to a null return value. W3C says the following at http://www.w3.org/TR/xslt20/#xslt-mime-definition :
    There is no experimental, vendor specific, or personal tree predecessor to "application/xslt+xml", reflecting the fact that no applications currently recognize it. This new type is being registered in order to allow for the expected deployment of XSLT 2.0 on the World Wide Web, as a first class XML application.
    So, for the time being, you should use the good old "text/xsl" in place of "application/xslt+xml".

  • Exception in thread "main" java.lang.VerifyError: verification failed!!

    DB:11.1.0.7
    Oracle Apps:12.1.1
    OS:RHEL Linux 4 86x64
    Hi All,
    On executing the following command on node 2 of TEST instance, we received the following error but did not find any such error messages in node 1
    Notes: (1) Node 1 has java version:
    java -version
    java version "1.6.0_10"
    Java(TM) SE Runtime Environment (build 1.6.0_10-b33)
    Java HotSpot(TM) Server VM (build 11.0-b15, mixed mode)
    (2) Node 2 has java version:
    java -version
    java version "1.4.2"
    gcj (GCC) 3.4.6 20060404 (Red Hat 3.4.6-9)
    Copyright (C) 2006 Free Software Foundation, Inc.
    This is free software; see the source for copying conditions. There is NO
    warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
    Error message in node2:
    On executing the following command on node 2 of TEST instance, we received the following error:
    java oracle.jrad.tools.xml.importer.XMLImporter /tmp/custdocs/oracle/apps/pos/home/webui/customizations/site/0/PosHpgOrders.xml ....
    /usr/bin/java: line 36: [: `)' expected, found -
    Exception in thread "main" java.lang.VerifyError: verification failed at PC 152 in oracle.jdbc.driver.OracleDriver:registerMBeans(()V): String, int, or float constant expected
    at JvBytecodeVerifier.verify_fail(byte, int) (/usr/lib64/libgcj.so.5.0.0)
    at JvBytecodeVerifier.verify_instructions_0() (/usr/lib64/libgcj.so.5.0.0)
    at JvVerifyMethod(_Jv_InterpMethod) (/usr/lib64/libgcj.so.5.0.0)
    at JvPrepareClass(java.lang.Class) (/usr/lib64/libgcj.so.5.0.0)
    at JvWaitForState(java.lang.Class, int) (/usr/lib64/libgcj.so.5.0.0)
    at java.lang.VMClassLoader.linkClass0(java.lang.Class) (/usr/lib64/libgcj.so.5.0.0)
    at java.lang.VMClassLoader.resolveClass(java.lang.Class) (/usr/lib64/libgcj.so.5.0.0)
    at java.lang.Class.initializeClass() (/usr/lib64/libgcj.so.5.0.0)
    at java.lang.Class.forName(java.lang.String, boolean, java.lang.ClassLoader) (/usr/lib64/libgcj.so.5.0.0)
    at oracle.adf.mds.tools.util.ConnectUtils.getDBConnection(java.lang.String) (Unknown Source)
    at oracle.jrad.tools.xml.importer.XMLImporter.importDocuments(java.lang.String[], java.sql.Connection) (Unknown Source)
    at oracle.jrad.tools.xml.importer.XMLImporter.main(java.lang.String[]) (Unknown Source)
    Could anyone please share such an issue faced before and provide resolution as to what's wrong in here in node 2?
    Thanks for your time!
    Regards,

    Hi,
    (2) Node 2 has java version:
    java -version
    java version "1.4.2"Do you run this command as applmgr user? If yes, did you source the application env file?
    Could anyone please share such an issue faced before and provide resolution as to what's wrong in here in node 2?Why the java version is different on the both nodes?
    Thanks,
    Hussein

  • Java.lang.VerifyError - Incompatible object argument for function call

    Hi all,
    I'm developing a JSP application (powered by Tomcat 4.0.1 in JDK 1.3, in Eclipse 3.3). Among other stuff I have 3 classes interacting with an Oracle database, covering 3 use cases - renaming, adding and deleting an database object. The renaming class simply updates the database with a String variable it receives from the request object, whereas the other two classes perform some calculations with the request data and update the database accordingly.
    When the adding or deleting classes are executed, by performing the appropriate actions through the web application, Tomcat throws the following:
    java.lang.VerifyError: (class: action/GliederungNewAction, method: insertNewNode signature: (Loracle/jdbc/driver/OracleConnection;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;I)V) Incompatible object argument for function call
         at java.lang.Class.forName0(Native Method)
         at java.lang.Class.forName(Class.java:120)
         at action.ActionMapping.perform(ActionMapping.java:53)
         at ControllerServlet.doResponse(ControllerServlet.java:92)
         at ControllerServlet.doPost(ControllerServlet.java:50)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
    ...The renaming works fine though. I have checked mailing lists and forums as well as contacted the company's java support but everything I have tried out so far, from exchanging the xerces.jar files found in JDOM and Tomcat to rebuidling the project didn't help.
    I just can't explain to myself why this error occurs and I don't see how some additional Java code in the other 2 classes could cause it?
    I realize that the Tomcat and JDK versions I'm using are totally out of date, but that's company's current standard and I can't really change that.
    Here's the source code. I moved parts of the business logic from Java to Oracle recently but I left the SQL statements that the Oracle stored procedures are executing if it helps someone.
    package action;
    import java.sql.CallableStatement;
    import java.sql.PreparedStatement;
    import java.sql.ResultSet;
    import java.sql.SQLException;
    import java.util.StringTokenizer;
    import javax.servlet.http.HttpServletRequest;
    import javax.servlet.http.HttpServletResponse;
    import javax.servlet.http.HttpSession;
    import oracle.jdbc.driver.OracleConnection;
    * This class enables the creation and insertion of a new catalogue node. A new node
    * is always inserted as the last child of the selected parent node.
    public class GliederungNewAction implements Action {
         public String perform(ActionMapping mapping, HttpServletRequest request,
                   HttpServletResponse response) {
              // fetch the necessary parameters from the JSP site
              // the parent attribute is the selected attribute!
              String parent_attribute = request.getParameter("attr");
              String catalogue = request.getParameter("catalogue");
              int parent_sequenceNr = Integer.parseInt(request.getParameter("sort_sequence"));
              // connect to database    
              HttpSession session = request.getSession();   
              db.SessionConnection sessConn = (db.SessionConnection) session.getAttribute("connection");
              if (sessConn != null) {
                   try {
                        sessConn.setAutoCommit(false);
                        OracleConnection connection = (OracleConnection)sessConn.getConnection();
                        int lastPosition = getLastNodePosition( getLastChildAttribute(connection, catalogue, parent_attribute) );
                        String newNodeAttribute = createNewNodeAttribute(parent_attribute, lastPosition);
                        // calculate the sequence number
                        int precedingSequenceNumber = getPrecedingSequenceNumber(connection, catalogue, parent_attribute);
                        if ( precedingSequenceNumber == -1 ) {
                             precedingSequenceNumber = parent_sequenceNr;
                        int sortSequence = precedingSequenceNumber + 1;
                        setSequenceNumbers(connection, catalogue, sortSequence);
                        // insert the new node into DB
                        insertNewNode(connection, catalogue, newNodeAttribute, parent_attribute, "Neuer Punkt", sortSequence);
                        connection.commit();
                   } catch(SQLException ex) {
                        ex.printStackTrace();
              return mapping.getForward();
          * Creates, fills and executes a prepared statement to insert a new entry into the specified table, representing
          * a new node in the catalogue.
         private void insertNewNode(OracleConnection connection, String catalogue, String attribute, String parent_attribute, String description, int sortSequence) {
              try {
                   String callAddNode = "{ call fasi_lob.pack_gliederung.addNode(:1, :2, :3, :4, :5) }";
                   CallableStatement cst;
                   cst = connection.prepareCall(callAddNode);
                   cst.setString(1, catalogue);
                   cst.setString(2, attribute);
                   cst.setString(3, parent_attribute);
                   cst.setString(4, description);
                   cst.setInt(5, sortSequence);
                   cst.execute();
                   cst.close();
              } catch (SQLException e1) {
                   // TODO Auto-generated catch block
                   e1.printStackTrace();
    //          String insertNewNode = "INSERT INTO vstd_media_cat_attributes " +
    //                    "(catalogue, attribute, parent_attr, description, sort_sequence) VALUES(:1, :2, :3, :4, :5)";
    //          PreparedStatement insertStmt;
    //          try {
    //               insertStmt = connection.prepareStatement(insertNewNode);
    //               insertStmt.setString(1, catalogue);
    //               insertStmt.setString(2, attribute);
    //               insertStmt.setString(3, parent_attribute);
    //               insertStmt.setString(4, description);
    //               insertStmt.setInt(5, sortSequence);
    //               insertStmt.execute();
    //               insertStmt.close();
    //          } catch (SQLException e) {
    //               e.printStackTrace();
          * This method returns the attribute value of the last child of the parent under which
          * we want to insert a new node. The result set is sorted in descending order and only the
          * first result (that is, the last child under this parent) is fetched.
          * If the parent node has no children, "parent_attr.0" is returned. 
          * @param connection
          * @param catalogue
          * @param parent_attribute
          * @return attribute of the last child under this parent, or "parent_attr.0" if parent has no children
         private String getLastChildAttribute(OracleConnection connection, String catalogue, String parent_attribute) {
              String queryLastChild = "SELECT attribute FROM vstd_media_cat_attributes " +
                                            "WHERE catalogue=:1 AND parent_attr=:2 ORDER BY sort_sequence DESC";
              String lastChildAttribute;
              PreparedStatement ps;
              try {
                   ps = connection.prepareStatement(queryLastChild);
                   ps.setString(1, catalogue);
                   ps.setString(2, parent_attribute);
                   ResultSet rs = ps.executeQuery();
                   /* If a result is returned, the selected parent already has children.
                    * If not set the lastChildAttribute to parent_attr.0
                   if (rs.next()) {
                        lastChildAttribute = rs.getString("attribute");
                   } else {
                        lastChildAttribute = parent_attribute.concat(".0");
                   rs.close();
                   return lastChildAttribute;
              } catch (SQLException e) {
                   e.printStackTrace();
                   return null;
          * This helper method determines the position of the last node in the attribute.
          * i.e for 3.5.2 it returns 2, for 2.1 it returns 1 etc.
          * @param attribute
          * @return position of last node in this attribute
         private int getLastNodePosition(String attribute) {
              StringTokenizer tokenizer = new StringTokenizer(attribute, ".");
              String lastNodePosition = "0";
              while( tokenizer.hasMoreTokens() ) {
                   lastNodePosition = tokenizer.nextToken();
              return Integer.parseInt(lastNodePosition);
          * This method calculates the attribute of a node being inserted
          * by incrementing the last child position by 1 and attaching the
          * incremented position to the parent.
          * @param parent_attr
          * @param lastPosition
          * @return attribute of the new node
         private String createNewNodeAttribute(String parent_attr, int lastPosition) {
              String newPosition = new Integer(lastPosition + 1).toString();
              return parent_attr.concat("." + newPosition);
          * This method checks if the required sequence number for a new node is already in use and
          * handles the sequence numbers accordingly.
          * If the sequence number for a new node is NOT IN USE, the method doesn't do anything.
          * If the sequence number for a new node is IN USE, the method searches for the next free
          * sequence number by incrementing the number by one and repeating the query until no result
          * is found. Then all the sequence numbers between the required number (including, >= relation)
          * and the nearest found free number (not including, < relation) are incremented by 1, as to
          * make space for the new node.
          * @param connection
          * @param catalogue
          * @param newNodeSequenceNumber required sequence number for the new node
         private void setSequenceNumbers(OracleConnection connection, String catalogue, int newNodeSequenceNumber) {
              // 1. check if the new sequence number exists - if no do nothing
              // if yes - increment by one and see if exists
              //           repeat until free sequence number exists
              // when found increment all sequence numbers freeSeqNr > seqNr >= newSeqNr
              String query = "SELECT sort_sequence FROM vstd_media_cat_attributes " +
                        "WHERE catalogue=:1 AND sort_sequence=:2";
              PreparedStatement ps;
              try {
                   ps = connection.prepareStatement(query);
                   ps.setString(1, catalogue);
                   ps.setInt(2, newNodeSequenceNumber);               
                   ResultSet rs = ps.executeQuery();
                   // if no result, the required sequence number is free - nothing to do
                   if( rs.next() ) {
                        int freeSequenceNumber = newNodeSequenceNumber;
                        do {
                             ps.setString(1, catalogue);
                             ps.setInt(2, freeSequenceNumber++);
                             rs = ps.executeQuery();
                        } while( rs.next() );
                        // increment sequence numbers - call stored procedure
                        String callUpdateSeqeunceNrs = "{ call fasi_lob.pack_gliederung.updateSeqNumbers(:1, :2, :3) }";
                        CallableStatement cst = connection.prepareCall(callUpdateSeqeunceNrs);
                        cst.setString(1, catalogue);
                        cst.setInt(2, newNodeSequenceNumber);
                        cst.setInt(3, freeSequenceNumber);
                        cst.execute();
                        cst.close();
    //                    String query2 = "UPDATE vstd_media_cat_attributes " +
    //                                      "SET sort_sequence = (sort_sequence + 1 ) " +
    //                                      "WHERE catalogue=:1 sort_sequnce >=:2 AND sort_sequence <:3";
    //                    PreparedStatement ps2;
    //                    ps2 = connection.prepareStatement(query2);
    //                    ps2.setString(1, catalogue);
    //                    ps2.setInt(2, newNodeSequenceNumber);
    //                    ps2.setInt(3, freeSequenceNumber);
    //                    ps.executeUpdate();
    //                    ps.close();
                   } // end of if block
                   rs.close();
              } catch (SQLException e) {
                   e.printStackTrace();
          * This method finds the last sequence number preceding the sequence number of a node
          * that is going to be inserted. The preceding sequence number is required to calculate
          * the sequence number of the new node.
          * We perform a hierarchical query starting from the parent node: if a result is returned,
          * we assign the parent's farthest descendant's node sequence number; if no result
          * is returned, we assign the parent's sequence number.
          * @param connection
          * @param catalogue
          * @param parent_attr parent attribute of the new node
          * @return
         private int getPrecedingSequenceNumber(OracleConnection connection, String catalogue, String parent_attr) {
              int sequenceNumber = 0;
              String query = "SELECT sort_sequence FROM vstd_media_cat_attributes " +
                                "WHERE catalogue=:1 " +
                                "CONNECT BY PRIOR attribute = parent_attr START WITH parent_attr=:2 " +
                                "ORDER BY sort_sequence DESC";
              try {
                   PreparedStatement ps = connection.prepareStatement(query);
                   ps.setString(1, catalogue);
                   ps.setString(2, parent_attr);
                   ResultSet rs = ps.executeQuery();
                   if ( rs.next() ) {
                        sequenceNumber = rs.getInt("sort_sequence");
                   } else {
                        // TODO: ggf fetch from request!
                        sequenceNumber = -1;
                   rs.close();
                   ps.close();
              } catch (SQLException e) {
                   e.printStackTrace();
              return sequenceNumber;
    }

    After further googling I figured out what was causing the problem: in eclipse I was referring to external libraries located in eclipse/plugins directory, whereas Tomcat was referring to the same libraries (possibly older versions) in it's common/lib directory.

  • VerifyError: Error #1014 (class could not be found)

    I have a Flash Pro CS5 project that I have built some classes for in Flash Builder using some of the mx classes, like ArrayCollection and HTTPService. I have a Flash Project in my Flash Builder 4.0 pointing to the Flash Pro project. I started out by adding the Library Path to the Flex SDK 4.0.0 in my Flash project paths. Things seemed to work fine at first but now I am getting the following error:
    VerifyError: Error #1014: Class mx.collections::ArrayCollection could not be found
    If I change all my ArrayCollections to be just Arrays, then the same error just cascades down the list of "missing" mx classes, like HTTPService, etc. I individually added the the framework.swc, the rpc.swc and even the framework_rb.swc and rpc_rb.swc files to the paths but with the same error results.
    I'm trying to set up a relatively smooth workflow between Flash developers and Flex developers on my team but this is a huge roadblock.
    I have looked all over and not found a good solution for this problem. Can anyone help?
    Dana

    I figured out a solution. It had to do with conflicting or out of order library paths, I think. There were several paths to other projects in the project and Flash Pro global paths. I think some of them are automatically added by either the FP or the FB IDEs. When I removed all of the unnecessary paths, then it compiled just fine.

  • VerifyError on OC4J (9.0.2.1.0)

    We've been getting a smattering of these errors lately, and once they happen, we have to bounce our OC4J process. Sometimes they can return in 5 minutes, sometimes not till the next day.
    I just found out that the support staff applied a patch shortly before this problem started occuring. (Oracle Security Alert #68) -- which contained bug fixes: Oracle9i Database Server (9.2.0.5) Bug 3811906 and IAS9i (1.0.2.2) Bug 3835781
    The problem is intermittent, and attacks different JSPs all the time. We can't reliably reproduce it, in order to provide a concrete test case.
    We're Running on AIX 5L with IBM's JDK 1.3.0 and 1.3.1_7
    Here is the error we end up getting:
    500 Internal Server Error
    Error parsing JSP page /westflo-fsweb/main/ext/TARF028/ps_estimates_body.jsp
    Error creating jsp-page instance: java.lang.VerifyError: (class: __jspPage15_main_ext_TARF028_ps_estimates_body_jsp, method: _jspService signature: (Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;)V)
    Incompatible type for getting or setting field

    I added -Xcheck:jni and -Xcheck:nabounds to the command line and got this one now :
    500 Internal Server Error
    Error parsing JSP page /westflo-fsweb/main/header.jsp
    Error creating jsp-page instance: java.lang.ClassFormatError: __jspPage8_main_header_jsp (Method "pushBody" has illegal signature "()Ljavax/servonInfo.classjavax/servlet/j")
    My whole command line is :
    /usr/java130_wei/bin/java -ms128m -mx256m -Xcheck:jni -Xcheck:nabounds -Xnoclassgc -verbosegc -Duser.dir=/usr/oc4j/j2ee/home -Denvironment=DEV2GMSFS -Dwestflo.dir=/website/DEV2/GMSFS/oc4j_instance2/westflo/westflo/ -Ddeployment.dir=/website/DEV2/GMSFS/oc4j_instance2/pie/gms/ -Demissionrc.dir=/website/DEV2/GMSFS/oc4j_instance2/emissionrc/emissionrc-web/ -jar /usr/oc4j/j2ee/home/oc4j.jar -out /website/DEV2/GMSFS/oc4j_instance2/oc4j_config/log/server.log -err /website/DEV2/GMSFS/oc4j_instance2/oc4j_config/log/oc4j.err -config /website/DEV2/GMSFS/oc4j_instance2/oc4j_config/config/server.xml

  • VerifyError #1025 - default xml namespace and getter function

    I have narrowed the problem down to a a few lines. I have
    created a simple example of the problem...
    // TestClass.as
    package {
    import flash.events.EventDispatcher;
    public class TestClass extends EventDispatcher {
    private var _testVar:String;
    public function TestClass() {
    var testXML:XML = <node1 xmlns="
    http://www.testurl.com/"><node2><node3>some
    words of wisdom</node3></node2></node1>;
    default xml namespace = testXML.namespace("");
    _testVar = testXML.node2.node3;
    public function get testVar():String {
    return _testVar;
    // Test.fla - frame 1
    import TestClass;
    var myTestClass:TestClass = new TestClass();
    var someVar:String = myTestClass.testVar;
    trace(someVar);
    I get the following error...
    verify TestClass/get testVar()
    stack:
    scope: [global Object$ flash.events::EventDispatcher$
    TestClass$]
    locals: TestClass
    0:getlocal0
    stack: TestClass
    scope: [global Object$ flash.events::EventDispatcher$
    TestClass$]
    locals: TestClass
    1:pushscope
    stack:
    scope: [global Object$ flash.events::EventDispatcher$
    TestClass$] TestClass
    locals: TestClass
    2:getlocal1
    VerifyError: Error #1025: An invalid register 1 was accessed.
    at TestClass/get testVar()
    at Test_fla::MainTimeline/Test_fla::frame1()
    However if I take out the default xml namespace line, and
    create a new namespace it will work.
    var testNS:Namespace = new Namespace(testXML.namespace(""));
    _testVar = testXML.testNS::node2.testNS::node3;
    Thoughts??? It's driving me crazy. Thanks in advance...
    levi

    The attribute should be in the element's namespace. If I run this snippet on the timeline, it outputs the correct values.
    var xml:XML =
    <xml>
    <animal type="sheep" xmlns="http://blabla">
      <name>josh</name>
      <age>2</age>
    </animal>
    <animal type="cow" xmlns="http://blabla">
      <name>jim</name>
      <age>2</age>
    </animal>
    </xml>
    var ns:Namespace = new Namespace("http://blabla");
    default xml namespace = ns;
    trace( xml.animal.@type ); // OUTPUT: sheepcow

  • VerifyError: Error #1053: Illegal override of isRelatedObjectInaccessible in RemappedMouseEvent.

    I am having trouble running AIR applications with Flex SDK 4.0 (and 4.1). Here is what I am doing:
    On OS X 10.6.4 using eclipse with Flex Builder 3 installed I create a new flex project with AIR.
    I have eclipse setup to use the SDK flex_sdk_4.1.0.16076.
    I clean the project and run it and get a window telling me:
    VerifyError: Error #1053: Illegal override of isRelatedObjectInaccessible in RemappedMouseEvent.
    The application fails to start after that.
    When I switch SDKs to Flex SDK 3.3.0.4852 and clean, the applications starts as expected.
    I have tried to run adl from the command line using the artifacts in the bin-debug folder and I get the same error.
    I am stumped here, does anyone know what else I can try?
    Thanks
    -Lucsa

    Hi Lucas,
    Are you running into this error when compiling a brand new flex project for AIR?  If so, I suspect something went wrong with your AIR overlay.  Please see the How to Overlay the AIR SDK for use with the Flex SDK tech doc.  Note that these instructions reference AIR 1.5, but they are the same for AIR 2.
    Let me know if you have any questions about the overlay process or if you've already done all this.
    Thanks,
    Chris

  • DataDirect driver throws java.lang.VerifyError

    WebLogic: 8.1.5<br>
    OS: Windows server 2003<br>
    DataDirect: 3.50.0 (JDBC driver)<br>
    <br>
    I have a web application that use its own JDBC driver management (DataDirect 3.50.0). When I moved from WebLogic 8.1.3 to WebLogic 8.1.5 the application crash with stuck dump below on exception java.lang.VerifyError.<br>
    <br>
    <br>
    <i>Any ideas why this happened ?</i>
    <br>
    <br>
    Thanks,<br>
    Ziv<br>
    <br>
    <br>
    <u><b>Stack dump</b></u><br>
    java.sql.SQLException: <br>
    java.lang.VerifyError: <br>
    (class: com/mercury/jdbc/sqlserver/tds/TDSConnection, <br>
    method: createSecurityContext <br>
    signature: (Ljava/lang/String;Ljava/lang/String;<br>
    Ljava/lang/String<br>
    Lcom/mercury/util/UtilSecurityContext <br>
    Wrong return type in function<br>
    <br>
    at com.mercury.jdbc.base.BaseConnectionStartup.run
    (Unknown Source)     <br>

    Eli cohen wrote:
    First, thanks a lot for the quick reply. I appeciate this.<br>
    <br>
    1. You are right, com.mercury.jdbc is a repackaging of DataDirect's driver. <br><br>
    2. Full Stack dump:<br><br>Ok, I suggest yo first contact DataDirect and show them
    this exception. However, I have a suspicion that your
    version of the driver has some conflicting versions of
    some internal security classes from the versions of the
    DataDirect drivers that we ship, rebranded as BEA drivers.
    So, try going to your server\lib directory, and renaming
    the wlutil.jar, wlbase.jar, and wlsqlserver.jar so WebLogic
    won't use them. Let me know if that makes your odd exception
    go away. Also, you might consider using our drivers. Get
    the latest driver package and you will have DataDirect's
    latest and best, including all the BEA-found bugs fixed.
    Joe
    >
    InitSAConnection failed. <br>
    Reason: AutomationException: Failed to Login<br>
    [ERR_SEP]Messages:Failed to Login;<br>
    Failed to check authentication of user 'alex_qc';<br>
    Cannot build directory item for key <br>
    '[maze1sql_db@jdbc:mercury:sqlserver://fork:1433(td)]' <br>
    in SA Global Struct Dir;<br>
    Failed to fill table struct for table null in database <br>
    maze1sql_db@jdbc:mercury:sqlserver://fork:1433(td);<br>
    java.lang.VerifyError: <br>
    (class: com/mercury/jdbc/sqlserver/tds/TDSConnection, <br>
    method: createSecurityContext <br>
    signature: (Ljava/lang/String;<br>
    Ljava/lang/String;<br>
    Ljava/lang/String)<br>
    Lcom/mercury/util/UtilSecurityContext) <br>
    Wrong return type in function;<br>
    <br>
    Stack Trace:<br>
    <br>
    java.sql.SQLException: <br>
    java.lang.VerifyError: <br>
    (class: com/mercury/jdbc/sqlserver/tds/TDSConnection, <br>
    method: createSecurityContext <br>
    signature: (Ljava/lang/String;Ljava/lang/String;<br>
    Ljava/lang/String)<br>
    Lcom/mercury/util/UtilSecurityContext) <br>
    Wrong return type in function<br>
    <br>
    at com.mercury.jdbc.base.BaseConnectionStartup.run(Unknown Source)     <br>
    wrapped in com.mercury.optane.core.CTdException: <br>
    at com.mercury.optane.core.db.CTdDriverManager.getConnection<br>
    (CTdDriverManager.java:81)<br>
    at com.mercury.optane.core.db.CConnectionPool.newConnection<br>
    (CConnectionPool.java:654)<br>
    at com.mercury.optane.core.db.CConnectionPool.tryToGetConnection<br>
    (CConnectionPool.java:491)<br>
    at com.mercury.optane.core.db.CConnectionPool.getConnection<br>
    (CConnectionPool.java:316)<br>
    at com.mercury.optane.core.db.CConnectionManager.getNotTransactedConnection<br>
    (CConnectionManager.java:299)<br>
    at com.mercury.optane.core.db.CConnectionManager.getConnection<br>
    (CConnectionManager.java:264)<br>
    at com.mercury.optane.core.db.CDatabaseFieldsInfo.obtainInfo<br>
    (CDatabaseFieldsInfo.java:135)     <br>
    wrapped in com.mercury.optane.core.CTdException: <br>
    <br>
    Failed to fill table struct for table null in database <br>
    maze1sql_db@jdbc:mercury:sqlserver://fork:1433(td)<br>
    at com.mercury.optane.core.db.CDatabaseFieldsInfo.obtainInfo<br>
    (CDatabaseFieldsInfo.java:157)<br>
    at com.mercury.optane.core.db.CDatabaseFieldsInfo.<init><br>
    (CDatabaseFieldsInfo.java:77)<br>
    at com.mercury.optane.core.db.CAbsTablesStructDirectory.createDirectoryItem<br>
    (CAbsTablesStructDirectory.java:129)<br>
    at com.mercury.optane.core.directory.CAbsDirectory.getDirectoryItem<br>
    (CAbsDirectory.java:81)     <br>
    <br>
    wrapped in com.mercury.optane.core.CTdException: <br>
    Cannot build directory item for key <br>
    '[maze1sql_db@jdbc:mercury:sqlserver://fork:1433(td)]' <br>
    in SA Global Struct Dirat <br>
    com.mercury.optane.core.directory.CAbsDirectory.getDirectoryItem<br>
    (CAbsDirectory.java:87)<br>
    <br>
    at com.mercury.optane.core.db.CAbsTablesStructDirectory.getDatabaseFieldsInfo<br>
    (CAbsTablesStructDirectory.java:101)<br>
    at com.mercury.td.saserver.sautil.CSaDbSchemaProperties.getDatabaseFieldsInfo<br>
    (CSaDbSchemaProperties.java:114)<br>
    at com.mercury.optane.core.db.CAbsDBContext.isComparisonCaseSensitive<br>
    (CAbsDBContext.java:178)<br>
    at com.mercury.optane.core.db.utils.CDbGeneralFunctions.dbLowerComparison<br>
    (CDbGeneralFunctions.java:369)<br>
    at com.mercury.td.saserver.sautil.CSaServerGeneralFunctions.saDbLowerComparison<br>
    (CSaServerGeneralFunctions.java:416)<br>
    at com.mercury.td.saserver.api.logics.CTdUserLogic.authenticateUserAgainstTdDB<br>
    (CTdUserLogic.java:1175)     <br>
    <br>
    wrapped in com.mercury.optane.core.CTdException: <br>
    Failed to check authentication of user 'alex_qc'<br>
    <br>
    at com.mercury.td.saserver.api.logics.CTdUserLogic.authenticateUserAgainstTdDB<br>
    (CTdUserLogic.java:1199)<br>
    at com.mercury.td.saserver.api.logics.CTdUserLogic.checkUserPassword<br>
    (CTdUserLogic.java:1116)<br>
    at com.mercury.td.saserver.api.logics.CSessionLogic.login<br>
    (CSessionLogic.java:229)<br>
    at com.mercury.td.saserver.web.CTdSiteAdminServlet.redirectLogin<br>
    (CTdSiteAdminServlet.java:275)<br>
    at sun.reflect.NativeMethodAccessorImpl.invoke0<br>
    (Native Method)<br>
    at sun.reflect.NativeMethodAccessorImpl.invoke<br>
    (NativeMethodAccessorImpl.java:39)<br>
    at sun.reflect.DelegatingMethodAccessorImpl.invoke<br>
    (DelegatingMethodAccessorImpl.java:25)<br>
    at java.lang.reflect.Method.invoke(Method.java:324)<br>
    at com.mercury.optane.core.web.CAbsServlet.executeFunction<br>
    (CAbsServlet.java:459)     <br>
    <br>
    wrapped in com.mercury.optane.core.CTdException: <br>
    Failed to Loginat com.mercury.optane.core.web.CAbsServlet.executeFunction<br>
    (CAbsServlet.java:465)<br>
    at com.mercury.optane.core.web.CAbsServlet.processRequest<br>
    (CAbsServlet.java:440)<br>
    at com.mercury.optane.core.web.CAbsServlet.doPost<br>
    (CAbsServlet.java:323)<br>
    at javax.servlet.http.HttpServlet.service<br>
    (HttpServlet.java:760)<br>
    at javax.servlet.http.HttpServlet.service<br>
    (HttpServlet.java:853)<br>
    at weblogic.servlet.internal.ServletStubImpl:ServletInvocationAction.run<br>
    (ServletStubImpl.java:1072)<br>
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet<br>
    (ServletStubImpl.java:465)<br>
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet<br>
    (ServletStubImpl.java:348)<br>
    at weblogic.servlet.internal.WebAppServletContext:ServletInvocationAction.run<br>
    (WebAppServletContext.java:6981)<br>
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs<br>
    (AuthenticatedSubject.java:321)<br>
    at weblogic.security.service.SecurityManager.runAs<br>
    (SecurityManager.java:121)<br>
    at weblogic.servlet.internal.WebAppServletContext.invokeServlet<br>
    (WebAppServletContext.java:3892)<br>
    at weblogic.servlet.internal.ServletRequestImpl.execute<br>
    (ServletRequestImpl.java:2766)<br>
    at weblogic.kernel.ExecuteThread.execute<br>
    (ExecuteThread.java:224)<br>
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:183) <br>
    <br>

  • Interesting --- java.lang.verifyerror

    does anyone know as to why this error would happen
    C:\EMS\classes>java com.calynet.client.service.JTGOTopology.Main2
    Exception in thread "main" java.lang.VerifyError: (class: com/calynet/client/ser
    vice/JTGOTopology/Main2, method: init signature: ()V) Incompatible object argume
    nt for function call

    see answer to your other post in advanced language forum

  • 500 Internal Server Error :java.lang.VerifyError

    Ok, so I have deployed my BI Bean RC2 tutorial app from Jdeveloper RC2, with no errors during deployment.
    It also runs fine from jdeveloper embedded oc4j.
    When I try to call the deployed application in my browser I get this:
    500 Internal Server Error
    java.lang.VerifyError: class org.omg.PortableServer.AdapterActivatorPOA overrides final method . at java.lang.ClassLoader.defineClass0(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:486) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:111) at com.evermind[Oracle9iAS (9.0.3.0.0) Containers for J2EE].naming.ContextClassLoader.defineClass(ContextClassLoader.java:1004) at com.evermind[Oracle9iAS (9.0.3.0.0) Containers for J2EE].naming.ContextClassLoader.findClass(ContextClassLoader.java:267) at java.lang.ClassLoader.loadClass(ClassLoader.java:297) at java.lang.ClassLoader.loadClass(ClassLoader.java:253) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:313) at java.lang.ClassLoader.defineClass0(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:486) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:111) at com.evermind[Oracle9iAS (9.0.3.0.0) Containers for J2EE].naming.ContextClassLoader.defineClass(ContextClassLoader.java:1004) at com.evermind[Oracle9iAS (9.0.3.0.0) Containers for J2EE].naming.ContextClassLoader.findClass(ContextClassLoader.java:267) at java.lang.ClassLoader.loadClass(ClassLoader.java:297) at java.lang.ClassLoader.loadClass(ClassLoader.java:253) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:313) at com.inprise.vbroker.orb.ORB.adapterManager(ORB.java:1101) at com.inprise.vbroker.ds.DSUser.<init>(DSUser.java:282) at com.inprise.vbroker.ds.Init.init(Init.java:20) at com.inprise.vbroker.orb.ORB.installServices(ORB.java:922) at com.inprise.vbroker.orb.ORB.initialize(ORB.java:831) at com.inprise.vbroker.orb.ORB.set_parameters(ORB.java:950) at org.omg.CORBA.ORB.init(ORB.java:329) at oracle.dss.appmodule.common.ORBUtils.getORBForApplication(ORBUtils.java:109) at oracle.dss.connection.server.ConnectionImpl.getORB(ConnectionImpl.java:1056) at oracle.dss.connection.server.ConnectionImpl.connect(ConnectionImpl.java:263) at oracle.dss.connection.client.Connection.connect(Connection.java:399) at oracle.dss.connection.client.Connection.connect(Connection.java:321) at oracle.dss.metadataManager.client.MetadataManager.setConnectionObjects(MetadataManager.java:3933) at oracle.dss.metadataManager.client.MetadataManager.attach(MetadataManager.java:827) at oracle.dss.metadataManager.client.MetadataManager.attach(MetadataManager.java:767) at oracle.dss.datautil.client.XMLManagerFactory.createQueryManager(XMLManagerFactory.java:187) at oracle.dss.datautil.client.ManagerFactoryImpl.lookupQueryManager(ManagerFactoryImpl.java:176) at oracle.dss.datautil.client.ManagerFactoryImpl.lookupMetadataManager(ManagerFactoryImpl.java:239) at oracle.dss.datautil.client.ManagerFactoryImpl.lookupManager(ManagerFactoryImpl.java:128) at oracle.dss.addins.jspTags.BIThinSession.getMetadataManager(BIThinSession.java:203) at oracle.dss.addins.jspTags.BIThinSession.getQueryManager(BIThinSession.java:226) at oracle.dss.addins.jspTags.BIThinSession.loadView(BIThinSession.java:126) at oracle.dss.addins.jspTags.PresentationTag.createThinObject(PresentationTag.java:142) at oracle.dss.addins.jspTags.BIBaseTag.getThinObject(BIBaseTag.java:76) at oracle.dss.addins.jspTags.PresentationTag.doStartTag(PresentationTag.java:225) at simpleJSP.jspService(_simpleJSP.java:72) [SRC:/simpleJSP.jsp:6] at com.orionserver[Oracle9iAS (9.0.3.0.0) Containers for J2EE].http.OrionHttpJspPage.service(OrionHttpJspPage.java:56) at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:304) at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:423) at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:346) at javax.servlet.http.HttpServlet.service(HttpServlet.java:336) at com.evermind[Oracle9iAS (9.0.3.0.0) Containers for J2EE].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:691) at com.evermind[Oracle9iAS (9.0.3.0.0) Containers for J2EE].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:276) at com.evermind[Oracle9iAS (9.0.3.0.0) Containers for J2EE].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:737) at com.evermind[Oracle9iAS (9.0.3.0.0) Containers for J2EE].server.http.HttpRequestHandler.run(HttpRequestHandler.java:247) at com.evermind[Oracle9iAS (9.0.3.0.0) Containers for J2EE].util.ThreadPoolThread.run(ThreadPoolThread.java:64)
    Nothing (except the 500 error itself) is logged to any of the log-files in j2ee/home/log.
    I am able to run all of the samples that comes with oc4j.
    oc4j is invoked using:
    java -Xmx128m -Dorg.omg.CORBA.ORBClass=com.inprise.vbroker.orb.ORB -Dorg.omg.COR
    BA.ORBSingletonClass=com.inprise.vbroker.orb.ORB -jar oc4j.jar &
    as specified in tutorial instructions.
    Can anyone point me in the right direction to solve this?
    Thanks,
    Jens

    The guys over in the J2EE forum came with this answer. Please note that they refer to Jdeveloper 9.0.3.
    I don't really know how to interpret that, as the RC2 Jdeveloper is 9.0.2.7.86, but anyway, her goes:
    <snip>
    It seems like you are using JDeveloper 903, is that right?
    Select Help->About from the Jdeveloper menus
    If you are using Jdeveloper 903, read on:
    This is a known issue. 903 Jdeveloper is bundled with J2EE ORB (IIOP.jar) from Sun to allow EJBs communicate using RMI/IIOP. In addition, we also have Visibroker ORB (VBJORB.jar) in the classpath. Sun has implemented CORBA 2.3.1 specification and Visibroker I believe has implemented CORBA 2.3.0 spec. The signature of one of the methods in class org.omg.PortableServer.AdapterActivatorPOA has changed between the two releases and hence the problem.
    We are trying to move away from Visibroker ORB and have requested OLAPI team to remove all dependencies on Visi ORB. Although there is no known dependencies on it, there seems to be dependencies because the idl compiler (from Visibroker) is inserting referces to Visibroker code.
    To work around :
    Remove/rename iiop.jar file in ORACLE_HOME/J2EE/HOME directory. Be warned that EJB's wont work if it is renamed or removed.
    This should only be considered as a temporary work around until we decide our next steps.
    </snip>
    Use at own risk..
    The error reported in this thread disappeared with this workaround, but unfortunately I got another one:
    500 Internal Server Error
    javax.servlet.jsp.JspException: BIB-10310 An unknown exception occurred.BIB-10101 Handler failed to handle UserObject.java.lang.NullPointerException     at oracle.dss.addins.jspTags.PresentationTag.doStartTag(PresentationTag.java:254)     at simpleJSP.jspService(_simpleJSP.java:72)     [SRC:/simpleJSP.jsp:6]     at com.orionserver[Oracle9iAS (9.0.3.0.0) Containers for J2EE].http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)     at oracle.jsp.runtimev2.JspPageTable.compileAndServe(JspPageTable.java:510)     at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:257)     at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:423)     at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:346)     at javax.servlet.http.HttpServlet.service(HttpServlet.java:336)     at com.evermind[Oracle9iAS (9.0.3.0.0) Containers for J2EE].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:691)     at com.evermind[Oracle9iAS (9.0.3.0.0) Containers for J2EE].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:276)     at com.evermind[Oracle9iAS (9.0.3.0.0) Containers for J2EE].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:737)     at com.evermind[Oracle9iAS (9.0.3.0.0) Containers for J2EE].server.http.HttpRequestHandler.run(HttpRequestHandler.java:247)     at com.evermind[Oracle9iAS (9.0.3.0.0) Containers for J2EE].util.ThreadPoolThread.run(ThreadPoolThread.java:64)
    Tips anyone..?
    Jens

  • Upgrading from j2sdk-1_4_2_07 to jdk-1_5_0_06  java.lang.VerifyError

    HI,
    i'm trying to upgrade my application from jdsk 1.4.3.07 to jdk 1.5.0.06.
    The applications works fine compiled with 1.4 and run with 1.4 and 1.5, but where i try to compile and run with 1.5 i received a:
    java.lang.VerifyError !!!
    I'm use log4j 1.2.13 and gnuregexp as external library.
    Has someone an idea ?
    thanks in advance
    Carlo Mossa ([email protected])

    Try to use -target 1.4 option of javac.
    Default mode in jdk1.5 is -target 1.5 and it generates classes which are not supported by 1.4.
    See more at:
    http://java.sun.com/j2se/1.5.0/docs/tooldocs/solaris/javac.html

  • Java.lang.VerifyError: Cannot inherit from final class

    Hi i am trying to call a crystal report from jsp but i am getting this error
    error:-
    org.apache.jasper.JasperException: Cannot inherit from final class
         org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:460)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:355)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:329)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
    root cause
    javax.servlet.ServletException: Cannot inherit from final class
         org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:841)
         org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:774)
         org.apache.jsp._1_jsp._jspService(_1_jsp.java:95)
         org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:98)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:331)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:329)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
    root cause
    java.lang.VerifyError: Cannot inherit from final class
         java.lang.ClassLoader.defineClass1(Native Method)
         java.lang.ClassLoader.defineClass(Unknown Source)
         java.security.SecureClassLoader.defineClass(Unknown Source)
         org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:1853)
         org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:875)
         org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1330)
         org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1209)
         java.lang.ClassLoader.loadClassInternal(Unknown Source)
         com.crystaldecisions.reports.sdk.ReportClientDocument.open(Unknown Source)
         org.apache.jsp._1_jsp._jspService(_1_jsp.java:64)
         org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:98)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:331)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:329)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
    my jsp is
    <%@ page import="com.crystaldecisions.report.web.viewer.*" %>
    <%@ page import="com.crystaldecisions.sdk.occa.report.data.*"  %>
    <%@ page import="com.crystaldecisions.reports.sdk.ReportClientDocument" %>
    <%
        Object reportSource = session.getAttribute("reportSource");
        if (reportSource == null)
           String report = "report.rpt";
           ReportClientDocument reportClientDoc = new ReportClientDocument();
           reportClientDoc.open( "report.rpt", 0);
           reportSource = reportClientDoc.getReportSource();
           session.setAttribute("reportSource", reportSource);
        CrystalReportViewer viewer = new CrystalReportViewer();
        viewer.setReportSource(reportSource);
           viewer.setEnableLogonPrompt(false); 
        viewer.setOwnPage(true);
        viewer.processHttpRequest(request, response, getServletConfig().getServletContext(), null);
    %>
    and in my WEB-INF/lib i included jar files namely
    Concurrent.jar,CrystalCharting.jar,CrystalCommon.jar,CrystalContentModels.jar,CrystalExporters.jar,CrystalExportingBase.jar,CrystalFormulas.jar,CrystalQueryEngine.jar,CrystalReportEngine.jar,CrystalReportingCommon.jar,icu4j.jar,jrcerom.jar,keycodeDecoder.jar,log4j.jar,MetafileRenderer.jar,rasapp.jar,rascore.jar,rpoifs.jar,serialization.jar,URIUtil.jar,xml-apis.jar,xbean.jar,xercesImpl.jar,webreporting.jar,webreporting-jsf.jar
    please help me

    You can't inherit from a final class. 
    So - are you trying to inherit from a final class?
    Sincerely,
    Ted Ueda

  • Java.lang.VerifyError when using ant 1.6.2

    In short, I get the VerifyError when deploying my .ear in Weblogic 8.1 SP2. I have nailed down the issue to this:
    I compile all my code using Ant 1.6.2. If I package the code up using ant 1.6.2 I get the VerifyError. If I pacakge the code up using ant 1.4, all is well. Note that when I deploy the 1.6.2 packaged ear file on Windows, all is well also.
    During the ant package target I assembly the war and ear using the core war and ear tasks.
    We are using precompiled JSPs in the war file. It seems that WL8.1 wants to recompile the JSP file. I am not sure why - the ant 1.4 packaged ear does not want to recompile the same JSP.
    The detailed error is:
    Servlet class jsp_servlet._portal.__capitalmarketsoverview for servlet /portal/CapitalMarketsOverview.jsp could not be verified.
    java.lang.VerifyError: (class: jsp_servlet/_portal/__capitalmarketsoverview, method: _jspService signature: (Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;)V) Incompatible object argument for function call.>
    Any help is appreciated,
    Harry Duin

    Hello,
    I could not find an easy way to get the wls version of ant to start using the tasks you mention from ant 1.6.2.
    I tried defining the tasks using taskdef and also adding them to wls ant.jar and updating the deafult.properties file but the ant complained about unexpected elements in the build.xml file where I added the new tags (e.g import)
    If your really up against it you can try adding wls tasks to ant 1.6.2, they are listed here:
    http://e-docs.bea.com/wls/docs81/toolstable/ToolsTable.html#1009580
    Although I could not located exactly which jar they are in. Good luck.
    Cheers
    Hussein Badakhchani
    www.orbism.com

  • Java.lang.VerifyError in code generated by Prototype 1.2

    I managed to get a java.lang.VerifyError from a class generated by prototype 1.2. A short test case follows: (It looks like the compile knows it can call .intern() on the result of the
    ?:, but the verifier thinks the bytecode does something wrong..)
    import java.util.Stack;
    public class Case
    public static void main(String[] argv)
    Stack<String> bar = new Stack<String>();
    String foo;
    // Compiles, but causes verify error
    foo=(bar.empty()?"":bar.peek()).intern();
    // The following two work fine
    foo = (bar.empty()?"":bar.peek().intern());
    foo = (bar.empty()?"":(String)bar.peek()).intern();

    Hi,
    I've noticed the same behaviour (java.lang.VerifyError) with code that uses extra parentheses on the return
    statement, i.e.:
    return(object);
    instead of:
    return object;
    Interestingly, parentheses also seem to affect your above example. If I change it as follows:
    public class TestGenericsBug
    public static void main(String[] argv)
    Stack<String> bar = new Stack<String>();
    String foo;
    // Compiles, works fine
    String tmp = bar.empty()?"":bar.peek() ;
    foo = tmp.intern();
    // The following two work fine
    foo = (bar.empty()?"":bar.peek().intern());
    foo = (bar.empty()?"":(String)bar.peek()).intern();
    The code compiles and runs. If, however, extra parenteses are added:
    package test;
    import java.util.Stack;
    public class TestGenericsBug
    public static void main(String[] argv)
    Stack<String> bar = new Stack<String>();
    String foo;
    // Compiles, but causes verify error. Extra Parentheses ?
    String tmp = ( bar.empty()?"":bar.peek() );
    foo = tmp.intern();
    // The following two work fine
    foo = (bar.empty()?"":bar.peek().intern());
    foo = (bar.empty()?"":(String)bar.peek()).intern();
    The bug is back!

Maybe you are looking for