Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
1.1-rc-1
-
None
-
None
-
Windows XP SP2
JDK 1.5.0_11
Groovy 1.0
Grails 1.0 RC1
MySQL 5.0.45
Description
App start with this exception:
ava.lang.NullPointerException
at org.codehaus.groovy.tools.javac.JavacJavaCompiler.compile(JavacJavaCompiler.java:45)
at org.codehaus.groovy.tools.javac.JavaAwareCompilationUnit.gotoPhase(JavaAwareCompilationUnit.java:85)
at org.codehaus.groovy.control.CompilationUnit.compile(CompilationUnit.java:450)
at org.codehaus.groovy.control.CompilationUnit.compile(CompilationUnit.java:417)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.codehaus.groovy.reflection.CachedMethod.invokeByReflection(CachedMethod.java:107)
at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:127)
at org.codehaus.groovy.runtime.metaclass.StdMetaMethod.invoke(StdMetaMethod.java:18)
at org.codehaus.groovy.runtime.MetaClassHelper.doMethodInvoke(MetaClassHelper.java:538)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:749)
at groovy.lang.ExpandoMetaClass.invokeMethod(ExpandoMetaClass.java:945)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:589)
at org.codehaus.groovy.runtime.Invoker.invokePojoMethod(Invoker.java:87)
at org.codehaus.groovy.runtime.Invoker.invokeMethod(Invoker.java:75)
at org.codehaus.groovy.runtime.InvokerHelper.invokeMethod(InvokerHelper.java:74)
at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeMethodN(ScriptBytecodeAdapter.java:158)
at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeMethod0(ScriptBytecodeAdapter.java:201)
at org.codehaus.groovy.grails.compiler.GrailsCompiler.compile(GrailsCompiler.groovy:140)
at org.codehaus.groovy.ant.Groovyc.execute(Groovyc.java:406)
at org.apache.tools.ant.Task.perform(Task.java:364)
at groovy.util.AntBuilder.nodeCompleted(AntBuilder.java:174)
at groovy.util.BuilderSupport.doInvokeMethod(BuilderSupport.java:153)
at groovy.util.AntBuilder.doInvokeMethod(AntBuilder.java:135)
at groovy.util.BuilderSupport.invokeMethod(BuilderSupport.java:64)
at org.codehaus.groovy.gant.GantBuilder.invokeMethod(GantBuilder.java:53)
at org.codehaus.groovy.runtime.Invoker.invokePogoMethod(Invoker.java:102)
at org.codehaus.groovy.runtime.Invoker.invokeMethod(Invoker.java:79)
at org.codehaus.groovy.runtime.InvokerHelper.invokeMethod(InvokerHelper.java:74)
at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeMethodN(ScriptBytecodeAdapter.java:158)
at Compile_groovy$_run_closure4.doCall(Compile_groovy:89)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.codehaus.groovy.reflection.CachedMethod.invokeByReflection(CachedMethod.java:107)
at org.codehaus.groovy.runtime.metaclass.ReflectionMetaMethod.invoke(ReflectionMetaMethod.java:58)
at org.codehaus.groovy.runtime.MetaClassHelper.doMethodInvoke(MetaClassHelper.java:538)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:749)
......
I created the domain-classes with the dbmapper Plugin.
The domain-classes based on this SQL-Tables:
CREATE TABLE Artikel (
id INTEGER UNSIGNED NOT NULL AUTO_INCREMENT,
Bezeichnung VARCHAR(255) NULL,
Preis DOUBLE NULL,
PRIMARY KEY(id)
);
CREATE TABLE Rechnung (
id INTEGER UNSIGNED NOT NULL AUTO_INCREMENT,
Datum DATETIME NULL,
PRIMARY KEY(id)
);
CREATE TABLE Rechnung_Artikel (
Rechnung_id INTEGER UNSIGNED NOT NULL,
Artikel_id INTEGER UNSIGNED NOT NULL,
Menge INTEGER UNSIGNED NULL,
PRIMARY KEY(Rechnung_id, Artikel_id),
INDEX Rechnung_has_Artikel_FKIndex1(Rechnung_id),
INDEX Rechnung_has_Artikel_FKIndex2(Artikel_id)
);