This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 211643 - NullPointerException at org.netbeans.modules.scala.stdplatform.wizard.NewJ2SEPlatform.getSDKProperties
Summary: NullPointerException at org.netbeans.modules.scala.stdplatform.wizard.NewJ2SE...
Status: NEW
Alias: None
Product: contrib
Classification: Unclassified
Component: Scala (show other bugs)
Version: 7.1
Hardware: All All
: P2 normal with 1 vote (vote)
Assignee: _ dcaoyuan
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-04-24 13:33 UTC by reinouts
Modified: 2016-02-09 21:25 UTC (History)
8 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 183168


Attachments
stacktrace (503 bytes, text/plain)
2012-04-24 13:33 UTC, reinouts
Details
stacktrace (12.15 KB, text/plain)
2013-02-15 10:28 UTC, dynamite
Details
stacktrace (503 bytes, text/plain)
2013-05-07 03:16 UTC, mexer
Details
stacktrace (503 bytes, text/plain)
2013-09-09 17:29 UTC, wobster
Details
stacktrace (503 bytes, text/plain)
2014-01-10 09:39 UTC, dynamite
Details
stacktrace (654 bytes, text/plain)
2015-11-23 21:30 UTC, David Strupl
Details
stacktrace (654 bytes, text/plain)
2016-02-09 21:25 UTC, ytn01
Details

Note You need to log in before you can comment on or make changes to this bug.
Description reinouts 2012-04-24 13:33:01 UTC
Build: NetBeans IDE 7.1.1 (Build 201203012225)
VM: OpenJDK 64-Bit Server VM, 22.0-b10, OpenJDK Runtime Environment, 1.7.0_b147-icedtea-mockbuild_2012_02_24_21_56-b00
OS: Linux

User Comments:
reinouts: Trying to add a Scala 2.9 platform




Stacktrace: 
java.lang.NullPointerException
   at org.netbeans.modules.scala.stdplatform.wizard.NewJ2SEPlatform.getSDKProperties(NewJ2SEPlatform.java:197)
   at org.netbeans.modules.scala.stdplatform.wizard.NewJ2SEPlatform.run(NewJ2SEPlatform.java:117)
   at org.netbeans.modules.scala.stdplatform.wizard.DetectPanel$WizardPanel$1.run(DetectPanel.java:427)
   at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1411)
   at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:1991)
Comment 1 reinouts 2012-04-24 13:33:05 UTC
Created attachment 118689 [details]
stacktrace
Comment 2 Exceptions Reporter 2012-10-08 20:14:15 UTC
This bug already has 10 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=183168
Comment 3 dynamite 2013-02-15 10:28:49 UTC
Created attachment 131425 [details]
stacktrace

SlowTask exception prevented installing Scala platform
Comment 4 mexer 2013-05-07 03:16:42 UTC
Created attachment 134158 [details]
stacktrace

starting netbeans after updating  SCALA_HOME
Comment 5 Exceptions Reporter 2013-05-07 03:16:49 UTC
This bug already has 20 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=183168
Comment 6 wobster 2013-09-09 17:29:57 UTC
Created attachment 139853 [details]
stacktrace

Tried to specify scala platform using the latest scala development platform 2.10.2
Comment 7 dynamite 2014-01-10 09:39:45 UTC
Created attachment 143778 [details]
stacktrace

I have just upgraded the Scala plugin and tried to set the Scala platform.  The IDE seems to show the platform directory ok in the explorer, but says it is invalid when I actually select it.
Comment 8 David Strupl 2015-11-23 21:30:04 UTC
Created attachment 157464 [details]
stacktrace

Registering a scala platform.
Comment 9 ytn01 2016-02-09 21:25:48 UTC
Created attachment 158442 [details]
stacktrace

I went to Tools\ScalaPlatforms option.
Then from the scala platforms dialog, clicked on "Add Platfrom" to install a scala platform.
After Browsing to the location of the scala platform installation and selecting it, the dialog complained the selected path doesn't contain a valid scala platform. (though its a valid one)
Afterwards the exception got thrown.