[
https://issues.jboss.org/browse/TEIIDDES-1625?page=com.atlassian.jira.plu...
]
Paul Richardson commented on TEIIDDES-1625:
-------------------------------------------
I don't follow you here.
So I don't pretend to fully understand the flow but from what I see in
SocketServerInstanceImpl.doHandshake():
1. handshake.getVersion() is called to set serverVersion which seems to remain client
side. This value is taken from a serialized object hence is the correct 8.3.0.Final.
2. handshake.setVersion() is called, which resets handshake's version from the
application.properties, which in designer's case ended up as ${project.version}
3. the handshake is then written to the socketChannel, which I thought was transferred to
the server.
This process I concluded was responsible for the client sending messages without wrapping
but receiving messages with wrapping. So I am suggesting rather than the client assuming
the object is not wrapped as a SealedObject, a check should at least be added so that a
ClassCastException can be avoided, eg. if (object instanceof SealedObject) in
BasicCryptor.unsealObject.
Unable to create JDBC connection to Teiid 8.3 Final from Designer
-----------------------------------------------------------------
Key: TEIIDDES-1625
URL:
https://issues.jboss.org/browse/TEIIDDES-1625
Project: Teiid Designer
Issue Type: Bug
Reporter: Barry LaFond
Assignee: Paul Richardson
Fix For: 8.1
Upgraded Teiid designer to 8.3 Final bits
Tried to Preview a table and received following exception:
!ENTRY org.teiid.designer.dqp.ui 4 0 2013-03-19 11:33:24.518
!MESSAGE javax.crypto.SealedObject cannot be cast to
org.teiid.client.security.LogonResult
!STACK 0
java.lang.ClassCastException: javax.crypto.SealedObject cannot be cast to
org.teiid.client.security.LogonResult
at sun.proxy.$Proxy27.logon(Unknown Source)
at org.teiid.net.socket.SocketServerConnection.logon(SocketServerConnection.java:173)
at
org.teiid.net.socket.SocketServerConnection.selectServerInstance(SocketServerConnection.java:125)
at
org.teiid.net.socket.SocketServerConnection.<init>(SocketServerConnection.java:92)
at
org.teiid.net.socket.SocketServerConnectionFactory.getConnection(SocketServerConnectionFactory.java:312)
at org.teiid.jdbc.SocketProfile.connect(SocketProfile.java:54)
at org.teiid.jdbc.TeiidDriver.connect(TeiidDriver.java:107)
at org.teiid.jdbc.TeiidDriver.connect(TeiidDriver.java:1)
at
org.teiid.datatools.connectivity.TeiidJDBCConnection.createConnection(TeiidJDBCConnection.java:83)
at
org.eclipse.datatools.connectivity.DriverConnectionBase.internalCreateConnection(DriverConnectionBase.java:105)
at
org.eclipse.datatools.connectivity.DriverConnectionBase.open(DriverConnectionBase.java:54)
at
org.eclipse.datatools.connectivity.drivers.jdbc.JDBCConnection.open(JDBCConnection.java:73)
at
org.teiid.datatools.connectivity.TeiidJDBCConnectionFactory.createConnection(TeiidJDBCConnectionFactory.java:23)
at
org.eclipse.datatools.connectivity.internal.ConnectionFactoryProvider.createConnection(ConnectionFactoryProvider.java:83)
at
org.eclipse.datatools.connectivity.internal.ConnectionProfile.createConnection(ConnectionProfile.java:359)
at
org.teiid.designer.runtime.ui.preview.PreviewDataWorker.getSqlConnection(PreviewDataWorker.java:621)
at
org.teiid.designer.runtime.ui.preview.PreviewDataWorker.internalRun(PreviewDataWorker.java:398)
at
org.teiid.designer.runtime.ui.preview.PreviewDataWorker.run(PreviewDataWorker.java:263)
at
org.teiid.designer.runtime.ui.preview.PreviewTableDataContextAction.run(PreviewTableDataContextAction.java:99)
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see:
http://www.atlassian.com/software/jira