scaladotnet icon indicating copy to clipboard operation
scaladotnet copied to clipboard

scalacompiler.exe NullPointerException

Open yuvalk opened this issue 12 years ago • 1 comments

getting this when executing scalacompiler, from the binary version

Unhandled Exception: System.TypeInitializationException: The type initializer for 'scala.tools.nsc.Main$' threw an exception. ---> System.TypeInitializationException: The type initializer for 'scala.tools.nsc.Properties$' threw an exception. ---> System.TypeInitializationException: The type initializer for 'scala.Predef$' threw an exception. ---> System.TypeInitializationException: The type initializer for 'scala.package$' threw an exception. ---> System.TypeInitializationException: The type initializer for 'scala.collection.Traversable$' threw an exception. ---> System.TypeInitializationException: The type initializer for 'scala.util.control.NoStackTrace$' threw an exception. ---> System.TypeInitializationException: The type initializer for 'scala.runtime.ScalaRunTime$' threw an exception. ---> System.TypeInitializationException: The type initializer for 'scala.compat.Platform$' threw an exception. ---> System.TypeInitializationException: The type initializer for 'scala.util.Properties$' threw an exception. ---> System.TypeInitializationException: The type initializer for 'java.nio.charset.StandardCharsets' threw an exception. ---> System.TypeInitializationException: The type initializer for 'java.lang.StdIO' threw an exception. ---> java.lang.NullPointerException: charset is null at java.security.AccessController.doPrivileged(Object , AccessControlContext , CallerID ) at java.security.AccessController.doPrivileged(PrivilegedAction action, CallerID ) at java.nio.charset.Charset.lookupViaProviders(String ) at java.nio.charset.Charset.lookup2(String ) at java.nio.charset.Charset.lookup(String ) at java.nio.charset.Charset.defaultCharset() at sun.nio.cs.StreamEncoder.forOutputStreamWriter(OutputStream out, Object lock, String charsetName) at java.io.OutputStreamWriter..ctor(OutputStream out) at java.io.PrintStream..ctor(Boolean , OutputStream ) at java.io.PrintStream..ctor(OutputStream out, Boolean autoFlush) at java.lang.StdIO..cctor() --- End of inner exception stack trace --- at java.lang.System.get_out() at java.lang.Class$3.run() at java.lang.Class$3.run() at java.security.AccessController.doPrivileged(Object , AccessControlContext , CallerID ) at java.security.AccessController.doPrivileged(PrivilegedAction action, CallerID ) at java.lang.Class.checkInitted() at java.lang.Class.privateGetDeclaredConstructors(Boolean ) at java.lang.Class.getConstructor0(Class[] , Int32 ) at java.lang.Class.newInstance0(CallerID ) at java.lang.Class.newInstance(CallerID ) at sun.nio.cs.FastCharsetProvider.lookup(String ) at sun.nio.cs.FastCharsetProvider.charsetForName(String charsetName) at java.nio.charset.Charset.lookup2(String ) at java.nio.charset.Charset.lookup(String ) at java.nio.charset.Charset.forName(String charsetName) at java.nio.charset.StandardCharsets..cctor() --- End of inner exception stack trace --- at scala.util.Properties$.scalaProps() at scala.util.PropertiesTrait$class.scalaPropOrNone(PropertiesTrait $this, String name) at scala.util.Properties$.scalaPropOrNone(String name) at scala.util.PropertiesTrait$class.$init$(PropertiesTrait $this) at scala.util.Properties$..ctor() at scala.util.Properties$..cctor() --- End of inner exception stack trace --- at scala.compat.Platform$..ctor() at scala.compat.Platform$..cctor() --- End of inner exception stack trace --- at scala.Array$.copy(Object src, Int32 srcPos, Object dest, Int32 destPos, Int32 length) at scala.collection.immutable.HashSet$.HashTrieSet.updated0(Object key, Int32 hash, Int32 level) at scala.collection.immutable.HashSet$.HashSet1.updated0(Object key, Int32 hash, Int32 level) at scala.collection.immutable.HashSet.$plus(Object e) at scala.collection.immutable.HashSet.$plus(Object elem1, Object elem2, Seq elems) at scala.collection.immutable.Set$.Set4.$plus(Object elem) at scala.collection.immutable.Set$.Set4.$plus(Object elem) at scala.collection.SetLike.$anonfun$$plus$plus$1.apply(Object v1, Object v2) at scala.collection.LinearSeqOptimized$class.foldLeft(LinearSeqOptimized $this, Object z, Function2 f) at scala.collection.immutable.List.foldLeft(Object z, Function2 f) at scala.collection.AbstractTraversable.$div$colon(Object z, Function2 op) at scala.collection.SetLike$class.$plus$plus(SetLike $this, GenTraversableOnce elems) at scala.collection.AbstractSet.$plus$plus(GenTraversableOnce elems) at scala.collection.TraversableOnce$class.toSet(TraversableOnce $this) at scala.collection.AbstractTraversable.toSet() at scala.runtime.ScalaRunTime$..ctor() at scala.runtime.ScalaRunTime$..cctor() --- End of inner exception stack trace --- at scala.sys.SystemProperties$.noTraceSupression() at scala.util.control.NoStackTrace$..ctor() at scala.util.control.NoStackTrace$..cctor() --- End of inner exception stack trace --- at scala.util.control.NoStackTrace$class.fillInStackTrace(NoStackTrace $this) at scala.util.control.BreakControl.fillInStackTrace() at java.lang.Throwable.instancehelper_fillInStackTrace(Exception this) at java.lang.Throwable..ctor() at scala.collection.Traversable$..ctor() at scala.collection.Traversable$..cctor() --- End of inner exception stack trace --- at scala.package$..ctor() at scala.package$..cctor() --- End of inner exception stack trace --- at scala.Predef$..ctor() at scala.Predef$..cctor() --- End of inner exception stack trace --- at scala.tools.nsc.Properties$.scalaProps() at scala.util.PropertiesTrait$class.scalaPropOrNone(PropertiesTrait $this, String name) at scala.tools.nsc.Properties$.scalaPropOrNone(String name) at scala.util.PropertiesTrait$class.$init$(PropertiesTrait $this) at scala.tools.nsc.Properties$..ctor() at scala.tools.nsc.Properties$..cctor() --- End of inner exception stack trace --- at scala.tools.nsc.Driver..ctor() at scala.tools.nsc.Main$..ctor() at scala.tools.nsc.Main$..cctor() --- End of inner exception stack trace --- at Main(String[] args)

yuvalk avatar Jan 06 '13 09:01 yuvalk

same thing here on a mac

cuipengfei avatar May 02 '13 16:05 cuipengfei