-
1. Re: TEIID20018 Unable to find a component used authenticate on to Teiid
rareddy Apr 16, 2012 9:24 AM (in response to gioppoluca)Luca,
Have you done any authentication module changes? It is complaining that it can not find the authentication module. standalone-teiid.xml module comes configured by default with File based authentication with default "user/user" credentials. Are you using them. How are you trying to connect?
Ramesh..
-
2. Re: TEIID20018 Unable to find a component used authenticate on to Teiid
gioppoluca Apr 16, 2012 10:08 AM (in response to rareddy)I'm trying to connect using squirrelsql and I've not touched anything in teiid-standalone.xml.
in fact it has
<security-domain name="teiid-security" cache-type="default">
<authentication>
<login-module code="UsersRoles" flag="required">
<module-option name="usersProperties" value="teiid-security-users.properties"/>
<module-option name="rolesProperties" value="teiid-security-roles.properties"/>
</login-module>
</authentication>
</security-domain>
I use user/user but with no success, but cannot find anywhere teiid-security-users.properties and teiid-security-roles.properties and this could be part of the problem?
Thanks
Luca
-
3. Re: TEIID20018 Unable to find a component used authenticate on to Teiid
gioppoluca Apr 16, 2012 10:18 AM (in response to gioppoluca)I've tryed to place the teiid-security-users.properties and teiid-security-roles.properties in standalone\configuration folder but no success.
This is the error:
16:14:01,140 ERROR [org.teiid.SECURITY] (New I/O server worker #1-1) TEIID40017 Unexpected exception for session null: j
ava.lang.NullPointerException
at org.teiid.deployers.VDBRepository.getVDB(VDBRepository.java:123) [teiid-runtime-8.0.0.Beta2.jar:8.0.0.Beta2]
at org.teiid.services.SessionServiceImpl.getActiveVDB(SessionServiceImpl.java:222) [teiid-runtime-8.0.0.Beta2.ja
r:8.0.0.Beta2]
at org.teiid.services.SessionServiceImpl.createSession(SessionServiceImpl.java:154) [teiid-runtime-8.0.0.Beta2.j
ar:8.0.0.Beta2]
at org.teiid.transport.LogonImpl.logon(LogonImpl.java:98) [teiid-runtime-8.0.0.Beta2.jar:8.0.0.Beta2]
at org.teiid.transport.LogonImpl.logon(LogonImpl.java:80) [teiid-runtime-8.0.0.Beta2.jar:8.0.0.Beta2]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [rt.jar:1.6.0_04]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [rt.jar:1.6.0_04]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [rt.jar:1.6.0_04]
at java.lang.reflect.Method.invoke(Method.java:597) [rt.jar:1.6.0_04]
at org.teiid.transport.ServerWorkItem.run(ServerWorkItem.java:88) [teiid-runtime-8.0.0.Beta2.jar:8.0.0.Beta2]
at org.teiid.dqp.internal.process.DQPWorkContext.runInContext(DQPWorkContext.java:239) [teiid-engine-8.0.0.Beta2
.jar:8.0.0.Beta2]
at org.teiid.transport.SocketClientInstance.processMessagePacket(SocketClientInstance.java:163) [teiid-runtime-8
.0.0.Beta2.jar:8.0.0.Beta2]
at org.teiid.transport.SocketClientInstance.receivedMessage(SocketClientInstance.java:152) [teiid-runtime-8.0.0.
Beta2.jar:8.0.0.Beta2]
at org.teiid.transport.SSLAwareChannelHandler.messageReceived(SSLAwareChannelHandler.java:210) [teiid-runtime-8.
0.0.Beta2.jar:8.0.0.Beta2]
at org.jboss.netty.channel.SimpleChannelHandler.handleUpstream(SimpleChannelHandler.java:100) [netty-3.2.6.Final
.jar:]
at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564) [netty-3.2.6.Fin
al.jar:]
at org.jboss.netty.channel.DefaultChannelPipeline$DefaultChannelHandlerContext.sendUpstream(DefaultChannelPipeli
ne.java:783) [netty-3.2.6.Final.jar:]
at org.jboss.netty.handler.stream.ChunkedWriteHandler.handleUpstream(ChunkedWriteHandler.java:149) [netty-3.2.6.
Final.jar:]
at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564) [netty-3.2.6.Fin
al.jar:]
at org.jboss.netty.channel.DefaultChannelPipeline$DefaultChannelHandlerContext.sendUpstream(DefaultChannelPipeli
ne.java:783) [netty-3.2.6.Final.jar:]
at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:302) [netty-3.2.6.Final.jar:]
at org.jboss.netty.handler.codec.frame.FrameDecoder.unfoldAndFireMessageReceived(FrameDecoder.java:317) [netty-3
.2.6.Final.jar:]
at org.jboss.netty.handler.codec.frame.FrameDecoder.callDecode(FrameDecoder.java:299) [netty-3.2.6.Final.jar:]
at org.jboss.netty.handler.codec.frame.FrameDecoder.messageReceived(FrameDecoder.java:216) [netty-3.2.6.Final.ja
r:]
at org.jboss.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:80) [ne
tty-3.2.6.Final.jar:]
at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564) [netty-3.2.6.Fin
al.jar:]
at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:559) [netty-3.2.6.Fin
al.jar:]
at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:274) [netty-3.2.6.Final.jar:]
at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:261) [netty-3.2.6.Final.jar:]
at org.jboss.netty.channel.socket.nio.NioWorker.read(NioWorker.java:351) [netty-3.2.6.Final.jar:]
at org.jboss.netty.channel.socket.nio.NioWorker.processSelectedKeys(NioWorker.java:282) [netty-3.2.6.Final.jar:]
at org.jboss.netty.channel.socket.nio.NioWorker.run(NioWorker.java:202) [netty-3.2.6.Final.jar:]
at org.jboss.netty.util.ThreadRenamingRunnable.run(ThreadRenamingRunnable.java:108) [netty-3.2.6.Final.jar:]
at org.jboss.netty.util.internal.DeadLockProofWorker$1.run(DeadLockProofWorker.java:44) [netty-3.2.6.Final.jar:]
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885) [rt.jar:1.6.0_04]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907) [rt.jar:1.6.0_04]
at java.lang.Thread.run(Thread.java:619) [rt.jar:1.6.0_04]
-
4. Re: TEIID20018 Unable to find a component used authenticate on to Teiid
gioppoluca Apr 16, 2012 10:27 AM (in response to gioppoluca)Looking at logs it seems there are other problems around that may be part of the problem:
16:13:13,640 INFO [org.jboss.as.server.deployment] (MSC service thread 1-1) JBAS015876: Starting deployment of "libri.vdb"
16:13:13,640 INFO [org.jboss.as.server.deployment] (MSC service thread 1-2) JBAS015876: Starting deployment of "teiid-connector-ldap.rar"
16:13:13,656 INFO [org.jboss.as.server.deployment] (MSC service thread 1-2) JBAS015876: Starting deployment of "teiid-connector-salesforce.rar"
16:13:13,656 INFO [org.jboss.as.server.deployment] (MSC service thread 1-2) JBAS015876: Starting deployment of "teiid-connector-ws.rar"
16:13:13,656 INFO [org.jboss.as.server.deployment] (MSC service thread 1-2) JBAS015876: Starting deployment of "teiid-connector-file.rar"
16:13:13,937 WARN [org.jboss.as.dependency.private] (MSC service thread 1-2) JBAS018567: Deployment "deployment.teiid-connector-salesforce.rar" is using a private module ("org.apache.cxf:main") which may be changed or removed in future versions without notice.
16:13:13,937 WARN [org.jboss.as.dependency.private] (MSC service thread 1-2) JBAS018567: Deployment "deployment.teiid-connector-salesforce.rar" is using a private module ("org.apache.cxf:main") which may be changed or removed in future versions without notice.
16:13:13,968 WARN [org.jboss.as.dependency.private] (MSC service thread 1-2) JBAS018567: Deployment "deployment.teiid-connector-ws.rar" is using a private module ("org.apache.cxf:main") which may be changed or removed in future versions without notice.
16:13:13,968 WARN [org.jboss.as.dependency.private] (MSC service thread 1-2) JBAS018567: Deployment "deployment.teiid-connector-ws.rar" is using a private module ("org.apache.cxf:main") which may be changed or removed in future versions without notice.
16:13:14,078 INFO [org.jboss.as.connector.deployers.RADeployer] (MSC service thread 1-2) IJ020001: Required license terms for file:/L:/jboss-as-7.1.1.Final/standalone/tmp/vfs/temp6ebe10bfb1db0ca9/teiid-connector-salesforce.rar-3f72b45c8d9ce244/contents/
16:13:14,484 INFO [org.jboss.as.connector.deployers.RADeployer] (MSC service thread 1-1) IJ020001: Required license terms for file:/L:/jboss-as-7.1.1.Final/standalone/tmp/vfs/temp6ebe10bfb1db0ca9/teiid-connector-ldap.rar-192a9a1655ed4016/contents/
16:13:14,484 INFO [org.jboss.as.connector.deployers.RADeployer] (MSC service thread 1-1) IJ020001: Required license terms for file:/L:/jboss-as-7.1.1.Final/standalone/tmp/vfs/temp6ebe10bfb1db0ca9/teiid-connector-ws.rar-9ae568db5551382e/contents/
16:13:14,546 INFO [org.jboss.as.connector.deployers.RADeployer] (MSC service thread 1-2) IJ020001: Required license terms for file:/L:/jboss-as-7.1.1.Final/standalone/tmp/vfs/temp6ebe10bfb1db0ca9/teiid-connector-file.rar-3c57b42f0328157c/contents/
16:13:14,640 INFO [org.jboss.as] (MSC service thread 1-2) JBAS015951: Admin console listening on http://127.0.0.1:9990
16:13:14,640 INFO [org.jboss.as] (MSC service thread 1-2) JBAS015874: JBoss AS 7.1.1.Final "Brontes" started in 10047ms - Started 301 of 397 services (94 services are passive or on-demand)
16:13:14,796 INFO [org.teiid.RUNTIME] (MSC service thread 1-1) TEIID50029 VDB libri.1 model "local_book" metadata is currently being loaded. Start Time: 16/04/12 16.13
16:13:14,796 INFO [org.teiid.RUNTIME] (MSC service thread 1-1) TEIID50029 VDB libri.1 model "Books" metadata is currently being loaded. Start Time: 16/04/12 16.13
16:13:14,796 INFO [org.teiid.RUNTIME] (MSC service thread 1-1) TEIID50029 VDB libri.1 model "BookDatatypes" metadata is currently being loaded. Start Time: 16/04/12 16.13
16:13:14,812 INFO [org.teiid.RUNTIME] (MSC service thread 1-1) TEIID50029 VDB libri.1 model "libro" metadata is currently being loaded. Start Time: 16/04/12 16.13
16:13:14,890 INFO [org.jboss.as.server] (DeploymentScanner-threads - 2) JBAS018559: Deployed "teiid-connector-ws.rar"
16:13:14,890 INFO [org.jboss.as.server] (DeploymentScanner-threads - 2) JBAS018559: Deployed "teiid-connector-salesforce.rar"
16:13:14,890 INFO [org.jboss.as.server] (DeploymentScanner-threads - 2) JBAS018559: Deployed "teiid-connector-ldap.rar"
16:13:14,906 INFO [org.jboss.as.server] (DeploymentScanner-threads - 2) JBAS018559: Deployed "teiid-connector-file.rar"
16:13:14,906 INFO [org.jboss.as.server] (DeploymentScanner-threads - 2) JBAS018559: Deployed "libri.vdb"
16:13:14,953 INFO [org.teiid.RUNTIME] (teiid-async-threads - 2) TEIID50036 VDB libri.1 model "Books" metadata failed to load. Reason:TEIID80004 Model Books not found
16:13:14,953 WARN [org.teiid.RUNTIME] (teiid-async-threads - 2) TEIID80004 Model Books not found
16:13:14,953 INFO [org.teiid.RUNTIME] (teiid-async-threads - 3) TEIID50036 VDB libri.1 model "BookDatatypes" metadata failed to load. Reason:TEIID80004 Model BookDatatypes not found
16:13:14,953 INFO [org.teiid.RUNTIME] (teiid-async-threads - 4) TEIID50030 VDB libri.1 model "libro" metadata loaded. End Time: 16/04/12 16.13
16:13:14,953 WARN [org.teiid.RUNTIME] (teiid-async-threads - 3) TEIID80004 Model BookDatatypes not found
16:13:14,953 INFO [org.teiid.RUNTIME] (teiid-async-threads - 1) TEIID50030 VDB libri.1 model "local_book" metadata loaded. End Time: 16/04/12 16.13
Could this lend to a not correctly deployed/runnable VDB so that it seems correctly deployed in the deployment administration console, but than is not connectable in the end?
Luca
-
5. Re: TEIID20018 Unable to find a component used authenticate on to Teiid
rareddy Apr 16, 2012 11:12 AM (in response to gioppoluca)The teiid-security-user.properties file is in the jboss-as/modules/org/teiid/main/conf directory. In 7.x the files need to be in class path reachable by teiid module. In 5.x releases the configuration module was in the classpath, not in 7.x.
Yes, the VDB needs to be correctly deployed and in active state before your connection can succeed. In any rate the message should reflect that, than what you are seeing above, that is something we can fix, so you can log that. However, I suggest you deploy any other VDB and successfully connect to it to make sure there are no other errors before logging the JIRA.
The next issue is why your VDB failed to load. If you can provide a copy I can try to debug.
Thanks
Ramesh..
-
6. Re: TEIID20018 Unable to find a component used authenticate on to Teiid
gioppoluca Apr 16, 2012 11:30 AM (in response to rareddy)"active"???
It is deployed and enabled, I'm missing the active concept.
I'm attaching the vdb (it is using the xsd given by you for the example on transforming relational to xml so books and authors).
I've found the files where you sayd they had to be but no luck.
I'll add also the standalone-teiid that is the only other file touched to create the datasource.
-
standalone-teiid.xml 20.1 KB
-
libri.vdb.zip 14.5 KB
-
-
7. Re: TEIID20018 Unable to find a component used authenticate on to Teiid
gioppoluca Apr 16, 2012 12:12 PM (in response to gioppoluca)Ummm ......
I've tryed adding the twitter.vdb.xml example ... I'll describe the whole process because there are lots of quirks.
Added twitter.vdb.xml, got lots of errors and decided to remove my possibly bugged vdb and left just twitter one.
All went up I saw the "active" and manage to use the simpleclient to make the query.
Tryed to add my VBD new number of errors.
Done a few time the try both hot and cold deploy from clean or not, but ... result are impredictables.
I add the log file that may be of use is a bit long, but errors are mostly the same, but not so describing to me, maybe help you out.
In any case one of the result is that in case of a cold start if there is a problem on a VBD others do not get deployed anymore and this should not be a good behaviour.
Since I had to rezip the file (the vdb for a bug on the designer) could it be the problem caused by a zip version or ...
Thanks
Luca
-
server.log.zip 29.6 KB
-
-
8. Re: TEIID20018 Unable to find a component used authenticate on to Teiid
rareddy Apr 16, 2012 1:02 PM (in response to gioppoluca)Luca,
I found one regression in the Teiid with your VDB. I logged https://issues.jboss.org/browse/TEIID-2001 I will have fic for this shortly.
But I still could not reproduce the original issue, "TEIID20008 Unable to find component used to authenticate on to Teiid". When the VDB is not active or not deployed it usually says like VDB is not available or not active.
Ramesh..
-
9. Re: TEIID20018 Unable to find a component used authenticate on to Teiid
rareddy Apr 16, 2012 4:59 PM (in response to rareddy)TEIID-2001 fixed now, you can get nightly build, otherwise you can wait for CR2.
Ramesh.. -
10. Re: TEIID20018 Unable to find a component used authenticate on to Teiid
gioppoluca Apr 16, 2012 7:29 PM (in response to rareddy)How to get the nightly?
No account on jenkins and not found package.
Luca
-
11. Re: TEIID20018 Unable to find a component used authenticate on to Teiid
gioppoluca Apr 17, 2012 4:04 AM (in response to gioppoluca)ok I managed to get the nightly even if it is called 8.1-snapshot so I hope is the correct one.
But no luck.
As you can see the VBD get deployed but not active:
09:49:40,982 INFO [org.jboss.as] (MSC service thread 1-2) JBAS015874: JBoss AS 7.1.1.Final "Brontes" started in 12953ms
- Started 310 of 406 services (94 services are passive or on-demand)
09:49:41,014 INFO [org.teiid.RUNTIME] (MSC service thread 1-1) TEIID50029 VDB libri.1 model "local_book" metadata is cu
rrently being loaded. Start Time: 17/04/12 9.49
09:49:41,029 INFO [org.teiid.RUNTIME] (MSC service thread 1-1) TEIID50029 VDB libri.1 model "Books" metadata is current
ly being loaded. Start Time: 17/04/12 9.49
09:49:41,029 INFO [org.teiid.RUNTIME] (MSC service thread 1-1) TEIID50029 VDB libri.1 model "BookDatatypes" metadata is
currently being loaded. Start Time: 17/04/12 9.49
09:49:41,029 INFO [org.teiid.RUNTIME] (MSC service thread 1-1) TEIID50029 VDB libri.1 model "libro" metadata is current
ly being loaded. Start Time: 17/04/12 9.49
09:49:41,279 INFO [org.jboss.as.server] (DeploymentScanner-threads - 2) JBAS018559: Deployed "teiid-connector-ws.rar"
09:49:41,279 INFO [org.jboss.as.server] (DeploymentScanner-threads - 2) JBAS018559: Deployed "teiid-connector-salesforc
e.rar"
09:49:41,279 INFO [org.jboss.as.server] (DeploymentScanner-threads - 2) JBAS018559: Deployed "teiid-connector-ldap.rar"
09:49:41,279 INFO [org.jboss.as.server] (DeploymentScanner-threads - 2) JBAS018559: Deployed "teiid-connector-file.rar"
09:49:41,279 INFO [org.jboss.as.server] (DeploymentScanner-threads - 2) JBAS018559: Deployed "libri.vdb"
09:49:41,701 INFO [org.teiid.RUNTIME] (teiid-async-threads - 4) TEIID50030 VDB libri.1 model "libro" metadata loaded. E
nd Time: 17/04/12 9.49
09:49:41,701 INFO [org.teiid.RUNTIME] (teiid-async-threads - 1) TEIID50030 VDB libri.1 model "local_book" metadata load
ed. End Time: 17/04/12 9.49
09:49:41,748 INFO [org.teiid.RUNTIME] (teiid-async-threads - 2) TEIID50036 VDB libri.1 model "Books" metadata failed to
load. Reason:TEIID80004 Model Books not found
09:49:41,748 INFO [org.teiid.RUNTIME] (teiid-async-threads - 3) TEIID50036 VDB libri.1 model "BookDatatypes" metadata f
ailed to load. Reason:TEIID80004 Model BookDatatypes not found
09:49:41,748 WARN [org.teiid.RUNTIME] (teiid-async-threads - 3) TEIID80004 Model BookDatatypes not found
09:49:41,748 WARN [org.teiid.RUNTIME] (teiid-async-threads - 2) TEIID80004 Model Books not found
This is for the fact that it does not find the two xsd that should be there in the VDB packet.
I try to connect but I get the same results as before (obviously) with the wrong message
L:\jboss-as-7.1.1.Final\docs\teiid\examples\simpleclient>java -cp .;../../../../modules/org/jboss/teiid/common-core/main
/teiid-common-core-8.1.0.Alpha1-SNAPSHOT.jar;../../../../modules/org/jboss/teiid/client/main/teiid-client-8.1.0.Alpha1-S
NAPSHOT.jar JDBCClient localhost 31000 libri "select * from libro.bookListingDocument"
Executing using the TeiidDriver
17-apr-2012 9.54.20 org.teiid.jdbc.TeiidDriver connect
GRAVE: Could not create connection
org.teiid.jdbc.TeiidSQLException: Error Code:TEIID20018 Message:TEIID20018 Unable to find a component used authenticate
on to Teiid
at org.teiid.jdbc.TeiidSQLException.create(TeiidSQLException.java:113)
at org.teiid.jdbc.TeiidSQLException.create(TeiidSQLException.java:70)
at org.teiid.jdbc.SocketProfile.connect(SocketProfile.java:56)
at org.teiid.jdbc.TeiidDriver.connect(TeiidDriver.java:115)
at java.sql.DriverManager.getConnection(Unknown Source)
at java.sql.DriverManager.getConnection(Unknown Source)
at JDBCClient.getDriverConnection(JDBCClient.java:54)
at JDBCClient.main(JDBCClient.java:42)
Caused by: [CommunicationException] TEIID20018: Error Code:TEIID20018 Message:TEIID20018 Unable to find a component used
authenticate on to Teiid
1 [TeiidComponentException]
2 [NullPointerException]
at org.teiid.net.socket.SocketServerConnection.selectServerInstance(SocketServerConnection.java:146)
at org.teiid.net.socket.SocketServerConnection.<init>(SocketServerConnection.java:94)
at org.teiid.net.socket.SocketServerConnectionFactory.getConnection(SocketServerConnectionFactory.java:312)
at org.teiid.jdbc.SocketProfile.connect(SocketProfile.java:54)
... 5 more
Caused by: [TeiidComponentException]
1 [NullPointerException]
at org.teiid.client.util.ExceptionUtil.convertException(ExceptionUtil.java:61)
at org.teiid.net.socket.SocketServerInstanceImpl$RemoteInvocationHandler.invoke(SocketServerInstanceImpl.java:36
7)
at $Proxy0.logon(Unknown Source)
at org.teiid.net.socket.SocketServerConnection.logon(SocketServerConnection.java:175)
at org.teiid.net.socket.SocketServerConnection.selectServerInstance(SocketServerConnection.java:127)
... 8 more
Caused by: java.lang.NullPointerException
at org.teiid.deployers.VDBRepository.getVDB(VDBRepository.java:140)
at org.teiid.services.SessionServiceImpl.getActiveVDB(SessionServiceImpl.java:222)
at org.teiid.services.SessionServiceImpl.createSession(SessionServiceImpl.java:154)
at org.teiid.transport.LogonImpl.logon(LogonImpl.java:98)
at org.teiid.transport.LogonImpl.logon(LogonImpl.java:80)
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:88)
at org.teiid.dqp.internal.process.DQPWorkContext.runInContext(DQPWorkContext.java:239)
at org.teiid.transport.SocketClientInstance.processMessagePacket(SocketClientInstance.java:163)
at org.teiid.transport.SocketClientInstance.receivedMessage(SocketClientInstance.java:152)
at org.teiid.transport.SSLAwareChannelHandler.messageReceived(SSLAwareChannelHandler.java:210)
at org.jboss.netty.channel.SimpleChannelHandler.handleUpstream(SimpleChannelHandler.java:100)
at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564)
at org.jboss.netty.channel.DefaultChannelPipeline$DefaultChannelHandlerContext.sendUpstream(DefaultChannelPipeli
ne.java:783)
at org.jboss.netty.handler.stream.ChunkedWriteHandler.handleUpstream(ChunkedWriteHandler.java:149)
at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564)
at org.jboss.netty.channel.DefaultChannelPipeline$DefaultChannelHandlerContext.sendUpstream(DefaultChannelPipeli
ne.java:783)
at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:302)
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:216)
at org.jboss.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:80)
at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564)
at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:559)
at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:274)
at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:261)
at org.jboss.netty.channel.socket.nio.NioWorker.read(NioWorker.java:351)
at org.jboss.netty.channel.socket.nio.NioWorker.processSelectedKeys(NioWorker.java:282)
at org.jboss.netty.channel.socket.nio.NioWorker.run(NioWorker.java:202)
at org.jboss.netty.util.ThreadRenamingRunnable.run(ThreadRenamingRunnable.java:108)
at org.jboss.netty.util.internal.DeadLockProofWorker$1.run(DeadLockProofWorker.java:44)
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)
Exception in thread "main" org.teiid.jdbc.TeiidSQLException: Error Code:TEIID20018 Message:TEIID20018 Unable to find a c
omponent used authenticate on to Teiid
at org.teiid.jdbc.TeiidSQLException.create(TeiidSQLException.java:113)
at org.teiid.jdbc.TeiidSQLException.create(TeiidSQLException.java:70)
at org.teiid.jdbc.SocketProfile.connect(SocketProfile.java:56)
at org.teiid.jdbc.TeiidDriver.connect(TeiidDriver.java:115)
at java.sql.DriverManager.getConnection(Unknown Source)
at java.sql.DriverManager.getConnection(Unknown Source)
at JDBCClient.getDriverConnection(JDBCClient.java:54)
at JDBCClient.main(JDBCClient.java:42)
Caused by: [CommunicationException] TEIID20018: Error Code:TEIID20018 Message:TEIID20018 Unable to find a component used
authenticate on to Teiid
1 [TeiidComponentException]
2 [NullPointerException]
at org.teiid.net.socket.SocketServerConnection.selectServerInstance(SocketServerConnection.java:146)
at org.teiid.net.socket.SocketServerConnection.<init>(SocketServerConnection.java:94)
at org.teiid.net.socket.SocketServerConnectionFactory.getConnection(SocketServerConnectionFactory.java:312)
at org.teiid.jdbc.SocketProfile.connect(SocketProfile.java:54)
... 5 more
Caused by: [TeiidComponentException]
1 [NullPointerException]
at org.teiid.client.util.ExceptionUtil.convertException(ExceptionUtil.java:61)
at org.teiid.net.socket.SocketServerInstanceImpl$RemoteInvocationHandler.invoke(SocketServerInstanceImpl.java:36
7)
at $Proxy0.logon(Unknown Source)
at org.teiid.net.socket.SocketServerConnection.logon(SocketServerConnection.java:175)
at org.teiid.net.socket.SocketServerConnection.selectServerInstance(SocketServerConnection.java:127)
... 8 more
Caused by: java.lang.NullPointerException
at org.teiid.deployers.VDBRepository.getVDB(VDBRepository.java:140)
at org.teiid.services.SessionServiceImpl.getActiveVDB(SessionServiceImpl.java:222)
at org.teiid.services.SessionServiceImpl.createSession(SessionServiceImpl.java:154)
at org.teiid.transport.LogonImpl.logon(LogonImpl.java:98)
at org.teiid.transport.LogonImpl.logon(LogonImpl.java:80)
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:88)
at org.teiid.dqp.internal.process.DQPWorkContext.runInContext(DQPWorkContext.java:239)
at org.teiid.transport.SocketClientInstance.processMessagePacket(SocketClientInstance.java:163)
at org.teiid.transport.SocketClientInstance.receivedMessage(SocketClientInstance.java:152)
at org.teiid.transport.SSLAwareChannelHandler.messageReceived(SSLAwareChannelHandler.java:210)
at org.jboss.netty.channel.SimpleChannelHandler.handleUpstream(SimpleChannelHandler.java:100)
at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564)
at org.jboss.netty.channel.DefaultChannelPipeline$DefaultChannelHandlerContext.sendUpstream(DefaultChannelPipeli
ne.java:783)
at org.jboss.netty.handler.stream.ChunkedWriteHandler.handleUpstream(ChunkedWriteHandler.java:149)
at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564)
at org.jboss.netty.channel.DefaultChannelPipeline$DefaultChannelHandlerContext.sendUpstream(DefaultChannelPipeli
ne.java:783)
at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:302)
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:216)
at org.jboss.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:80)
at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564)
at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:559)
at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:274)
at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:261)
at org.jboss.netty.channel.socket.nio.NioWorker.read(NioWorker.java:351)
at org.jboss.netty.channel.socket.nio.NioWorker.processSelectedKeys(NioWorker.java:282)
at org.jboss.netty.channel.socket.nio.NioWorker.run(NioWorker.java:202)
at org.jboss.netty.util.ThreadRenamingRunnable.run(ThreadRenamingRunnable.java:108)
at org.jboss.netty.util.internal.DeadLockProofWorker$1.run(DeadLockProofWorker.java:44)
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)
L:\jboss-as-7.1.1.Final\docs\teiid\examples\simpleclient>
I'm on win XP
===============================================================================
JBoss Bootstrap Environment
JBOSS_HOME: L:\jboss-as-7.1.1.Final
JAVA: D:\java\jdk1.6.0_04\bin\java
JAVA_OPTS: -XX:+TieredCompilation -Dprogram.name=standalone.bat -Xms64M -Xmx512M -XX:MaxPermSize=256M -Dsun.rmi.dgc.cl
ient.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000 -Djava.net.preferIPv4Stack=true -Dorg.jboss.resolver.war
ning=true -Djboss.modules.system.pkgs=org.jboss.byteman -Djboss.server.default.config=standalone.xml
===============================================================================
-
12. Re: TEIID20018 Unable to find a component used authenticate on to Teiid
rareddy Apr 17, 2012 9:03 AM (in response to gioppoluca)Luca,
Sorry, nightly only builds the "trunk" build, the fix was put in "8.0.x" branch. If you want you can download the code the build it yourself. You can check out from
svn co http://anonsvn.jboss.org/repos/teiid/branches/8.0.x/
Ramesh..
-
13. Re: TEIID20018 Unable to find a component used authenticate on to Teiid
shawkins Apr 17, 2012 10:06 AM (in response to rareddy)Ramesh,
Have you reproduced the NPE? I don't see how the connectionType can be null.
Steve
-
14. Re: TEIID20018 Unable to find a component used authenticate on to Teiid
rareddy Apr 17, 2012 10:27 AM (in response to shawkins)Steve,
Are you talking about this
Caused by: java.lang.NullPointerException
at org.teiid.deployers.VDBRepository.getVDB(VDBRepository.java:140)
at org.teiid.services.SessionServiceImpl.getActiveVDB(SessionServiceImpl.java:222)
at org.teiid.services.SessionServiceImpl.createSession(SessionServiceImpl.java:154)
at org.teiid.transport.LogonImpl.logon(LogonImpl.java:98)
This one I fixed as part another issue, I am not sure which one you are refering to?
Thanks
Ramesh..