[JBoss JIRA] Created: (TEIID-1130) NPE when using exportVDB from adminshell
by Paul Nittel (JIRA)
NPE when using exportVDB from adminshell
----------------------------------------
Key: TEIID-1130
URL: https://jira.jboss.org/browse/TEIID-1130
Project: Teiid
Issue Type: Bug
Components: Server
Affects Versions: 7.0
Environment: Fedora 12, Teiid 7 CR2
Reporter: Paul Nittel
Assignee: Steve Hawkins
After deploying a VDB, I tried to export it and received an NPE.
groovy:000> getVDBs()
===> [one.1[Parts_MySQL[Parts_MySQL/mysql/9cc74d93-435a-4b64-b81b-2e1f42ee15fb__monday_Parts_MySQL], SYS[SYS/SYS/SYS]], two.1[Parts_Oracle[Parts_Oracle/oracle/7fd04942-83de-4a84-a916-de398455e491__m1_Parts_Oracle], Parts_MySQL[Parts_MySQL/mysql/7fd04942-83de-4a84-a916-de398455e491__m1_Parts_MySQL], SYS[SYS/SYS/SYS]]]
groovy:000> exportVDB("two",1,"two_v1.vdb")
ERROR java.lang.NullPointerException:
null
at org.teiid.core.util.ObjectConverterUtil.write (ObjectConverterUtil.java:173)
at org.teiid.core.util.ObjectConverterUtil.write (ObjectConverterUtil.java:158)
at org.teiid.adminshell.AdminShell.writeFile (AdminShell.java:310)
at org.teiid.adminshell.AdminShell.exportVDB (AdminShell.java:319)
at org.teiid.adminshell.AdminShell$exportVDB.callStatic (Unknown Source)
at groovysh_evaluate.run (groovysh_evaluate:3)
--
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
14 years, 6 months
[JBoss JIRA] Created: (TEIID-1124) Confusion with "java:" prefix in the DataSource from tooling
by Ramesh Reddy (JIRA)
Confusion with "java:" prefix in the DataSource from tooling
------------------------------------------------------------
Key: TEIID-1124
URL: https://jira.jboss.org/browse/TEIID-1124
Project: Teiid
Issue Type: Task
Components: AdminApi, Server
Affects Versions: 7.0
Reporter: Ramesh Reddy
Assignee: Ramesh Reddy
Fix For: 7.0
There is confusion from the tooling side with automatic addition of the "java:" prefix to the data source name created. Currently in the Admin API
there are 3 methods correspond to data sources
1) createDataSource
2) deleteDataSource
3) getDataSourceNames
Ideally all the methods should be using the consistent names. However, if the names retrieved from the "getDataSourceNames" used as the JNDI names that will not work in Teiid runtime as they do have "java:". If the method returns the names with "java:", the the "delete" will not work and inconsistent with "create" call. The problem is management object used in the Admin API and data source object have different discovery names.
Here we could solve by providing another method called "getDataSourceJNDINames" that has the "java:" prefix on its names, but it will further add to the confusion.
Even though not ideal, it may be OK and less confusing to resolve the data source name inside the Teiid engine by automatically adding the "java:" prefix, if the name does not already contain this prefix. If the data source is not found with prefix, then Teiid can retry lookup using the original name. Thus it will work both ways.
--
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
14 years, 6 months
[JBoss JIRA] Created: (TEIID-1126) Web Service VDB Execution Error
by Ted Jones (JIRA)
Web Service VDB Execution Error
-------------------------------
Key: TEIID-1126
URL: https://jira.jboss.org/browse/TEIID-1126
Project: Teiid
Issue Type: Bug
Components: Query Engine, XML Planner/Processor
Affects Versions: 7.0
Reporter: Ted Jones
Assignee: Steve Hawkins
Fix For: 7.0
Executing a stored procedure for a web service model (exec Books_MySql_WS.Books_MySql_BOOKS.getBOOKS()), I receive the following exception:
14:56:53,033 ERROR [PROCESSOR] Unexpected exception for request IvKjO3sOrdrZ.0
[TeiidComponentException]Error trying to read schemas for the document/table : Books_MySql_Output_View.BOOKS_OutputView
at org.teiid.metadata.TransformationMetadata.getXMLSchemas(TransformationMetadata.java:771)
at org.teiid.query.metadata.TempMetadataAdapter.getXMLSchemas(TempMetadataAdapter.java:489)
at org.teiid.query.metadata.TempMetadataAdapter.getXMLSchemas(TempMetadataAdapter.java:489)
at org.teiid.query.metadata.TempMetadataAdapter.getXMLSchemas(TempMetadataAdapter.java:489)
at org.teiid.query.optimizer.xml.XMLPlanner.preparePlan(XMLPlanner.java:137)
at org.teiid.query.optimizer.xml.XMLPlanner.optimize(XMLPlanner.java:85)
at org.teiid.query.optimizer.QueryOptimizer.optimizePlan(QueryOptimizer.java:104)
at org.teiid.query.optimizer.proc.ProcedurePlanner.optimize(ProcedurePlanner.java:106)
at org.teiid.query.optimizer.QueryOptimizer.optimizePlan(QueryOptimizer.java:98)
at org.teiid.query.optimizer.relational.RelationalPlanner.addNestedCommand(RelationalPlanner.java:749)
at org.teiid.query.optimizer.relational.RelationalPlanner.addNestedProcedure(RelationalPlanner.java:486)
at org.teiid.query.optimizer.relational.RelationalPlanner.createStoredProcedurePlan(RelationalPlanner.java:501)
at org.teiid.query.optimizer.relational.RelationalPlanner.generatePlan(RelationalPlanner.java:406)
at org.teiid.query.optimizer.relational.RelationalPlanner.optimize(RelationalPlanner.java:146)
at org.teiid.query.optimizer.QueryOptimizer.optimizePlan(QueryOptimizer.java:106)
at org.teiid.dqp.internal.process.Request.generatePlan(Request.java:427)
at org.teiid.dqp.internal.process.PreparedStatementRequest.generatePlan(PreparedStatementRequest.java:143)
at org.teiid.dqp.internal.process.Request.processRequest(Request.java:450)
at org.teiid.dqp.internal.process.RequestWorkItem.processNew(RequestWorkItem.java:349)
at org.teiid.dqp.internal.process.RequestWorkItem.process(RequestWorkItem.java:167)
at org.teiid.dqp.internal.process.AbstractWorkItem.run(AbstractWorkItem.java:49)
at org.teiid.dqp.internal.process.DQPWorkContext$2.call(DQPWorkContext.java:190)
at org.teiid.dqp.internal.process.DQPWorkContext$2.call(DQPWorkContext.java:187)
at org.teiid.dqp.internal.process.DQPWorkContext.runInContext(DQPWorkContext.java:176)
at org.teiid.dqp.internal.process.DQPWorkContext.runInContext(DQPWorkContext.java:187)
at org.teiid.dqp.internal.process.StatsCapturingWorkManager$WorkWrapper.run(StatsCapturingWorkManager.java:102)
at org.jboss.resource.work.WorkWrapper.execute(WorkWrapper.java:205)
at org.jboss.util.threadpool.BasicTaskWrapper.run(BasicTaskWrapper.java:260)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:619)
--
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
14 years, 6 months