[
https://issues.jboss.org/browse/TEIIDDES-1238?page=com.atlassian.jira.plu...
]
Barry LaFond resolved TEIIDDES-1238.
------------------------------------
Resolution: Done
Added suggested check
NPE opening web service model for editing
-----------------------------------------
Key: TEIIDDES-1238
URL:
https://issues.jboss.org/browse/TEIIDDES-1238
Project: Teiid Designer
Issue Type: Bug
Components: Transformations
Affects Versions: 7.6
Reporter: Barry LaFond
Assignee: Barry LaFond
Priority: Critical
Fix For: 7.7
While opening a WS operation for editing after start-up, received the following:
java.lang.NullPointerException
at
org.teiid.query.resolver.util.ResolverVisitor.findWithImplicitConversions(ResolverVisitor.java:574)
at
org.teiid.query.resolver.util.ResolverVisitor.resolveFunction(ResolverVisitor.java:518)
at org.teiid.query.resolver.util.ResolverVisitor.visit(ResolverVisitor.java:352)
at org.teiid.query.sql.symbol.Function.acceptVisitor(Function.java:182)
at
org.teiid.query.sql.navigator.AbstractNavigator.visitVisitor(AbstractNavigator.java:52)
at
org.teiid.query.sql.navigator.PreOrPostOrderNavigator.postVisitVisitor(PreOrPostOrderNavigator.java:140)
at
org.teiid.query.sql.navigator.PreOrPostOrderNavigator.visit(PreOrPostOrderNavigator.java:276)
at org.teiid.query.sql.symbol.Function.acceptVisitor(Function.java:182)
at org.teiid.query.sql.navigator.PostOrderNavigator.doVisit(PostOrderNavigator.java:40)
at
org.teiid.query.resolver.util.ResolverVisitor.resolveLanguageObject(ResolverVisitor.java:1012)
at
org.teiid.query.resolver.command.UpdateProcedureResolver.resolveStatement(UpdateProcedureResolver.java:253)
at
org.teiid.query.resolver.command.UpdateProcedureResolver.resolveBlock(UpdateProcedureResolver.java:164)
.....
Looks like the logic in UdfManager.getFunctionLibrary() needs some tweaking because the
first time it's called, changed == FALSE
public synchronized FunctionLibrary getFunctionLibrary() {
//System.out.println("UdfManger.getFunctionLibrary()");
if( !changed ) {
return this.cachedFunctionLibrary;
}
change to:
public synchronized FunctionLibrary getFunctionLibrary() {
//System.out.println("UdfManger.getFunctionLibrary()");
if( !changed && this.cachedFunctionLibrary != null ) {
return this.cachedFunctionLibrary;
}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see:
http://www.atlassian.com/software/jira