You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@karaf.apache.org by "Christian Schneider (JIRA)" <ji...@apache.org> on 2012/06/14 14:21:42 UTC

[jira] [Created] (KARAF-1547) NullpointerException when running commands on jdk 6 update 33 or jdk 7 update 5

Christian Schneider created KARAF-1547:
------------------------------------------

             Summary: NullpointerException when running commands on jdk 6 update 33 or jdk 7 update 5
                 Key: KARAF-1547
                 URL: https://issues.apache.org/jira/browse/KARAF-1547
             Project: Karaf
          Issue Type: Bug
          Components: karaf-shell
    Affects Versions: 3.0.0
            Reporter: Christian Schneider
             Fix For: 3.0.0


Start fresh karaf 3

Karaf seems to come up fine but when you enter any command you get:

2012-06-14 14:15:33,306 | INFO  | Thread-8         | Console                          | 39 - org.apache.karaf.shell.console - 3.0.0.SNAPSHOT | Exception caught while executing command
java.lang.NullPointerException
	at org.apache.felix.gogo.runtime.Reflective.invoke(Reflective.java:61)
	at org.apache.felix.gogo.runtime.CommandProxy.execute(CommandProxy.java:82)
	at org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:477)
	at org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:403)
	at org.apache.felix.gogo.runtime.Pipe.run(Pipe.java:108)
	at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:183)
	at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:120)
	at org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:477)
	at org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:403)
	at org.apache.felix.gogo.runtime.Pipe.run(Pipe.java:108)
	at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:183)
	at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:120)
	at org.apache.felix.gogo.runtime.CommandSessionImpl.execute(CommandSessionImpl.java:89)
	at org.apache.karaf.shell.console.impl.jline.ConsoleImpl.run(ConsoleImpl.java:169)
	at java.lang.Thread.run(Thread.java:662)[:1.6.0_33]
	at org.apache.karaf.shell.console.impl.jline.ConsoleFactoryService$3.doRun(ConsoleFactoryService.java:87)[39:org.apache.karaf.shell.console:3.0.0.SNAPSHOT]
	at org.apache.karaf.shell.console.impl.jline.ConsoleFactoryService$3$1.run(ConsoleFactoryService.java:78)
	at java.security.AccessController.doPrivileged(Native Method)[:1.6.0_33]
	at javax.security.auth.Subject.doAs(Subject.java:337)[:1.6.0_33]
	at org.apache.karaf.shell.console.impl.jline.ConsoleFactoryService$3.run(ConsoleFactoryService.java:76)[39:org.apache.karaf.shell.console:3.0.0.SNAPSHOT]

--
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] [Reopened] (KARAF-1547) NullpointerException when running commands on jdk 6 update 33 or jdk 7 update 5

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

Jean-Baptiste Onofré reopened KARAF-1547:
-----------------------------------------

      Assignee:     (was: Christian Schneider)
    
> NullpointerException when running commands on jdk 6 update 33 or jdk 7 update 5
> -------------------------------------------------------------------------------
>
>                 Key: KARAF-1547
>                 URL: https://issues.apache.org/jira/browse/KARAF-1547
>             Project: Karaf
>          Issue Type: Bug
>          Components: karaf-shell
>    Affects Versions: 2.2.8, 2.3.0, 3.0.0
>            Reporter: Christian Schneider
>             Fix For: 2.2.9, 2.3.0, 3.0.0
>
>
> Start fresh karaf 3
> Karaf seems to come up fine but when you enter any command you get:
> 2012-06-14 14:15:33,306 | INFO  | Thread-8         | Console                          | 39 - org.apache.karaf.shell.console - 3.0.0.SNAPSHOT | Exception caught while executing command
> java.lang.NullPointerException
> 	at org.apache.felix.gogo.runtime.Reflective.invoke(Reflective.java:61)
> 	at org.apache.felix.gogo.runtime.CommandProxy.execute(CommandProxy.java:82)
> 	at org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:477)
> 	at org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:403)
> 	at org.apache.felix.gogo.runtime.Pipe.run(Pipe.java:108)
> 	at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:183)
> 	at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:120)
> 	at org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:477)
> 	at org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:403)
> 	at org.apache.felix.gogo.runtime.Pipe.run(Pipe.java:108)
> 	at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:183)
> 	at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:120)
> 	at org.apache.felix.gogo.runtime.CommandSessionImpl.execute(CommandSessionImpl.java:89)
> 	at org.apache.karaf.shell.console.impl.jline.ConsoleImpl.run(ConsoleImpl.java:169)
> 	at java.lang.Thread.run(Thread.java:662)[:1.6.0_33]
> 	at org.apache.karaf.shell.console.impl.jline.ConsoleFactoryService$3.doRun(ConsoleFactoryService.java:87)[39:org.apache.karaf.shell.console:3.0.0.SNAPSHOT]
> 	at org.apache.karaf.shell.console.impl.jline.ConsoleFactoryService$3$1.run(ConsoleFactoryService.java:78)
> 	at java.security.AccessController.doPrivileged(Native Method)[:1.6.0_33]
> 	at javax.security.auth.Subject.doAs(Subject.java:337)[:1.6.0_33]
> 	at org.apache.karaf.shell.console.impl.jline.ConsoleFactoryService$3.run(ConsoleFactoryService.java:76)[39:org.apache.karaf.shell.console:3.0.0.SNAPSHOT]

--
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] (KARAF-1547) NullpointerException when running commands on jdk 6 update 33 or jdk 7 update 5

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

Jean-Baptiste Onofré updated KARAF-1547:
----------------------------------------

    Affects Version/s: 2.3.0
                       2.2.8
        Fix Version/s: 2.3.0
                       2.2.9
    
> NullpointerException when running commands on jdk 6 update 33 or jdk 7 update 5
> -------------------------------------------------------------------------------
>
>                 Key: KARAF-1547
>                 URL: https://issues.apache.org/jira/browse/KARAF-1547
>             Project: Karaf
>          Issue Type: Bug
>          Components: karaf-shell
>    Affects Versions: 2.2.8, 2.3.0, 3.0.0
>            Reporter: Christian Schneider
>             Fix For: 2.2.9, 2.3.0, 3.0.0
>
>
> Start fresh karaf 3
> Karaf seems to come up fine but when you enter any command you get:
> 2012-06-14 14:15:33,306 | INFO  | Thread-8         | Console                          | 39 - org.apache.karaf.shell.console - 3.0.0.SNAPSHOT | Exception caught while executing command
> java.lang.NullPointerException
> 	at org.apache.felix.gogo.runtime.Reflective.invoke(Reflective.java:61)
> 	at org.apache.felix.gogo.runtime.CommandProxy.execute(CommandProxy.java:82)
> 	at org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:477)
> 	at org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:403)
> 	at org.apache.felix.gogo.runtime.Pipe.run(Pipe.java:108)
> 	at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:183)
> 	at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:120)
> 	at org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:477)
> 	at org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:403)
> 	at org.apache.felix.gogo.runtime.Pipe.run(Pipe.java:108)
> 	at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:183)
> 	at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:120)
> 	at org.apache.felix.gogo.runtime.CommandSessionImpl.execute(CommandSessionImpl.java:89)
> 	at org.apache.karaf.shell.console.impl.jline.ConsoleImpl.run(ConsoleImpl.java:169)
> 	at java.lang.Thread.run(Thread.java:662)[:1.6.0_33]
> 	at org.apache.karaf.shell.console.impl.jline.ConsoleFactoryService$3.doRun(ConsoleFactoryService.java:87)[39:org.apache.karaf.shell.console:3.0.0.SNAPSHOT]
> 	at org.apache.karaf.shell.console.impl.jline.ConsoleFactoryService$3$1.run(ConsoleFactoryService.java:78)
> 	at java.security.AccessController.doPrivileged(Native Method)[:1.6.0_33]
> 	at javax.security.auth.Subject.doAs(Subject.java:337)[:1.6.0_33]
> 	at org.apache.karaf.shell.console.impl.jline.ConsoleFactoryService$3.run(ConsoleFactoryService.java:76)[39:org.apache.karaf.shell.console:3.0.0.SNAPSHOT]

--
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] (KARAF-1547) NullpointerException when running commands on jdk 6 update 33 or jdk 7 update 5

Posted by "Christian Schneider (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/KARAF-1547?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13294988#comment-13294988 ] 

Christian Schneider commented on KARAF-1547:
--------------------------------------------

It seems the target in CommandProxy is null
                
> NullpointerException when running commands on jdk 6 update 33 or jdk 7 update 5
> -------------------------------------------------------------------------------
>
>                 Key: KARAF-1547
>                 URL: https://issues.apache.org/jira/browse/KARAF-1547
>             Project: Karaf
>          Issue Type: Bug
>          Components: karaf-shell
>    Affects Versions: 3.0.0
>            Reporter: Christian Schneider
>             Fix For: 3.0.0
>
>
> Start fresh karaf 3
> Karaf seems to come up fine but when you enter any command you get:
> 2012-06-14 14:15:33,306 | INFO  | Thread-8         | Console                          | 39 - org.apache.karaf.shell.console - 3.0.0.SNAPSHOT | Exception caught while executing command
> java.lang.NullPointerException
> 	at org.apache.felix.gogo.runtime.Reflective.invoke(Reflective.java:61)
> 	at org.apache.felix.gogo.runtime.CommandProxy.execute(CommandProxy.java:82)
> 	at org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:477)
> 	at org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:403)
> 	at org.apache.felix.gogo.runtime.Pipe.run(Pipe.java:108)
> 	at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:183)
> 	at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:120)
> 	at org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:477)
> 	at org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:403)
> 	at org.apache.felix.gogo.runtime.Pipe.run(Pipe.java:108)
> 	at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:183)
> 	at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:120)
> 	at org.apache.felix.gogo.runtime.CommandSessionImpl.execute(CommandSessionImpl.java:89)
> 	at org.apache.karaf.shell.console.impl.jline.ConsoleImpl.run(ConsoleImpl.java:169)
> 	at java.lang.Thread.run(Thread.java:662)[:1.6.0_33]
> 	at org.apache.karaf.shell.console.impl.jline.ConsoleFactoryService$3.doRun(ConsoleFactoryService.java:87)[39:org.apache.karaf.shell.console:3.0.0.SNAPSHOT]
> 	at org.apache.karaf.shell.console.impl.jline.ConsoleFactoryService$3$1.run(ConsoleFactoryService.java:78)
> 	at java.security.AccessController.doPrivileged(Native Method)[:1.6.0_33]
> 	at javax.security.auth.Subject.doAs(Subject.java:337)[:1.6.0_33]
> 	at org.apache.karaf.shell.console.impl.jline.ConsoleFactoryService$3.run(ConsoleFactoryService.java:76)[39:org.apache.karaf.shell.console:3.0.0.SNAPSHOT]

--
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] (KARAF-1547) NullpointerException when running commands on jdk 6 update 33 or jdk 7 update 5

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

Jamie goodyear resolved KARAF-1547.
-----------------------------------

    Resolution: Fixed
    
> NullpointerException when running commands on jdk 6 update 33 or jdk 7 update 5
> -------------------------------------------------------------------------------
>
>                 Key: KARAF-1547
>                 URL: https://issues.apache.org/jira/browse/KARAF-1547
>             Project: Karaf
>          Issue Type: Bug
>          Components: karaf-shell
>    Affects Versions: 2.2.8, 2.3.0, 3.0.0
>            Reporter: Christian Schneider
>            Assignee: Jean-Baptiste Onofré
>            Priority: Blocker
>             Fix For: 2.2.9, 2.3.0, 3.0.0
>
>         Attachments: KARAF-1547.patch
>
>
> Start fresh karaf 3
> Karaf seems to come up fine but when you enter any command you get:
> 2012-06-14 14:15:33,306 | INFO  | Thread-8         | Console                          | 39 - org.apache.karaf.shell.console - 3.0.0.SNAPSHOT | Exception caught while executing command
> java.lang.NullPointerException
> 	at org.apache.felix.gogo.runtime.Reflective.invoke(Reflective.java:61)
> 	at org.apache.felix.gogo.runtime.CommandProxy.execute(CommandProxy.java:82)
> 	at org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:477)
> 	at org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:403)
> 	at org.apache.felix.gogo.runtime.Pipe.run(Pipe.java:108)
> 	at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:183)
> 	at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:120)
> 	at org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:477)
> 	at org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:403)
> 	at org.apache.felix.gogo.runtime.Pipe.run(Pipe.java:108)
> 	at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:183)
> 	at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:120)
> 	at org.apache.felix.gogo.runtime.CommandSessionImpl.execute(CommandSessionImpl.java:89)
> 	at org.apache.karaf.shell.console.impl.jline.ConsoleImpl.run(ConsoleImpl.java:169)
> 	at java.lang.Thread.run(Thread.java:662)[:1.6.0_33]
> 	at org.apache.karaf.shell.console.impl.jline.ConsoleFactoryService$3.doRun(ConsoleFactoryService.java:87)[39:org.apache.karaf.shell.console:3.0.0.SNAPSHOT]
> 	at org.apache.karaf.shell.console.impl.jline.ConsoleFactoryService$3$1.run(ConsoleFactoryService.java:78)
> 	at java.security.AccessController.doPrivileged(Native Method)[:1.6.0_33]
> 	at javax.security.auth.Subject.doAs(Subject.java:337)[:1.6.0_33]
> 	at org.apache.karaf.shell.console.impl.jline.ConsoleFactoryService$3.run(ConsoleFactoryService.java:76)[39:org.apache.karaf.shell.console:3.0.0.SNAPSHOT]

--
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] (KARAF-1547) NullpointerException when running commands on jdk 6 update 33 or jdk 7 update 5

Posted by "Daniel Kulp (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/KARAF-1547?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13295230#comment-13295230 ] 

Daniel Kulp commented on KARAF-1547:
------------------------------------

It's a VerifyException while the JVM is trying to verify the class.  Looks like the ASM stuff is generating an invalid class.   THAT is not going to be fun.  :-(
                
> NullpointerException when running commands on jdk 6 update 33 or jdk 7 update 5
> -------------------------------------------------------------------------------
>
>                 Key: KARAF-1547
>                 URL: https://issues.apache.org/jira/browse/KARAF-1547
>             Project: Karaf
>          Issue Type: Bug
>          Components: karaf-shell
>    Affects Versions: 3.0.0
>            Reporter: Christian Schneider
>             Fix For: 3.0.0
>
>
> Start fresh karaf 3
> Karaf seems to come up fine but when you enter any command you get:
> 2012-06-14 14:15:33,306 | INFO  | Thread-8         | Console                          | 39 - org.apache.karaf.shell.console - 3.0.0.SNAPSHOT | Exception caught while executing command
> java.lang.NullPointerException
> 	at org.apache.felix.gogo.runtime.Reflective.invoke(Reflective.java:61)
> 	at org.apache.felix.gogo.runtime.CommandProxy.execute(CommandProxy.java:82)
> 	at org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:477)
> 	at org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:403)
> 	at org.apache.felix.gogo.runtime.Pipe.run(Pipe.java:108)
> 	at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:183)
> 	at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:120)
> 	at org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:477)
> 	at org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:403)
> 	at org.apache.felix.gogo.runtime.Pipe.run(Pipe.java:108)
> 	at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:183)
> 	at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:120)
> 	at org.apache.felix.gogo.runtime.CommandSessionImpl.execute(CommandSessionImpl.java:89)
> 	at org.apache.karaf.shell.console.impl.jline.ConsoleImpl.run(ConsoleImpl.java:169)
> 	at java.lang.Thread.run(Thread.java:662)[:1.6.0_33]
> 	at org.apache.karaf.shell.console.impl.jline.ConsoleFactoryService$3.doRun(ConsoleFactoryService.java:87)[39:org.apache.karaf.shell.console:3.0.0.SNAPSHOT]
> 	at org.apache.karaf.shell.console.impl.jline.ConsoleFactoryService$3$1.run(ConsoleFactoryService.java:78)
> 	at java.security.AccessController.doPrivileged(Native Method)[:1.6.0_33]
> 	at javax.security.auth.Subject.doAs(Subject.java:337)[:1.6.0_33]
> 	at org.apache.karaf.shell.console.impl.jline.ConsoleFactoryService$3.run(ConsoleFactoryService.java:76)[39:org.apache.karaf.shell.console:3.0.0.SNAPSHOT]

--
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] (KARAF-1547) NullpointerException when running commands on jdk 6 update 33 or jdk 7 update 5

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

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

As explain on IRC, it works with ASM. Aries Proxy uses ASM if presents, but "fallback" to JDK proxy if ASM is not present. So ASM is "optional" for Aries Proxy.

Removing ASM bundle from startup.properties works. So the problem looks inside ASM or Aries Proxy usage of ASM.

However, Aries Proxy delegating to JDK proxy suffered to an issue with some class generation (I raise a Jira at Aries for that), let me check if it's still the case.
                
> NullpointerException when running commands on jdk 6 update 33 or jdk 7 update 5
> -------------------------------------------------------------------------------
>
>                 Key: KARAF-1547
>                 URL: https://issues.apache.org/jira/browse/KARAF-1547
>             Project: Karaf
>          Issue Type: Bug
>          Components: karaf-shell
>    Affects Versions: 3.0.0
>            Reporter: Christian Schneider
>             Fix For: 3.0.0
>
>
> Start fresh karaf 3
> Karaf seems to come up fine but when you enter any command you get:
> 2012-06-14 14:15:33,306 | INFO  | Thread-8         | Console                          | 39 - org.apache.karaf.shell.console - 3.0.0.SNAPSHOT | Exception caught while executing command
> java.lang.NullPointerException
> 	at org.apache.felix.gogo.runtime.Reflective.invoke(Reflective.java:61)
> 	at org.apache.felix.gogo.runtime.CommandProxy.execute(CommandProxy.java:82)
> 	at org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:477)
> 	at org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:403)
> 	at org.apache.felix.gogo.runtime.Pipe.run(Pipe.java:108)
> 	at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:183)
> 	at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:120)
> 	at org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:477)
> 	at org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:403)
> 	at org.apache.felix.gogo.runtime.Pipe.run(Pipe.java:108)
> 	at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:183)
> 	at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:120)
> 	at org.apache.felix.gogo.runtime.CommandSessionImpl.execute(CommandSessionImpl.java:89)
> 	at org.apache.karaf.shell.console.impl.jline.ConsoleImpl.run(ConsoleImpl.java:169)
> 	at java.lang.Thread.run(Thread.java:662)[:1.6.0_33]
> 	at org.apache.karaf.shell.console.impl.jline.ConsoleFactoryService$3.doRun(ConsoleFactoryService.java:87)[39:org.apache.karaf.shell.console:3.0.0.SNAPSHOT]
> 	at org.apache.karaf.shell.console.impl.jline.ConsoleFactoryService$3$1.run(ConsoleFactoryService.java:78)
> 	at java.security.AccessController.doPrivileged(Native Method)[:1.6.0_33]
> 	at javax.security.auth.Subject.doAs(Subject.java:337)[:1.6.0_33]
> 	at org.apache.karaf.shell.console.impl.jline.ConsoleFactoryService$3.run(ConsoleFactoryService.java:76)[39:org.apache.karaf.shell.console:3.0.0.SNAPSHOT]

--
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] (KARAF-1547) NullpointerException when running commands on jdk 6 update 33 or jdk 7 update 5

Posted by "Christian Schneider (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/KARAF-1547?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13295250#comment-13295250 ] 

Christian Schneider commented on KARAF-1547:
--------------------------------------------

Yes I also suspected that but I have no knowledge of ASM so no idea how to check or fix this.
                
> NullpointerException when running commands on jdk 6 update 33 or jdk 7 update 5
> -------------------------------------------------------------------------------
>
>                 Key: KARAF-1547
>                 URL: https://issues.apache.org/jira/browse/KARAF-1547
>             Project: Karaf
>          Issue Type: Bug
>          Components: karaf-shell
>    Affects Versions: 3.0.0
>            Reporter: Christian Schneider
>             Fix For: 3.0.0
>
>
> Start fresh karaf 3
> Karaf seems to come up fine but when you enter any command you get:
> 2012-06-14 14:15:33,306 | INFO  | Thread-8         | Console                          | 39 - org.apache.karaf.shell.console - 3.0.0.SNAPSHOT | Exception caught while executing command
> java.lang.NullPointerException
> 	at org.apache.felix.gogo.runtime.Reflective.invoke(Reflective.java:61)
> 	at org.apache.felix.gogo.runtime.CommandProxy.execute(CommandProxy.java:82)
> 	at org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:477)
> 	at org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:403)
> 	at org.apache.felix.gogo.runtime.Pipe.run(Pipe.java:108)
> 	at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:183)
> 	at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:120)
> 	at org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:477)
> 	at org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:403)
> 	at org.apache.felix.gogo.runtime.Pipe.run(Pipe.java:108)
> 	at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:183)
> 	at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:120)
> 	at org.apache.felix.gogo.runtime.CommandSessionImpl.execute(CommandSessionImpl.java:89)
> 	at org.apache.karaf.shell.console.impl.jline.ConsoleImpl.run(ConsoleImpl.java:169)
> 	at java.lang.Thread.run(Thread.java:662)[:1.6.0_33]
> 	at org.apache.karaf.shell.console.impl.jline.ConsoleFactoryService$3.doRun(ConsoleFactoryService.java:87)[39:org.apache.karaf.shell.console:3.0.0.SNAPSHOT]
> 	at org.apache.karaf.shell.console.impl.jline.ConsoleFactoryService$3$1.run(ConsoleFactoryService.java:78)
> 	at java.security.AccessController.doPrivileged(Native Method)[:1.6.0_33]
> 	at javax.security.auth.Subject.doAs(Subject.java:337)[:1.6.0_33]
> 	at org.apache.karaf.shell.console.impl.jline.ConsoleFactoryService$3.run(ConsoleFactoryService.java:76)[39:org.apache.karaf.shell.console:3.0.0.SNAPSHOT]

--
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] (KARAF-1547) NullpointerException when running commands on jdk 6 update 33 or jdk 7 update 5

Posted by "Achim Nierbeck (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/KARAF-1547?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13414886#comment-13414886 ] 

Achim Nierbeck commented on KARAF-1547:
---------------------------------------

so this is a blocker then ...

                
> NullpointerException when running commands on jdk 6 update 33 or jdk 7 update 5
> -------------------------------------------------------------------------------
>
>                 Key: KARAF-1547
>                 URL: https://issues.apache.org/jira/browse/KARAF-1547
>             Project: Karaf
>          Issue Type: Bug
>          Components: karaf-shell
>    Affects Versions: 2.2.8, 2.3.0, 3.0.0
>            Reporter: Christian Schneider
>            Assignee: Jean-Baptiste Onofré
>            Priority: Blocker
>             Fix For: 2.2.9, 2.3.0, 3.0.0
>
>         Attachments: KARAF-1547.patch
>
>
> Start fresh karaf 3
> Karaf seems to come up fine but when you enter any command you get:
> 2012-06-14 14:15:33,306 | INFO  | Thread-8         | Console                          | 39 - org.apache.karaf.shell.console - 3.0.0.SNAPSHOT | Exception caught while executing command
> java.lang.NullPointerException
> 	at org.apache.felix.gogo.runtime.Reflective.invoke(Reflective.java:61)
> 	at org.apache.felix.gogo.runtime.CommandProxy.execute(CommandProxy.java:82)
> 	at org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:477)
> 	at org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:403)
> 	at org.apache.felix.gogo.runtime.Pipe.run(Pipe.java:108)
> 	at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:183)
> 	at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:120)
> 	at org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:477)
> 	at org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:403)
> 	at org.apache.felix.gogo.runtime.Pipe.run(Pipe.java:108)
> 	at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:183)
> 	at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:120)
> 	at org.apache.felix.gogo.runtime.CommandSessionImpl.execute(CommandSessionImpl.java:89)
> 	at org.apache.karaf.shell.console.impl.jline.ConsoleImpl.run(ConsoleImpl.java:169)
> 	at java.lang.Thread.run(Thread.java:662)[:1.6.0_33]
> 	at org.apache.karaf.shell.console.impl.jline.ConsoleFactoryService$3.doRun(ConsoleFactoryService.java:87)[39:org.apache.karaf.shell.console:3.0.0.SNAPSHOT]
> 	at org.apache.karaf.shell.console.impl.jline.ConsoleFactoryService$3$1.run(ConsoleFactoryService.java:78)
> 	at java.security.AccessController.doPrivileged(Native Method)[:1.6.0_33]
> 	at javax.security.auth.Subject.doAs(Subject.java:337)[:1.6.0_33]
> 	at org.apache.karaf.shell.console.impl.jline.ConsoleFactoryService$3.run(ConsoleFactoryService.java:76)[39:org.apache.karaf.shell.console:3.0.0.SNAPSHOT]

--
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] (KARAF-1547) NullpointerException when running commands on jdk 6 update 33 or jdk 7 update 5

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

Christian Schneider resolved KARAF-1547.
----------------------------------------

    Resolution: Fixed
      Assignee: Christian Schneider

The fix in aries works and the NPE does not happen anymore
                
> NullpointerException when running commands on jdk 6 update 33 or jdk 7 update 5
> -------------------------------------------------------------------------------
>
>                 Key: KARAF-1547
>                 URL: https://issues.apache.org/jira/browse/KARAF-1547
>             Project: Karaf
>          Issue Type: Bug
>          Components: karaf-shell
>    Affects Versions: 3.0.0
>            Reporter: Christian Schneider
>            Assignee: Christian Schneider
>             Fix For: 3.0.0
>
>
> Start fresh karaf 3
> Karaf seems to come up fine but when you enter any command you get:
> 2012-06-14 14:15:33,306 | INFO  | Thread-8         | Console                          | 39 - org.apache.karaf.shell.console - 3.0.0.SNAPSHOT | Exception caught while executing command
> java.lang.NullPointerException
> 	at org.apache.felix.gogo.runtime.Reflective.invoke(Reflective.java:61)
> 	at org.apache.felix.gogo.runtime.CommandProxy.execute(CommandProxy.java:82)
> 	at org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:477)
> 	at org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:403)
> 	at org.apache.felix.gogo.runtime.Pipe.run(Pipe.java:108)
> 	at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:183)
> 	at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:120)
> 	at org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:477)
> 	at org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:403)
> 	at org.apache.felix.gogo.runtime.Pipe.run(Pipe.java:108)
> 	at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:183)
> 	at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:120)
> 	at org.apache.felix.gogo.runtime.CommandSessionImpl.execute(CommandSessionImpl.java:89)
> 	at org.apache.karaf.shell.console.impl.jline.ConsoleImpl.run(ConsoleImpl.java:169)
> 	at java.lang.Thread.run(Thread.java:662)[:1.6.0_33]
> 	at org.apache.karaf.shell.console.impl.jline.ConsoleFactoryService$3.doRun(ConsoleFactoryService.java:87)[39:org.apache.karaf.shell.console:3.0.0.SNAPSHOT]
> 	at org.apache.karaf.shell.console.impl.jline.ConsoleFactoryService$3$1.run(ConsoleFactoryService.java:78)
> 	at java.security.AccessController.doPrivileged(Native Method)[:1.6.0_33]
> 	at javax.security.auth.Subject.doAs(Subject.java:337)[:1.6.0_33]
> 	at org.apache.karaf.shell.console.impl.jline.ConsoleFactoryService$3.run(ConsoleFactoryService.java:76)[39:org.apache.karaf.shell.console:3.0.0.SNAPSHOT]

--
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] (KARAF-1547) NullpointerException when running commands on jdk 6 update 33 or jdk 7 update 5

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

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

Karaf 2.2.9-SNAPSHOT updated to Aries Blueprint 0.3.2, let see if the problem occurs with this version.
                
> NullpointerException when running commands on jdk 6 update 33 or jdk 7 update 5
> -------------------------------------------------------------------------------
>
>                 Key: KARAF-1547
>                 URL: https://issues.apache.org/jira/browse/KARAF-1547
>             Project: Karaf
>          Issue Type: Bug
>          Components: karaf-shell
>    Affects Versions: 2.2.8, 2.3.0, 3.0.0
>            Reporter: Christian Schneider
>            Assignee: Jean-Baptiste Onofré
>            Priority: Blocker
>             Fix For: 2.2.9, 2.3.0, 3.0.0
>
>         Attachments: KARAF-1547.patch
>
>
> Start fresh karaf 3
> Karaf seems to come up fine but when you enter any command you get:
> 2012-06-14 14:15:33,306 | INFO  | Thread-8         | Console                          | 39 - org.apache.karaf.shell.console - 3.0.0.SNAPSHOT | Exception caught while executing command
> java.lang.NullPointerException
> 	at org.apache.felix.gogo.runtime.Reflective.invoke(Reflective.java:61)
> 	at org.apache.felix.gogo.runtime.CommandProxy.execute(CommandProxy.java:82)
> 	at org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:477)
> 	at org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:403)
> 	at org.apache.felix.gogo.runtime.Pipe.run(Pipe.java:108)
> 	at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:183)
> 	at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:120)
> 	at org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:477)
> 	at org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:403)
> 	at org.apache.felix.gogo.runtime.Pipe.run(Pipe.java:108)
> 	at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:183)
> 	at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:120)
> 	at org.apache.felix.gogo.runtime.CommandSessionImpl.execute(CommandSessionImpl.java:89)
> 	at org.apache.karaf.shell.console.impl.jline.ConsoleImpl.run(ConsoleImpl.java:169)
> 	at java.lang.Thread.run(Thread.java:662)[:1.6.0_33]
> 	at org.apache.karaf.shell.console.impl.jline.ConsoleFactoryService$3.doRun(ConsoleFactoryService.java:87)[39:org.apache.karaf.shell.console:3.0.0.SNAPSHOT]
> 	at org.apache.karaf.shell.console.impl.jline.ConsoleFactoryService$3$1.run(ConsoleFactoryService.java:78)
> 	at java.security.AccessController.doPrivileged(Native Method)[:1.6.0_33]
> 	at javax.security.auth.Subject.doAs(Subject.java:337)[:1.6.0_33]
> 	at org.apache.karaf.shell.console.impl.jline.ConsoleFactoryService$3.run(ConsoleFactoryService.java:76)[39:org.apache.karaf.shell.console:3.0.0.SNAPSHOT]

--
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] (KARAF-1547) NullpointerException when running commands on jdk 6 update 33 or jdk 7 update 5

Posted by "Achim Nierbeck (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/KARAF-1547?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13423459#comment-13423459 ] 

Achim Nierbeck commented on KARAF-1547:
---------------------------------------

Just some experiences I made recently with a openjdk 1.6.0 u 22
I've seen the following exception which might be related: 

{code}
2012-07-13 13:01:27,039 | ERROR | rint Extender: 1 | BlueprintContainerImpl | 9 - org.apache.aries.blueprint - 0.3.2 | Unable to start blueprint container for bundle de.XXXXXXXX
org.osgi.service.blueprint.container.ComponentDefinitionException: Unable to instantiate components
        at org.apache.aries.blueprint.container.BlueprintContainerImpl.instantiateEagerComponents(BlueprintContainerImpl.java:635)[9:org.apache.aries.blueprint:0.3.2]
        at org.apache.aries.blueprint.container.BlueprintContainerImpl.doRun(BlueprintContainerImpl.java:337)[9:org.apache.aries.blueprint:0.3.2]
        at org.apache.aries.blueprint.container.BlueprintContainerImpl.run(BlueprintContainerImpl.java:230)[9:org.apache.aries.blueprint:0.3.2]
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)[:1.6.0_22]
        at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)[:1.6.0_22]
        at java.util.concurrent.FutureTask.run(FutureTask.java:166)[:1.6.0_22]
        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:165)[:1.6.0_22]
        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:266)[:1.6.0_22]
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)[:1.6.0_22]
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)[:1.6.0_22]
        at java.lang.Thread.run(Thread.java:679)[:1.6.0_22]
Caused by: java.lang.VerifyError: (class: de/XXXXXXXXX/$ProductionJpaDao1195944438, method: <init> signature: (Ljava/lang/reflect/InvocationHandler;)V) Call to wrong initialization method
        at java.lang.Class.getDeclaredConstructors0(Native Method)[:1.6.0_22]
        at java.lang.Class.privateGetDeclaredConstructors(Class.java:2406)[:1.6.0_22]
        at java.lang.Class.getConstructor0(Class.java:2716)[:1.6.0_22]
        at java.lang.Class.getConstructor(Class.java:1674)[:1.6.0_22]
        at org.apache.aries.proxy.impl.gen.ProxySubclassGenerator.newProxySubclassInstance(ProxySubclassGenerator.java:159)
        at org.apache.aries.proxy.impl.AsmProxyManager.createNewProxy(AsmProxyManager.java:81)
        at org.apache.aries.proxy.impl.AbstractProxyManager.createProxy(AbstractProxyManager.java:50)
        at org.apache.aries.blueprint.container.BeanRecipe.addInterceptors(BeanRecipe.java:690)[9:org.apache.aries.blueprint:0.3.2]
        at org.apache.aries.blueprint.container.BeanRecipe.internalCreate(BeanRecipe.java:730)[9:org.apache.aries.blueprint:0.3.2]
        at org.apache.aries.blueprint.di.AbstractRecipe.create(AbstractRecipe.java:64)[9:org.apache.aries.blueprint:0.3.2]
        at org.apache.aries.blueprint.container.BlueprintRepository.createInstances(BlueprintRepository.java:219)[9:org.apache.aries.blueprint:0.3.2]
        at org.apache.aries.blueprint.container.BlueprintRepository.createAll(BlueprintRepository.java:147)[9:org.apache.aries.blueprint:0.3.2]
        at org.apache.aries.blueprint.container.BlueprintContainerImpl.instantiateEagerComponents(BlueprintContainerImpl.java:631)[9:org.apache.aries.blueprint:0.3.2]
        ... 10 more
{code}
                
> NullpointerException when running commands on jdk 6 update 33 or jdk 7 update 5
> -------------------------------------------------------------------------------
>
>                 Key: KARAF-1547
>                 URL: https://issues.apache.org/jira/browse/KARAF-1547
>             Project: Karaf
>          Issue Type: Bug
>          Components: karaf-shell
>    Affects Versions: 2.2.8, 2.3.0, 3.0.0
>            Reporter: Christian Schneider
>            Assignee: Jean-Baptiste Onofré
>            Priority: Blocker
>             Fix For: 2.2.9, 2.3.0, 3.0.0
>
>         Attachments: KARAF-1547.patch
>
>
> Start fresh karaf 3
> Karaf seems to come up fine but when you enter any command you get:
> 2012-06-14 14:15:33,306 | INFO  | Thread-8         | Console                          | 39 - org.apache.karaf.shell.console - 3.0.0.SNAPSHOT | Exception caught while executing command
> java.lang.NullPointerException
> 	at org.apache.felix.gogo.runtime.Reflective.invoke(Reflective.java:61)
> 	at org.apache.felix.gogo.runtime.CommandProxy.execute(CommandProxy.java:82)
> 	at org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:477)
> 	at org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:403)
> 	at org.apache.felix.gogo.runtime.Pipe.run(Pipe.java:108)
> 	at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:183)
> 	at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:120)
> 	at org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:477)
> 	at org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:403)
> 	at org.apache.felix.gogo.runtime.Pipe.run(Pipe.java:108)
> 	at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:183)
> 	at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:120)
> 	at org.apache.felix.gogo.runtime.CommandSessionImpl.execute(CommandSessionImpl.java:89)
> 	at org.apache.karaf.shell.console.impl.jline.ConsoleImpl.run(ConsoleImpl.java:169)
> 	at java.lang.Thread.run(Thread.java:662)[:1.6.0_33]
> 	at org.apache.karaf.shell.console.impl.jline.ConsoleFactoryService$3.doRun(ConsoleFactoryService.java:87)[39:org.apache.karaf.shell.console:3.0.0.SNAPSHOT]
> 	at org.apache.karaf.shell.console.impl.jline.ConsoleFactoryService$3$1.run(ConsoleFactoryService.java:78)
> 	at java.security.AccessController.doPrivileged(Native Method)[:1.6.0_33]
> 	at javax.security.auth.Subject.doAs(Subject.java:337)[:1.6.0_33]
> 	at org.apache.karaf.shell.console.impl.jline.ConsoleFactoryService$3.run(ConsoleFactoryService.java:76)[39:org.apache.karaf.shell.console:3.0.0.SNAPSHOT]

--
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] (KARAF-1547) NullpointerException when running commands on jdk 6 update 33 or jdk 7 update 5

Posted by "Christian Schneider (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/KARAF-1547?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13295076#comment-13295076 ] 

Christian Schneider commented on KARAF-1547:
--------------------------------------------

Tracked it down deeper into the proxy:
The exception happens in 
org.apache.aries.proxy.impl.gen.ProxySubclassGenerator.newProxySubclassInstance

There it gets a proxy for org.apache.karaf.shell.console.commands.BlueprintCommand. Then the exception happens when it tries to get the constructor for the class.


                
> NullpointerException when running commands on jdk 6 update 33 or jdk 7 update 5
> -------------------------------------------------------------------------------
>
>                 Key: KARAF-1547
>                 URL: https://issues.apache.org/jira/browse/KARAF-1547
>             Project: Karaf
>          Issue Type: Bug
>          Components: karaf-shell
>    Affects Versions: 3.0.0
>            Reporter: Christian Schneider
>             Fix For: 3.0.0
>
>
> Start fresh karaf 3
> Karaf seems to come up fine but when you enter any command you get:
> 2012-06-14 14:15:33,306 | INFO  | Thread-8         | Console                          | 39 - org.apache.karaf.shell.console - 3.0.0.SNAPSHOT | Exception caught while executing command
> java.lang.NullPointerException
> 	at org.apache.felix.gogo.runtime.Reflective.invoke(Reflective.java:61)
> 	at org.apache.felix.gogo.runtime.CommandProxy.execute(CommandProxy.java:82)
> 	at org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:477)
> 	at org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:403)
> 	at org.apache.felix.gogo.runtime.Pipe.run(Pipe.java:108)
> 	at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:183)
> 	at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:120)
> 	at org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:477)
> 	at org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:403)
> 	at org.apache.felix.gogo.runtime.Pipe.run(Pipe.java:108)
> 	at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:183)
> 	at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:120)
> 	at org.apache.felix.gogo.runtime.CommandSessionImpl.execute(CommandSessionImpl.java:89)
> 	at org.apache.karaf.shell.console.impl.jline.ConsoleImpl.run(ConsoleImpl.java:169)
> 	at java.lang.Thread.run(Thread.java:662)[:1.6.0_33]
> 	at org.apache.karaf.shell.console.impl.jline.ConsoleFactoryService$3.doRun(ConsoleFactoryService.java:87)[39:org.apache.karaf.shell.console:3.0.0.SNAPSHOT]
> 	at org.apache.karaf.shell.console.impl.jline.ConsoleFactoryService$3$1.run(ConsoleFactoryService.java:78)
> 	at java.security.AccessController.doPrivileged(Native Method)[:1.6.0_33]
> 	at javax.security.auth.Subject.doAs(Subject.java:337)[:1.6.0_33]
> 	at org.apache.karaf.shell.console.impl.jline.ConsoleFactoryService$3.run(ConsoleFactoryService.java:76)[39:org.apache.karaf.shell.console:3.0.0.SNAPSHOT]

--
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] [Comment Edited] (KARAF-1547) NullpointerException when running commands on jdk 6 update 33 or jdk 7 update 5

Posted by "Daniel Kulp (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/KARAF-1547?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13295230#comment-13295230 ] 

Daniel Kulp edited comment on KARAF-1547 at 6/14/12 6:51 PM:
-------------------------------------------------------------

It's a VerifyError while the JVM is trying to verify the class.  Looks like the ASM stuff is generating an invalid class.   THAT is not going to be fun.  :-(
                
      was (Author: dkulp):
    It's a VerifyException while the JVM is trying to verify the class.  Looks like the ASM stuff is generating an invalid class.   THAT is not going to be fun.  :-(
                  
> NullpointerException when running commands on jdk 6 update 33 or jdk 7 update 5
> -------------------------------------------------------------------------------
>
>                 Key: KARAF-1547
>                 URL: https://issues.apache.org/jira/browse/KARAF-1547
>             Project: Karaf
>          Issue Type: Bug
>          Components: karaf-shell
>    Affects Versions: 3.0.0
>            Reporter: Christian Schneider
>             Fix For: 3.0.0
>
>
> Start fresh karaf 3
> Karaf seems to come up fine but when you enter any command you get:
> 2012-06-14 14:15:33,306 | INFO  | Thread-8         | Console                          | 39 - org.apache.karaf.shell.console - 3.0.0.SNAPSHOT | Exception caught while executing command
> java.lang.NullPointerException
> 	at org.apache.felix.gogo.runtime.Reflective.invoke(Reflective.java:61)
> 	at org.apache.felix.gogo.runtime.CommandProxy.execute(CommandProxy.java:82)
> 	at org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:477)
> 	at org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:403)
> 	at org.apache.felix.gogo.runtime.Pipe.run(Pipe.java:108)
> 	at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:183)
> 	at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:120)
> 	at org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:477)
> 	at org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:403)
> 	at org.apache.felix.gogo.runtime.Pipe.run(Pipe.java:108)
> 	at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:183)
> 	at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:120)
> 	at org.apache.felix.gogo.runtime.CommandSessionImpl.execute(CommandSessionImpl.java:89)
> 	at org.apache.karaf.shell.console.impl.jline.ConsoleImpl.run(ConsoleImpl.java:169)
> 	at java.lang.Thread.run(Thread.java:662)[:1.6.0_33]
> 	at org.apache.karaf.shell.console.impl.jline.ConsoleFactoryService$3.doRun(ConsoleFactoryService.java:87)[39:org.apache.karaf.shell.console:3.0.0.SNAPSHOT]
> 	at org.apache.karaf.shell.console.impl.jline.ConsoleFactoryService$3$1.run(ConsoleFactoryService.java:78)
> 	at java.security.AccessController.doPrivileged(Native Method)[:1.6.0_33]
> 	at javax.security.auth.Subject.doAs(Subject.java:337)[:1.6.0_33]
> 	at org.apache.karaf.shell.console.impl.jline.ConsoleFactoryService$3.run(ConsoleFactoryService.java:76)[39:org.apache.karaf.shell.console:3.0.0.SNAPSHOT]

--
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] (KARAF-1547) NullpointerException when running commands on jdk 6 update 33 or jdk 7 update 5

Posted by "Achim Nierbeck (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/KARAF-1547?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13420277#comment-13420277 ] 

Achim Nierbeck commented on KARAF-1547:
---------------------------------------

I consider this to be a blocker since it's not necessarily an issue of the commands but customer software runs into this so this needs to be fixed for the next release. 

                
> NullpointerException when running commands on jdk 6 update 33 or jdk 7 update 5
> -------------------------------------------------------------------------------
>
>                 Key: KARAF-1547
>                 URL: https://issues.apache.org/jira/browse/KARAF-1547
>             Project: Karaf
>          Issue Type: Bug
>          Components: karaf-shell
>    Affects Versions: 2.2.8, 2.3.0, 3.0.0
>            Reporter: Christian Schneider
>            Assignee: Jean-Baptiste Onofré
>            Priority: Blocker
>             Fix For: 2.2.9, 2.3.0, 3.0.0
>
>         Attachments: KARAF-1547.patch
>
>
> Start fresh karaf 3
> Karaf seems to come up fine but when you enter any command you get:
> 2012-06-14 14:15:33,306 | INFO  | Thread-8         | Console                          | 39 - org.apache.karaf.shell.console - 3.0.0.SNAPSHOT | Exception caught while executing command
> java.lang.NullPointerException
> 	at org.apache.felix.gogo.runtime.Reflective.invoke(Reflective.java:61)
> 	at org.apache.felix.gogo.runtime.CommandProxy.execute(CommandProxy.java:82)
> 	at org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:477)
> 	at org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:403)
> 	at org.apache.felix.gogo.runtime.Pipe.run(Pipe.java:108)
> 	at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:183)
> 	at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:120)
> 	at org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:477)
> 	at org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:403)
> 	at org.apache.felix.gogo.runtime.Pipe.run(Pipe.java:108)
> 	at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:183)
> 	at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:120)
> 	at org.apache.felix.gogo.runtime.CommandSessionImpl.execute(CommandSessionImpl.java:89)
> 	at org.apache.karaf.shell.console.impl.jline.ConsoleImpl.run(ConsoleImpl.java:169)
> 	at java.lang.Thread.run(Thread.java:662)[:1.6.0_33]
> 	at org.apache.karaf.shell.console.impl.jline.ConsoleFactoryService$3.doRun(ConsoleFactoryService.java:87)[39:org.apache.karaf.shell.console:3.0.0.SNAPSHOT]
> 	at org.apache.karaf.shell.console.impl.jline.ConsoleFactoryService$3$1.run(ConsoleFactoryService.java:78)
> 	at java.security.AccessController.doPrivileged(Native Method)[:1.6.0_33]
> 	at javax.security.auth.Subject.doAs(Subject.java:337)[:1.6.0_33]
> 	at org.apache.karaf.shell.console.impl.jline.ConsoleFactoryService$3.run(ConsoleFactoryService.java:76)[39:org.apache.karaf.shell.console:3.0.0.SNAPSHOT]

--
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] (KARAF-1547) NullpointerException when running commands on jdk 6 update 33 or jdk 7 update 5

Posted by "Scott Parkerson (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/KARAF-1547?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13419074#comment-13419074 ] 

Scott Parkerson commented on KARAF-1547:
----------------------------------------

FWIW, I didn't experience the problem with Karaf commands when using Fuse ESB (based on Karaf 2.2.5), but I did have problems with Aries Blueprint when I tried to instantiate some of our own beans as an OSGi service.

Workaround for me was to remove the Aries Proxy 0.3 bundle shipped with Fuse ESB and install Aries Proxy 0.3.1. After I did that and restarted the container, the problem was resolved for me.
                
> NullpointerException when running commands on jdk 6 update 33 or jdk 7 update 5
> -------------------------------------------------------------------------------
>
>                 Key: KARAF-1547
>                 URL: https://issues.apache.org/jira/browse/KARAF-1547
>             Project: Karaf
>          Issue Type: Bug
>          Components: karaf-shell
>    Affects Versions: 2.2.8, 2.3.0, 3.0.0
>            Reporter: Christian Schneider
>            Assignee: Jean-Baptiste Onofré
>            Priority: Blocker
>             Fix For: 2.2.9, 2.3.0, 3.0.0
>
>         Attachments: KARAF-1547.patch
>
>
> Start fresh karaf 3
> Karaf seems to come up fine but when you enter any command you get:
> 2012-06-14 14:15:33,306 | INFO  | Thread-8         | Console                          | 39 - org.apache.karaf.shell.console - 3.0.0.SNAPSHOT | Exception caught while executing command
> java.lang.NullPointerException
> 	at org.apache.felix.gogo.runtime.Reflective.invoke(Reflective.java:61)
> 	at org.apache.felix.gogo.runtime.CommandProxy.execute(CommandProxy.java:82)
> 	at org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:477)
> 	at org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:403)
> 	at org.apache.felix.gogo.runtime.Pipe.run(Pipe.java:108)
> 	at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:183)
> 	at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:120)
> 	at org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:477)
> 	at org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:403)
> 	at org.apache.felix.gogo.runtime.Pipe.run(Pipe.java:108)
> 	at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:183)
> 	at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:120)
> 	at org.apache.felix.gogo.runtime.CommandSessionImpl.execute(CommandSessionImpl.java:89)
> 	at org.apache.karaf.shell.console.impl.jline.ConsoleImpl.run(ConsoleImpl.java:169)
> 	at java.lang.Thread.run(Thread.java:662)[:1.6.0_33]
> 	at org.apache.karaf.shell.console.impl.jline.ConsoleFactoryService$3.doRun(ConsoleFactoryService.java:87)[39:org.apache.karaf.shell.console:3.0.0.SNAPSHOT]
> 	at org.apache.karaf.shell.console.impl.jline.ConsoleFactoryService$3$1.run(ConsoleFactoryService.java:78)
> 	at java.security.AccessController.doPrivileged(Native Method)[:1.6.0_33]
> 	at javax.security.auth.Subject.doAs(Subject.java:337)[:1.6.0_33]
> 	at org.apache.karaf.shell.console.impl.jline.ConsoleFactoryService$3.run(ConsoleFactoryService.java:76)[39:org.apache.karaf.shell.console:3.0.0.SNAPSHOT]

--
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] [Comment Edited] (KARAF-1547) NullpointerException when running commands on jdk 6 update 33 or jdk 7 update 5

Posted by "Christian Schneider (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/KARAF-1547?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13294988#comment-13294988 ] 

Christian Schneider edited comment on KARAF-1547 at 6/14/12 2:29 PM:
---------------------------------------------------------------------

It seems the CommandProxy.getTarget() returns null
                
      was (Author: chris@die-schneider.net):
    It seems the target in CommandProxy is null
                  
> NullpointerException when running commands on jdk 6 update 33 or jdk 7 update 5
> -------------------------------------------------------------------------------
>
>                 Key: KARAF-1547
>                 URL: https://issues.apache.org/jira/browse/KARAF-1547
>             Project: Karaf
>          Issue Type: Bug
>          Components: karaf-shell
>    Affects Versions: 3.0.0
>            Reporter: Christian Schneider
>             Fix For: 3.0.0
>
>
> Start fresh karaf 3
> Karaf seems to come up fine but when you enter any command you get:
> 2012-06-14 14:15:33,306 | INFO  | Thread-8         | Console                          | 39 - org.apache.karaf.shell.console - 3.0.0.SNAPSHOT | Exception caught while executing command
> java.lang.NullPointerException
> 	at org.apache.felix.gogo.runtime.Reflective.invoke(Reflective.java:61)
> 	at org.apache.felix.gogo.runtime.CommandProxy.execute(CommandProxy.java:82)
> 	at org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:477)
> 	at org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:403)
> 	at org.apache.felix.gogo.runtime.Pipe.run(Pipe.java:108)
> 	at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:183)
> 	at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:120)
> 	at org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:477)
> 	at org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:403)
> 	at org.apache.felix.gogo.runtime.Pipe.run(Pipe.java:108)
> 	at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:183)
> 	at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:120)
> 	at org.apache.felix.gogo.runtime.CommandSessionImpl.execute(CommandSessionImpl.java:89)
> 	at org.apache.karaf.shell.console.impl.jline.ConsoleImpl.run(ConsoleImpl.java:169)
> 	at java.lang.Thread.run(Thread.java:662)[:1.6.0_33]
> 	at org.apache.karaf.shell.console.impl.jline.ConsoleFactoryService$3.doRun(ConsoleFactoryService.java:87)[39:org.apache.karaf.shell.console:3.0.0.SNAPSHOT]
> 	at org.apache.karaf.shell.console.impl.jline.ConsoleFactoryService$3$1.run(ConsoleFactoryService.java:78)
> 	at java.security.AccessController.doPrivileged(Native Method)[:1.6.0_33]
> 	at javax.security.auth.Subject.doAs(Subject.java:337)[:1.6.0_33]
> 	at org.apache.karaf.shell.console.impl.jline.ConsoleFactoryService$3.run(ConsoleFactoryService.java:76)[39:org.apache.karaf.shell.console:3.0.0.SNAPSHOT]

--
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] (KARAF-1547) NullpointerException when running commands on jdk 6 update 33 or jdk 7 update 5

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

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

Here's the corresponding Aries Jira: https://issues.apache.org/jira/browse/ARIES-835
                
> NullpointerException when running commands on jdk 6 update 33 or jdk 7 update 5
> -------------------------------------------------------------------------------
>
>                 Key: KARAF-1547
>                 URL: https://issues.apache.org/jira/browse/KARAF-1547
>             Project: Karaf
>          Issue Type: Bug
>          Components: karaf-shell
>    Affects Versions: 3.0.0
>            Reporter: Christian Schneider
>             Fix For: 3.0.0
>
>
> Start fresh karaf 3
> Karaf seems to come up fine but when you enter any command you get:
> 2012-06-14 14:15:33,306 | INFO  | Thread-8         | Console                          | 39 - org.apache.karaf.shell.console - 3.0.0.SNAPSHOT | Exception caught while executing command
> java.lang.NullPointerException
> 	at org.apache.felix.gogo.runtime.Reflective.invoke(Reflective.java:61)
> 	at org.apache.felix.gogo.runtime.CommandProxy.execute(CommandProxy.java:82)
> 	at org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:477)
> 	at org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:403)
> 	at org.apache.felix.gogo.runtime.Pipe.run(Pipe.java:108)
> 	at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:183)
> 	at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:120)
> 	at org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:477)
> 	at org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:403)
> 	at org.apache.felix.gogo.runtime.Pipe.run(Pipe.java:108)
> 	at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:183)
> 	at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:120)
> 	at org.apache.felix.gogo.runtime.CommandSessionImpl.execute(CommandSessionImpl.java:89)
> 	at org.apache.karaf.shell.console.impl.jline.ConsoleImpl.run(ConsoleImpl.java:169)
> 	at java.lang.Thread.run(Thread.java:662)[:1.6.0_33]
> 	at org.apache.karaf.shell.console.impl.jline.ConsoleFactoryService$3.doRun(ConsoleFactoryService.java:87)[39:org.apache.karaf.shell.console:3.0.0.SNAPSHOT]
> 	at org.apache.karaf.shell.console.impl.jline.ConsoleFactoryService$3$1.run(ConsoleFactoryService.java:78)
> 	at java.security.AccessController.doPrivileged(Native Method)[:1.6.0_33]
> 	at javax.security.auth.Subject.doAs(Subject.java:337)[:1.6.0_33]
> 	at org.apache.karaf.shell.console.impl.jline.ConsoleFactoryService$3.run(ConsoleFactoryService.java:76)[39:org.apache.karaf.shell.console:3.0.0.SNAPSHOT]

--
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] (KARAF-1547) NullpointerException when running commands on jdk 6 update 33 or jdk 7 update 5

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

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

Unfortunately, not only 3.0.0 seems to be affected: 2.3.x and 2.2.x are also affected.

@Christian, it seems that you ignored my comment (and the fact that the Jira was affected to me) about the fact that 2.3.x is affected also.

I gonna find a fix for all branches.
                
> NullpointerException when running commands on jdk 6 update 33 or jdk 7 update 5
> -------------------------------------------------------------------------------
>
>                 Key: KARAF-1547
>                 URL: https://issues.apache.org/jira/browse/KARAF-1547
>             Project: Karaf
>          Issue Type: Bug
>          Components: karaf-shell
>    Affects Versions: 2.2.8, 2.3.0, 3.0.0
>            Reporter: Christian Schneider
>             Fix For: 2.2.9, 2.3.0, 3.0.0
>
>
> Start fresh karaf 3
> Karaf seems to come up fine but when you enter any command you get:
> 2012-06-14 14:15:33,306 | INFO  | Thread-8         | Console                          | 39 - org.apache.karaf.shell.console - 3.0.0.SNAPSHOT | Exception caught while executing command
> java.lang.NullPointerException
> 	at org.apache.felix.gogo.runtime.Reflective.invoke(Reflective.java:61)
> 	at org.apache.felix.gogo.runtime.CommandProxy.execute(CommandProxy.java:82)
> 	at org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:477)
> 	at org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:403)
> 	at org.apache.felix.gogo.runtime.Pipe.run(Pipe.java:108)
> 	at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:183)
> 	at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:120)
> 	at org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:477)
> 	at org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:403)
> 	at org.apache.felix.gogo.runtime.Pipe.run(Pipe.java:108)
> 	at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:183)
> 	at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:120)
> 	at org.apache.felix.gogo.runtime.CommandSessionImpl.execute(CommandSessionImpl.java:89)
> 	at org.apache.karaf.shell.console.impl.jline.ConsoleImpl.run(ConsoleImpl.java:169)
> 	at java.lang.Thread.run(Thread.java:662)[:1.6.0_33]
> 	at org.apache.karaf.shell.console.impl.jline.ConsoleFactoryService$3.doRun(ConsoleFactoryService.java:87)[39:org.apache.karaf.shell.console:3.0.0.SNAPSHOT]
> 	at org.apache.karaf.shell.console.impl.jline.ConsoleFactoryService$3$1.run(ConsoleFactoryService.java:78)
> 	at java.security.AccessController.doPrivileged(Native Method)[:1.6.0_33]
> 	at javax.security.auth.Subject.doAs(Subject.java:337)[:1.6.0_33]
> 	at org.apache.karaf.shell.console.impl.jline.ConsoleFactoryService$3.run(ConsoleFactoryService.java:76)[39:org.apache.karaf.shell.console:3.0.0.SNAPSHOT]

--
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] (KARAF-1547) NullpointerException when running commands on jdk 6 update 33 or jdk 7 update 5

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

Achim Nierbeck updated KARAF-1547:
----------------------------------

    Attachment: KARAF-1547.patch

This is a patch to switch the 2.2.x branch to 0.4 Blueprint and utils and 0.4.1 proxy

It builds to the point of the iTests
                
> NullpointerException when running commands on jdk 6 update 33 or jdk 7 update 5
> -------------------------------------------------------------------------------
>
>                 Key: KARAF-1547
>                 URL: https://issues.apache.org/jira/browse/KARAF-1547
>             Project: Karaf
>          Issue Type: Bug
>          Components: karaf-shell
>    Affects Versions: 2.2.8, 2.3.0, 3.0.0
>            Reporter: Christian Schneider
>            Assignee: Jean-Baptiste Onofré
>             Fix For: 2.2.9, 2.3.0, 3.0.0
>
>         Attachments: KARAF-1547.patch
>
>
> Start fresh karaf 3
> Karaf seems to come up fine but when you enter any command you get:
> 2012-06-14 14:15:33,306 | INFO  | Thread-8         | Console                          | 39 - org.apache.karaf.shell.console - 3.0.0.SNAPSHOT | Exception caught while executing command
> java.lang.NullPointerException
> 	at org.apache.felix.gogo.runtime.Reflective.invoke(Reflective.java:61)
> 	at org.apache.felix.gogo.runtime.CommandProxy.execute(CommandProxy.java:82)
> 	at org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:477)
> 	at org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:403)
> 	at org.apache.felix.gogo.runtime.Pipe.run(Pipe.java:108)
> 	at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:183)
> 	at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:120)
> 	at org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:477)
> 	at org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:403)
> 	at org.apache.felix.gogo.runtime.Pipe.run(Pipe.java:108)
> 	at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:183)
> 	at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:120)
> 	at org.apache.felix.gogo.runtime.CommandSessionImpl.execute(CommandSessionImpl.java:89)
> 	at org.apache.karaf.shell.console.impl.jline.ConsoleImpl.run(ConsoleImpl.java:169)
> 	at java.lang.Thread.run(Thread.java:662)[:1.6.0_33]
> 	at org.apache.karaf.shell.console.impl.jline.ConsoleFactoryService$3.doRun(ConsoleFactoryService.java:87)[39:org.apache.karaf.shell.console:3.0.0.SNAPSHOT]
> 	at org.apache.karaf.shell.console.impl.jline.ConsoleFactoryService$3$1.run(ConsoleFactoryService.java:78)
> 	at java.security.AccessController.doPrivileged(Native Method)[:1.6.0_33]
> 	at javax.security.auth.Subject.doAs(Subject.java:337)[:1.6.0_33]
> 	at org.apache.karaf.shell.console.impl.jline.ConsoleFactoryService$3.run(ConsoleFactoryService.java:76)[39:org.apache.karaf.shell.console:3.0.0.SNAPSHOT]

--
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] (KARAF-1547) NullpointerException when running commands on jdk 6 update 33 or jdk 7 update 5

Posted by "Christian Schneider (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/KARAF-1547?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13418355#comment-13418355 ] 

Christian Schneider commented on KARAF-1547:
--------------------------------------------

Not sure if it is a blocker as our current releases do not have the fix and at least on 2.2.x it took me a while to find out that we have the bug. So for many people it may not be an issue. I found the problem when using <jpa:unit> in a blueprint context. Apart from that everything worked.
                
> NullpointerException when running commands on jdk 6 update 33 or jdk 7 update 5
> -------------------------------------------------------------------------------
>
>                 Key: KARAF-1547
>                 URL: https://issues.apache.org/jira/browse/KARAF-1547
>             Project: Karaf
>          Issue Type: Bug
>          Components: karaf-shell
>    Affects Versions: 2.2.8, 2.3.0, 3.0.0
>            Reporter: Christian Schneider
>            Assignee: Jean-Baptiste Onofré
>            Priority: Blocker
>             Fix For: 2.2.9, 2.3.0, 3.0.0
>
>         Attachments: KARAF-1547.patch
>
>
> Start fresh karaf 3
> Karaf seems to come up fine but when you enter any command you get:
> 2012-06-14 14:15:33,306 | INFO  | Thread-8         | Console                          | 39 - org.apache.karaf.shell.console - 3.0.0.SNAPSHOT | Exception caught while executing command
> java.lang.NullPointerException
> 	at org.apache.felix.gogo.runtime.Reflective.invoke(Reflective.java:61)
> 	at org.apache.felix.gogo.runtime.CommandProxy.execute(CommandProxy.java:82)
> 	at org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:477)
> 	at org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:403)
> 	at org.apache.felix.gogo.runtime.Pipe.run(Pipe.java:108)
> 	at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:183)
> 	at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:120)
> 	at org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:477)
> 	at org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:403)
> 	at org.apache.felix.gogo.runtime.Pipe.run(Pipe.java:108)
> 	at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:183)
> 	at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:120)
> 	at org.apache.felix.gogo.runtime.CommandSessionImpl.execute(CommandSessionImpl.java:89)
> 	at org.apache.karaf.shell.console.impl.jline.ConsoleImpl.run(ConsoleImpl.java:169)
> 	at java.lang.Thread.run(Thread.java:662)[:1.6.0_33]
> 	at org.apache.karaf.shell.console.impl.jline.ConsoleFactoryService$3.doRun(ConsoleFactoryService.java:87)[39:org.apache.karaf.shell.console:3.0.0.SNAPSHOT]
> 	at org.apache.karaf.shell.console.impl.jline.ConsoleFactoryService$3$1.run(ConsoleFactoryService.java:78)
> 	at java.security.AccessController.doPrivileged(Native Method)[:1.6.0_33]
> 	at javax.security.auth.Subject.doAs(Subject.java:337)[:1.6.0_33]
> 	at org.apache.karaf.shell.console.impl.jline.ConsoleFactoryService$3.run(ConsoleFactoryService.java:76)[39:org.apache.karaf.shell.console:3.0.0.SNAPSHOT]

--
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] [Assigned] (KARAF-1547) NullpointerException when running commands on jdk 6 update 33 or jdk 7 update 5

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

Jean-Baptiste Onofré reassigned KARAF-1547:
-------------------------------------------

    Assignee: Jean-Baptiste Onofré
    
> NullpointerException when running commands on jdk 6 update 33 or jdk 7 update 5
> -------------------------------------------------------------------------------
>
>                 Key: KARAF-1547
>                 URL: https://issues.apache.org/jira/browse/KARAF-1547
>             Project: Karaf
>          Issue Type: Bug
>          Components: karaf-shell
>    Affects Versions: 2.2.8, 2.3.0, 3.0.0
>            Reporter: Christian Schneider
>            Assignee: Jean-Baptiste Onofré
>             Fix For: 2.2.9, 2.3.0, 3.0.0
>
>
> Start fresh karaf 3
> Karaf seems to come up fine but when you enter any command you get:
> 2012-06-14 14:15:33,306 | INFO  | Thread-8         | Console                          | 39 - org.apache.karaf.shell.console - 3.0.0.SNAPSHOT | Exception caught while executing command
> java.lang.NullPointerException
> 	at org.apache.felix.gogo.runtime.Reflective.invoke(Reflective.java:61)
> 	at org.apache.felix.gogo.runtime.CommandProxy.execute(CommandProxy.java:82)
> 	at org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:477)
> 	at org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:403)
> 	at org.apache.felix.gogo.runtime.Pipe.run(Pipe.java:108)
> 	at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:183)
> 	at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:120)
> 	at org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:477)
> 	at org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:403)
> 	at org.apache.felix.gogo.runtime.Pipe.run(Pipe.java:108)
> 	at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:183)
> 	at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:120)
> 	at org.apache.felix.gogo.runtime.CommandSessionImpl.execute(CommandSessionImpl.java:89)
> 	at org.apache.karaf.shell.console.impl.jline.ConsoleImpl.run(ConsoleImpl.java:169)
> 	at java.lang.Thread.run(Thread.java:662)[:1.6.0_33]
> 	at org.apache.karaf.shell.console.impl.jline.ConsoleFactoryService$3.doRun(ConsoleFactoryService.java:87)[39:org.apache.karaf.shell.console:3.0.0.SNAPSHOT]
> 	at org.apache.karaf.shell.console.impl.jline.ConsoleFactoryService$3$1.run(ConsoleFactoryService.java:78)
> 	at java.security.AccessController.doPrivileged(Native Method)[:1.6.0_33]
> 	at javax.security.auth.Subject.doAs(Subject.java:337)[:1.6.0_33]
> 	at org.apache.karaf.shell.console.impl.jline.ConsoleFactoryService$3.run(ConsoleFactoryService.java:76)[39:org.apache.karaf.shell.console:3.0.0.SNAPSHOT]

--
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] (KARAF-1547) NullpointerException when running commands on jdk 6 update 33 or jdk 7 update 5

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

Achim Nierbeck updated KARAF-1547:
----------------------------------

    Priority: Blocker  (was: Major)
    
> NullpointerException when running commands on jdk 6 update 33 or jdk 7 update 5
> -------------------------------------------------------------------------------
>
>                 Key: KARAF-1547
>                 URL: https://issues.apache.org/jira/browse/KARAF-1547
>             Project: Karaf
>          Issue Type: Bug
>          Components: karaf-shell
>    Affects Versions: 2.2.8, 2.3.0, 3.0.0
>            Reporter: Christian Schneider
>            Assignee: Jean-Baptiste Onofré
>            Priority: Blocker
>             Fix For: 2.2.9, 2.3.0, 3.0.0
>
>         Attachments: KARAF-1547.patch
>
>
> Start fresh karaf 3
> Karaf seems to come up fine but when you enter any command you get:
> 2012-06-14 14:15:33,306 | INFO  | Thread-8         | Console                          | 39 - org.apache.karaf.shell.console - 3.0.0.SNAPSHOT | Exception caught while executing command
> java.lang.NullPointerException
> 	at org.apache.felix.gogo.runtime.Reflective.invoke(Reflective.java:61)
> 	at org.apache.felix.gogo.runtime.CommandProxy.execute(CommandProxy.java:82)
> 	at org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:477)
> 	at org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:403)
> 	at org.apache.felix.gogo.runtime.Pipe.run(Pipe.java:108)
> 	at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:183)
> 	at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:120)
> 	at org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:477)
> 	at org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:403)
> 	at org.apache.felix.gogo.runtime.Pipe.run(Pipe.java:108)
> 	at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:183)
> 	at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:120)
> 	at org.apache.felix.gogo.runtime.CommandSessionImpl.execute(CommandSessionImpl.java:89)
> 	at org.apache.karaf.shell.console.impl.jline.ConsoleImpl.run(ConsoleImpl.java:169)
> 	at java.lang.Thread.run(Thread.java:662)[:1.6.0_33]
> 	at org.apache.karaf.shell.console.impl.jline.ConsoleFactoryService$3.doRun(ConsoleFactoryService.java:87)[39:org.apache.karaf.shell.console:3.0.0.SNAPSHOT]
> 	at org.apache.karaf.shell.console.impl.jline.ConsoleFactoryService$3$1.run(ConsoleFactoryService.java:78)
> 	at java.security.AccessController.doPrivileged(Native Method)[:1.6.0_33]
> 	at javax.security.auth.Subject.doAs(Subject.java:337)[:1.6.0_33]
> 	at org.apache.karaf.shell.console.impl.jline.ConsoleFactoryService$3.run(ConsoleFactoryService.java:76)[39:org.apache.karaf.shell.console:3.0.0.SNAPSHOT]

--
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] (KARAF-1547) NullpointerException when running commands on jdk 6 update 33 or jdk 7 update 5

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

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

As:
1/ the problem occurs on trunk with ASM 4
2/ the problem occurs on 2.3.x branch with ASM 3.3.1
3/ the problem doesn't occurs on 2.2.x branch with ASM 3.3.1 but with a previous version of Aries Proxy

It's clear for me that the problem is not in ASM but in Aries Proxy usage of ASM.

I will dig around that to submit a patch to Aries too ;)
                
> NullpointerException when running commands on jdk 6 update 33 or jdk 7 update 5
> -------------------------------------------------------------------------------
>
>                 Key: KARAF-1547
>                 URL: https://issues.apache.org/jira/browse/KARAF-1547
>             Project: Karaf
>          Issue Type: Bug
>          Components: karaf-shell
>    Affects Versions: 3.0.0
>            Reporter: Christian Schneider
>             Fix For: 3.0.0
>
>
> Start fresh karaf 3
> Karaf seems to come up fine but when you enter any command you get:
> 2012-06-14 14:15:33,306 | INFO  | Thread-8         | Console                          | 39 - org.apache.karaf.shell.console - 3.0.0.SNAPSHOT | Exception caught while executing command
> java.lang.NullPointerException
> 	at org.apache.felix.gogo.runtime.Reflective.invoke(Reflective.java:61)
> 	at org.apache.felix.gogo.runtime.CommandProxy.execute(CommandProxy.java:82)
> 	at org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:477)
> 	at org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:403)
> 	at org.apache.felix.gogo.runtime.Pipe.run(Pipe.java:108)
> 	at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:183)
> 	at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:120)
> 	at org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:477)
> 	at org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:403)
> 	at org.apache.felix.gogo.runtime.Pipe.run(Pipe.java:108)
> 	at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:183)
> 	at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:120)
> 	at org.apache.felix.gogo.runtime.CommandSessionImpl.execute(CommandSessionImpl.java:89)
> 	at org.apache.karaf.shell.console.impl.jline.ConsoleImpl.run(ConsoleImpl.java:169)
> 	at java.lang.Thread.run(Thread.java:662)[:1.6.0_33]
> 	at org.apache.karaf.shell.console.impl.jline.ConsoleFactoryService$3.doRun(ConsoleFactoryService.java:87)[39:org.apache.karaf.shell.console:3.0.0.SNAPSHOT]
> 	at org.apache.karaf.shell.console.impl.jline.ConsoleFactoryService$3$1.run(ConsoleFactoryService.java:78)
> 	at java.security.AccessController.doPrivileged(Native Method)[:1.6.0_33]
> 	at javax.security.auth.Subject.doAs(Subject.java:337)[:1.6.0_33]
> 	at org.apache.karaf.shell.console.impl.jline.ConsoleFactoryService$3.run(ConsoleFactoryService.java:76)[39:org.apache.karaf.shell.console:3.0.0.SNAPSHOT]

--
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] (KARAF-1547) NullpointerException when running commands on jdk 6 update 33 or jdk 7 update 5

Posted by "Daniel Kulp (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/KARAF-1547?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13414703#comment-13414703 ] 

Daniel Kulp commented on KARAF-1547:
------------------------------------


0.4 is not compatible with the 0.3 versions currently on the 2.2.x branch.   2.2.x cannot be updated to 0.4.
                
> NullpointerException when running commands on jdk 6 update 33 or jdk 7 update 5
> -------------------------------------------------------------------------------
>
>                 Key: KARAF-1547
>                 URL: https://issues.apache.org/jira/browse/KARAF-1547
>             Project: Karaf
>          Issue Type: Bug
>          Components: karaf-shell
>    Affects Versions: 2.2.8, 2.3.0, 3.0.0
>            Reporter: Christian Schneider
>            Assignee: Jean-Baptiste Onofré
>             Fix For: 2.2.9, 2.3.0, 3.0.0
>
>         Attachments: KARAF-1547.patch
>
>
> Start fresh karaf 3
> Karaf seems to come up fine but when you enter any command you get:
> 2012-06-14 14:15:33,306 | INFO  | Thread-8         | Console                          | 39 - org.apache.karaf.shell.console - 3.0.0.SNAPSHOT | Exception caught while executing command
> java.lang.NullPointerException
> 	at org.apache.felix.gogo.runtime.Reflective.invoke(Reflective.java:61)
> 	at org.apache.felix.gogo.runtime.CommandProxy.execute(CommandProxy.java:82)
> 	at org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:477)
> 	at org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:403)
> 	at org.apache.felix.gogo.runtime.Pipe.run(Pipe.java:108)
> 	at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:183)
> 	at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:120)
> 	at org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:477)
> 	at org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:403)
> 	at org.apache.felix.gogo.runtime.Pipe.run(Pipe.java:108)
> 	at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:183)
> 	at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:120)
> 	at org.apache.felix.gogo.runtime.CommandSessionImpl.execute(CommandSessionImpl.java:89)
> 	at org.apache.karaf.shell.console.impl.jline.ConsoleImpl.run(ConsoleImpl.java:169)
> 	at java.lang.Thread.run(Thread.java:662)[:1.6.0_33]
> 	at org.apache.karaf.shell.console.impl.jline.ConsoleFactoryService$3.doRun(ConsoleFactoryService.java:87)[39:org.apache.karaf.shell.console:3.0.0.SNAPSHOT]
> 	at org.apache.karaf.shell.console.impl.jline.ConsoleFactoryService$3$1.run(ConsoleFactoryService.java:78)
> 	at java.security.AccessController.doPrivileged(Native Method)[:1.6.0_33]
> 	at javax.security.auth.Subject.doAs(Subject.java:337)[:1.6.0_33]
> 	at org.apache.karaf.shell.console.impl.jline.ConsoleFactoryService$3.run(ConsoleFactoryService.java:76)[39:org.apache.karaf.shell.console:3.0.0.SNAPSHOT]

--
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] (KARAF-1547) NullpointerException when running commands on jdk 6 update 33 or jdk 7 update 5

Posted by "Christian Schneider (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/KARAF-1547?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13295066#comment-13295066 ] 

Christian Schneider commented on KARAF-1547:
--------------------------------------------

I have tracked the problem to aries blueprint and proxy.

In org.apache.aries.blueprint.container.ServiceRecipe.TriggerServiceFactory.getService(Bundle, ServiceRegistration) the following exception occurs:
org.osgi.framework.ServiceException: Service factory exception: (class: org/apache/karaf/shell/console/commands/$BlueprintCommand16496117, method: <init> signature: (Ljava/lang/reflect/InvocationHandler;)V) Call to wrong initialization method

This happens when the following line is called:
intercepted = blueprintContainer.getProxyManager().createInterceptingProxy(b, getClassesForProxying(original), original, collaborator);

Felix does not seem to log the exception but it catches it and sends a FrameWork event. Because of this exception the service can not be resolved and null is returned for the service object.


                
> NullpointerException when running commands on jdk 6 update 33 or jdk 7 update 5
> -------------------------------------------------------------------------------
>
>                 Key: KARAF-1547
>                 URL: https://issues.apache.org/jira/browse/KARAF-1547
>             Project: Karaf
>          Issue Type: Bug
>          Components: karaf-shell
>    Affects Versions: 3.0.0
>            Reporter: Christian Schneider
>             Fix For: 3.0.0
>
>
> Start fresh karaf 3
> Karaf seems to come up fine but when you enter any command you get:
> 2012-06-14 14:15:33,306 | INFO  | Thread-8         | Console                          | 39 - org.apache.karaf.shell.console - 3.0.0.SNAPSHOT | Exception caught while executing command
> java.lang.NullPointerException
> 	at org.apache.felix.gogo.runtime.Reflective.invoke(Reflective.java:61)
> 	at org.apache.felix.gogo.runtime.CommandProxy.execute(CommandProxy.java:82)
> 	at org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:477)
> 	at org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:403)
> 	at org.apache.felix.gogo.runtime.Pipe.run(Pipe.java:108)
> 	at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:183)
> 	at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:120)
> 	at org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:477)
> 	at org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:403)
> 	at org.apache.felix.gogo.runtime.Pipe.run(Pipe.java:108)
> 	at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:183)
> 	at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:120)
> 	at org.apache.felix.gogo.runtime.CommandSessionImpl.execute(CommandSessionImpl.java:89)
> 	at org.apache.karaf.shell.console.impl.jline.ConsoleImpl.run(ConsoleImpl.java:169)
> 	at java.lang.Thread.run(Thread.java:662)[:1.6.0_33]
> 	at org.apache.karaf.shell.console.impl.jline.ConsoleFactoryService$3.doRun(ConsoleFactoryService.java:87)[39:org.apache.karaf.shell.console:3.0.0.SNAPSHOT]
> 	at org.apache.karaf.shell.console.impl.jline.ConsoleFactoryService$3$1.run(ConsoleFactoryService.java:78)
> 	at java.security.AccessController.doPrivileged(Native Method)[:1.6.0_33]
> 	at javax.security.auth.Subject.doAs(Subject.java:337)[:1.6.0_33]
> 	at org.apache.karaf.shell.console.impl.jline.ConsoleFactoryService$3.run(ConsoleFactoryService.java:76)[39:org.apache.karaf.shell.console:3.0.0.SNAPSHOT]

--
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] (KARAF-1547) NullpointerException when running commands on jdk 6 update 33 or jdk 7 update 5

Posted by "Jamie goodyear (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/KARAF-1547?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13434901#comment-13434901 ] 

Jamie goodyear commented on KARAF-1547:
---------------------------------------

Just to add to the testing notes:

http://karaf.922171.n3.nabble.com/Tentative-Release-Dates-for-2-2-9-and-or-2-3-0-td4025591.html

There has been a fare amount of testing around this issue, I believe we can mark it as resolved.
                
> NullpointerException when running commands on jdk 6 update 33 or jdk 7 update 5
> -------------------------------------------------------------------------------
>
>                 Key: KARAF-1547
>                 URL: https://issues.apache.org/jira/browse/KARAF-1547
>             Project: Karaf
>          Issue Type: Bug
>          Components: karaf-shell
>    Affects Versions: 2.2.8, 2.3.0, 3.0.0
>            Reporter: Christian Schneider
>            Assignee: Jean-Baptiste Onofré
>            Priority: Blocker
>             Fix For: 2.2.9, 2.3.0, 3.0.0
>
>         Attachments: KARAF-1547.patch
>
>
> Start fresh karaf 3
> Karaf seems to come up fine but when you enter any command you get:
> 2012-06-14 14:15:33,306 | INFO  | Thread-8         | Console                          | 39 - org.apache.karaf.shell.console - 3.0.0.SNAPSHOT | Exception caught while executing command
> java.lang.NullPointerException
> 	at org.apache.felix.gogo.runtime.Reflective.invoke(Reflective.java:61)
> 	at org.apache.felix.gogo.runtime.CommandProxy.execute(CommandProxy.java:82)
> 	at org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:477)
> 	at org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:403)
> 	at org.apache.felix.gogo.runtime.Pipe.run(Pipe.java:108)
> 	at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:183)
> 	at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:120)
> 	at org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:477)
> 	at org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:403)
> 	at org.apache.felix.gogo.runtime.Pipe.run(Pipe.java:108)
> 	at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:183)
> 	at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:120)
> 	at org.apache.felix.gogo.runtime.CommandSessionImpl.execute(CommandSessionImpl.java:89)
> 	at org.apache.karaf.shell.console.impl.jline.ConsoleImpl.run(ConsoleImpl.java:169)
> 	at java.lang.Thread.run(Thread.java:662)[:1.6.0_33]
> 	at org.apache.karaf.shell.console.impl.jline.ConsoleFactoryService$3.doRun(ConsoleFactoryService.java:87)[39:org.apache.karaf.shell.console:3.0.0.SNAPSHOT]
> 	at org.apache.karaf.shell.console.impl.jline.ConsoleFactoryService$3$1.run(ConsoleFactoryService.java:78)
> 	at java.security.AccessController.doPrivileged(Native Method)[:1.6.0_33]
> 	at javax.security.auth.Subject.doAs(Subject.java:337)[:1.6.0_33]
> 	at org.apache.karaf.shell.console.impl.jline.ConsoleFactoryService$3.run(ConsoleFactoryService.java:76)[39:org.apache.karaf.shell.console:3.0.0.SNAPSHOT]

--
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