You are viewing a plain text version of this content. The canonical link for it is here.
Posted to derby-dev@db.apache.org by "Kathey Marsden (JIRA)" <ji...@apache.org> on 2012/07/19 14:56:34 UTC

[jira] [Created] (DERBY-5864) weme 6.1 (J2ME) runs fail to start with Failed to invoke class org.apache.derbyTesting.functionTests.tests.derbynet._Suite java.lang.reflect.InvocationTargetException

Kathey Marsden created DERBY-5864:
-------------------------------------

             Summary: weme 6.1 (J2ME) runs fail to start with Failed to invoke class org.apache.derbyTesting.functionTests.tests.derbynet._Suite java.lang.reflect.InvocationTargetException
                 Key: DERBY-5864
                 URL: https://issues.apache.org/jira/browse/DERBY-5864
             Project: Derby
          Issue Type: Bug
    Affects Versions: 10.10.0.0
         Environment: Windows weme 6.2 
noticed trunk at revision  136330.
            Reporter: Kathey Marsden
            Priority: Critical


As in:
http://people.apache.org/~myrnavl/derby_test_results/main/windows/testSummary-1362330.html

All J2ME tests fail to start with the exception below loading the .derbynet._Suite.
The root cause  java.lang.UnsupportedClassVersionError: JVMCFRE003 bad major version for class=org/apache/derby/drda/NetworkServerControl, offset=6

The derbynet tests do not need to run with J2ME but I think the tests need to be changed to not load derbynet._Suite at all now that network server compiles with the higher version.


Failed to invoke class org.apache.derbyTesting.functionTests.tests.derbynet._Suite
java.lang.reflect.InvocationTargetException
	at java.lang.reflect.AccessibleObject.invokeL(AccessibleObject.java:205)
	at java.lang.reflect.Method.invoke(Method.java:252)
	at org.apache.derbyTesting.functionTests.suites.AllPackages.invokeSuite(AllPackages.java:176)
	at org.apache.derbyTesting.functionTests.suites.AllPackages.suite(AllPackages.java:63)
	at org.apache.derbyTesting.functionTests.suites.All.suite(All.java:51)
	at java.lang.reflect.AccessibleObject.invokeL(AccessibleObject.java:203)
	at java.lang.reflect.Method.invoke(Method.java:252)
	at junit.runner.BaseTestRunner.getTest(BaseTestRunner.java:126)
	at junit.textui.TestRunner.start(TestRunner.java:184)
	at junit.textui.TestRunner.main(TestRunner.java:143)
Caused by: java.lang.UnsupportedClassVersionError: JVMCFRE003 bad major version; class=org/apache/derby/drda/NetworkServerControl, offset=6
	at java.lang.ClassLoader.defineClassImpl(Native Method)
	at java.lang.ClassLoader.defineClass(ClassLoader.java:239)
	at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:109)
	at java.net.URLClassLoader.findClassImpl(URLClassLoader.java:1073)
	at java.net.URLClassLoader.findClassImpl(URLClassLoader.java:1078)
	at java.net.URLClassLoader$LoadContext.run(URLClassLoader.java:570)
	at java.security.AccessController.doPrivileged(AccessController.java:227)
	at java.net.URLClassLoader.findClass(URLClassLoader.java:586)
	at com.ibm.oti.vm.URLSystemClassLoader.findClass(URLSystemClassLoader.java:26)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:641)
	at com.ibm.oti.vm.URLAppClassLoader.loadClass(URLAppClassLoader.java:146)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:607)
	at java.lang.Class.forNameImpl(Native Method)
	at java.lang.Class.forName(Class.java:127)
	at org.apache.derbyTesting.junit.SecurityManagerSetup.getURL(SecurityManagerSetup.java:427)
	at org.apache.derbyTesting.junit.Derby.hasCorrectJar(Derby.java:97)
	at org.apache.derbyTesting.junit.Derby.hasServer(Derby.java:60)
	at org.apache.derbyTesting.functionTests.tests.derbynet.NetworkServerControlApiTest.suite(NetworkServerControlApiTest.java:315)
	at org.apache.derbyTesting.functionTests.tests.derbynet._Suite.suite(_Suite.java:49)
	at java.lang.reflect.AccessibleObject.invokeL(AccessibleObject.java:203)
	... 9 more
Failed to invoke suite():java.lang.reflect.InvocationTargetException

I marked critical as it blocks all J2ME tests


--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (DERBY-5864) weme 6.2 (J2ME) runs fail to start with Failed to invoke class org.apache.derbyTesting.functionTests.tests.derbynet._Suite java.lang.reflect.InvocationTargetException

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

Kathey Marsden updated DERBY-5864:
----------------------------------

      Issue & fix info: High Value Fix,Repro attached
    Bug behavior facts: Regression Test Failure
    
> weme 6.2 (J2ME) runs fail to start with Failed to invoke class org.apache.derbyTesting.functionTests.tests.derbynet._Suite java.lang.reflect.InvocationTargetException
> ----------------------------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: DERBY-5864
>                 URL: https://issues.apache.org/jira/browse/DERBY-5864
>             Project: Derby
>          Issue Type: Bug
>    Affects Versions: 10.10.0.0
>         Environment: Windows weme 6.2 
> noticed trunk at revision  136330.
>            Reporter: Kathey Marsden
>            Priority: Critical
>
> As in:
> http://people.apache.org/~myrnavl/derby_test_results/main/windows/testSummary-1362330.html
> All J2ME tests fail to start with the exception below loading the .derbynet._Suite.
> The root cause  java.lang.UnsupportedClassVersionError: JVMCFRE003 bad major version for class=org/apache/derby/drda/NetworkServerControl, offset=6
> The derbynet tests do not need to run with J2ME but I think the tests need to be changed to not load derbynet._Suite at all now that network server compiles with the higher version.
> Failed to invoke class org.apache.derbyTesting.functionTests.tests.derbynet._Suite
> java.lang.reflect.InvocationTargetException
> 	at java.lang.reflect.AccessibleObject.invokeL(AccessibleObject.java:205)
> 	at java.lang.reflect.Method.invoke(Method.java:252)
> 	at org.apache.derbyTesting.functionTests.suites.AllPackages.invokeSuite(AllPackages.java:176)
> 	at org.apache.derbyTesting.functionTests.suites.AllPackages.suite(AllPackages.java:63)
> 	at org.apache.derbyTesting.functionTests.suites.All.suite(All.java:51)
> 	at java.lang.reflect.AccessibleObject.invokeL(AccessibleObject.java:203)
> 	at java.lang.reflect.Method.invoke(Method.java:252)
> 	at junit.runner.BaseTestRunner.getTest(BaseTestRunner.java:126)
> 	at junit.textui.TestRunner.start(TestRunner.java:184)
> 	at junit.textui.TestRunner.main(TestRunner.java:143)
> Caused by: java.lang.UnsupportedClassVersionError: JVMCFRE003 bad major version; class=org/apache/derby/drda/NetworkServerControl, offset=6
> 	at java.lang.ClassLoader.defineClassImpl(Native Method)
> 	at java.lang.ClassLoader.defineClass(ClassLoader.java:239)
> 	at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:109)
> 	at java.net.URLClassLoader.findClassImpl(URLClassLoader.java:1073)
> 	at java.net.URLClassLoader.findClassImpl(URLClassLoader.java:1078)
> 	at java.net.URLClassLoader$LoadContext.run(URLClassLoader.java:570)
> 	at java.security.AccessController.doPrivileged(AccessController.java:227)
> 	at java.net.URLClassLoader.findClass(URLClassLoader.java:586)
> 	at com.ibm.oti.vm.URLSystemClassLoader.findClass(URLSystemClassLoader.java:26)
> 	at java.lang.ClassLoader.loadClass(ClassLoader.java:641)
> 	at com.ibm.oti.vm.URLAppClassLoader.loadClass(URLAppClassLoader.java:146)
> 	at java.lang.ClassLoader.loadClass(ClassLoader.java:607)
> 	at java.lang.Class.forNameImpl(Native Method)
> 	at java.lang.Class.forName(Class.java:127)
> 	at org.apache.derbyTesting.junit.SecurityManagerSetup.getURL(SecurityManagerSetup.java:427)
> 	at org.apache.derbyTesting.junit.Derby.hasCorrectJar(Derby.java:97)
> 	at org.apache.derbyTesting.junit.Derby.hasServer(Derby.java:60)
> 	at org.apache.derbyTesting.functionTests.tests.derbynet.NetworkServerControlApiTest.suite(NetworkServerControlApiTest.java:315)
> 	at org.apache.derbyTesting.functionTests.tests.derbynet._Suite.suite(_Suite.java:49)
> 	at java.lang.reflect.AccessibleObject.invokeL(AccessibleObject.java:203)
> 	... 9 more
> Failed to invoke suite():java.lang.reflect.InvocationTargetException
> I marked critical as it blocks all J2ME tests

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (DERBY-5864) weme 6.2 (J2ME) runs fail to start with Failed to invoke class org.apache.derbyTesting.functionTests.tests.derbynet._Suite java.lang.reflect.InvocationTargetException

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

Kathey Marsden updated DERBY-5864:
----------------------------------

    Summary: weme 6.2 (J2ME) runs fail to start with Failed to invoke class org.apache.derbyTesting.functionTests.tests.derbynet._Suite java.lang.reflect.InvocationTargetException  (was: weme 6.1 (J2ME) runs fail to start with Failed to invoke class org.apache.derbyTesting.functionTests.tests.derbynet._Suite java.lang.reflect.InvocationTargetException)
    
> weme 6.2 (J2ME) runs fail to start with Failed to invoke class org.apache.derbyTesting.functionTests.tests.derbynet._Suite java.lang.reflect.InvocationTargetException
> ----------------------------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: DERBY-5864
>                 URL: https://issues.apache.org/jira/browse/DERBY-5864
>             Project: Derby
>          Issue Type: Bug
>    Affects Versions: 10.10.0.0
>         Environment: Windows weme 6.2 
> noticed trunk at revision  136330.
>            Reporter: Kathey Marsden
>            Priority: Critical
>
> As in:
> http://people.apache.org/~myrnavl/derby_test_results/main/windows/testSummary-1362330.html
> All J2ME tests fail to start with the exception below loading the .derbynet._Suite.
> The root cause  java.lang.UnsupportedClassVersionError: JVMCFRE003 bad major version for class=org/apache/derby/drda/NetworkServerControl, offset=6
> The derbynet tests do not need to run with J2ME but I think the tests need to be changed to not load derbynet._Suite at all now that network server compiles with the higher version.
> Failed to invoke class org.apache.derbyTesting.functionTests.tests.derbynet._Suite
> java.lang.reflect.InvocationTargetException
> 	at java.lang.reflect.AccessibleObject.invokeL(AccessibleObject.java:205)
> 	at java.lang.reflect.Method.invoke(Method.java:252)
> 	at org.apache.derbyTesting.functionTests.suites.AllPackages.invokeSuite(AllPackages.java:176)
> 	at org.apache.derbyTesting.functionTests.suites.AllPackages.suite(AllPackages.java:63)
> 	at org.apache.derbyTesting.functionTests.suites.All.suite(All.java:51)
> 	at java.lang.reflect.AccessibleObject.invokeL(AccessibleObject.java:203)
> 	at java.lang.reflect.Method.invoke(Method.java:252)
> 	at junit.runner.BaseTestRunner.getTest(BaseTestRunner.java:126)
> 	at junit.textui.TestRunner.start(TestRunner.java:184)
> 	at junit.textui.TestRunner.main(TestRunner.java:143)
> Caused by: java.lang.UnsupportedClassVersionError: JVMCFRE003 bad major version; class=org/apache/derby/drda/NetworkServerControl, offset=6
> 	at java.lang.ClassLoader.defineClassImpl(Native Method)
> 	at java.lang.ClassLoader.defineClass(ClassLoader.java:239)
> 	at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:109)
> 	at java.net.URLClassLoader.findClassImpl(URLClassLoader.java:1073)
> 	at java.net.URLClassLoader.findClassImpl(URLClassLoader.java:1078)
> 	at java.net.URLClassLoader$LoadContext.run(URLClassLoader.java:570)
> 	at java.security.AccessController.doPrivileged(AccessController.java:227)
> 	at java.net.URLClassLoader.findClass(URLClassLoader.java:586)
> 	at com.ibm.oti.vm.URLSystemClassLoader.findClass(URLSystemClassLoader.java:26)
> 	at java.lang.ClassLoader.loadClass(ClassLoader.java:641)
> 	at com.ibm.oti.vm.URLAppClassLoader.loadClass(URLAppClassLoader.java:146)
> 	at java.lang.ClassLoader.loadClass(ClassLoader.java:607)
> 	at java.lang.Class.forNameImpl(Native Method)
> 	at java.lang.Class.forName(Class.java:127)
> 	at org.apache.derbyTesting.junit.SecurityManagerSetup.getURL(SecurityManagerSetup.java:427)
> 	at org.apache.derbyTesting.junit.Derby.hasCorrectJar(Derby.java:97)
> 	at org.apache.derbyTesting.junit.Derby.hasServer(Derby.java:60)
> 	at org.apache.derbyTesting.functionTests.tests.derbynet.NetworkServerControlApiTest.suite(NetworkServerControlApiTest.java:315)
> 	at org.apache.derbyTesting.functionTests.tests.derbynet._Suite.suite(_Suite.java:49)
> 	at java.lang.reflect.AccessibleObject.invokeL(AccessibleObject.java:203)
> 	... 9 more
> Failed to invoke suite():java.lang.reflect.InvocationTargetException
> I marked critical as it blocks all J2ME tests

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (DERBY-5864) weme 6.2 (J2ME) runs fail to start with Failed to invoke class org.apache.derbyTesting.functionTests.tests.derbynet._Suite java.lang.reflect.InvocationTargetException

Posted by "Knut Anders Hatlen (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/DERBY-5864?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13418292#comment-13418292 ] 

Knut Anders Hatlen commented on DERBY-5864:
-------------------------------------------

That sounds like a likely culprit. I'll take a look.
                
> weme 6.2 (J2ME) runs fail to start with Failed to invoke class org.apache.derbyTesting.functionTests.tests.derbynet._Suite java.lang.reflect.InvocationTargetException
> ----------------------------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: DERBY-5864
>                 URL: https://issues.apache.org/jira/browse/DERBY-5864
>             Project: Derby
>          Issue Type: Bug
>    Affects Versions: 10.10.0.0
>         Environment: Windows weme 6.2 
> noticed trunk at revision  136330.
>            Reporter: Kathey Marsden
>            Priority: Critical
>
> As in:
> http://people.apache.org/~myrnavl/derby_test_results/main/windows/testSummary-1362330.html
> All J2ME tests fail to start with the exception below loading the .derbynet._Suite.
> The root cause  java.lang.UnsupportedClassVersionError: JVMCFRE003 bad major version for class=org/apache/derby/drda/NetworkServerControl, offset=6
> The derbynet tests do not need to run with J2ME but I think the tests need to be changed to not load derbynet._Suite at all now that network server compiles with the higher version.
> Failed to invoke class org.apache.derbyTesting.functionTests.tests.derbynet._Suite
> java.lang.reflect.InvocationTargetException
> 	at java.lang.reflect.AccessibleObject.invokeL(AccessibleObject.java:205)
> 	at java.lang.reflect.Method.invoke(Method.java:252)
> 	at org.apache.derbyTesting.functionTests.suites.AllPackages.invokeSuite(AllPackages.java:176)
> 	at org.apache.derbyTesting.functionTests.suites.AllPackages.suite(AllPackages.java:63)
> 	at org.apache.derbyTesting.functionTests.suites.All.suite(All.java:51)
> 	at java.lang.reflect.AccessibleObject.invokeL(AccessibleObject.java:203)
> 	at java.lang.reflect.Method.invoke(Method.java:252)
> 	at junit.runner.BaseTestRunner.getTest(BaseTestRunner.java:126)
> 	at junit.textui.TestRunner.start(TestRunner.java:184)
> 	at junit.textui.TestRunner.main(TestRunner.java:143)
> Caused by: java.lang.UnsupportedClassVersionError: JVMCFRE003 bad major version; class=org/apache/derby/drda/NetworkServerControl, offset=6
> 	at java.lang.ClassLoader.defineClassImpl(Native Method)
> 	at java.lang.ClassLoader.defineClass(ClassLoader.java:239)
> 	at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:109)
> 	at java.net.URLClassLoader.findClassImpl(URLClassLoader.java:1073)
> 	at java.net.URLClassLoader.findClassImpl(URLClassLoader.java:1078)
> 	at java.net.URLClassLoader$LoadContext.run(URLClassLoader.java:570)
> 	at java.security.AccessController.doPrivileged(AccessController.java:227)
> 	at java.net.URLClassLoader.findClass(URLClassLoader.java:586)
> 	at com.ibm.oti.vm.URLSystemClassLoader.findClass(URLSystemClassLoader.java:26)
> 	at java.lang.ClassLoader.loadClass(ClassLoader.java:641)
> 	at com.ibm.oti.vm.URLAppClassLoader.loadClass(URLAppClassLoader.java:146)
> 	at java.lang.ClassLoader.loadClass(ClassLoader.java:607)
> 	at java.lang.Class.forNameImpl(Native Method)
> 	at java.lang.Class.forName(Class.java:127)
> 	at org.apache.derbyTesting.junit.SecurityManagerSetup.getURL(SecurityManagerSetup.java:427)
> 	at org.apache.derbyTesting.junit.Derby.hasCorrectJar(Derby.java:97)
> 	at org.apache.derbyTesting.junit.Derby.hasServer(Derby.java:60)
> 	at org.apache.derbyTesting.functionTests.tests.derbynet.NetworkServerControlApiTest.suite(NetworkServerControlApiTest.java:315)
> 	at org.apache.derbyTesting.functionTests.tests.derbynet._Suite.suite(_Suite.java:49)
> 	at java.lang.reflect.AccessibleObject.invokeL(AccessibleObject.java:203)
> 	... 9 more
> Failed to invoke suite():java.lang.reflect.InvocationTargetException
> I marked critical as it blocks all J2ME tests

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (DERBY-5864) weme 6.2 (J2ME) runs fail to start with Failed to invoke class org.apache.derbyTesting.functionTests.tests.derbynet._Suite java.lang.reflect.InvocationTargetException

Posted by "Knut Anders Hatlen (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/DERBY-5864?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Knut Anders Hatlen updated DERBY-5864:
--------------------------------------

    Attachment: d5864-1a.diff

The problem is that the test framework loads some classes from the client and the server while deciding which tests to run. Since the client and server now are compiled with target level 1.5, they won't load on most J2ME platforms.

The attached patch makes the tests start again in OJEC 1.1 in my environment. It makes the following changes:

* tests/derbynet/_Suite.java:

- Utf8CcsidManagerClientTest has references to many classes in the client driver, so I moved it to the section guarded by Derby.hasClient() to prevent its suite() method from being called when the client driver is not available.

* junit/Derby.java:

- Made hasServer() return false immediately when running on J2ME, since the server isn't supported on that platform.

- Reordered the checks in hasClient() so that it always returns false when running on J2ME. It already had logic for this, but it only worked as intended when the tests were running from jars.
                
> weme 6.2 (J2ME) runs fail to start with Failed to invoke class org.apache.derbyTesting.functionTests.tests.derbynet._Suite java.lang.reflect.InvocationTargetException
> ----------------------------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: DERBY-5864
>                 URL: https://issues.apache.org/jira/browse/DERBY-5864
>             Project: Derby
>          Issue Type: Bug
>    Affects Versions: 10.10.0.0
>         Environment: Windows weme 6.2 
> noticed trunk at revision  136330.
>            Reporter: Kathey Marsden
>            Priority: Critical
>         Attachments: d5864-1a.diff
>
>
> As in:
> http://people.apache.org/~myrnavl/derby_test_results/main/windows/testSummary-1362330.html
> All J2ME tests fail to start with the exception below loading the .derbynet._Suite.
> The root cause  java.lang.UnsupportedClassVersionError: JVMCFRE003 bad major version for class=org/apache/derby/drda/NetworkServerControl, offset=6
> The derbynet tests do not need to run with J2ME but I think the tests need to be changed to not load derbynet._Suite at all now that network server compiles with the higher version.
> Failed to invoke class org.apache.derbyTesting.functionTests.tests.derbynet._Suite
> java.lang.reflect.InvocationTargetException
> 	at java.lang.reflect.AccessibleObject.invokeL(AccessibleObject.java:205)
> 	at java.lang.reflect.Method.invoke(Method.java:252)
> 	at org.apache.derbyTesting.functionTests.suites.AllPackages.invokeSuite(AllPackages.java:176)
> 	at org.apache.derbyTesting.functionTests.suites.AllPackages.suite(AllPackages.java:63)
> 	at org.apache.derbyTesting.functionTests.suites.All.suite(All.java:51)
> 	at java.lang.reflect.AccessibleObject.invokeL(AccessibleObject.java:203)
> 	at java.lang.reflect.Method.invoke(Method.java:252)
> 	at junit.runner.BaseTestRunner.getTest(BaseTestRunner.java:126)
> 	at junit.textui.TestRunner.start(TestRunner.java:184)
> 	at junit.textui.TestRunner.main(TestRunner.java:143)
> Caused by: java.lang.UnsupportedClassVersionError: JVMCFRE003 bad major version; class=org/apache/derby/drda/NetworkServerControl, offset=6
> 	at java.lang.ClassLoader.defineClassImpl(Native Method)
> 	at java.lang.ClassLoader.defineClass(ClassLoader.java:239)
> 	at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:109)
> 	at java.net.URLClassLoader.findClassImpl(URLClassLoader.java:1073)
> 	at java.net.URLClassLoader.findClassImpl(URLClassLoader.java:1078)
> 	at java.net.URLClassLoader$LoadContext.run(URLClassLoader.java:570)
> 	at java.security.AccessController.doPrivileged(AccessController.java:227)
> 	at java.net.URLClassLoader.findClass(URLClassLoader.java:586)
> 	at com.ibm.oti.vm.URLSystemClassLoader.findClass(URLSystemClassLoader.java:26)
> 	at java.lang.ClassLoader.loadClass(ClassLoader.java:641)
> 	at com.ibm.oti.vm.URLAppClassLoader.loadClass(URLAppClassLoader.java:146)
> 	at java.lang.ClassLoader.loadClass(ClassLoader.java:607)
> 	at java.lang.Class.forNameImpl(Native Method)
> 	at java.lang.Class.forName(Class.java:127)
> 	at org.apache.derbyTesting.junit.SecurityManagerSetup.getURL(SecurityManagerSetup.java:427)
> 	at org.apache.derbyTesting.junit.Derby.hasCorrectJar(Derby.java:97)
> 	at org.apache.derbyTesting.junit.Derby.hasServer(Derby.java:60)
> 	at org.apache.derbyTesting.functionTests.tests.derbynet.NetworkServerControlApiTest.suite(NetworkServerControlApiTest.java:315)
> 	at org.apache.derbyTesting.functionTests.tests.derbynet._Suite.suite(_Suite.java:49)
> 	at java.lang.reflect.AccessibleObject.invokeL(AccessibleObject.java:203)
> 	... 9 more
> Failed to invoke suite():java.lang.reflect.InvocationTargetException
> I marked critical as it blocks all J2ME tests

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (DERBY-5864) weme 6.2 (J2ME) runs fail to start with Failed to invoke class org.apache.derbyTesting.functionTests.tests.derbynet._Suite java.lang.reflect.InvocationTargetException

Posted by "Kathey Marsden (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/DERBY-5864?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13418582#comment-13418582 ] 

Kathey Marsden commented on DERBY-5864:
---------------------------------------

+1 to the patch and thanks Knut for fixing this.
weme 6.2 derbynet._Suite seems to run run fine with the patch with no tests run. 

++ 'c:\cygwin\ibmsvn\ntsoftware\weme6.2/bin/j9' -Dderby.tests.trace=true -jcl:foun11 -DderbyTesting.serverhost=localhost
 -DderbyTesting.clienthost=localhost -Demma.active= '-Xbootclasspath/a:c:\cygwin\ibmsvn\ntsoftware\weme6.2/lib/jdbc.jar'
 '-Dbootcp=c:\cygwin\ibmsvn\ntsoftware\weme6.2/lib/jdbc.jar' junit.textui.TestRunner org.apache.derbyTesting.functionTes
ts.tests.derbynet._Suite

Time: 9.676

OK (0 tests)

I did not run all of suites.All but did verify it kicks off.

                
> weme 6.2 (J2ME) runs fail to start with Failed to invoke class org.apache.derbyTesting.functionTests.tests.derbynet._Suite java.lang.reflect.InvocationTargetException
> ----------------------------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: DERBY-5864
>                 URL: https://issues.apache.org/jira/browse/DERBY-5864
>             Project: Derby
>          Issue Type: Bug
>    Affects Versions: 10.10.0.0
>         Environment: Windows weme 6.2 
> noticed trunk at revision  136330.
>            Reporter: Kathey Marsden
>            Priority: Critical
>         Attachments: d5864-1a.diff
>
>
> As in:
> http://people.apache.org/~myrnavl/derby_test_results/main/windows/testSummary-1362330.html
> All J2ME tests fail to start with the exception below loading the .derbynet._Suite.
> The root cause  java.lang.UnsupportedClassVersionError: JVMCFRE003 bad major version for class=org/apache/derby/drda/NetworkServerControl, offset=6
> The derbynet tests do not need to run with J2ME but I think the tests need to be changed to not load derbynet._Suite at all now that network server compiles with the higher version.
> Failed to invoke class org.apache.derbyTesting.functionTests.tests.derbynet._Suite
> java.lang.reflect.InvocationTargetException
> 	at java.lang.reflect.AccessibleObject.invokeL(AccessibleObject.java:205)
> 	at java.lang.reflect.Method.invoke(Method.java:252)
> 	at org.apache.derbyTesting.functionTests.suites.AllPackages.invokeSuite(AllPackages.java:176)
> 	at org.apache.derbyTesting.functionTests.suites.AllPackages.suite(AllPackages.java:63)
> 	at org.apache.derbyTesting.functionTests.suites.All.suite(All.java:51)
> 	at java.lang.reflect.AccessibleObject.invokeL(AccessibleObject.java:203)
> 	at java.lang.reflect.Method.invoke(Method.java:252)
> 	at junit.runner.BaseTestRunner.getTest(BaseTestRunner.java:126)
> 	at junit.textui.TestRunner.start(TestRunner.java:184)
> 	at junit.textui.TestRunner.main(TestRunner.java:143)
> Caused by: java.lang.UnsupportedClassVersionError: JVMCFRE003 bad major version; class=org/apache/derby/drda/NetworkServerControl, offset=6
> 	at java.lang.ClassLoader.defineClassImpl(Native Method)
> 	at java.lang.ClassLoader.defineClass(ClassLoader.java:239)
> 	at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:109)
> 	at java.net.URLClassLoader.findClassImpl(URLClassLoader.java:1073)
> 	at java.net.URLClassLoader.findClassImpl(URLClassLoader.java:1078)
> 	at java.net.URLClassLoader$LoadContext.run(URLClassLoader.java:570)
> 	at java.security.AccessController.doPrivileged(AccessController.java:227)
> 	at java.net.URLClassLoader.findClass(URLClassLoader.java:586)
> 	at com.ibm.oti.vm.URLSystemClassLoader.findClass(URLSystemClassLoader.java:26)
> 	at java.lang.ClassLoader.loadClass(ClassLoader.java:641)
> 	at com.ibm.oti.vm.URLAppClassLoader.loadClass(URLAppClassLoader.java:146)
> 	at java.lang.ClassLoader.loadClass(ClassLoader.java:607)
> 	at java.lang.Class.forNameImpl(Native Method)
> 	at java.lang.Class.forName(Class.java:127)
> 	at org.apache.derbyTesting.junit.SecurityManagerSetup.getURL(SecurityManagerSetup.java:427)
> 	at org.apache.derbyTesting.junit.Derby.hasCorrectJar(Derby.java:97)
> 	at org.apache.derbyTesting.junit.Derby.hasServer(Derby.java:60)
> 	at org.apache.derbyTesting.functionTests.tests.derbynet.NetworkServerControlApiTest.suite(NetworkServerControlApiTest.java:315)
> 	at org.apache.derbyTesting.functionTests.tests.derbynet._Suite.suite(_Suite.java:49)
> 	at java.lang.reflect.AccessibleObject.invokeL(AccessibleObject.java:203)
> 	... 9 more
> Failed to invoke suite():java.lang.reflect.InvocationTargetException
> I marked critical as it blocks all J2ME tests

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Resolved] (DERBY-5864) weme 6.2 (J2ME) runs fail to start with Failed to invoke class org.apache.derbyTesting.functionTests.tests.derbynet._Suite java.lang.reflect.InvocationTargetException

Posted by "Knut Anders Hatlen (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/DERBY-5864?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Knut Anders Hatlen resolved DERBY-5864.
---------------------------------------

       Resolution: Fixed
    Fix Version/s: 10.10.0.0
         Assignee: Knut Anders Hatlen

Thanks for testing the patch on weme, Kathey. I started suites.All on OJEC. Unfortunately, I took the startup flags from memory, and probably missed some, so the process eventually fell over. In any case, it seems to behave better than before, and a suites.All run I started in parallel on Java 7 ran successfully, so I checked in the patch.

Committed revision 1363508.
                
> weme 6.2 (J2ME) runs fail to start with Failed to invoke class org.apache.derbyTesting.functionTests.tests.derbynet._Suite java.lang.reflect.InvocationTargetException
> ----------------------------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: DERBY-5864
>                 URL: https://issues.apache.org/jira/browse/DERBY-5864
>             Project: Derby
>          Issue Type: Bug
>    Affects Versions: 10.10.0.0
>         Environment: Windows weme 6.2 
> noticed trunk at revision  136330.
>            Reporter: Kathey Marsden
>            Assignee: Knut Anders Hatlen
>            Priority: Critical
>             Fix For: 10.10.0.0
>
>         Attachments: d5864-1a.diff
>
>
> As in:
> http://people.apache.org/~myrnavl/derby_test_results/main/windows/testSummary-1362330.html
> All J2ME tests fail to start with the exception below loading the .derbynet._Suite.
> The root cause  java.lang.UnsupportedClassVersionError: JVMCFRE003 bad major version for class=org/apache/derby/drda/NetworkServerControl, offset=6
> The derbynet tests do not need to run with J2ME but I think the tests need to be changed to not load derbynet._Suite at all now that network server compiles with the higher version.
> Failed to invoke class org.apache.derbyTesting.functionTests.tests.derbynet._Suite
> java.lang.reflect.InvocationTargetException
> 	at java.lang.reflect.AccessibleObject.invokeL(AccessibleObject.java:205)
> 	at java.lang.reflect.Method.invoke(Method.java:252)
> 	at org.apache.derbyTesting.functionTests.suites.AllPackages.invokeSuite(AllPackages.java:176)
> 	at org.apache.derbyTesting.functionTests.suites.AllPackages.suite(AllPackages.java:63)
> 	at org.apache.derbyTesting.functionTests.suites.All.suite(All.java:51)
> 	at java.lang.reflect.AccessibleObject.invokeL(AccessibleObject.java:203)
> 	at java.lang.reflect.Method.invoke(Method.java:252)
> 	at junit.runner.BaseTestRunner.getTest(BaseTestRunner.java:126)
> 	at junit.textui.TestRunner.start(TestRunner.java:184)
> 	at junit.textui.TestRunner.main(TestRunner.java:143)
> Caused by: java.lang.UnsupportedClassVersionError: JVMCFRE003 bad major version; class=org/apache/derby/drda/NetworkServerControl, offset=6
> 	at java.lang.ClassLoader.defineClassImpl(Native Method)
> 	at java.lang.ClassLoader.defineClass(ClassLoader.java:239)
> 	at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:109)
> 	at java.net.URLClassLoader.findClassImpl(URLClassLoader.java:1073)
> 	at java.net.URLClassLoader.findClassImpl(URLClassLoader.java:1078)
> 	at java.net.URLClassLoader$LoadContext.run(URLClassLoader.java:570)
> 	at java.security.AccessController.doPrivileged(AccessController.java:227)
> 	at java.net.URLClassLoader.findClass(URLClassLoader.java:586)
> 	at com.ibm.oti.vm.URLSystemClassLoader.findClass(URLSystemClassLoader.java:26)
> 	at java.lang.ClassLoader.loadClass(ClassLoader.java:641)
> 	at com.ibm.oti.vm.URLAppClassLoader.loadClass(URLAppClassLoader.java:146)
> 	at java.lang.ClassLoader.loadClass(ClassLoader.java:607)
> 	at java.lang.Class.forNameImpl(Native Method)
> 	at java.lang.Class.forName(Class.java:127)
> 	at org.apache.derbyTesting.junit.SecurityManagerSetup.getURL(SecurityManagerSetup.java:427)
> 	at org.apache.derbyTesting.junit.Derby.hasCorrectJar(Derby.java:97)
> 	at org.apache.derbyTesting.junit.Derby.hasServer(Derby.java:60)
> 	at org.apache.derbyTesting.functionTests.tests.derbynet.NetworkServerControlApiTest.suite(NetworkServerControlApiTest.java:315)
> 	at org.apache.derbyTesting.functionTests.tests.derbynet._Suite.suite(_Suite.java:49)
> 	at java.lang.reflect.AccessibleObject.invokeL(AccessibleObject.java:203)
> 	... 9 more
> Failed to invoke suite():java.lang.reflect.InvocationTargetException
> I marked critical as it blocks all J2ME tests

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira