Hi all,Exception occur when compiling:
java.lang.NullPointerException
at com.google.gwt.dev.javac.CompiledClass.<init>(CompiledClass.java:
83)
at com.google.gwt.dev.javac.JdtCompiler$FindTypesInCud.visit
(JdtCompiler.java:185)
at org.eclipse.jdt.internal.compiler.ast.TypeDeclaration.traverse
(TypeDeclaration.java:1253)
at
org.eclipse.jdt.internal.compiler.ast.QualifiedAllocationExpression.traverse
(QualifiedAllocationExpression.java:478)
at org.eclipse.jdt.internal.compiler.ast.Assignment.traverse
(Assignment.java:255)
at org.eclipse.jdt.internal.compiler.ast.MethodDeclaration.traverse
(MethodDeclaration.java:239)
at org.eclipse.jdt.internal.compiler.ast.TypeDeclaration.traverse
(TypeDeclaration.java:1239)
at
org.eclipse.jdt.internal.compiler.ast.CompilationUnitDeclaration.traverse
(CompilationUnitDeclaration.java:687)
at com.google.gwt.dev.javac.JdtCompiler$CompilerImpl.process
(JdtCompiler.java:157)
at org.eclipse.jdt.internal.compiler.Compiler.compile(Compiler.java:
444)
at com.google.gwt.dev.javac.JdtCompiler.doCompile(JdtCompiler.java:
466)
at com.google.gwt.dev.javac.CompilationStateBuilder
$CompileMoreLater.compile(CompilationStateBuilder.java:141)
at com.google.gwt.dev.javac.CompilationStateBuilder.doBuildFrom
(CompilationStateBuilder.java:279)
at com.google.gwt.dev.javac.CompilationStateBuilder.buildFrom
(CompilationStateBuilder.java:181)
at com.google.gwt.dev.cfg.ModuleDef.getCompilationState
(ModuleDef.java:280)
at com.google.gwt.dev.Precompile.precompile(Precompile.java:502)
at com.google.gwt.dev.Precompile.precompile(Precompile.java:414)
at com.google.gwt.dev.Compiler.run(Compiler.java:201)
...
following is my source:
package com.wiscom.demo.client;
public class BizException extends Exception implements IsSerializable
{
public BizException() {
super();
}
public BizException(String message) {
super(message);
}
public BizException(String message, Throwable cause) {
super(message, cause);
}
public BizException(Throwable cause) {
super(cause);
}
}
package com.wiscom.demo.client;
public interface ContactManager extends RemoteService {
public List<Contact> getAllContact() throws BizException;
....
If I modifed "public class BizException extends Exception" to "public
class BizException extends RuntimeException",compiling is ok.
I use GWT 2.0.
Any advise is appreciated!
Thanks
Best rgds
L.J.W
--
You received this message because you are subscribed to the Google Groups
"Google Web Toolkit" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-web-toolkit?hl=en.