cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

We are happy to announce the new Windchill Customization board! Learn more.

Windchill InfoEngine API's not working through Proxy Connection

sdaftardar
12-Amethyst

Windchill InfoEngine API's not working through Proxy Connection

Hello,

 

We have an environment where we are trying to connect to Windchill 11.0.

Windchill is setup in SSL mode and we connecting through HTTPS proxy.

 

We are using standalone application to Query a part, using SimpleTaskDispatcher and InfoEngine API's.

Windchill application certificate is also added in the truststore.

 

Below is sample code :

 

IeConnectionFactory f1 = new IeConnectionFactory();
IeConnectionSpec connSpc = new IeConnectionSpec();


connSpc.setUserName(userName);
connSpc.setPassword(password);
connSpc.setProperty("ConnectionURL",url + "/servlet/SimpleTaskDispatcher" );

 

javax.resource.cci.Connection windchillConnection = f1.getConnection(connSpc );
WindchillDAO dao = new WindchillDAO(windchillConnection);
dao.Query("wt.part.WTPart", " name = TestPart ", null, new String[]{"*"});

 

We have set below JAVA_OPTS :

1) https.proxyHost

2) https.proxyPort

3) https.nonProxyHosts

 

We are getting below exception  :

 

javax.net.ssl|FINE|01|main|2021-02-23 09:36:47.829 EST|null:-1|Raw read (

  0000: 48 54 54 50 2F                                     HTTP/

)

javax.net.ssl|SEVERE|01|main|2021-02-23 09:36:47.829 EST|null:-1|Fatal (UNEXPECTED_MESSAGE): javax.net.ssl.SSLException: Unsupported or unrecognized SSL message (

"throwable" : {

  javax.net.ssl.SSLException: Unsupported or unrecognized SSL message

                at sun.security.ssl.SSLSocketInputRecord.handleUnknownRecord(Unknown Source)

                at sun.security.ssl.SSLSocketInputRecord.decode(Unknown Source)

                at sun.security.ssl.SSLTransport.decode(Unknown Source)

                at sun.security.ssl.SSLSocketImpl.decode(Unknown Source)

                at sun.security.ssl.SSLSocketImpl.readHandshakeRecord(Unknown Source)

                at sun.security.ssl.SSLSocketImpl.startHandshake(Unknown Source)

                at sun.security.ssl.SSLSocketImpl.ensureNegotiated(Unknown Source)

                at sun.security.ssl.SSLSocketImpl.access$200(Unknown Source)

                at sun.security.ssl.SSLSocketImpl$AppOutputStream.write(Unknown Source)

                at java.io.BufferedOutputStream.flushBuffer(Unknown Source)

                at java.io.BufferedOutputStream.flush(Unknown Source)

                at com.infoengine.soap.util.SOAPConnection_Impl.call(SOAPConnection_Impl.java:167)

                at com.infoengine.connector.HTTPConnection.invoke(HTTPConnection.java:288)

                at com.infoengine.connector.IeInteraction.execute(IeInteraction.java:343)

                at com.infoengine.connector.DataAccessObject.execute(DataAccessObject.java:187)

                at WindchillDAO.Query(WindchillDAO10_2.java:18)

 

 

Need help on how to use InfoEngine API's with Proxy Connection.

 

 

 

 

 

0 REPLIES 0
Top Tags