New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

InvocationTargetException when running processing-java #4452

Closed
gohai opened this Issue May 9, 2016 · 5 comments

Comments

Projects
None yet
2 participants
@gohai
Contributor

gohai commented May 9, 2016

DISPLAY=:0 processing-java --sketch=`pwd` --run
err is java.lang.reflect.InvocationTargetException
Exception in thread "main" java.lang.NullPointerException
    at processing.mode.java.Commander.<init>(Commander.java:263)
    at processing.mode.java.Commander.main(Commander.java:86)

Looking into it.

@gohai gohai changed the title from NPE running processing-java on ARM to InvocationTargetException when running processing-java on ARM May 9, 2016

@gohai gohai changed the title from InvocationTargetException when running processing-java on ARM to InvocationTargetException when running processing-java May 9, 2016

@gohai

This comment has been minimized.

Show comment
Hide comment
@gohai

gohai May 9, 2016

Contributor

Actual exception is

java.lang.NullPointerException
    at processing.app.Mode.rebuildLibraryList(Mode.java:330)
    at processing.app.Mode.<init>(Mode.java:116)
    at processing.mode.java.JavaMode.<init>(JavaMode.java:57)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
    at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
    at processing.app.contrib.ModeContribution.<init>(ModeContribution.java:94)
    at processing.app.contrib.ModeContribution.load(ModeContribution.java:51)
    at processing.mode.java.Commander.<init>(Commander.java:262)
    at processing.mode.java.Commander.main(Commander.java:86)

Calling @JakubValtar (49823a0?)

Contributor

gohai commented May 9, 2016

Actual exception is

java.lang.NullPointerException
    at processing.app.Mode.rebuildLibraryList(Mode.java:330)
    at processing.app.Mode.<init>(Mode.java:116)
    at processing.mode.java.JavaMode.<init>(JavaMode.java:57)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
    at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
    at processing.app.contrib.ModeContribution.<init>(ModeContribution.java:94)
    at processing.app.contrib.ModeContribution.load(ModeContribution.java:51)
    at processing.mode.java.Commander.<init>(Commander.java:262)
    at processing.mode.java.Commander.main(Commander.java:86)

Calling @JakubValtar (49823a0?)

@JakubValtar

This comment has been minimized.

Show comment
Hide comment
@JakubValtar

JakubValtar May 9, 2016

Contributor

Hm, looks like base.getEditors() returns null when there are no editors. Let me look at that.

Contributor

JakubValtar commented May 9, 2016

Hm, looks like base.getEditors() returns null when there are no editors. Let me look at that.

@gohai

This comment has been minimized.

Show comment
Hide comment
@gohai

gohai May 9, 2016

Contributor

base is null w/ processing-java it seems

        ModeContribution.load(null, Platform.getContentFile("modes/java"),
                              "processing.mode.java.JavaMode").getMode();
Contributor

gohai commented May 9, 2016

base is null w/ processing-java it seems

        ModeContribution.load(null, Platform.getContentFile("modes/java"),
                              "processing.mode.java.JavaMode").getMode();
@JakubValtar

This comment has been minimized.

Show comment
Hide comment
@JakubValtar

JakubValtar May 9, 2016

Contributor

Ah, okay. The mode is instantiated through reflection and my scanners didn't catch that.

Contributor

JakubValtar commented May 9, 2016

Ah, okay. The mode is instantiated through reflection and my scanners didn't catch that.

@gohai

This comment has been minimized.

Show comment
Hide comment
@gohai

gohai May 9, 2016

Contributor

Always adventures with reflection! I am currently re-spinning the arm tar-ball with the same version number..

Contributor

gohai commented May 9, 2016

Always adventures with reflection! I am currently re-spinning the arm tar-ball with the same version number..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment