You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@karaf.apache.org by "Hristo Spaschev Iliev (JIRA)" <ji...@apache.org> on 2011/01/05 21:33:46 UTC

[jira] Created: (KARAF-357) shell.bat won't start with NoClassDefFoundError and NPE

shell.bat won't start with NoClassDefFoundError and NPE
-------------------------------------------------------

                 Key: KARAF-357
                 URL: https://issues.apache.org/jira/browse/KARAF-357
             Project: Karaf
          Issue Type: Bug
          Components: runtime
    Affects Versions: 2.1.2, 2.1.3, 2.2.0
         Environment: Windows 7 64 bit
            Reporter: Hristo Spaschev Iliev
            Priority: Minor


I tried to start shell.bat, but all I've got was NoClassDefFoundError:

Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/karaf/shell/console/Main
Caused by: java.lang.ClassNotFoundException: org.apache.karaf.shell.console.Main
        at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
Could not find the main class: org.apache.karaf.shell.console.Main.  Program will exit.

The problem seems to be in the batch file (line 85):
set CLASSPATH=%CLASSPATH#:%

Note the path separator and the ending terminator for the CLASSPATH variable.

After fixing it the error changed to:

Exception in thread "main" java.lang.NullPointerException
        at org.apache.karaf.shell.console.Main.getFiles(Main.java:297)
        at org.apache.karaf.shell.console.Main.getFiles(Main.java:292)
        at org.apache.karaf.shell.console.Main.run(Main.java:79)
        at org.apache.karaf.shell.console.Main.main(Main.java:58)

I checked in the trunk - the batch file is the same.

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


[jira] Commented: (KARAF-357) shell.bat won't start with NoClassDefFoundError and NPE

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

Hristo Spaschev Iliev commented on KARAF-357:
---------------------------------------------

I can (re)test on my machine if you have some patch and you want to skip the Windows setup :)

> shell.bat won't start with NoClassDefFoundError and NPE
> -------------------------------------------------------
>
>                 Key: KARAF-357
>                 URL: https://issues.apache.org/jira/browse/KARAF-357
>             Project: Karaf
>          Issue Type: Bug
>          Components: runtime
>    Affects Versions: 2.1.2, 2.1.3, 2.2.0
>         Environment: Windows 7 64 bit
>            Reporter: Hristo Spaschev Iliev
>            Priority: Minor
>
> I tried to start shell.bat, but all I've got was NoClassDefFoundError:
> Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/karaf/shell/console/Main
> Caused by: java.lang.ClassNotFoundException: org.apache.karaf.shell.console.Main
>         at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
>         at java.security.AccessController.doPrivileged(Native Method)
>         at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
>         at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
>         at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
>         at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
> Could not find the main class: org.apache.karaf.shell.console.Main.  Program will exit.
> The problem seems to be in the batch file (line 85):
> set CLASSPATH=%CLASSPATH#:%
> Note the path separator and the ending terminator for the CLASSPATH variable.
> After fixing it the error changed to:
> Exception in thread "main" java.lang.NullPointerException
>         at org.apache.karaf.shell.console.Main.getFiles(Main.java:297)
>         at org.apache.karaf.shell.console.Main.getFiles(Main.java:292)
>         at org.apache.karaf.shell.console.Main.run(Main.java:79)
>         at org.apache.karaf.shell.console.Main.main(Main.java:58)
> I checked in the trunk - the batch file is the same.

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


[jira] Resolved: (KARAF-357) shell.bat won't start with NoClassDefFoundError and NPE

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

Andreas Pieber resolved KARAF-357.
----------------------------------

    Resolution: Fixed

karaf-2.1.x: At revision: 1055953
karaf-trunk: At revision: 1055962

Please verify if the changes work for you and set this issue to closed. Thank you for your report!

> shell.bat won't start with NoClassDefFoundError and NPE
> -------------------------------------------------------
>
>                 Key: KARAF-357
>                 URL: https://issues.apache.org/jira/browse/KARAF-357
>             Project: Karaf
>          Issue Type: Bug
>          Components: runtime
>    Affects Versions: 2.1.2, 2.1.3, 2.2.0
>         Environment: Windows 7 64 bit
>            Reporter: Hristo Spaschev Iliev
>            Assignee: Andreas Pieber
>            Priority: Minor
>             Fix For: 2.1.3, 2.2.0
>
>
> I tried to start shell.bat, but all I've got was NoClassDefFoundError:
> Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/karaf/shell/console/Main
> Caused by: java.lang.ClassNotFoundException: org.apache.karaf.shell.console.Main
>         at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
>         at java.security.AccessController.doPrivileged(Native Method)
>         at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
>         at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
>         at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
>         at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
> Could not find the main class: org.apache.karaf.shell.console.Main.  Program will exit.
> The problem seems to be in the batch file (line 85):
> set CLASSPATH=%CLASSPATH#:%
> Note the path separator and the ending terminator for the CLASSPATH variable.
> After fixing it the error changed to:
> Exception in thread "main" java.lang.NullPointerException
>         at org.apache.karaf.shell.console.Main.getFiles(Main.java:297)
>         at org.apache.karaf.shell.console.Main.getFiles(Main.java:292)
>         at org.apache.karaf.shell.console.Main.run(Main.java:79)
>         at org.apache.karaf.shell.console.Main.main(Main.java:58)
> I checked in the trunk - the batch file is the same.

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


[jira] Closed: (KARAF-357) shell.bat won't start with NoClassDefFoundError and NPE

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

Hristo Spaschev Iliev closed KARAF-357.
---------------------------------------


Thanks. The shell.bat now works ok.

> shell.bat won't start with NoClassDefFoundError and NPE
> -------------------------------------------------------
>
>                 Key: KARAF-357
>                 URL: https://issues.apache.org/jira/browse/KARAF-357
>             Project: Karaf
>          Issue Type: Bug
>          Components: runtime
>    Affects Versions: 2.1.2, 2.1.3, 2.2.0
>         Environment: Windows 7 64 bit
>            Reporter: Hristo Spaschev Iliev
>            Assignee: Andreas Pieber
>            Priority: Minor
>             Fix For: 2.1.3, 2.2.0
>
>
> I tried to start shell.bat, but all I've got was NoClassDefFoundError:
> Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/karaf/shell/console/Main
> Caused by: java.lang.ClassNotFoundException: org.apache.karaf.shell.console.Main
>         at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
>         at java.security.AccessController.doPrivileged(Native Method)
>         at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
>         at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
>         at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
>         at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
> Could not find the main class: org.apache.karaf.shell.console.Main.  Program will exit.
> The problem seems to be in the batch file (line 85):
> set CLASSPATH=%CLASSPATH#:%
> Note the path separator and the ending terminator for the CLASSPATH variable.
> After fixing it the error changed to:
> Exception in thread "main" java.lang.NullPointerException
>         at org.apache.karaf.shell.console.Main.getFiles(Main.java:297)
>         at org.apache.karaf.shell.console.Main.getFiles(Main.java:292)
>         at org.apache.karaf.shell.console.Main.run(Main.java:79)
>         at org.apache.karaf.shell.console.Main.main(Main.java:58)
> I checked in the trunk - the batch file is the same.

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


[jira] Commented: (KARAF-357) shell.bat won't start with NoClassDefFoundError and NPE

Posted by "Jean-Baptiste Onofré (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/KARAF-357?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12978167#action_12978167 ] 

Jean-Baptiste Onofré commented on KARAF-357:
--------------------------------------------

I'm setting up a VirtualBox with windows to reproduce the issue and fix it.

> shell.bat won't start with NoClassDefFoundError and NPE
> -------------------------------------------------------
>
>                 Key: KARAF-357
>                 URL: https://issues.apache.org/jira/browse/KARAF-357
>             Project: Karaf
>          Issue Type: Bug
>          Components: runtime
>    Affects Versions: 2.1.2, 2.1.3, 2.2.0
>         Environment: Windows 7 64 bit
>            Reporter: Hristo Spaschev Iliev
>            Priority: Minor
>
> I tried to start shell.bat, but all I've got was NoClassDefFoundError:
> Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/karaf/shell/console/Main
> Caused by: java.lang.ClassNotFoundException: org.apache.karaf.shell.console.Main
>         at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
>         at java.security.AccessController.doPrivileged(Native Method)
>         at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
>         at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
>         at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
>         at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
> Could not find the main class: org.apache.karaf.shell.console.Main.  Program will exit.
> The problem seems to be in the batch file (line 85):
> set CLASSPATH=%CLASSPATH#:%
> Note the path separator and the ending terminator for the CLASSPATH variable.
> After fixing it the error changed to:
> Exception in thread "main" java.lang.NullPointerException
>         at org.apache.karaf.shell.console.Main.getFiles(Main.java:297)
>         at org.apache.karaf.shell.console.Main.getFiles(Main.java:292)
>         at org.apache.karaf.shell.console.Main.run(Main.java:79)
>         at org.apache.karaf.shell.console.Main.main(Main.java:58)
> I checked in the trunk - the batch file is the same.

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


[jira] Updated: (KARAF-357) shell.bat won't start with NoClassDefFoundError and NPE

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

Guillaume Nodet updated KARAF-357:
----------------------------------

    Fix Version/s: 2.2.0
                   2.1.3

> shell.bat won't start with NoClassDefFoundError and NPE
> -------------------------------------------------------
>
>                 Key: KARAF-357
>                 URL: https://issues.apache.org/jira/browse/KARAF-357
>             Project: Karaf
>          Issue Type: Bug
>          Components: runtime
>    Affects Versions: 2.1.2, 2.1.3, 2.2.0
>         Environment: Windows 7 64 bit
>            Reporter: Hristo Spaschev Iliev
>            Assignee: Andreas Pieber
>            Priority: Minor
>             Fix For: 2.1.3, 2.2.0
>
>
> I tried to start shell.bat, but all I've got was NoClassDefFoundError:
> Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/karaf/shell/console/Main
> Caused by: java.lang.ClassNotFoundException: org.apache.karaf.shell.console.Main
>         at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
>         at java.security.AccessController.doPrivileged(Native Method)
>         at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
>         at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
>         at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
>         at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
> Could not find the main class: org.apache.karaf.shell.console.Main.  Program will exit.
> The problem seems to be in the batch file (line 85):
> set CLASSPATH=%CLASSPATH#:%
> Note the path separator and the ending terminator for the CLASSPATH variable.
> After fixing it the error changed to:
> Exception in thread "main" java.lang.NullPointerException
>         at org.apache.karaf.shell.console.Main.getFiles(Main.java:297)
>         at org.apache.karaf.shell.console.Main.getFiles(Main.java:292)
>         at org.apache.karaf.shell.console.Main.run(Main.java:79)
>         at org.apache.karaf.shell.console.Main.main(Main.java:58)
> I checked in the trunk - the batch file is the same.

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


[jira] Assigned: (KARAF-357) shell.bat won't start with NoClassDefFoundError and NPE

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

Andreas Pieber reassigned KARAF-357:
------------------------------------

    Assignee: Andreas Pieber

> shell.bat won't start with NoClassDefFoundError and NPE
> -------------------------------------------------------
>
>                 Key: KARAF-357
>                 URL: https://issues.apache.org/jira/browse/KARAF-357
>             Project: Karaf
>          Issue Type: Bug
>          Components: runtime
>    Affects Versions: 2.1.2, 2.1.3, 2.2.0
>         Environment: Windows 7 64 bit
>            Reporter: Hristo Spaschev Iliev
>            Assignee: Andreas Pieber
>            Priority: Minor
>
> I tried to start shell.bat, but all I've got was NoClassDefFoundError:
> Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/karaf/shell/console/Main
> Caused by: java.lang.ClassNotFoundException: org.apache.karaf.shell.console.Main
>         at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
>         at java.security.AccessController.doPrivileged(Native Method)
>         at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
>         at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
>         at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
>         at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
> Could not find the main class: org.apache.karaf.shell.console.Main.  Program will exit.
> The problem seems to be in the batch file (line 85):
> set CLASSPATH=%CLASSPATH#:%
> Note the path separator and the ending terminator for the CLASSPATH variable.
> After fixing it the error changed to:
> Exception in thread "main" java.lang.NullPointerException
>         at org.apache.karaf.shell.console.Main.getFiles(Main.java:297)
>         at org.apache.karaf.shell.console.Main.getFiles(Main.java:292)
>         at org.apache.karaf.shell.console.Main.run(Main.java:79)
>         at org.apache.karaf.shell.console.Main.main(Main.java:58)
> I checked in the trunk - the batch file is the same.

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


[jira] Work started: (KARAF-357) shell.bat won't start with NoClassDefFoundError and NPE

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

Work on KARAF-357 started by Andreas Pieber.

> shell.bat won't start with NoClassDefFoundError and NPE
> -------------------------------------------------------
>
>                 Key: KARAF-357
>                 URL: https://issues.apache.org/jira/browse/KARAF-357
>             Project: Karaf
>          Issue Type: Bug
>          Components: runtime
>    Affects Versions: 2.1.2, 2.1.3, 2.2.0
>         Environment: Windows 7 64 bit
>            Reporter: Hristo Spaschev Iliev
>            Assignee: Andreas Pieber
>            Priority: Minor
>
> I tried to start shell.bat, but all I've got was NoClassDefFoundError:
> Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/karaf/shell/console/Main
> Caused by: java.lang.ClassNotFoundException: org.apache.karaf.shell.console.Main
>         at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
>         at java.security.AccessController.doPrivileged(Native Method)
>         at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
>         at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
>         at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
>         at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
> Could not find the main class: org.apache.karaf.shell.console.Main.  Program will exit.
> The problem seems to be in the batch file (line 85):
> set CLASSPATH=%CLASSPATH#:%
> Note the path separator and the ending terminator for the CLASSPATH variable.
> After fixing it the error changed to:
> Exception in thread "main" java.lang.NullPointerException
>         at org.apache.karaf.shell.console.Main.getFiles(Main.java:297)
>         at org.apache.karaf.shell.console.Main.getFiles(Main.java:292)
>         at org.apache.karaf.shell.console.Main.run(Main.java:79)
>         at org.apache.karaf.shell.console.Main.main(Main.java:58)
> I checked in the trunk - the batch file is the same.

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


[jira] Updated: (KARAF-357) shell.bat won't start with NoClassDefFoundError and NPE

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

Andreas Pieber updated KARAF-357:
---------------------------------


ok, same problem on my 32bit windows7 virtualbox

> shell.bat won't start with NoClassDefFoundError and NPE
> -------------------------------------------------------
>
>                 Key: KARAF-357
>                 URL: https://issues.apache.org/jira/browse/KARAF-357
>             Project: Karaf
>          Issue Type: Bug
>          Components: runtime
>    Affects Versions: 2.1.2, 2.1.3, 2.2.0
>         Environment: Windows 7 64 bit
>            Reporter: Hristo Spaschev Iliev
>            Priority: Minor
>
> I tried to start shell.bat, but all I've got was NoClassDefFoundError:
> Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/karaf/shell/console/Main
> Caused by: java.lang.ClassNotFoundException: org.apache.karaf.shell.console.Main
>         at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
>         at java.security.AccessController.doPrivileged(Native Method)
>         at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
>         at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
>         at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
>         at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
> Could not find the main class: org.apache.karaf.shell.console.Main.  Program will exit.
> The problem seems to be in the batch file (line 85):
> set CLASSPATH=%CLASSPATH#:%
> Note the path separator and the ending terminator for the CLASSPATH variable.
> After fixing it the error changed to:
> Exception in thread "main" java.lang.NullPointerException
>         at org.apache.karaf.shell.console.Main.getFiles(Main.java:297)
>         at org.apache.karaf.shell.console.Main.getFiles(Main.java:292)
>         at org.apache.karaf.shell.console.Main.run(Main.java:79)
>         at org.apache.karaf.shell.console.Main.main(Main.java:58)
> I checked in the trunk - the batch file is the same.

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