1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. While the majority of active discourse on D20PRO has moved to our Discord Channels, this forum is still active and checked-in on regularly by our staff. However, for the very latest information, conversation and/or immediate support, please join us on Discord here: http://discord.gg/Ph38ckM
    Dismiss Notice

NullPointerException on starting campaigns (Java_1.8.0_66)

Discussion in 'General Discussion' started by Gekko, Jan 9, 2016.

  1. Gekko

    Gekko New Member

    Joined:
    Oct 8, 2012
    Messages:
    19
    Likes Received:
    1
    Hello,

    I had some issues to start d20Pro 3.5.7 at all. Finally it worked but when I try to open campaigns created in 3.4.7 or newly created ones I always get the message:

    Code:
    Unexpected throwable initializing app.
    java.lang.NullPointerException.
    I encountered this error with campaigns using the systems "Pathfinder", "D&D 3.5" and "<None>" with or without SRD.

    My Platform:
    Ubuntu 14.04
    Java 1.8.0_66

    By the way: when I tried to start d20Pro 3.5.7 with other Java versions (1.6.0_41, 1.7.0_75, 1.7.0_80, Open JDK 6) it didn't worked and left no trace in the log.
     
  2. edwardcd

    edwardcd Administrator
    Staff Member

    Joined:
    Oct 13, 2010
    Messages:
    1,374
    Likes Received:
    9
    I see. This doesn't affect usability, it is just saying that there are campaigns = null, thus giving the null pointer exception in the log as none is present. Simply create a new Campaign by selecting "Create Campaign.." button and continue.
     
  3. Gekko

    Gekko New Member

    Joined:
    Oct 8, 2012
    Messages:
    19
    Likes Received:
    1
    I don't have a problem creating campaigns, I have a problem starting them. After the NullPointerException d20Pro is closed.
     
  4. Ken L

    Ken L Member

    Joined:
    Dec 13, 2015
    Messages:
    90
    Likes Received:
    0
    When you run it through shell, that's the only message you get?

    Execute it with the command

    Code:
    ./d20Pro.sh | tee output.log
    And get to the crash, post the output.log here if you can.
     
  5. Gekko

    Gekko New Member

    Joined:
    Oct 8, 2012
    Messages:
    19
    Likes Received:
    1
    Hi,

    no, in the shell I got a lot to see. The message appears in d20Pro.

    Code:
    [10 Jan 2016 19:54:48,101] INFO   D20                       | D20PRO version: 3.5.7
    [10 Jan 2016 19:54:49,931] INFO   D20                       | Java version: 1.8.0_66
    [10 Jan 2016 19:54:50,778] WARN   HintsManager              | No hints file found at: res/ContextHints.xml
    [10 Jan 2016 19:54:55,977] ERROR  HintsManager              | No message for key: welcome
    [10 Jan 2016 19:55:22,939] FATAL  SafeRunnable              | Uncaught Exception caught in SafeRunnable: ShowFrameTask (Thread Name: AWT-EventQueue-0)
    java.lang.Exception: Uncaught Exception caught in SafeRunnable: ShowFrameTask (Thread Name: AWT-EventQueue-0)
    	at com.sengent.common.threading.SafeRunnable.run(Unknown Source)
    	at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:301)
    	at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:756)
    	at java.awt.EventQueue.access$500(EventQueue.java:97)
    	at java.awt.EventQueue$3.run(EventQueue.java:709)
    	at java.awt.EventQueue$3.run(EventQueue.java:703)
    	at java.security.AccessController.doPrivileged(Native Method)
    	at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:76)
    	at java.awt.EventQueue.dispatchEvent(EventQueue.java:726)
    	at com.mindgene.d20.common.AbstractApp$CustomEventQueue.dispatchEvent(AbstractApp.java:663)
    	at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
    	at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
    	at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
    	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
    	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
    	at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)
    Caused by: java.lang.RuntimeException: No toolkit found
    	at com.sun.javafx.tk.Toolkit.getToolkit(Toolkit.java:217)
    	at com.sun.javafx.application.PlatformImpl.startup(PlatformImpl.java:209)
    	at javafx.embed.swing.JFXPanel.initFx(JFXPanel.java:215)
    	at javafx.embed.swing.JFXPanel.<init>(JFXPanel.java:230)
    	at com.mindgene.d20.common.MainView.<init>(MainView.java:79)
    	at com.mindgene.d20.common.AbstractApp.buildContent(AbstractApp.java:971)
    	at com.mindgene.d20.common.AbstractApp.access$500(AbstractApp.java:99)
    	at com.mindgene.d20.common.AbstractApp$ShowFrameTask.safeRun(AbstractApp.java:540)
    	... 16 more
    [10 Jan 2016 19:55:23,076] WARN   HintsManager              | No hints file found at: res/RandomHints.xml
    [10 Jan 2016 19:55:23,076] FATAL  AbstractApp               | Unexpected throwable initializing app
    java.lang.NullPointerException
    	at com.mindgene.d20.common.AbstractApp.updateTitle(AbstractApp.java:1516)
    	at com.mindgene.d20.common.AbstractApp.doAppInit(AbstractApp.java:491)
    	at com.mindgene.d20.common.live.LivePanel_LaunchAbstract$LaunchAction$LaunchTask.logic(LivePanel_LaunchAbstract.java:334)
    	at com.mindgene.d20.common.live.LivePanel_Abstract$AbstractPanelTask.work(LivePanel_Abstract.java:150)
    	at com.mindgene.d20.laf.BlockerControl.run(BlockerControl.java:224)
    	at java.lang.Thread.run(Thread.java:745)
    	at com.mindgene.common.threading.SafeThread.safeRun(SafeThread.java:187)
    	at com.mindgene.common.threading.SafeThread.run(SafeThread.java:195)
    [10 Jan 2016 19:55:23,083] ERROR  D20LF$Dlg                 | Unexpected throwable initializing app
    java.lang.NullPointerException
    	at com.mindgene.d20.common.AbstractApp.updateTitle(AbstractApp.java:1516)
    	at com.mindgene.d20.common.AbstractApp.doAppInit(AbstractApp.java:491)
    	at com.mindgene.d20.common.live.LivePanel_LaunchAbstract$LaunchAction$LaunchTask.logic(LivePanel_LaunchAbstract.java:334)
    	at com.mindgene.d20.common.live.LivePanel_Abstract$AbstractPanelTask.work(LivePanel_Abstract.java:150)
    	at com.mindgene.d20.laf.BlockerControl.run(BlockerControl.java:224)
    	at java.lang.Thread.run(Thread.java:745)
    	at com.mindgene.common.threading.SafeThread.safeRun(SafeThread.java:187)
    	at com.mindgene.common.threading.SafeThread.run(SafeThread.java:195)
    [10 Jan 2016 19:55:23,403] WARN   ErrCaptureStream          | Graphics Device initialization failed for :  es2, sw
    Error initializing QuantumRenderer: no suitable pipeline found
    java.lang.RuntimeException: java.lang.RuntimeException: Error initializing QuantumRenderer: no suitable pipeline found
    	at com.sun.javafx.tk.quantum.QuantumRenderer.getInstance(QuantumRenderer.java:280)
    	at com.sun.javafx.tk.quantum.QuantumToolkit.init(QuantumToolkit.java:221)
    	at com.sun.javafx.tk.Toolkit.getToolkit(Toolkit.java:205)
    	at com.sun.javafx.application.PlatformImpl.startup(PlatformImpl.java:209)
    	at javafx.embed.swing.JFXPanel.initFx(JFXPanel.java:215)
    	at javafx.embed.swing.JFXPanel.<init>(JFXPanel.java:230)
    	at com.mindgene.d20.common.MainView.<init>(MainView.java:79)
    	at com.mindgene.d20.common.AbstractApp.buildContent(AbstractApp.java:971)
    	at com.mindgene.d20.common.AbstractApp.access$500(AbstractApp.java:99)
    	at com.mindgene.d20.common.AbstractApp$ShowFrameTask.safeRun(AbstractApp.java:540)
    	at com.sengent.common.threading.SafeRunnable.run(Unknown Source)
    	at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:301)
    	at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:756)
    	at java.awt.EventQueue.access$500(EventQueue.java:97)
    	at java.awt.EventQueue$3.run(EventQueue.java:709)
    	at java.awt.EventQueue$3.run(EventQueue.java:703)
    	at java.security.AccessController.doPrivileged(Native Method)
    	at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:76)
    	at java.awt.EventQueue.dispatchEvent(EventQueue.java:726)
    	at com.mindgene.d20.common.AbstractApp$CustomEventQueue.dispatchEvent(AbstractApp.java:663)
    	at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
    	at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
    	at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
    	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
    	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
    	at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)
    Caused by: java.lang.RuntimeException: Error initializing QuantumRenderer: no suitable pipeline found
    	at com.sun.javafx.tk.quantum.QuantumRenderer$PipelineRunnable.init(QuantumRenderer.java:94)
    	at com.sun.javafx.tk.quantum.QuantumRenderer$PipelineRunnable.run(QuantumRenderer.java:124)
    	at java.lang.Thread.run(Thread.java:745)
    Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
    	at com.mindgene.d20.dm.options.D20OptionsControlPanel_DM.recognizeGameModelChanged(D20OptionsControlPanel_DM.java:83)
    	at com.mindgene.d20.dm.options.D20OptionsControlPanel_DM.populationChanged(D20OptionsControlPanel_DM.java:95)
    	at com.mindgene.d20.common.game.AbstractGameModel.notifyPopulationChanged(AbstractGameModel.java:191)
    	at com.mindgene.d20.dm.DM$1.run(DM.java:682)
    	at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)
    	at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:756)
    	at java.awt.EventQueue.access$500(EventQueue.java:97)
    	at java.awt.EventQueue$3.run(EventQueue.java:709)
    	at java.awt.EventQueue$3.run(EventQueue.java:703)
    	at java.security.AccessController.doPrivileged(Native Method)
    	at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:76)
    	at java.awt.EventQueue.dispatchEvent(EventQueue.java:726)
    	at com.mindgene.d20.common.AbstractApp$CustomEventQueue.dispatchEvent(AbstractApp.java:663)
    	at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
    	at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
    	at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
    	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
    	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
    	at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)
    
    Isn't there a spoiler-tag in BBC here?
     
  6. Ken L

    Ken L Member

    Joined:
    Dec 13, 2015
    Messages:
    90
    Likes Received:
    0
    Hey, I did a quick search on a few possible causes, you may want to take a look at this. I believe it's a javaFX dependency error.

    Code:
    Caused by: java.lang.RuntimeException: No toolkit found
    
    see here:
    http://stackoverflow.com/questions/2118 ... d-for-es2-

    The devs can probably help you more with that log.
     
  7. Gekko

    Gekko New Member

    Joined:
    Oct 8, 2012
    Messages:
    19
    Likes Received:
    1
    I'm not so sure what did the trick but finally it works.
    I installed as recommended GTK+ 3 and the Standard Widget Toolkit

    Code:
    sudo apt-get install libgtk-3-dev
    sudo apt-get install libswt-gtk-3-java
    This didn't solved the problem. In another forum I found a hint that perhaps a resource from the Java SE Development Kit is missing and you can just put it in the JRE-directory.
    I just installed the whole JDK (1.8.0_66). Using this all works fine.

    Thank you both for your help.

    (Actually, I do always use d20Pro on a Windows computer. There all worked out of the box. ;) )
     

Share This Page