]
Steven Hawkins resolved TEIID-1279.
-----------------------------------
Resolution: Done
Gave separate error messages to each of the possible failures for UDF method loads.
Got an Unexpected exception when starting the server, after digging,
I think the message should have indicated that the UDF requires static methods
---------------------------------------------------------------------------------------------------------------------------------------------------
Key: TEIID-1279
URL:
https://jira.jboss.org/browse/TEIID-1279
Project: Teiid
Issue Type: Bug
Components: Server
Affects Versions: 7.1.1
Reporter: Van Halbert
Assignee: Steven Hawkins
Fix For: 7.1.1
When trying to start the server got this exception:
Caused by: Unexpected exception while loading
org.teiid.translator.jdbc.modeshape.functions.Cast.public java.lang.Object
org.teiid.translator.jdbc.modeshape.functions.Cast.cast(java.lang.String,java.lang.String)
with args= [class java.lang.String, class java.lang.String]
at org.teiid.query.function.FunctionTree.addFunction(FunctionTree.java:315)
at org.teiid.query.function.FunctionTree.addSource(FunctionTree.java:138)
at org.teiid.query.function.FunctionTree.<init>(FunctionTree.java:82)
at
org.teiid.query.metadata.TransformationMetadata.<init>(TransformationMetadata.java:160)
at org.teiid.deployers.CompositeVDB.buildTransformationMetaData(CompositeVDB.java:102)
at org.teiid.deployers.CompositeVDB.update(CompositeVDB.java:84)
at org.teiid.deployers.CompositeVDB.<init>(CompositeVDB.java:64)
at org.teiid.deployers.VDBRepository.addVDB(VDBRepository.java:82)
at org.teiid.deployers.VDBDeployer.deploy(VDBDeployer.java:145)
at org.teiid.deployers.VDBDeployer.deploy(VDBDeployer.java:60)
at
org.jboss.deployers.spi.deployer.helpers.AbstractSimpleRealDeployer.internalDeploy(AbstractSimpleRealDeployer.java:62)
at
org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.deploy(AbstractRealDeployer.java:55)
at
org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:179)
After digging into the code, I realized that the function methods are required to be
static. It sure would have been nice if the error would have indicated the reason. And
I can see this error happening in development.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: