Uploaded image for project: 'Teiid'
  1. Teiid
  2. TEIID-1183

Cannot create a SalesForce datasource throught the admin API.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 7.1
    • 7.0
    • Salesforce Connector
    • None
    • Workaround Exists
    • Hide

      Create the DS file manually in the server instead from the Designer GUI.

      Show
      Create the DS file manually in the server instead from the Designer GUI.
    • Low

      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)

              rhn-engineering-rareddy Ramesh Reddy
              rhn-engineering-jdoyle John Doyle
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: