[teiid-issues] [JBoss JIRA] Resolved: (TEIID-1183) Cannot create a SalesForce datasource throught the admin API.

Ramesh Reddy (JIRA) jira-events at lists.jboss.org
Tue Aug 3 15:14:49 EDT 2010


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

Ramesh Reddy resolved TEIID-1183.
---------------------------------

    Resolution: Done


The connection interface for RAR file was 'Executionfactory' before the the split between the Translator & Resource Adapter. The code that gets the property metadata of the RAR file is looking for the "connection definition" under "ExecutionFactory" class, which is wrong. It should be looking for "javax.resource.cci.ConnectionFactory". 

There is still a risk if a user uses a different Connection Factory than "javax.resource.cci.ConnectionFactory" in their RAR file, then Teiid will not be able to create the template files correctly.

> Cannot create a SalesForce datasource throught the admin API.
> -------------------------------------------------------------
>
>                 Key: TEIID-1183
>                 URL: https://jira.jboss.org/browse/TEIID-1183
>             Project: Teiid
>          Issue Type: Bug
>          Components: Salesforce Connector
>    Affects Versions: 7.0
>            Reporter: John Doyle
>            Assignee: Ramesh Reddy
>             Fix For: 7.1
>
>         Attachments: SfConnTest.java
>
>
> I'm able to create a salesforce ds.xml by hand, but cannot create one with the admin API.  I'm attaching a sample java class with bugus username, password values.
> Here's the stack trace.
> org.teiid.templates.connector.RaXmlPropertyConverter.getRarProperties(RaXmlPropertyConverter.java:83), org.teiid.templates.connector.RaXmlPropertyConverter.getAsManagedProperties(RaXmlPropertyConverter.java:67), org.teiid.templates.connector.ConnectorTemplateInfo.populate(ConnectorTemplateInfo.java:75), org.teiid.templates.connector.ConnectorTemplateInfo.copy(ConnectorTemplateInfo.java:64), org.teiid.templates.connector.ConnectorTemplateInfo.copy(ConnectorTemplateInfo.java:44), org.jboss.profileservice.management.ManagementViewImpl.getTemplate(ManagementViewImpl.java:1334), org.teiid.adminapi.jboss.Admin.createDataSource(Admin.java:606), sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method), sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39), sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25), java.lang.reflect.Method.invoke(Method.java:597), org.teiid.logging.LogManager$LoggingProxy.invoke(LogManager.java:121), org.teiid.jboss.deployers.RuntimeEngineDeployer$1.invoke(RuntimeEngineDeployer.java:247), $Proxy261.createDataSource(Unknown Source), sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method), sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39), sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25), java.lang.reflect.Method.invoke(Method.java:597), org.teiid.transport.ServerWorkItem.run(ServerWorkItem.java:81), org.teiid.dqp.internal.process.DQPWorkContext.runInContext(DQPWorkContext.java:188), org.teiid.transport.SocketClientInstance.processMessagePacket(SocketClientInstance.java:160), org.teiid.transport.SocketClientInstance.receivedMessage(SocketClientInstance.java:149), org.teiid.transport.SSLAwareChannelHandler.messageReceived(SSLAwareChannelHandler.java:210), org.jboss.netty.channel.SimpleChannelHandler.handleUpstream(SimpleChannelHandler.java:100), org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:545), org.jboss.netty.channel.DefaultChannelPipeline$DefaultChannelHandlerContext.sendUpstream(DefaultChannelPipeline.java:754), org.jboss.netty.handler.stream.ChunkedWriteHandler.handleUpstream(ChunkedWriteHandler.java:144), org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:545), org.jboss.netty.channel.DefaultChannelPipeline$DefaultChannelHandlerContext.sendUpstream(DefaultChannelPipeline.java:754), org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:302), org.jboss.netty.handler.codec.frame.FrameDecoder.unfoldAndFireMessageReceived(FrameDecoder.java:317), org.jboss.netty.handler.codec.frame.FrameDecoder.callDecode(FrameDecoder.java:299), org.jboss.netty.handler.codec.frame.FrameDecoder.messageReceived(FrameDecoder.java:216), org.jboss.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:80), org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:545), org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:540), org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:274), org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:261), org.jboss.netty.channel.socket.nio.NioWorker.read(NioWorker.java:340), org.jboss.netty.channel.socket.nio.NioWorker.processSelectedKeys(NioWorker.java:272), org.jboss.netty.channel.socket.nio.NioWorker.run(NioWorker.java:192), org.jboss.netty.util.ThreadRenamingRunnable.run(ThreadRenamingRunnable.java:108), org.jboss.netty.util.internal.IoWorkerRunnable.run(IoWorkerRunnable.java:46), java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886), java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908), java.lang.Thread.run(Thread.java:619)]
> org.teiid.templates.connector.RaXmlPropertyConverter.getRarProperties(RaXmlPropertyConverter.java:83)
> org.teiid.templates.connector.RaXmlPropertyConverter.getAsManagedProperties(RaXmlPropertyConverter.java:67)
> org.teiid.templates.connector.ConnectorTemplateInfo.populate(ConnectorTemplateInfo.java:75)
> org.teiid.templates.connector.ConnectorTemplateInfo.copy(ConnectorTemplateInfo.java:64)
> org.teiid.templates.connector.ConnectorTemplateInfo.copy(ConnectorTemplateInfo.java:44)
> org.jboss.profileservice.management.ManagementViewImpl.getTemplate(ManagementViewImpl.java:1334)
> org.teiid.adminapi.jboss.Admin.createDataSource(Admin.java:606)
> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

-- 
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