[teiid-issues] [JBoss JIRA] Created: (TEIID-1279) Got an Unexpected exception when starting the server, after digging, I think the message should have indicated that the UDF requires static methods

Van Halbert (JIRA) jira-events at lists.jboss.org
Mon Sep 27 14:42:28 EDT 2010


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
            Reporter: Van Halbert
            Assignee: Steven Hawkins
            Priority: Minor
             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: https://jira.jboss.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the teiid-issues mailing list