You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@clerezza.apache.org by "Reto Bachmann-Gmür (JIRA)" <ji...@apache.org> on 2011/05/16 13:40:47 UTC

[jira] [Commented] (CLEREZZA-430) scala shell crashes on null pointer exception

    [ https://issues.apache.org/jira/browse/CLEREZZA-430?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13033978#comment-13033978 ] 

Reto Bachmann-Gmür commented on CLEREZZA-430:
---------------------------------------------

A normal nullpointer doesn't seem to bring the sehll to crash
zz>val s: String = null
s: String = null
zz>s.length
java.lang.NullPointerException
	at .<init>(<console>:44)
	at .<clinit>(<console>)
	at RequestResult$.<init>(<console>:9)
	at RequestResult$.<clinit>(<console>)
	at RequestResult$scala_repl_result(<console>)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:597)
	at scala.tools.nsc.Interpreter$Request$$anonfun$loadAndRun$1$$anonfun$apply$17.apply(Interpreter.scala:988)
	at scala.tools.nsc.Interpreter$Request$$anonfun$loadAndRun$1$$anonfun$apply$17.apply(Interpreter.scala:988)
	at scala.util.control.Exception$Catch.apply(Exception.scala:79)
	at scala.tools.ns...zz>
zz>


> scala shell crashes on null pointer exception
> ---------------------------------------------
>
>                 Key: CLEREZZA-430
>                 URL: https://issues.apache.org/jira/browse/CLEREZZA-430
>             Project: Clerezza
>          Issue Type: Bug
>            Reporter: Henry Story
>            Assignee: Reto Bachmann-Gmür
>            Priority: Minor
>
> On a machine running a sun jvm one can crash the shell by running
> zz> val dnsKey = new sun.security.x509.X509Key()
> console terminated
> org.apache.clerezza.shell.Shell$$anon$1@28f9f1b9: caught java.lang.NoClassDefFoundError: sun/security/x509/X509Key
> java.lang.NoClassDefFoundError: sun/security/x509/X509Key
> 	at java.lang.Class.getDeclaredMethods0(Native Method)
> 	at java.lang.Class.privateGetDeclaredMethods(Class.java:2427)
> 	at java.lang.Class.getMethod0(Class.java:2670)
> 	at java.lang.Class.getMethod(Class.java:1603)
> 	at scala.tools.nsc.Interpreter$Request.loadAndRun(Interpreter.scala:972)
> On can connect back to the shell using 
> $ ssh admin@localhost -p 8022
> but it could be annoying.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira