[groovy-user] problems with 1.5.4 GraphicsPad on WinXP

0 views
Skip to first unread message

Leo Lipelis

unread,
Mar 19, 2008, 5:15:58 PM3/19/08
to us...@groovy.codehaus.org

I have a fresh install of Groovy 1.5.4 on Windows XP. Everything appears to
work as expected except the GraphicsPad. When I start the GraphicsPad I get
a huge window that cannot be moved or resized, because its borders are
outside the desktop viewing area.

Secondly, no matter what I try to evaluate via Control-R, I get this
exception:

java.lang.RuntimeException: An operation is not recognized. Please check the
code.
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:513)
at
org.codehaus.groovy.runtime.MetaClassHelper.doConstructorInvoke(MetaClassHelper.java:528)
at
groovy.lang.MetaClassImpl.doConstructorInvoke(MetaClassImpl.java:2347)
at
groovy.lang.MetaClassImpl.invokeConstructor(MetaClassImpl.java:1244)
at
groovy.lang.MetaClassImpl.invokeConstructor(MetaClassImpl.java:1174)
at
groovy.lang.ExpandoMetaClass.invokeConstructor(ExpandoMetaClass.java:524)
at
org.codehaus.groovy.runtime.InvokerHelper.invokeConstructorOf(InvokerHelper.java:805)
at
org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeNewN(ScriptBytecodeAdapter.java:227)
at
groovy.swing.j2d.app.GraphicsPad$_executeCode_closure18.doCall(GraphicsPad.groovy:615)
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
org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:86)
at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:226)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:899)
at
groovy.lang.ExpandoMetaClass.invokeMethod(ExpandoMetaClass.java:946)
at
org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeMethodOnCurrentN(ScriptBytecodeAdapter.java:77)
at
groovy.swing.j2d.app.GraphicsPad$_executeCode_closure18.doCall(GraphicsPad.groovy)
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
org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:86)
at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:226)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:899)
at
groovy.lang.ExpandoMetaClass.invokeMethod(ExpandoMetaClass.java:946)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:740)
at groovy.lang.Closure.call(Closure.java:292)
at groovy.lang.Closure.call(Closure.java:287)
at groovy.lang.Closure.run(Closure.java:368)
at java.lang.Thread.run(Thread.java:619)

I'm using jdk1.6.0_02 as can be seen here (cut-n-paste from .bat file with
set DEBUG=true):
C:\Program Files\Groovy\Groovy-1.5.4\bin>"C:\Program
Files\Java\jdk1.6.0_02\bin\java.exe" "-Xmx128m"

If I try to evaluate println("hi"), I see "hi" printed in the Windows shell
window followed by the same exception as above. None of the code samples I
tried to paste into the source window work.

Am I doing something wrong? Is there a bug? Does anyone know what is going
on?

Thanks in advance,
--Leo
--
View this message in context: http://www.nabble.com/problems-with-1.5.4-GraphicsPad-on-WinXP-tp16149970p16149970.html
Sent from the groovy - user mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email


Andres Almiray

unread,
Mar 20, 2008, 1:36:56 PM3/20/08
to us...@groovy.codehaus.org

Hi Leo,

The window size is fixed to 1024x800 and it is not resizable because
graphicsPad did not use SplitPane before (it does on version 0.5+), I'll be
sure to make it resizable in the next release.

I noticed that the Windows NSIS installer did not include the batik
libraries so you may want to check first if those libraries are indeed at
$GROOVY_HOME/lib (the list is located at
http://groovy.codehaus.org/GraphicsBuilder)

Lastly, you can't execute regular scripts in graphicsPad, you have to have
at least one valid graphics node in your code, a simple 'println("hi")' will
throw an exception.

-- Andres

--
View this message in context: http://www.nabble.com/problems-with-1.5.4-GraphicsPad-on-WinXP-tp16149970p16184616.html

Reply all
Reply to author
Forward
0 new messages