[teiid-issues] [JBoss JIRA] Closed: (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

Steven Hawkins (JIRA) jira-events at lists.jboss.org
Mon Jan 10 17:32:52 EST 2011


     [ https://issues.jboss.org/browse/TEIID-1279?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Steven Hawkins closed 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
> ---------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: TEIID-1279
>                 URL: https://issues.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.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the teiid-issues mailing list