BSFConsole and 1108

Good day,

When I install the BSFConsole on 1108, I get the following exception:

Error message: Original exception:
java.lang.NullPointerException

at java.lang.StringBuffer.(StringBuffer.java:130) at org.kos.bsfconsoleplugin.BSFConsolePlugin.addJarsToClassPathProperty(BSFConsolePlugin.java:69) at org.kos.bsfconsoleplugin.BSFConsolePlugin.]]>(BSFConsolePlugin.java:56)

at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)

at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)

at java.lang.reflect.Constructor.newInstance(Constructor.java:274)

at com.intellij.openapi.project.a.d.c(d.java:49)

at com.intellij.openapi.components.b.a.a(a.java:195)

at com.intellij.openapi.components.b.a.m(a.java:125)

at com.intellij.openapi.components.b.a.j(a.java:227)

at com.intellij.openapi.project.a.c.u(c.java:140)

at com.intellij.openapi.project.a.d.u(d.java:202)

at com.intellij.openapi.project.a.b.a(b.java:24)

at com.intellij.openapi.fileEditor.b.d.initComponent(d.java:45)

at com.intellij.openapi.components.b.a.a(a.java:63)

at com.intellij.openapi.components.b.a.getComponent(a.java:51)

at com.intellij.openapi.components.b.a.o(a.java:21)

at com.intellij.openapi.components.b.a.j(a.java:206)

at com.intellij.openapi.application.b.b.a(b.java:95)

at com.intellij.idea.c.b(c.java:4)

at com.intellij.idea.Main$2.run(Main$2.java:1)

at com.intellij.util.LaterInvocator$FlushQueue.run(LaterInvocator.java:0)

at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:178)

at java.awt.EventQueue.dispatchEvent(EventQueue.java:454)

at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:201)

at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151)

at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:145)

at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:137)

at java.awt.EventDispatchThread.run(EventDispatchThread.java:100)

I am trying to install BeanShell, but it does not seem to matter where I put it, I get this exception which forces me to uninstall the plugin because I cannot even get into the IDE configuration screens.

Sean

0
Avatar
Permanently deleted user

This is strange. System.getProperty("idea.plugins.path") returns null in your case, although idea.sh contains such strings:

if [ -z "$IDEA_PLUGINS_PATH" ]; then
IDEA_PLUGINS_PATH=$IDEA_HOME/plugins
fi

export CLASSPATH
cd $IDEA_BIN_HOME
exec $IDEA_JRE/java -Didea.plugins.path=$IDEA_PLUGINS_PATH ...

may be there are differences in windows version or versions with installer, that run through lax?

anyway, I've added a check in 0.3.8. But note that jython won't work properly when it's jar file is not listed in the java.class.path system property, and it won't be listed automatically if idea.plugins.path isn't set.

0
Avatar
Permanently deleted user

I am getting a similar problem with build #1113. No matter where I put the jar file it can't find it.

Error message: Original exception:
java.lang.NullPointerException

at org.kos.bsfconsoleplugin.BSFConsolePlugin.addJarsToClassPathProperty(BSFConsolePlugin.java:68)

at org.kos.bsfconsoleplugin.BSFConsolePlugin.]]>(BSFConsolePlugin.java:56)

at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)

at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)

at java.lang.reflect.Constructor.newInstance(Constructor.java:274)

at com.intellij.openapi.project.a.d.c(d.java:199)

at com.intellij.openapi.components.a.a.a(a.java:90)

at com.intellij.openapi.components.a.a.m(a.java:97)

at com.intellij.openapi.components.a.a.j(a.java:160)

at com.intellij.openapi.project.a.c.u(c.java:18)

at com.intellij.openapi.project.a.d.u(d.java:160)

at com.intellij.openapi.project.a.b.a(b.java:72)

at com.intellij.openapi.fileEditor.a.d.initComponent(d.java:193)

at com.intellij.openapi.components.a.a.a(a.java:16)

at com.intellij.openapi.components.a.a.getComponent(a.java:216)

at com.intellij.openapi.components.a.a.o(a.java:115)

at com.intellij.openapi.components.a.a.j(a.java:159)

at com.intellij.openapi.application.a.b.a(b.java:241)

at com.intellij.idea.c.b(c.java:13)

at com.intellij.idea.Main$2.run(Main$2.java:1)

at com.intellij.util.LaterInvocator$FlushQueue.run(LaterInvocator.java:15)

at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:178)

at java.awt.EventQueue.dispatchEvent(EventQueue.java:454)

at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:201)

at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151)

at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:145)

at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:137)

at java.awt.EventDispatchThread.run(EventDispatchThread.java:100)

0
Avatar
Permanently deleted user

I was using the latest vefrsion 0.3.9 from the pluging manager...

0
Avatar
Permanently deleted user

The following line needs to be added to the property "lax.nl.java.option.additional" in the idea.lax file.

-Didea.plugins.path="..\plugins"

0
Avatar
Permanently deleted user

Sorry, fixed it incorrectly, please try 0.3.9.1 (available only via plugins manager)

0

请先登录再写评论。