You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cayenne.apache.org by "Craig Turner (JIRA)" <de...@cayenne.apache.org> on 2007/08/20 05:23:50 UTC

[JIRA] Created: (CAY-851) Modeler in Cayenne 3.0M1 fails on startup under Win32 with AWT complaint

Modeler in Cayenne 3.0M1 fails on startup under Win32 with AWT complaint
------------------------------------------------------------------------

                 Key: CAY-851
                 URL: https://issues.apache.org/cayenne/browse/CAY-851
             Project: Cayenne
          Issue Type: Bug
          Components: CayenneModeler GUI
    Affects Versions: 3.0
         Environment: Java is JRE 1.6.0_02-b06.

WinXP SP2 patched to current. The OS install is fairly clean- firefox, putty, JRE.

* OS is running in vmware fusion 1.0 on OSX-Tiger, dual-core black macbook with 2GB for RAM. The VM is configured to use both processors of the dual-core, and 768MB RAM.

            Reporter: Craig Turner
            Assignee: Andrus Adamchik
            Priority: Minor


At the shell I try CayenneModeler.exe and it does not start but I see no signs of an error.

Then I try 'java -jar CayenneModeler.jar' and the startup displays a stack trace (given below) and then freezes. Attempts to abort using ctrl+c fail.

Stack trace and lines immediately preceding:
"""
INFO: --- transaction started.
Aug 20, 2007 4:18:06 AM org.apache.cayenne.access.QueryLogger logQuery
INFO: SELECT t0.key_value_pairs, t0.domain_id, t0.key, t0.id FROM domain_preference t0 WHERE t0.domain_id = ? [bind: 202]
Aug 20, 2007 4:18:06 AM org.apache.cayenne.access.QueryLogger logSelectCount
INFO: === returned 0 rows. - took 0 ms.
Aug 20, 2007 4:18:06 AM org.apache.cayenne.access.QueryLogger logCommitTransaction
INFO: +++ transaction committed.
Exception in thread "AWT-EventQueue-0" java.lang.InternalError: Could not initialize shell library
        at sun.awt.shell.Win32ShellFolder2.initIDs(Native Method)
        at sun.awt.shell.Win32ShellFolder2.<clinit>(Unknown Source)
        at sun.awt.shell.Win32ShellFolderManager2.getDesktop(Unknown Source)
        at sun.awt.shell.Win32ShellFolderManager2.get(Unknown Source)
        at sun.awt.shell.ShellFolder.get(Unknown Source)
        at javax.swing.filechooser.FileSystemView.getRoots(Unknown Source)
        at javax.swing.plaf.metal.MetalFileChooserUI.updateUseShellFolder(Unknown Source)
        at javax.swing.plaf.metal.MetalFileChooserUI.installComponents(Unknown Source)
        at javax.swing.plaf.basic.BasicFileChooserUI.installUI(Unknown Source)
        at javax.swing.plaf.metal.MetalFileChooserUI.installUI(Unknown Source)
        at javax.swing.JComponent.setUI(Unknown Source)
        at javax.swing.JFileChooser.updateUI(Unknown Source)
        at javax.swing.JFileChooser.setup(Unknown Source)
        at javax.swing.JFileChooser.<init>(Unknown Source)
        at javax.swing.JFileChooser.<init>(Unknown Source)
        at org.apache.cayenne.modeler.action.ProjectOpener.<init>(ProjectOpener.java:45)
        at org.apache.cayenne.modeler.action.OpenProjectAction.<init>(OpenProjectAction.java:58)
        at org.apache.cayenne.modeler.ActionManager.<init>(ActionManager.java:138)
"""

If it is not possible to reproduce this bug on another environment I would be happy to do further testing in this environment but would appreciate and directions someone more familiar with the product was able to give.


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Re: [JIRA] Created: (CAY-851) Modeler in Cayenne 3.0M1 fails on startup under Win32 with AWT complaint

Posted by Aristedes Maniatis <ar...@maniatis.org>.
On 20/08/2007, at 1:23 PM, Craig Turner (JIRA) wrote:

> Exception in thread "AWT-EventQueue-0" java.lang.InternalError:  
> Could not initialize shell library

Is the problem resolved by copying jre/bin/unicows.dll to bin  
directory? The bug looks a lot like:

http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4899750

Or perhaps you want to try and install the full JDK rather than just  
the JRE...


Ari



-------------------------->
Aristedes Maniatis
phone +61 2 9660 9700
PGP fingerprint 08 57 20 4B 80 69 59 E2  A9 BF 2D 48 C2 20 0C C8