6 Replies Latest reply on Aug 15, 2012 3:41 PM by Daniel Siwiec

    Error when creating new Teiid instance in Teiid Designer

    Daniel Siwiec Newbie

      I'm just starting using Teiid and ran into an issue with creating an instance in Teiid Designer. It appears, that the Designer can't connect to Teiid Admin. Here's what happens after submitting the form:

       

      org.teiid.adminapi.AdminComponentException: Error establishing socket to host and port: localhost:9999. Reason: Unsupported version: 0

                at org.teiid.adminapi.AdminFactory.createAdmin(AdminFactory.java:164)

                at org.teiid.adminapi.AdminFactory.createAdmin(AdminFactory.java:149)

                at org.teiid.adminapi.AdminFactory.createAdmin(AdminFactory.java:120)

                at org.teiid.designer.runtime.Server.getAdmin(Server.java:186)

                at org.teiid.designer.runtime.ui.server.ReconnectToServerAction$1.run(ReconnectToServerAction.java:67)

                at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)

                at org.teiid.designer.runtime.ui.server.ReconnectToServerAction.run(ReconnectToServerAction.java:60)

                at org.eclipse.ui.actions.BaseSelectionListenerAction.runWithEvent(BaseSelectionListenerAction.java:168)

                at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:584)

                at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:501)

                at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:411)

                at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)

                at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1258)

                at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3588)

                at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3209)

                at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2701)

                at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2665)

                at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2499)

                at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:679)

                at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)

                at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:668)

                at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)

                at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:123)

                at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)

                at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)

                at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)

                at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:344)

                at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)

                at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

                at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

                at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

                at java.lang.reflect.Method.invoke(Method.java:616)

                at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:622)

                at org.eclipse.equinox.launcher.Main.basicRun(Main.java:577)

                at org.eclipse.equinox.launcher.Main.run(Main.java:1410)

                at org.eclipse.equinox.launcher.Main.main(Main.java:1386)

      Caused by: org.teiid.net.socket.SingleInstanceCommunicationException: Error establishing socket to host and port: localhost:9999. Reason: Unsupported version: 0

                at org.teiid.net.socket.SocketServerConnection.selectServerInstance(SocketServerConnection.java:162)

                at org.teiid.net.socket.SocketServerConnection.<init>(SocketServerConnection.java:96)

                at org.teiid.net.socket.SocketServerConnectionFactory.getConnection(SocketServerConnectionFactory.java:311)

                at org.teiid.net.socket.SocketServerConnectionFactory.getConnection(SocketServerConnectionFactory.java:65)

                at org.teiid.adminapi.AdminFactory$AdminProxy.<init>(AdminFactory.java:53)

                at org.teiid.adminapi.AdminFactory.createAdmin(AdminFactory.java:159)

                ... 35 more

      Caused by: java.io.StreamCorruptedException: Unsupported version: 0

                at org.teiid.netty.handler.codec.serialization.CompactObjectInputStream.readStreamHeader(CompactObjectInputStream.java:57)

                at java.io.ObjectInputStream.<init>(ObjectInputStream.java:297)

                at org.teiid.netty.handler.codec.serialization.CompactObjectInputStream.<init>(CompactObjectInputStream.java:48)

                at org.teiid.netty.handler.codec.serialization.ObjectDecoderInputStream.readObjectOverride(ObjectDecoderInputStream.java:94)

                at java.io.ObjectInputStream.readObject(ObjectInputStream.java:362)

                at org.teiid.net.socket.OioOjbectChannelFactory$OioObjectChannel.read(OioOjbectChannelFactory.java:114)

                at org.teiid.net.socket.SocketServerInstanceImpl.doHandshake(SocketServerInstanceImpl.java:115)

                at org.teiid.net.socket.SocketServerInstanceImpl.connect(SocketServerInstanceImpl.java:96)

                at org.teiid.net.socket.SocketServerConnectionFactory.getServerInstance(SocketServerConnectionFactory.java:270)

                at org.teiid.net.socket.SocketServerConnection.connect(SocketServerConnection.java:200)

                at org.teiid.net.socket.SocketServerConnection.selectServerInstance(SocketServerConnection.java:126)

                ... 40 more

       

       

      Here's the form:

      screenshot.png

       

      I was able to connect to jboss admin api with Teiid Admin shell.

       

      Any ideas? Here's my setup in case you needed:

       

      teiid runtime: 8.1 CR

      jboss: 7.1.1.Final

      java: 1.6.0_24

       

      eclipse: 3.7.2 Indigo

      designer: 7.8.0.v20120709-1701-H10-Final

       

      os: ubuntu 12.04

       

       

      Thanks,

      Daniel