'An internal error occurred during: "Java AST creation"'
From: IchBin (weconsul_at_ptd.net)
Date: 12/17/04
- Next message: Carlo LF: "Hibernate in JBoss: You cannot commit during a managed transaction!"
- Previous message: klynn47_at_comcast.net: "Re: getting mysql-data with jconnector"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Fri, 17 Dec 2004 12:26:14 -0500
Hello All,
I am running Eclipse 3.1, eclipse.buildId=I200411050810, java.version=1.5.0
I realize that this maybe an Eclipse problem. My question: Is there
anything wrong with my getIPAddresses() method construction?
When I uncomment the following:
// List list = new LinkedList(); // Doubly-linked list
// list = new ArrayList();
I receive the error: 'An internal error occurred during: "Java AST
creation"'.
Here are the two lines in context of the target method:
_______________________________________________________________________________
protected static LinkedList getIPAddresses(String sqlExpression) {
sqlStatement = null;
resultSet = null;
List list = new LinkedList(); // Doubly-linked list
list = new ArrayList();
try {
sqlStatement = MemConnection.createStatement();
resultSet = sqlStatement.executeQuery(sqlExpression);
while (resultSet.next()) {
list.add(resultSet.getString(1));
}
} catch (SQLException e) {
AppError.errorMessage(e);
}
return (list);
}
_____________________________________________________________________________
Here is the accompanied NullPointerException:
java.lang.NullPointerException
at
org.eclipse.jdt.internal.compiler.lookup.ReferenceBinding.needsUncheckedConversion(ReferenceBinding.java:660)
at
org.eclipse.jdt.internal.compiler.ast.ReturnStatement.resolve(ReturnStatement.java:222)
at
org.eclipse.jdt.internal.compiler.ast.AbstractMethodDeclaration.resolveStatements(AbstractMethodDeclaration.java:400)
at
org.eclipse.jdt.internal.compiler.ast.MethodDeclaration.resolveStatements(MethodDeclaration.java:147)
at
org.eclipse.jdt.internal.compiler.ast.AbstractMethodDeclaration.resolve(AbstractMethodDeclaration.java:378)
at
org.eclipse.jdt.internal.compiler.ast.TypeDeclaration.resolve(TypeDeclaration.java:985)
at
org.eclipse.jdt.internal.compiler.ast.TypeDeclaration.resolve(TypeDeclaration.java:1034)
at
org.eclipse.jdt.internal.compiler.ast.CompilationUnitDeclaration.resolve(CompilationUnitDeclaration.java:280)
at
org.eclipse.jdt.core.dom.CompilationUnitResolver.resolve(CompilationUnitResolver.java:651)
at
org.eclipse.jdt.core.dom.CompilationUnitResolver.resolve(CompilationUnitResolver.java:442)
at
org.eclipse.jdt.core.dom.ASTParser.internalCreateAST(ASTParser.java:722)
at org.eclipse.jdt.core.dom.ASTParser.createAST(ASTParser.java:574)
at
org.eclipse.jdt.internal.ui.javaeditor.ASTProvider.createAST(ASTProvider.java:563)
at
org.eclipse.jdt.internal.ui.javaeditor.ASTProvider.getAST(ASTProvider.java:492)
at
org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup.calculateASTandInform(SelectionListenerWithASTManager.java:165)
at
org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$3.run(SelectionListenerWithASTManager.java:142)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:66)
-- Thanks in Advance... IchBin __________________________________________________________________________ 'The meeting of two personalities is like the contact of two chemical substances: if there is any reaction, both are transformed.' - Carl Gustav Jung, (1875-1961), psychiatrist and psychologist
- Next message: Carlo LF: "Hibernate in JBoss: You cannot commit during a managed transaction!"
- Previous message: klynn47_at_comcast.net: "Re: getting mysql-data with jconnector"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]