You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Hristo Spaschev Iliev (JIRA)" <ji...@apache.org> on 2009/06/25 10:35:07 UTC

[jira] Created: (HARMONY-6245) NoSuchMethod error with three-level hierarchy

NoSuchMethod error with three-level hierarchy
---------------------------------------------

                 Key: HARMONY-6245
                 URL: https://issues.apache.org/jira/browse/HARMONY-6245
             Project: Harmony
          Issue Type: Bug
          Components: VM
    Affects Versions: 5.0M10
         Environment: Windows XP SP2 32bit

C:\jdk\harmony-jdk-782693\bin>java -version
Apache Harmony Launcher : (c) Copyright 1991, 2009 The Apache Software Foundation or its licensors, as applicable.
java version "1.5.0"
pre-alpha : not complete or compatible
svn = r782693, (Jun 12 2009), Windows/ia32/msvc 1310, release build
http://harmony.apache.org
            Reporter: Hristo Spaschev Iliev


Running the attached class produces:
  java.lang.NoSuchMethodError: com/sap/sql/sqlparser/SQLParser.resetTokenBuffer()V while resolving constant pool entry at index 9 in class Test
          at Test.main(Test.java:13)

The hierarchy used is:
   public class SQLParser extends LLkParser 
   public class LLkParser extends Parser

The method resetTokenBuffer() however can be found in antlr.Parser

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (HARMONY-6245) NoSuchMethod error with three-level hierarchy

Posted by "Pavel Pervov (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HARMONY-6245?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12723961#action_12723961 ] 

Pavel Pervov commented on HARMONY-6245:
---------------------------------------

Well, looking at the archive, I should say that updating antlr in DRLVM won't help.

> NoSuchMethod error with three-level hierarchy
> ---------------------------------------------
>
>                 Key: HARMONY-6245
>                 URL: https://issues.apache.org/jira/browse/HARMONY-6245
>             Project: Harmony
>          Issue Type: Bug
>          Components: VM
>    Affects Versions: 5.0M10
>         Environment: Windows XP SP2 32bit
> C:\jdk\harmony-jdk-782693\bin>java -version
> Apache Harmony Launcher : (c) Copyright 1991, 2009 The Apache Software Foundation or its licensors, as applicable.
> java version "1.5.0"
> pre-alpha : not complete or compatible
> svn = r782693, (Jun 12 2009), Windows/ia32/msvc 1310, release build
> http://harmony.apache.org
>            Reporter: Hristo Spaschev Iliev
>         Attachments: NoSuchMethod.zip
>
>
> Running the attached class produces:
>   java.lang.NoSuchMethodError: com/sap/sql/sqlparser/SQLParser.resetTokenBuffer()V while resolving constant pool entry at index 9 in class Test
>           at Test.main(Test.java:13)
> The hierarchy used is:
>    public class SQLParser extends LLkParser 
>    public class LLkParser extends Parser
> The method resetTokenBuffer() however can be found in antlr.Parser
> Running the same with SunVM produces no such Error

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (HARMONY-6245) NoSuchMethod error with three-level hierarchy

Posted by "Hristo Spaschev Iliev (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HARMONY-6245?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Hristo Spaschev Iliev updated HARMONY-6245:
-------------------------------------------

    Description: 
Running the attached class produces:
  java.lang.NoSuchMethodError: com/sap/sql/sqlparser/SQLParser.resetTokenBuffer()V while resolving constant pool entry at index 9 in class Test
          at Test.main(Test.java:13)

The hierarchy used is:
   public class SQLParser extends LLkParser 
   public class LLkParser extends Parser

The method resetTokenBuffer() however can be found in antlr.Parser

Running the same with SunVM produces no such Error

  was:
Running the attached class produces:
  java.lang.NoSuchMethodError: com/sap/sql/sqlparser/SQLParser.resetTokenBuffer()V while resolving constant pool entry at index 9 in class Test
          at Test.main(Test.java:13)

The hierarchy used is:
   public class SQLParser extends LLkParser 
   public class LLkParser extends Parser

The method resetTokenBuffer() however can be found in antlr.Parser


> NoSuchMethod error with three-level hierarchy
> ---------------------------------------------
>
>                 Key: HARMONY-6245
>                 URL: https://issues.apache.org/jira/browse/HARMONY-6245
>             Project: Harmony
>          Issue Type: Bug
>          Components: VM
>    Affects Versions: 5.0M10
>         Environment: Windows XP SP2 32bit
> C:\jdk\harmony-jdk-782693\bin>java -version
> Apache Harmony Launcher : (c) Copyright 1991, 2009 The Apache Software Foundation or its licensors, as applicable.
> java version "1.5.0"
> pre-alpha : not complete or compatible
> svn = r782693, (Jun 12 2009), Windows/ia32/msvc 1310, release build
> http://harmony.apache.org
>            Reporter: Hristo Spaschev Iliev
>         Attachments: NoSuchMethod.zip
>
>
> Running the attached class produces:
>   java.lang.NoSuchMethodError: com/sap/sql/sqlparser/SQLParser.resetTokenBuffer()V while resolving constant pool entry at index 9 in class Test
>           at Test.main(Test.java:13)
> The hierarchy used is:
>    public class SQLParser extends LLkParser 
>    public class LLkParser extends Parser
> The method resetTokenBuffer() however can be found in antlr.Parser
> Running the same with SunVM produces no such Error

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (HARMONY-6245) NoSuchMethod error with three-level hierarchy

Posted by "Hristo Spaschev Iliev (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HARMONY-6245?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Hristo Spaschev Iliev updated HARMONY-6245:
-------------------------------------------

    Attachment: NoSuchMethod.zip

Test class with 2 JAR files containing the hirarchy producing NoSuchMethod

> NoSuchMethod error with three-level hierarchy
> ---------------------------------------------
>
>                 Key: HARMONY-6245
>                 URL: https://issues.apache.org/jira/browse/HARMONY-6245
>             Project: Harmony
>          Issue Type: Bug
>          Components: VM
>    Affects Versions: 5.0M10
>         Environment: Windows XP SP2 32bit
> C:\jdk\harmony-jdk-782693\bin>java -version
> Apache Harmony Launcher : (c) Copyright 1991, 2009 The Apache Software Foundation or its licensors, as applicable.
> java version "1.5.0"
> pre-alpha : not complete or compatible
> svn = r782693, (Jun 12 2009), Windows/ia32/msvc 1310, release build
> http://harmony.apache.org
>            Reporter: Hristo Spaschev Iliev
>         Attachments: NoSuchMethod.zip
>
>
> Running the attached class produces:
>   java.lang.NoSuchMethodError: com/sap/sql/sqlparser/SQLParser.resetTokenBuffer()V while resolving constant pool entry at index 9 in class Test
>           at Test.main(Test.java:13)
> The hierarchy used is:
>    public class SQLParser extends LLkParser 
>    public class LLkParser extends Parser
> The method resetTokenBuffer() however can be found in antlr.Parser

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (HARMONY-6245) NoSuchMethod error with three-level hierarchy

Posted by "Tim Ellison (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HARMONY-6245?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12724059#action_12724059 ] 

Tim Ellison commented on HARMONY-6245:
--------------------------------------

Welcome to Java ;-/

Seriously though, it is the same problem if you want to use a different version of the XML libraries, JMX, or ICU (modulo the standards override mechanism).

Until we get a runtime modularity story for Java the 'classpath hell' means that whoever gets to put their version first on the path wins.


> NoSuchMethod error with three-level hierarchy
> ---------------------------------------------
>
>                 Key: HARMONY-6245
>                 URL: https://issues.apache.org/jira/browse/HARMONY-6245
>             Project: Harmony
>          Issue Type: Bug
>          Components: VM
>    Affects Versions: 5.0M10
>         Environment: Windows XP SP2 32bit
> C:\jdk\harmony-jdk-782693\bin>java -version
> Apache Harmony Launcher : (c) Copyright 1991, 2009 The Apache Software Foundation or its licensors, as applicable.
> java version "1.5.0"
> pre-alpha : not complete or compatible
> svn = r782693, (Jun 12 2009), Windows/ia32/msvc 1310, release build
> http://harmony.apache.org
>            Reporter: Hristo Spaschev Iliev
>         Attachments: NoSuchMethod.zip
>
>
> Running the attached class produces:
>   java.lang.NoSuchMethodError: com/sap/sql/sqlparser/SQLParser.resetTokenBuffer()V while resolving constant pool entry at index 9 in class Test
>           at Test.main(Test.java:13)
> The hierarchy used is:
>    public class SQLParser extends LLkParser 
>    public class LLkParser extends Parser
> The method resetTokenBuffer() however can be found in antlr.Parser
> Running the same with SunVM produces no such Error

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (HARMONY-6245) NoSuchMethod error with three-level hierarchy

Posted by "Pavel Pervov (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HARMONY-6245?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12723958#action_12723958 ] 

Pavel Pervov commented on HARMONY-6245:
---------------------------------------

Without looking at the code I may suggest that the problem is in the fact that DRLVM contains antlr and uses it for internal purposes and that antlr can have older version, which does not contain resetTokenBuffer()V with this exact signature or does not contain it at all.

Try using -Xbootclasspath/p:<path to your antlr>. If this fixes the issue, we can look at updating antlr version used in DRLVM to the latest version.

Otherwise, it is necessary to debug the whole thingy (is it SAP over Harmony?).

> NoSuchMethod error with three-level hierarchy
> ---------------------------------------------
>
>                 Key: HARMONY-6245
>                 URL: https://issues.apache.org/jira/browse/HARMONY-6245
>             Project: Harmony
>          Issue Type: Bug
>          Components: VM
>    Affects Versions: 5.0M10
>         Environment: Windows XP SP2 32bit
> C:\jdk\harmony-jdk-782693\bin>java -version
> Apache Harmony Launcher : (c) Copyright 1991, 2009 The Apache Software Foundation or its licensors, as applicable.
> java version "1.5.0"
> pre-alpha : not complete or compatible
> svn = r782693, (Jun 12 2009), Windows/ia32/msvc 1310, release build
> http://harmony.apache.org
>            Reporter: Hristo Spaschev Iliev
>         Attachments: NoSuchMethod.zip
>
>
> Running the attached class produces:
>   java.lang.NoSuchMethodError: com/sap/sql/sqlparser/SQLParser.resetTokenBuffer()V while resolving constant pool entry at index 9 in class Test
>           at Test.main(Test.java:13)
> The hierarchy used is:
>    public class SQLParser extends LLkParser 
>    public class LLkParser extends Parser
> The method resetTokenBuffer() however can be found in antlr.Parser
> Running the same with SunVM produces no such Error

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (HARMONY-6245) NoSuchMethod error with three-level hierarchy

Posted by "Tim Ellison (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HARMONY-6245?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12723968#action_12723968 ] 

Tim Ellison commented on HARMONY-6245:
--------------------------------------

I agree with Pavel here.

If you run
java.exe -Xbootclasspath/p:sap.com~tc~antlr~runtime.jar -cp .;sap.com~tc~bl~opensql~implStandalone.jar Test

then it runs to completion without error.

Also when I ran the Test class using the original launch line and the IBM VME it ran to completion without error (the IBM VME doesn't use antlr).



> NoSuchMethod error with three-level hierarchy
> ---------------------------------------------
>
>                 Key: HARMONY-6245
>                 URL: https://issues.apache.org/jira/browse/HARMONY-6245
>             Project: Harmony
>          Issue Type: Bug
>          Components: VM
>    Affects Versions: 5.0M10
>         Environment: Windows XP SP2 32bit
> C:\jdk\harmony-jdk-782693\bin>java -version
> Apache Harmony Launcher : (c) Copyright 1991, 2009 The Apache Software Foundation or its licensors, as applicable.
> java version "1.5.0"
> pre-alpha : not complete or compatible
> svn = r782693, (Jun 12 2009), Windows/ia32/msvc 1310, release build
> http://harmony.apache.org
>            Reporter: Hristo Spaschev Iliev
>         Attachments: NoSuchMethod.zip
>
>
> Running the attached class produces:
>   java.lang.NoSuchMethodError: com/sap/sql/sqlparser/SQLParser.resetTokenBuffer()V while resolving constant pool entry at index 9 in class Test
>           at Test.main(Test.java:13)
> The hierarchy used is:
>    public class SQLParser extends LLkParser 
>    public class LLkParser extends Parser
> The method resetTokenBuffer() however can be found in antlr.Parser
> Running the same with SunVM produces no such Error

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (HARMONY-6245) NoSuchMethod error with three-level hierarchy

Posted by "Hristo Spaschev Iliev (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HARMONY-6245?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12723963#action_12723963 ] 

Hristo Spaschev Iliev commented on HARMONY-6245:
------------------------------------------------

Prepending antlr to the classpath really fixes the issue.

The update of antlr in DRLVM may fix our case but will this be OK for applications that want to use older (or newer) versions of antlr?

> NoSuchMethod error with three-level hierarchy
> ---------------------------------------------
>
>                 Key: HARMONY-6245
>                 URL: https://issues.apache.org/jira/browse/HARMONY-6245
>             Project: Harmony
>          Issue Type: Bug
>          Components: VM
>    Affects Versions: 5.0M10
>         Environment: Windows XP SP2 32bit
> C:\jdk\harmony-jdk-782693\bin>java -version
> Apache Harmony Launcher : (c) Copyright 1991, 2009 The Apache Software Foundation or its licensors, as applicable.
> java version "1.5.0"
> pre-alpha : not complete or compatible
> svn = r782693, (Jun 12 2009), Windows/ia32/msvc 1310, release build
> http://harmony.apache.org
>            Reporter: Hristo Spaschev Iliev
>         Attachments: NoSuchMethod.zip
>
>
> Running the attached class produces:
>   java.lang.NoSuchMethodError: com/sap/sql/sqlparser/SQLParser.resetTokenBuffer()V while resolving constant pool entry at index 9 in class Test
>           at Test.main(Test.java:13)
> The hierarchy used is:
>    public class SQLParser extends LLkParser 
>    public class LLkParser extends Parser
> The method resetTokenBuffer() however can be found in antlr.Parser
> Running the same with SunVM produces no such Error

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Closed: (HARMONY-6245) NoSuchMethod error with three-level hierarchy

Posted by "Tim Ellison (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HARMONY-6245?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Tim Ellison closed HARMONY-6245.
--------------------------------

       Resolution: Invalid
    Fix Version/s: 5.0M11
         Assignee: Tim Ellison

I'm closing this as a non-bug. It's a limitation of Java which we could work around as Pavel states on the mailing list.


> NoSuchMethod error with three-level hierarchy
> ---------------------------------------------
>
>                 Key: HARMONY-6245
>                 URL: https://issues.apache.org/jira/browse/HARMONY-6245
>             Project: Harmony
>          Issue Type: Bug
>          Components: VM
>    Affects Versions: 5.0M10
>         Environment: Windows XP SP2 32bit
> C:\jdk\harmony-jdk-782693\bin>java -version
> Apache Harmony Launcher : (c) Copyright 1991, 2009 The Apache Software Foundation or its licensors, as applicable.
> java version "1.5.0"
> pre-alpha : not complete or compatible
> svn = r782693, (Jun 12 2009), Windows/ia32/msvc 1310, release build
> http://harmony.apache.org
>            Reporter: Hristo Spaschev Iliev
>            Assignee: Tim Ellison
>             Fix For: 5.0M11
>
>         Attachments: NoSuchMethod.zip
>
>
> Running the attached class produces:
>   java.lang.NoSuchMethodError: com/sap/sql/sqlparser/SQLParser.resetTokenBuffer()V while resolving constant pool entry at index 9 in class Test
>           at Test.main(Test.java:13)
> The hierarchy used is:
>    public class SQLParser extends LLkParser 
>    public class LLkParser extends Parser
> The method resetTokenBuffer() however can be found in antlr.Parser
> Running the same with SunVM produces no such Error

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.