Author Topic: AIX font exception  (Read 15986 times)

aevett

  • Customer
  • Sr. Member
  • *
  • Posts: 482
    • View Profile
AIX font exception
« on: May 12, 2009, 02:53:40 PM »
We're seeing the following exception on AIX with JRE 1.5.0 (build pap32devifx-20090327 (SR9-SSU )).  "Use platform graphics" is off and we've tried various font switches to no avail.

11:54:36 Exception: "java.lang.NoSuchMethodError: sun/font/FontManager.maybeUsingAlternateCompositeFonts()Z
                at java.awt.Component.getFontMetrics(Component.java:2501)
                at javax.swing.JComponent.getFontMetrics(JComponent.java:1582)
                at javax.swing.plaf.basic.BasicLabelUI.getPreferredSize(BasicLabelUI.java:254)
                at javax.swing.JComponent.getPreferredSize(JComponent.java:1617)
                at javax.swing.plaf.basic.BasicComboBoxRenderer.getPreferredSize(BasicComboBoxRenderer.java:93)
                at javax.swing.plaf.basic.BasicListUI.updateLayoutState(BasicListUI.java:1207)
                at javax.swing.plaf.basic.BasicListUI.maybeUpdateLayoutState(BasicListUI.java:1155)
                at javax.swing.plaf.basic.BasicListUI$Handler.valueChanged(BasicListUI.java:2305)
                at javax.swing.DefaultListSelectionModel.fireValueChanged(DefaultListSelectionModel.java:218)
                at javax.swing.DefaultListSelectionModel.fireValueChanged(DefaultListSelectionModel.java:198)
                at javax.swing.DefaultListSelectionModel.fireValueChanged(DefaultListSelectionModel.java:245)
                at javax.swing.DefaultListSelectionModel.changeSelection(DefaultListSelectionModel.java:439)
                at javax.swing.DefaultListSelectionModel.changeSelection(DefaultListSelectionModel.java:448)
                at javax.swing.DefaultListSelectionModel.setSelectionInterval(DefaultListSelectionModel.java:472)
                at javax.swing.JList.setSelectedIndex(JList.java:1762)
                at javax.swing.plaf.basic.BasicComboPopup.setListSelection(BasicComboPopup.java:1144)
                at javax.swing.plaf.basic.BasicComboPopup.access$300(BasicComboPopup.java:77)
                at javax.swing.plaf.basic.BasicComboPopup$Handler.itemStateChanged(BasicComboPopup.java:982)
                at javax.swing.JComboBox.fireItemStateChanged(JComboBox.java:1231)
                at javax.swing.JComboBox.selectedItemChanged(JComboBox.java:1288)
                at javax.swing.JComboBox.contentsChanged(JComboBox.java:1340)
                at javax.swing.AbstractListModel.fireContentsChanged(AbstractListModel.java:130)
                at javax.swing.DefaultComboBoxModel.setSelectedItem(DefaultComboBoxModel.java:118)
                at javax.swing.DefaultComboBoxModel.addElement(DefaultComboBoxModel.java:156)
                at oracle.help.DefaultNavigatorPanel$TabPanelChoiceModel.addNavigatorTabPanel(Unknown Source)
                at oracle.help.DefaultNavigatorPanel.addNavigatorTabPanel(Unknown Source)
                at oracle.help.Help._createNavigatorsForBook(Unknown Source)
                at oracle.help.Help.addBook(Unknown Source)
                at com.cleo.lexicom.help.LexHelp.createHelp(LexHelp.java:84)
                at com.cleo.lexicom.help.LexHelp.<init>(LexHelp.java:42)
                at com.cleo.lexicom.help.LexHelp.getHelpStr(LexHelp.java:134)
                at com.cleo.lexicom.help.ContextHelpButton.<init>(ContextHelpButton.java:37)
                at com.cleo.lexicom.PasswordDialog.<init>(PasswordDialog.java:88)
                at com.cleo.lexicom.LexiCom.webGUIpassword(LexiCom.java:1830)
                at com.cleo.lexicom.LexiCom.init(LexiCom.java:643)
                at com.cleo.lexicom.LexiCom.<init>(LexiCom.java:179)
                at com.cleo.lexicom.VLTrader.main(VLTrader.java:84)
                at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:79)
                at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
                at java.lang.reflect.Method.invoke(Method.java:618)
                at com.creamtec.ajaxswing.core.ClientAgent.loadAndRun(ClientAgent.java:614)
                at com.creamtec.ajaxswing.core.ClientAgent.doRun(ClientAgent.java:572)
                at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:79)
                at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
                at java.lang.reflect.Method.invoke(Method.java:618)
                at com.creamtec.ajaxswing.core.AjaxSwingThread.doVoidMethodVoid(AjaxSwingThread.java:157)
                at com.creamtec.ajaxswing.core.AjaxSwingThread.run(AjaxSwingThread.java:51)

Support Team

  • Administrator
  • Hero Member
  • *****
  • Posts: 1074
    • View Profile
Re: AIX font exception
« Reply #1 on: May 12, 2009, 04:14:08 PM »
This is due to JDK version mismatch. We'll add a work around this in 2.4.2, and please make sure you are using the latest version of JDK 1.5 (I assume there is no direct match to 1.5.0_17 on AIX).

Does JDK 1.6 work on AIX?


aevett

  • Customer
  • Sr. Member
  • *
  • Posts: 482
    • View Profile
Re: AIX font exception
« Reply #2 on: May 12, 2009, 04:26:58 PM »
Yes, we're using the latest AIX JREs.  There versions don't match up with the Sun-provided JREs.  We tried AIX JRE 1.6 with the same results.

aevett

  • Customer
  • Sr. Member
  • *
  • Posts: 482
    • View Profile
Re: AIX font exception
« Reply #3 on: May 13, 2009, 03:41:31 PM »
We also support IBM's Windows JRE in addition to Sun's (because it offers FIPS compliance).  When we tried IBM Windows JRE 1.5, we get the same error as on AIX (see below).  Will your AIX work around apply to Windows too?

We also tried IBM Windows JRE 1.6, but with this JRE we're getting a "Timed out while waiting for a new JVM process", (server debug file attached) but there doesn't seem to be any other clues in the server debug and a client debug file does not exist.  We can make this JRE (and the 1.5 version as well) available to you for testing if you like.
 
11:56:05 Exception: "java.lang.NoSuchMethodError: sun/font/FontManager.maybeUsingAlternateCompositeFonts()Z
      at java.awt.Component.getFontMetrics(Component.java:2501)
      at javax.swing.JComponent.getFontMetrics(JComponent.java:1582)
      at javax.swing.plaf.basic.BasicLabelUI.getPreferredSize(BasicLabelUI.java:254)
      at javax.swing.JComponent.getPreferredSize(JComponent.java:1617)
      at javax.swing.plaf.basic.BasicComboBoxRenderer.getPreferredSize(BasicComboBoxRenderer.java:93)
      at javax.swing.plaf.basic.BasicListUI.updateLayoutState(BasicListUI.java:1207)
      at javax.swing.plaf.basic.BasicListUI.maybeUpdateLayoutState(BasicListUI.java:1155)
      at javax.swing.plaf.basic.BasicListUI$Handler.valueChanged(BasicListUI.java:2305)
      at javax.swing.DefaultListSelectionModel.fireValueChanged(DefaultListSelectionModel.java:218)
      at javax.swing.DefaultListSelectionModel.fireValueChanged(DefaultListSelectionModel.java:198)
      at javax.swing.DefaultListSelectionModel.fireValueChanged(DefaultListSelectionModel.java:245)
      at javax.swing.DefaultListSelectionModel.changeSelection(DefaultListSelectionModel.java:439)
      at javax.swing.DefaultListSelectionModel.changeSelection(DefaultListSelectionModel.java:448)
      at javax.swing.DefaultListSelectionModel.setSelectionInterval(DefaultListSelectionModel.java:472)
      at javax.swing.JList.setSelectedIndex(JList.java:1762)
      at javax.swing.plaf.basic.BasicComboPopup.setListSelection(BasicComboPopup.java:1144)
      at javax.swing.plaf.basic.BasicComboPopup.access$300(BasicComboPopup.java:77)
      at javax.swing.plaf.basic.BasicComboPopup$Handler.itemStateChanged(BasicComboPopup.java:982)
      at javax.swing.JComboBox.fireItemStateChanged(JComboBox.java:1231)
      at javax.swing.JComboBox.selectedItemChanged(JComboBox.java:1288)
      at javax.swing.JComboBox.contentsChanged(JComboBox.java:1340)
      at javax.swing.AbstractListModel.fireContentsChanged(AbstractListModel.java:130)
      at javax.swing.DefaultComboBoxModel.setSelectedItem(DefaultComboBoxModel.java:118)
      at javax.swing.DefaultComboBoxModel.addElement(DefaultComboBoxModel.java:156)
      at oracle.help.DefaultNavigatorPanel$TabPanelChoiceModel.addNavigatorTabPanel(Unknown Source)
      at oracle.help.DefaultNavigatorPanel.addNavigatorTabPanel(Unknown Source)
      at oracle.help.Help._createNavigatorsForBook(Unknown Source)
      at oracle.help.Help.addBook(Unknown Source)
      at com.cleo.lexicom.help.LexHelp.createHelp(LexHelp.java:84)
      at com.cleo.lexicom.help.LexHelp.<init>(LexHelp.java:42)
      at com.cleo.lexicom.help.LexHelp.getHelpStr(LexHelp.java:134)
      at com.cleo.lexicom.help.ContextHelpButton.<init>(ContextHelpButton.java:37)
      at com.cleo.lexicom.PasswordDialog.<init>(PasswordDialog.java:88)
      at com.cleo.lexicom.LexiCom.webGUIpassword(LexiCom.java:1830)
      at com.cleo.lexicom.LexiCom.init(LexiCom.java:643)
      at com.cleo.lexicom.LexiCom.<init>(LexiCom.java:179)
      at com.cleo.lexicom.VLTrader.main(VLTrader.java:84)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:79)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:618)
      at com.creamtec.ajaxswing.core.ClientAgent.loadAndRun(ClientAgent.java:614)
      at com.creamtec.ajaxswing.core.ClientAgent.doRun(ClientAgent.java:572)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:79)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:618)
      at com.creamtec.ajaxswing.core.AjaxSwingThread.doVoidMethodVoid(AjaxSwingThread.java:157)
      at com.creamtec.ajaxswing.core.AjaxSwingThread.run(AjaxSwingThread.java:51)

Support Team

  • Administrator
  • Hero Member
  • *****
  • Posts: 1074
    • View Profile
Re: AIX font exception
« Reply #4 on: May 13, 2009, 03:57:12 PM »
Yes, the fix for sun/font/FontManager.maybeUsingAlternateCompositeFonts() should work for IBM JRE as well. RC download should be available tonight.

Regarding "Timed out while waiting for a new JVM process", it seems that the client JVMs are not registering with the server. You can try two things.

1. set router.inProcess=true and rerun the application. This should get you past the JVM startup issues and may give other clues.


2. Run the command line manually and see if it results in errors. You can find the command line by searching the log file for "cmdLine =", and just in case here it is:

C:\Program Files\Cleo\VLTrader-FIPS\jre\\bin\javaw" -Xbootclasspath/p:"C:\PROGRA~1\Cleo\VLTRAD~1\WEBSER~1\AJAXSW~1\lib\boot\asboot.jar" -Dcleo.home="C:\PROGRA~1\Cleo\VLTRAD~1" -Dajaxswing.home="C:\PROGRA~1\Cleo\VLTRAD~1\WEBSER~1\AJAXSW~1" -Dcom.creamtec.home="C:\PROGRA~1\Cleo\VLTRAD~1\WEBSER~1\AJAXSW~1" -Xmx700m -Djava.ext.dirs=jre\lib\ext;lib\ext -cp "C:\PROGRA~1\Cleo\VLTRAD~1\WEBSER~1\AJAXSW~1\lib\commons-fileupload-1.0.jar;C:\PROGRA~1\Cleo\VLTRAD~1\WEBSER~1\AJAXSW~1\lib\ajaxswing.jar;C:\PROGRA~1\Cleo\VLTRAD~1\WEBSER~1\AJAXSW~1\lib\freemarker.jar;C:\PROGRA~1\Cleo\VLTRAD~1\WEBSER~1\AJAXSW~1\lib\jsonrpc-1.0.jar;C:\PROGRA~1\Cleo\VLTRAD~1\lib\as2bean.jar;C:\PROGRA~1\Cleo\VLTRAD~1\lib\BCPG-J~1.JAR;C:\PROGRA~1\Cleo\VLTRAD~1\lib\BCPROV~1.JAR;C:\PROGRA~1\Cleo\VLTRAD~1\lib\COMIBM~1.JAR;C:\PROGRA~1\Cleo\VLTRAD~1\lib\DCEBMX~1.JAR;C:\PROGRA~1\Cleo\VLTRAD~1\lib\faxbean.jar;C:\PROGRA~1\Cleo\VLTRAD~1\lib\FAXDRI~1.JAR;C:\PROGRA~1\Cleo\VLTRAD~1\lib\ftp.jar;C:\PROGRA~1\Cleo\VLTRAD~1\lib\ftps.jar;C:\PROGRA~1\Cleo\VLTRAD~1\lib\httpbean.jar;C:\PROGRA~1\Cleo\VLTRAD~1\lib\HTTPCL~1.JAR;C:\PROGRA~1\Cleo\VLTRAD~1\lib\HTTPSB~1.JAR;C:\PROGRA~1\Cleo\VLTRAD~1\lib\IAIK_J~1.JAR;C:\PROGRA~1\Cleo\VLTRAD~1\lib\iaik_jce.jar;C:\PROGRA~1\Cleo\VLTRAD~1\lib\j2ssh.jar;C:\PROGRA~1\Cleo\VLTRAD~1\lib\Jcapi.jar;C:\PROGRA~1\Cleo\VLTRAD~1\lib\jt400.jar;C:\PROGRA~1\Cleo\VLTRAD~1\lib\lexbean.jar;C:\PROGRA~1\Cleo\VLTRAD~1\lib\lexhelp.jar;C:\PROGRA~1\Cleo\VLTRAD~1\lib\LexiCom.jar;C:\PROGRA~1\Cleo\VLTRAD~1\lib\mailbean.jar;C:\PROGRA~1\Cleo\VLTRAD~1\lib\mqbean.jar;C:\PROGRA~1\Cleo\VLTRAD~1\lib\oftpbean.jar;C:\PROGRA~1\Cleo\VLTRAD~1\lib\SERIAL~1.JAR;C:\PROGRA~1\Cleo\VLTRAD~1\lib\SFTPSE~1.JAR;C:\PROGRA~1\Cleo\VLTRAD~1\lib\SSHFTP~1.JAR;C:\PROGRA~1\Cleo\VLTRAD~1\lib\VLProxy.jar;C:\PROGRA~1\Cleo\VLTRAD~1\lib\VLTrader.jar;C:\PROGRA~1\Cleo\VLTRAD~1\lib\xalan.jar;C:\PROGRA~1\Cleo\VLTRAD~1\lib\xml-apis.jar;C:\PROGRA~1\Cleo\VLTRAD~1\lib\XMLLOG~1.JAR;C:\PROGRA~1\Cleo\VLTRAD~1\lib\help\vlthelp.jar;C:\PROGRA~1\Cleo\VLTRAD~1\lib\EBXMLB~1.JAR" com.cleo.lexicom.html.JVMFactory vlnavigator 1099

Can you try the default AjaxSwing install on that machine to see if it works? This will indicate if it's a configuration problem in your application or a bigger issue.

aevett

  • Customer
  • Sr. Member
  • *
  • Posts: 482
    • View Profile
Re: AIX font exception
« Reply #5 on: May 13, 2009, 05:37:35 PM »
I tried 2. below.  What appears to be causing the client agent to fail to start using IBM Windows JRE 1.6 is the bootclasspath.  When I try the client agent cmdLine extracted from our debug, the JRE doesn't start up and there are no exceptions/errors printed to the console.  If I take off the bootclasspath, the main class is entered but of course the expected "Initialization error, AjaxSwing classes are not found in boot class path" is logged.

Support Team

  • Administrator
  • Hero Member
  • *****
  • Posts: 1074
    • View Profile
Re: AIX font exception
« Reply #6 on: May 14, 2009, 10:58:33 PM »
Where did you get IBM Windows JDK 1.6? IBM's download page only shows JDK 1.4 for Windows.

Have you tried this with AjaxSwing 2.4.2 yet?

aevett

  • Customer
  • Sr. Member
  • *
  • Posts: 482
    • View Profile
Re: AIX font exception
« Reply #7 on: May 15, 2009, 10:17:18 AM »
This is a special FIPS-compliant version that we extract out of one of their products.  We have an agreement with IBM that allows us to do this.  We'll try v2.4.2 and get back to you.

aevett

  • Customer
  • Sr. Member
  • *
  • Posts: 482
    • View Profile
Re: AIX font exception
« Reply #8 on: May 15, 2009, 05:29:45 PM »
We retried the Windows IBM FIPS JRE 1.6 with CreamTec v2.4.2.  We are still seeing the same results - the client agent JVM process doesn't start up and there is no debug file nor core dump.  I've placed a copy of this JRE at www.cleo.com/web_install/eng/jre1.6.0FIPS.zip for you to try.

Support Team

  • Administrator
  • Hero Member
  • *****
  • Posts: 1074
    • View Profile
Re: AIX font exception
« Reply #9 on: May 18, 2009, 10:12:32 PM »
The JRE you made available for download doesn't have javac, so Tomcat gives an error message. And it's JDK 1.6, but your post talks about 1.5. So how do you even get to the error message?

If I set JAVA_HOME to point to IBM's JRE and run "startServer.bat run" from AjaxSwing/bin you'll get the following message:

Code: [Select]
C:\java\AJAXSW~2.2\bin>startServer.bat run
The JAVA_HOME environment variable is not defined correctly
This environment variable is needed to run this program
NB: JAVA_HOME should point to a JDK not a JRE
Using CATALINA_BASE:   C:\java\AJAXSW~2.2\tomcat
Using CATALINA_HOME:   C:\java\AJAXSW~2.2\tomcat
Using CATALINA_TMPDIR: C:\java\AJAXSW~2.2\tomcat\temp
Using JAVA_HOME:       c:\java\jdk1.6.ibm
'-Xbootclasspath' is not recognized as an internal or external command, operable program or batch file.


aevett

  • Customer
  • Sr. Member
  • *
  • Posts: 482
    • View Profile
Re: AIX font exception
« Reply #10 on: May 19, 2009, 09:06:50 AM »
This thread did start with IBM AIX JRE 1.5, but then also included problems with IBM Windows JRE 1.5 and 1.6.  The fix you made for IBM AIX JRE 1.5 also corrected the problem with IBM Windows JRE 1.5.  But we are still left with IBM Windows JRE 1.6 not working.  That is why I made the IBM Windows JRE 1.6 available.

We are not using Tomcat, so lack of javac is not an issue for us.  And I don't think we have access to the full jdk for the IBM jres, so I don't think we can provide this.

The best we can probably do is make a beta installer of our product with this jre available to you.  Would that help to diagnose?

Support Team

  • Administrator
  • Hero Member
  • *****
  • Posts: 1074
    • View Profile
Re: AIX font exception
« Reply #11 on: May 19, 2009, 01:17:28 PM »
Yes, that would definitely help. Right now we are not able to start the server so we can't get to the issue you are seing.

aevett

  • Customer
  • Sr. Member
  • *
  • Posts: 482
    • View Profile
Re: AIX font exception
« Reply #12 on: May 19, 2009, 01:47:05 PM »
Okay, I've placed our VLTrader installer for IBM Windows JRE 1.6 at www.cleo.com/web_install/eng/install.exe.  You actuall don't need a license for this since the web GUI can be used without a license.

After installing, bring up the native GUI first by running VLTrader.exe.  Go to the Web Browser service under the Local Listener in the Active tree.  Click on the Advanced tab and turn on "Append service debug to system debug file" and "Create individual client debug files" and click [Apply].

Now start or restart the VLTrader Windows service.  Try opening a web GUI session at http://localhost:5080/VLTrader.  It should timeout.  The AjaxSwing server-side debug will show up in logs/VLTrader.dbg.  As you've noted before, the command line that's used to start up the client agent is in this debug under "cmdLine = ".  But no client agent JVMs start and no client-side debug files (logs/HTML*.dbg) are created.

From our testing, it would appear the IBM Windows JRE 1.6 does not like something about the asboot.jar in the bootclasspath and fails to start.  But it is failing silently.

Support Team

  • Administrator
  • Hero Member
  • *****
  • Posts: 1074
    • View Profile
Re: AIX font exception
« Reply #13 on: May 19, 2009, 11:20:17 PM »
I have installed VLTrader.
Ran vltrader.exe.
It showed Product Registration dialog, I pressed Cancel.
It showed another dialog asking if I want to Exit or Continue. I pressed Continue.
VLTrader starts to load but then displays the error showed in the attached image, and closes.

Do you know how to get around this error?

aevett

  • Customer
  • Sr. Member
  • *
  • Posts: 482
    • View Profile
Re: AIX font exception
« Reply #14 on: May 20, 2009, 12:18:42 PM »
Sorry about that.  This is a bug when there is no license.  Please download the fixed jar at www.cleo.com/web_install/eng/lexbean.jar and copy it to the VLTrader lib/ directory.  You should then be able to continue.