Article - CS150973
Running utilities and command lines needing Xterm environment fail on Unix systems in Windchill PDMLink
Modified: 20-Mar-2025
Applies To
- Windchill PDMLink 9.1 to 13.0
Description
Utility example:
- Utility java wt.vc.RevisionSequenceCleanser and java wt.lifecycle.utility.reassign.LCReassignUtility fails in Unix system.
- It failed with exception:
Please log in as a site administrator...
Unable to invoke remote method
Nested exception is: wt.method.AuthenticationException
Command line example:- Windchill commands fails during authentication with following error message:
wt.httpgw.HTTPLogin - Failed to get input stream from connection
java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
at com.ptc.net.auth.NetAuthenticator.invokeGuiAndWait(NetAuthenticator.java:174)
at com.ptc.net.auth.NetAuthenticator.getPasswordAuthentication(NetAuthenticator.java:157)
at java.net.Authenticator.requestPasswordAuthentication(Authenticator.java:300)
at sun.net.www.protocol.http.HttpURLConnection$1.run(HttpURLConnection.java:359)
at java.security.AccessController.doPrivileged(Native Method)
at sun.net.www.protocol.http.HttpURLConnection.privilegedRequestPasswordAuthentication(HttpURLConnection.java:355)
at sun.net.www.protocol.http.HttpURLConnection.getServerAuthentication(HttpURLConnection.java:1922)
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1282)
at sun.net.www.protocol.http.HttpURLConnection.getHeaderField(HttpURLConnection.java:2308)
at java.net.URLConnection.getContentType(URLConnection.java:485)
at sun.net.www.protocol.https.HttpsURLConnectionImpl.getContentType(HttpsURLConnectionImpl.java:382)
at wt.httpgw.HTTPLogin.init(HTTPLogin.java:305)
at wt.method.RemoteMethodServer.initAuthenticator(RemoteMethodServer.java:958)
at wt.method.RemoteMethodServer.handleAuthenticationException(RemoteMethodServer.java:937)
at wt.method.RemoteMethodServer.invoke(RemoteMethodServer.java:799)
at wt.auth.Authentication.getUserName(Authentication.java:68)
at wt.auth.Authentication.main(Authentication.java:235)
Caused by: java.lang.reflect.InvocationTargetException
at java.awt.EventQueue.invokeAndWait(EventQueue.java:1042)
at com.ptc.net.auth.NetAuthenticator.invokeGuiAndWait(NetAuthenticator.java:170)
... 16 more
Caused by: java.awt.HeadlessException:
No X11 DISPLAY variable was set, but this program performed an operation which requires it.
at java.awt.GraphicsEnvironment.checkHeadless(GraphicsEnvironment.java:159)
at java.awt.Window.<init>(Window.java:432)
at java.awt.Frame.<init>(Frame.java:403)
at java.awt.Frame.<init>(Frame.java:368)
at javax.swing.SwingUtilities$SharedOwnerFrame.<init>(SwingUtilities.java:1733)
at javax.swing.SwingUtilities.getSharedOwnerFrame(SwingUtilities.java:1810)
at javax.swing.JOptionPane.getRootFrame(JOptionPane.java:1673)
at javax.swing.JOptionPane.getWindowForComponent(JOptionPane.java:1614)
at javax.swing.JOptionPane.createDialog(JOptionPane.java:940)
at javax.swing.JOptionPane.createDialog(JOptionPane.java:902)
at com.ptc.net.auth.NetAuthenticator$LoginDialogRunner.run(NetAuthenticator.java:405)
This is a printer-friendly version of Article 150973 and may be out of date. For the latest version click CS150973