1 2 Previous Next 18 Replies Latest reply: Aug 13, 2010 12:46 PM by Ramesh Reddy RSS

    Creating Custom Connector

    Rakesh Balguri Expert

      Hi Ramesh,

       

      Can you provide me the simple steps to create a Custom Connector in Teiid7.0.

       

      I am going through the Docs but as you are an experienced user of Teiid I would like to take some suggestions on creating Custom Connector.

       

      Your inputs would be helpful for me

       

      Thanks

      Rakesh

        • 1. Re: Creating Custom Connector
          Ramesh Reddy Master

          Rakesh,

           

          You need to read the "Developer's  Guide", and take look at code in simple translator like our example "yahoo" or "loopback" for an example.  For resource adapter take a look at "connector-file" project. For the first time, this may seem little overwhelming, but once you understand the API and what needs to be done, depending upon what you set out to accomplish it could be easy.

           

          We made lot of effort in making the documents complete, so please give it a try. Then ask specific questions, then I can help.

           

          Thanks.

           

          Ramesh..

          • 2. Re: Creating Custom Connector
            Rakesh Balguri Expert

            Hi Ramesh,

             

            Thanks for your inputs. I will go through the docs and post  questions if any.

             

            Thanks for your help.

             

            Rakesh

            • 3. Re: Creating Custom Connector
              Rakesh Balguri Expert

              Hi Ramesh,

               

              Can you point me to the examples you have mentioned.

               

              The yahoo,loopback and connector-file examples.

               

              Can you tell me where can I find these examples so that it will be helpful for me in developing the custom connector

               

              Thanks

              Rakesh

              • 4. Re: Creating Custom Connector
                Ramesh Reddy Master

                Teiid is open source, so you have the source code to look at for any aspect of the project. There couple different ways you can get your hands on the source code.

                 

                1. You can download source from the Teiid Download site
                2. If you use SVN, then you can get it from anonymous svn site

                 

                Once you have source code, look for projects

                1. "translator-loopback", "translator-yahoo" for translator examples. (there are many more, but these are the simple ones)
                2. "connector-file", "connector-ws" for resource adapter examples.

                 

                What kind of source you are trying to create a custom connector for?

                 

                 

                Ramesh..

                • 5. Re: Creating Custom Connector
                  Rakesh Balguri Expert

                  Hi Ramesh,

                   

                  Thanks for your inputs.

                   

                  I will post questions if I face any difficulty.

                   

                  Thanks

                  Rakesh.

                  • 6. Re: Creating Custom Connector
                    Rakesh Balguri Expert

                    Hi Ramesh,

                     

                    I am trying to use the source as a Random number generator or a simple source.

                     

                    The main idea is to learn the creation of Custom connectors.

                     

                    Can you suggest me a simple source to create a custom connector for.

                     

                    Thanks

                    Rakesh

                    • 7. Re: Creating Custom Connector
                      Ramesh Reddy Master

                      The "translator-loopback" is similar to the random number generator you are talking about.

                       

                      Take look at  JIRA (TEIID-1090, TEIID-1064, TEIID-1070, TEIID-965) there are number of requests to create a new translators to see kind of sources users are interested in.

                       

                      Ramesh..

                      • 8. Re: Creating Custom Connector
                        Rakesh Balguri Expert

                        Hi Ramesh,

                         

                        Thanks for your suggestions. I will look into JIRA you mentioned.

                         

                        Thanks

                        Rakesh

                        • 9. Re: Creating Custom Connector
                          Rakesh Balguri Expert

                          Hi Ramesh,

                           

                          I had gone through the DOCS for creating a custom connector and I am a bit confused

                           

                          Can you please tell me how to use the Yahoo and the loopback connectors?

                          How do I create source models for these connectors and add them to the VDB?

                           

                          Also, can you tell me the jar files we need to put in the build path for the classes used to create a custom connector like

                           

                          org.teiid.translator.ExecutionFactory

                           

                          Also can you attach the jar files to be used to this discussion or tell me where can I download the jar files from.

                           

                          Your help is appreciated

                           

                          Thanks

                          Rakesh

                          • 10. Re: Creating Custom Connector
                            Ramesh Reddy Master

                            Rakesh,

                            I had gone through the DOCS for creating a custom connector and I am a bit confused

                            Creating custom connectors is an advanced topic in the Teiid. You need have failrly good knowledge about what Teiid is and how it works. Documentation and examples are Teiid way of teaching one how to create a custom connector. We made every effort to make them simple and understandable.  If these are not clear I would like to hear, how we can make them understandable. All I can help you here is if you a specific issue or a question.

                             

                            Can you please tell me how to use the Yahoo and the loopback connectors?

                            How do I create source models for these connectors and add them to the VDB?

                            You can use any source model created in Teiid Designer with loopback. Instead of providing a real source, when you use "loopback" translator it will mock up data for testing.  If you used Teiid "Dynamic Portfolio" example, instead of using "file" translator, you can substitute the "yahoo" translator for the real time (delayed) stock price information from Yahoo.

                             

                            Also, can you tell me the jar files we need to put in the build path for the classes used to create a custom connector like

                            You need the "teiid-core" and "teiid-api" modules jars.

                             

                            Also can you attach the jar files to be used to this discussion or tell me where can I download the jar files from.

                             

                            I can not do that either. For here are all the places you have these jar files.

                            1. You can grab them from distribution
                            2. You can down the load the source and build yourself.
                            3. If use maven, the Teiid jars in Maven repository. Search for how to use JBoss Maven repository, you will find information.

                             

                            Ramesh..

                            • 11. Re: Creating Custom Connector
                              Rakesh Balguri Expert

                              Hi Ramesh,

                               

                              I had created a simple Relational Source model and added this model to the VDB.

                              Then I added the Translator loopback to the Relational Source model and deployed the VDB.

                               

                              Can you please send me some sample VDB which contains a source which uses the loopback translator and suggest me how to query the model throught the VDB.

                               

                              I had attached the VDB I am using

                              The VDB is not getting deployed and I am getting the following error

                               

                               

                               

                              2010-08-10 14:45:23,489 ERROR [org.jboss.kernel.plugins.dependency.AbstractKernelController] (New I/O server worker #2-1) Error installing to Real: name=vfszip:/C:/CAFlow/jboss-5.1.0.GA/server/default/deploy/SecAdmin.vdb/ state=PreReal mode=Manual requiredState=Real
                              org.jboss.deployers.spi.DeploymentException: No setThrowError method found for translator property isThrowError
                                  at org.teiid.deployers.TranslatorUtil.getSetter(TranslatorUtil.java:153)
                                  at org.teiid.deployers.TranslatorUtil.injectProperties(TranslatorUtil.java:117)
                                  at org.teiid.deployers.TranslatorUtil.buildExecutionFactory(TranslatorUtil.java:96)
                                  at org.teiid.deployers.VDBDeployer.createConnectorManagers(VDBDeployer.java:188)
                                  at org.teiid.deployers.VDBDeployer.deploy(VDBDeployer.java:111)
                                  at org.teiid.deployers.VDBDeployer.deploy(VDBDeployer.java:59)
                                  at org.jboss.deployers.spi.deployer.helpers.AbstractSimpleRealDeployer.internalDeploy(AbstractSimpleRealDeployer.java:62)
                                  at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.deploy(AbstractRealDeployer.java:50)
                                  at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:171)
                                  at org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(DeployersImpl.java:1439)
                                  at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1157)
                                  at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:1098)
                                  at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
                                  at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1631)
                                  at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
                                  at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)
                                  at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
                                  at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)
                                  at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
                                  at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:781)
                                  at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:702)
                                  at org.jboss.system.server.profileservice.repository.MainDeployerAdapter.process(MainDeployerAdapter.java:117)
                                  at org.jboss.profileservice.management.upload.remoting.AbstractDeployHandler.start(AbstractDeployHandler.java:263)
                                  at org.jboss.profileservice.management.upload.remoting.AbstractDeployHandler.invoke(AbstractDeployHandler.java:177)
                                  at org.jboss.remoting.ServerInvoker.invoke(ServerInvoker.java:891)
                                  at org.jboss.remoting.transport.local.LocalClientInvoker.invoke(LocalClientInvoker.java:106)
                                  at org.jboss.remoting.Client.invoke(Client.java:1724)
                                  at org.jboss.remoting.Client.invoke(Client.java:629)
                                  at org.jboss.profileservice.management.upload.remoting.StreamingDeploymentTarget.invoke(StreamingDeploymentTarget.java:305)
                                  at org.jboss.profileservice.management.upload.remoting.StreamingDeploymentTarget.start(StreamingDeploymentTarget.java:190)
                                  at org.jboss.profileservice.management.upload.DeploymentProgressImpl.start(DeploymentProgressImpl.java:231)
                                  at org.jboss.profileservice.management.upload.DeploymentProgressImpl.run(DeploymentProgressImpl.java:88)
                                  at org.teiid.adminapi.jboss.ManagedUtil.execute(ManagedUtil.java:290)
                                  at org.teiid.adminapi.jboss.ManagedUtil.deployArchive(ManagedUtil.java:245)
                                  at org.teiid.adminapi.jboss.ManagedUtil.deployArchive(ManagedUtil.java:222)
                                  at org.teiid.adminapi.jboss.Admin.deployVDB(Admin.java:183)
                                  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                                  at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
                                  at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                                  at java.lang.reflect.Method.invoke(Method.java:597)
                                  at org.teiid.logging.LogManager$LoggingProxy.invoke(LogManager.java:121)
                                  at org.teiid.jboss.deployers.RuntimeEngineDeployer$1.invoke(RuntimeEngineDeployer.java:185)
                                  at $Proxy290.deployVDB(Unknown Source)
                                  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                                  at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
                                  at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                                  at java.lang.reflect.Method.invoke(Method.java:597)
                                  at org.teiid.transport.ServerWorkItem.run(ServerWorkItem.java:81)
                                  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.transport.SocketClientInstance.processMessagePacket(SocketClientInstance.java:160)
                                  at org.teiid.transport.SocketClientInstance.receivedMessage(SocketClientInstance.java:149)
                                  at org.teiid.transport.SSLAwareChannelHandler.messageReceived(SSLAwareChannelHandler.java:210)
                                  at org.jboss.netty.channel.SimpleChannelHandler.handleUpstream(SimpleChannelHandler.java:98)
                                  at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:560)
                                  at org.jboss.netty.channel.DefaultChannelPipeline$DefaultChannelHandlerContext.sendUpstream(DefaultChannelPipeline.java:796)
                                  at org.jboss.netty.handler.stream.ChunkedWriteHandler.handleUpstream(ChunkedWriteHandler.java:117)
                                  at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:560)
                                  at org.jboss.netty.channel.DefaultChannelPipeline$DefaultChannelHandlerContext.sendUpstream(DefaultChannelPipeline.java:796)
                                  at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:391)
                                  at org.jboss.netty.handler.codec.frame.FrameDecoder.unfoldAndFireMessageReceived(FrameDecoder.java:317)
                                  at org.jboss.netty.handler.codec.frame.FrameDecoder.callDecode(FrameDecoder.java:299)
                                  at org.jboss.netty.handler.codec.frame.FrameDecoder.messageReceived(FrameDecoder.java:214)
                                  at org.jboss.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:80)
                                  at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:560)
                                  at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:555)
                                  at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:345)
                                  at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:332)
                                  at org.jboss.netty.channel.socket.nio.NioWorker.read(NioWorker.java:323)
                                  at org.jboss.netty.channel.socket.nio.NioWorker.processSelectedKeys(NioWorker.java:275)
                                  at org.jboss.netty.channel.socket.nio.NioWorker.run(NioWorker.java:196)
                                  at org.jboss.netty.util.ThreadRenamingRunnable.run(ThreadRenamingRunnable.java:108)
                                  at org.jboss.netty.util.internal.IoWorkerRunnable.run(IoWorkerRunnable.java:46)
                                  at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885)
                                  at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)
                                  at java.lang.Thread.run(Thread.java:619)
                              2010-08-10 14:45:23,489 INFO  [org.jboss.profileservice.management.upload.remoting.DeployHandler] (New I/O server worker #2-1) Failed to complete command: [start] for deployment: names=[vfszip:/C:/CAFlow/jboss-5.1.0.GA/server/default/deploy/SecAdmin.vdb/], copyContent=true
                              org.jboss.deployers.client.spi.IncompleteDeploymentException: Summary of incomplete deployments (SEE PREVIOUS ERRORS FOR DETAILS):

                               

                              *** DEPLOYMENTS IN ERROR: Name -> Error

                               

                              vfszip:/C:/CAFlow/jboss-5.1.0.GA/server/default/deploy/SecAdmin.vdb/ -> org.jboss.deployers.spi.DeploymentException: No setThrowError method found for translator property isThrowError

                               


                              DEPLOYMENTS IN ERROR:
                                Deployment "vfszip:/C:/CAFlow/jboss-5.1.0.GA/server/default/deploy/SecAdmin.vdb/" is in error due to the following reason(s): org.jboss.deployers.spi.DeploymentException: No setThrowError method found for translator property isThrowError

                               

                                  at org.jboss.deployers.plugins.deployers.DeployersImpl.checkComplete(DeployersImpl.java:993)
                                  at org.jboss.deployers.plugins.deployers.DeployersImpl.checkComplete(DeployersImpl.java:939)
                                  at org.jboss.deployers.plugins.main.MainDeployerImpl.checkComplete(MainDeployerImpl.java:873)
                                  at org.jboss.system.server.profileservice.repository.MainDeployerAdapter.checkComplete(MainDeployerAdapter.java:128)
                                  at org.jboss.profileservice.management.upload.remoting.AbstractDeployHandler.start(AbstractDeployHandler.java:265)
                                  at org.jboss.profileservice.management.upload.remoting.AbstractDeployHandler.invoke(AbstractDeployHandler.java:177)
                                  at org.jboss.remoting.ServerInvoker.invoke(ServerInvoker.java:891)
                                  at org.jboss.remoting.transport.local.LocalClientInvoker.invoke(LocalClientInvoker.java:106)
                                  at org.jboss.remoting.Client.invoke(Client.java:1724)
                                  at org.jboss.remoting.Client.invoke(Client.java:629)
                                  at org.jboss.profileservice.management.upload.remoting.StreamingDeploymentTarget.invoke(StreamingDeploymentTarget.java:305)
                                  at org.jboss.profileservice.management.upload.remoting.StreamingDeploymentTarget.start(StreamingDeploymentTarget.java:190)
                                  at org.jboss.profileservice.management.upload.DeploymentProgressImpl.start(DeploymentProgressImpl.java:231)
                                  at org.jboss.profileservice.management.upload.DeploymentProgressImpl.run(DeploymentProgressImpl.java:88)
                                  at org.teiid.adminapi.jboss.ManagedUtil.execute(ManagedUtil.java:290)
                                  at org.teiid.adminapi.jboss.ManagedUtil.deployArchive(ManagedUtil.java:245)
                                  at org.teiid.adminapi.jboss.ManagedUtil.deployArchive(ManagedUtil.java:222)
                                  at org.teiid.adminapi.jboss.Admin.deployVDB(Admin.java:183)
                                  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                                  at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
                                  at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                                  at java.lang.reflect.Method.invoke(Method.java:597)
                                  at org.teiid.logging.LogManager$LoggingProxy.invoke(LogManager.java:121)
                                  at org.teiid.jboss.deployers.RuntimeEngineDeployer$1.invoke(RuntimeEngineDeployer.java:185)
                                  at $Proxy290.deployVDB(Unknown Source)
                                  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                                  at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
                                  at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                                  at java.lang.reflect.Method.invoke(Method.java:597)
                                  at org.teiid.transport.ServerWorkItem.run(ServerWorkItem.java:81)
                                  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.transport.SocketClientInstance.processMessagePacket(SocketClientInstance.java:160)
                                  at org.teiid.transport.SocketClientInstance.receivedMessage(SocketClientInstance.java:149)
                                  at org.teiid.transport.SSLAwareChannelHandler.messageReceived(SSLAwareChannelHandler.java:210)
                                  at org.jboss.netty.channel.SimpleChannelHandler.handleUpstream(SimpleChannelHandler.java:98)
                                  at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:560)
                                  at org.jboss.netty.channel.DefaultChannelPipeline$DefaultChannelHandlerContext.sendUpstream(DefaultChannelPipeline.java:796)
                                  at org.jboss.netty.handler.stream.ChunkedWriteHandler.handleUpstream(ChunkedWriteHandler.java:117)
                                  at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:560)
                                  at org.jboss.netty.channel.DefaultChannelPipeline$DefaultChannelHandlerContext.sendUpstream(DefaultChannelPipeline.java:796)
                                  at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:391)
                                  at org.jboss.netty.handler.codec.frame.FrameDecoder.unfoldAndFireMessageReceived(FrameDecoder.java:317)
                                  at org.jboss.netty.handler.codec.frame.FrameDecoder.callDecode(FrameDecoder.java:299)
                                  at org.jboss.netty.handler.codec.frame.FrameDecoder.messageReceived(FrameDecoder.java:214)
                                  at org.jboss.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:80)
                                  at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:560)
                                  at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:555)
                                  at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:345)
                                  at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:332)
                                  at org.jboss.netty.channel.socket.nio.NioWorker.read(NioWorker.java:323)
                                  at org.jboss.netty.channel.socket.nio.NioWorker.processSelectedKeys(NioWorker.java:275)
                                  at org.jboss.netty.channel.socket.nio.NioWorker.run(NioWorker.java:196)
                                  at org.jboss.netty.util.ThreadRenamingRunnable.run(ThreadRenamingRunnable.java:108)
                                  at org.jboss.netty.util.internal.IoWorkerRunnable.run(IoWorkerRunnable.java:46)
                                  at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885)
                                  at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)
                                  at java.lang.Thread.run(Thread.java:619)
                              2010-08-10 14:45:23,505 INFO  [org.jboss.profileservice.management.upload.remoting.DeployHandler] (New I/O server worker #2-1) Remove, [vfszip:/C:/CAFlow/jboss-5.1.0.GA/server/default/deploy/SecAdmin.vdb/]
                              2010-08-10 14:45:23,505 ERROR [org.teiid.ADMIN_API] (New I/O server worker #2-1) Unexpected exception for session B86maaFDspe3
                              [AdminComponentException]org.jboss.deployers.client.spi.IncompleteDeploymentException: Summary of incomplete deployments (SEE PREVIOUS ERRORS FOR DETAILS):

                               

                              *** DEPLOYMENTS IN ERROR: Name -> Error

                               

                              vfszip:/C:/CAFlow/jboss-5.1.0.GA/server/default/deploy/SecAdmin.vdb/ -> org.jboss.deployers.spi.DeploymentException: No setThrowError method found for translator property isThrowError

                               


                              DEPLOYMENTS IN ERROR:
                                Deployment "vfszip:/C:/CAFlow/jboss-5.1.0.GA/server/default/deploy/SecAdmin.vdb/" is in error due to the following reason(s): org.jboss.deployers.spi.DeploymentException: No setThrowError method found for translator property isThrowError

                               

                              1 [AdminProcessingException]org.jboss.deployers.client.spi.IncompleteDeploymentException: Summary of incomplete deployments (SEE PREVIOUS ERRORS FOR DETAILS):

                               

                              *** DEPLOYMENTS IN ERROR: Name -> Error

                               

                              vfszip:/C:/CAFlow/jboss-5.1.0.GA/server/default/deploy/SecAdmin.vdb/ -> org.jboss.deployers.spi.DeploymentException: No setThrowError method found for translator property isThrowError

                               


                              DEPLOYMENTS IN ERROR:
                                Deployment "vfszip:/C:/CAFlow/jboss-5.1.0.GA/server/default/deploy/SecAdmin.vdb/" is in error due to the following reason(s): org.jboss.deployers.spi.DeploymentException: No setThrowError method found for translator property isThrowError

                               

                              2 [RuntimeException]org.jboss.deployers.client.spi.IncompleteDeploymentException: Summary of incomplete deployments (SEE PREVIOUS ERRORS FOR DETAILS):

                               

                              *** DEPLOYMENTS IN ERROR: Name -> Error

                               

                              vfszip:/C:/CAFlow/jboss-5.1.0.GA/server/default/deploy/SecAdmin.vdb/ -> org.jboss.deployers.spi.DeploymentException: No setThrowError method found for translator property isThrowError

                               


                              DEPLOYMENTS IN ERROR:
                                Deployment "vfszip:/C:/CAFlow/jboss-5.1.0.GA/server/default/deploy/SecAdmin.vdb/" is in error due to the following reason(s): org.jboss.deployers.spi.DeploymentException: No setThrowError method found for translator property isThrowError

                               

                              3 [IncompleteDeploymentException]Summary of incomplete deployments (SEE PREVIOUS ERRORS FOR DETAILS):

                               

                              *** DEPLOYMENTS IN ERROR: Name -> Error

                               

                              vfszip:/C:/CAFlow/jboss-5.1.0.GA/server/default/deploy/SecAdmin.vdb/ -> org.jboss.deployers.spi.DeploymentException: No setThrowError method found for translator property isThrowError

                               


                              DEPLOYMENTS IN ERROR:
                                Deployment "vfszip:/C:/CAFlow/jboss-5.1.0.GA/server/default/deploy/SecAdmin.vdb/" is in error due to the following reason(s): org.jboss.deployers.spi.DeploymentException: No setThrowError method found for translator property isThrowError

                               

                                  at org.teiid.client.util.ExceptionUtil.convertException(ExceptionUtil.java:72)
                                  at org.teiid.jboss.deployers.RuntimeEngineDeployer$1.invoke(RuntimeEngineDeployer.java:191)
                                  at $Proxy290.deployVDB(Unknown Source)
                                  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                                  at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
                                  at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                                  at java.lang.reflect.Method.invoke(Method.java:597)
                                  at org.teiid.transport.ServerWorkItem.run(ServerWorkItem.java:81)
                                  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.transport.SocketClientInstance.processMessagePacket(SocketClientInstance.java:160)
                                  at org.teiid.transport.SocketClientInstance.receivedMessage(SocketClientInstance.java:149)
                                  at org.teiid.transport.SSLAwareChannelHandler.messageReceived(SSLAwareChannelHandler.java:210)
                                  at org.jboss.netty.channel.SimpleChannelHandler.handleUpstream(SimpleChannelHandler.java:98)
                                  at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:560)
                                  at org.jboss.netty.channel.DefaultChannelPipeline$DefaultChannelHandlerContext.sendUpstream(DefaultChannelPipeline.java:796)
                                  at org.jboss.netty.handler.stream.ChunkedWriteHandler.handleUpstream(ChunkedWriteHandler.java:117)
                                  at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:560)
                                  at org.jboss.netty.channel.DefaultChannelPipeline$DefaultChannelHandlerContext.sendUpstream(DefaultChannelPipeline.java:796)
                                  at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:391)
                                  at org.jboss.netty.handler.codec.frame.FrameDecoder.unfoldAndFireMessageReceived(FrameDecoder.java:317)
                                  at org.jboss.netty.handler.codec.frame.FrameDecoder.callDecode(FrameDecoder.java:299)
                                  at org.jboss.netty.handler.codec.frame.FrameDecoder.messageReceived(FrameDecoder.java:214)
                                  at org.jboss.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:80)
                                  at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:560)
                                  at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:555)
                                  at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:345)
                                  at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:332)
                                  at org.jboss.netty.channel.socket.nio.NioWorker.read(NioWorker.java:323)
                                  at org.jboss.netty.channel.socket.nio.NioWorker.processSelectedKeys(NioWorker.java:275)
                                  at org.jboss.netty.channel.socket.nio.NioWorker.run(NioWorker.java:196)
                                  at org.jboss.netty.util.ThreadRenamingRunnable.run(ThreadRenamingRunnable.java:108)
                                  at org.jboss.netty.util.internal.IoWorkerRunnable.run(IoWorkerRunnable.java:46)
                                  at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885)
                                  at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)
                                  at java.lang.Thread.run(Thread.java:619)
                              Caused by: [AdminProcessingException]org.jboss.deployers.client.spi.IncompleteDeploymentException: Summary of incomplete deployments (SEE PREVIOUS ERRORS FOR DETAILS):

                               

                              *** DEPLOYMENTS IN ERROR: Name -> Error

                               

                              vfszip:/C:/CAFlow/jboss-5.1.0.GA/server/default/deploy/SecAdmin.vdb/ -> org.jboss.deployers.spi.DeploymentException: No setThrowError method found for translator property isThrowError

                               


                              DEPLOYMENTS IN ERROR:
                                Deployment "vfszip:/C:/CAFlow/jboss-5.1.0.GA/server/default/deploy/SecAdmin.vdb/" is in error due to the following reason(s): org.jboss.deployers.spi.DeploymentException: No setThrowError method found for translator property isThrowError

                               

                              1 [RuntimeException]org.jboss.deployers.client.spi.IncompleteDeploymentException: Summary of incomplete deployments (SEE PREVIOUS ERRORS FOR DETAILS):

                               

                              *** DEPLOYMENTS IN ERROR: Name -> Error

                               

                              vfszip:/C:/CAFlow/jboss-5.1.0.GA/server/default/deploy/SecAdmin.vdb/ -> org.jboss.deployers.spi.DeploymentException: No setThrowError method found for translator property isThrowError

                               


                              DEPLOYMENTS IN ERROR:
                                Deployment "vfszip:/C:/CAFlow/jboss-5.1.0.GA/server/default/deploy/SecAdmin.vdb/" is in error due to the following reason(s): org.jboss.deployers.spi.DeploymentException: No setThrowError method found for translator property isThrowError

                               

                              2 [IncompleteDeploymentException]Summary of incomplete deployments (SEE PREVIOUS ERRORS FOR DETAILS):

                               

                              *** DEPLOYMENTS IN ERROR: Name -> Error

                               

                              vfszip:/C:/CAFlow/jboss-5.1.0.GA/server/default/deploy/SecAdmin.vdb/ -> org.jboss.deployers.spi.DeploymentException: No setThrowError method found for translator property isThrowError

                               


                              DEPLOYMENTS IN ERROR:
                                Deployment "vfszip:/C:/CAFlow/jboss-5.1.0.GA/server/default/deploy/SecAdmin.vdb/" is in error due to the following reason(s): org.jboss.deployers.spi.DeploymentException: No setThrowError method found for translator property isThrowError

                               

                                  at org.teiid.adminapi.jboss.ManagedUtil.execute(ManagedUtil.java:295)
                                  at org.teiid.adminapi.jboss.ManagedUtil.deployArchive(ManagedUtil.java:245)
                                  at org.teiid.adminapi.jboss.ManagedUtil.deployArchive(ManagedUtil.java:222)
                                  at org.teiid.adminapi.jboss.Admin.deployVDB(Admin.java:183)
                                  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                                  at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
                                  at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                                  at java.lang.reflect.Method.invoke(Method.java:597)
                                  at org.teiid.logging.LogManager$LoggingProxy.invoke(LogManager.java:121)
                                  at org.teiid.jboss.deployers.RuntimeEngineDeployer$1.invoke(RuntimeEngineDeployer.java:185)
                                  ... 36 more
                              Caused by: java.lang.RuntimeException: org.jboss.deployers.client.spi.IncompleteDeploymentException: Summary of incomplete deployments (SEE PREVIOUS ERRORS FOR DETAILS):

                               

                              *** DEPLOYMENTS IN ERROR: Name -> Error

                               

                              vfszip:/C:/CAFlow/jboss-5.1.0.GA/server/default/deploy/SecAdmin.vdb/ -> org.jboss.deployers.spi.DeploymentException: No setThrowError method found for translator property isThrowError

                               


                              DEPLOYMENTS IN ERROR:
                                Deployment "vfszip:/C:/CAFlow/jboss-5.1.0.GA/server/default/deploy/SecAdmin.vdb/" is in error due to the following reason(s): org.jboss.deployers.spi.DeploymentException: No setThrowError method found for translator property isThrowError

                               

                                  at org.jboss.profileservice.management.upload.remoting.StreamingDeploymentTarget.invoke(StreamingDeploymentTarget.java:313)
                                  at org.jboss.profileservice.management.upload.remoting.StreamingDeploymentTarget.start(StreamingDeploymentTarget.java:190)
                                  at org.jboss.profileservice.management.upload.DeploymentProgressImpl.start(DeploymentProgressImpl.java:231)
                                  at org.jboss.profileservice.management.upload.DeploymentProgressImpl.run(DeploymentProgressImpl.java:88)
                                  at org.teiid.adminapi.jboss.ManagedUtil.execute(ManagedUtil.java:290)
                                  ... 45 more
                              Caused by: org.jboss.deployers.client.spi.IncompleteDeploymentException: Summary of incomplete deployments (SEE PREVIOUS ERRORS FOR DETAILS):

                               

                              *** DEPLOYMENTS IN ERROR: Name -> Error

                               

                              vfszip:/C:/CAFlow/jboss-5.1.0.GA/server/default/deploy/SecAdmin.vdb/ -> org.jboss.deployers.spi.DeploymentException: No setThrowError method found for translator property isThrowError

                               


                              DEPLOYMENTS IN ERROR:
                                Deployment "vfszip:/C:/CAFlow/jboss-5.1.0.GA/server/default/deploy/SecAdmin.vdb/" is in error due to the following reason(s): org.jboss.deployers.spi.DeploymentException: No setThrowError method found for translator property isThrowError

                               

                                  at org.jboss.deployers.plugins.deployers.DeployersImpl.checkComplete(DeployersImpl.java:993)
                                  at org.jboss.deployers.plugins.deployers.DeployersImpl.checkComplete(DeployersImpl.java:939)
                                  at org.jboss.deployers.plugins.main.MainDeployerImpl.checkComplete(MainDeployerImpl.java:873)
                                  at org.jboss.system.server.profileservice.repository.MainDeployerAdapter.checkComplete(MainDeployerAdapter.java:128)
                                  at org.jboss.profileservice.management.upload.remoting.AbstractDeployHandler.start(AbstractDeployHandler.java:265)
                                  at org.jboss.profileservice.management.upload.remoting.AbstractDeployHandler.invoke(AbstractDeployHandler.java:177)
                                  at org.jboss.remoting.ServerInvoker.invoke(ServerInvoker.java:891)
                                  at org.jboss.remoting.transport.local.LocalClientInvoker.invoke(LocalClientInvoker.java:106)
                                  at org.jboss.remoting.Client.invoke(Client.java:1724)
                                  at org.jboss.remoting.Client.invoke(Client.java:629)
                                  at org.jboss.profileservice.management.upload.remoting.StreamingDeploymentTarget.invoke(StreamingDeploymentTarget.java:305)
                                  ... 49 more

                              • 12. Re: Creating Custom Connector
                                Rakesh Balguri Expert

                                Hi Ramesh,

                                 

                                Please help me in solving this problem.

                                 

                                Thanks

                                Rakesh

                                • 13. Re: Creating Custom Connector
                                  Ramesh Reddy Master

                                  Rakesh,

                                   

                                  In the VDB  you attached, you specified the "connection-jndi-name" but not the "translator" name on the "TestModel".  When using the Designer you can use the VDB editor for setting these values.

                                   

                                  translatorname.png

                                   

                                  for "loopback" you can ignore setting the JNDI Name, as there is no physical source, it is mock translator. I am also attaching the your modified VDB for reference.

                                   

                                  Ramesh..

                                  • 14. Re: Creating Custom Connector
                                    Ramesh Reddy Master

                                    Also querying a model with "loopback" translator is no different then querying it when you have a database based translator attached. In the "loopback" case the data is mocked up.

                                     

                                    Ramesh..

                                    1 2 Previous Next