[teiid-issues] [JBoss JIRA] (TEIID-2278) Restarting server causes NPE when reading metadata for the vdb that uses 'ws' translator

Ramesh Reddy (JIRA) jira-events at lists.jboss.org
Mon Oct 29 16:27:01 EDT 2012


    [ https://issues.jboss.org/browse/TEIID-2278?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12729904#comment-12729904 ] 

Ramesh Reddy commented on TEIID-2278:
-------------------------------------

when use connector caching is being used, the next time server loads it loads the metadata from cache, not from source. However, when Teiid stores the metadata it stores the metadata-store not the metadata factory, thus the NPE. The code needs to be corrected to not use the Metadata Factory in that case.
                
> Restarting server causes NPE when reading metadata for the vdb that uses 'ws' translator
> ----------------------------------------------------------------------------------------
>
>                 Key: TEIID-2278
>                 URL: https://issues.jboss.org/browse/TEIID-2278
>             Project: Teiid
>          Issue Type: Bug
>          Components: XML Connector
>    Affects Versions: 8.2
>            Reporter: Van Halbert
>            Assignee: Steven Hawkins
>         Attachments: twitter-ds.xml, twitter-vdb.xml
>
>
> Running the twitter quick start and when server is restarted, the following stacks trace is produced:
> 13:04:27,756 ERROR [org.jboss.threads.executor] (teiid-async-threads - 4) Task execution failed for task org.teiid.jboss.VDBService$6 at 15d0ff7: java.lang.NullPointerException
> 	at org.teiid.query.metadata.MetadataValidator.addColumn(MetadataValidator.java:295) [teiid-engine-8.2.0.CR1-SNAPSHOT.jar:8.2.0.CR1-SNAPSHOT]
> 	at org.teiid.query.metadata.MetadataValidator.validate(MetadataValidator.java:240) [teiid-engine-8.2.0.CR1-SNAPSHOT.jar:8.2.0.CR1-SNAPSHOT]
> 	at org.teiid.query.metadata.MetadataValidator.access$000(MetadataValidator.java:63) [teiid-engine-8.2.0.CR1-SNAPSHOT.jar:8.2.0.CR1-SNAPSHOT]
> 	at org.teiid.query.metadata.MetadataValidator$ResolveQueryPlans.execute(MetadataValidator.java:183) [teiid-engine-8.2.0.CR1-SNAPSHOT.jar:8.2.0.CR1-SNAPSHOT]
> 	at org.teiid.query.metadata.MetadataValidator.validate(MetadataValidator.java:73) [teiid-engine-8.2.0.CR1-SNAPSHOT.jar:8.2.0.CR1-SNAPSHOT]
> 	at org.teiid.deployers.VDBRepository.finishDeployment(VDBRepository.java:289) [teiid-runtime-8.2.0.CR1-SNAPSHOT.jar:8.2.0.CR1-SNAPSHOT]
> 	at org.teiid.runtime.AbstractVDBDeployer.metadataLoaded(AbstractVDBDeployer.java:170) [teiid-runtime-8.2.0.CR1-SNAPSHOT.jar:8.2.0.CR1-SNAPSHOT]
> 	at org.teiid.jboss.VDBService.access$900(VDBService.java:91) [teiid-jboss-integration-8.2.0.CR1-SNAPSHOT.jar:8.2.0.CR1-SNAPSHOT]
> 	at org.teiid.jboss.VDBService$6.run(VDBService.java:395) [teiid-jboss-integration-8.2.0.CR1-SNAPSHOT.jar:8.2.0.CR1-SNAPSHOT]
> 	at org.jboss.threads.SimpleDirectExecutor.execute(SimpleDirectExecutor.java:33)
> 	at org.jboss.threads.QueueExecutor.runTask(QueueExecutor.java:801)
> 	at org.jboss.threads.QueueExecutor.access$100(QueueExecutor.java:45)
> 	at org.jboss.threads.QueueExecutor$Worker.run(QueueExecutor.java:821)
> 	at java.lang.Thread.run(Thread.java:680) [classes.jar:1.6.0_35]
> 	at org.jboss.threads.JBossThread.run(JBossThread.java:122)
> If I clean the data/teiid-data directory and restart, its ok, but restart again, NPE is produced again.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the teiid-issues mailing list