This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 217699 - NB Platform 7.2 app w Embedded derby module does not work on Ubuntu 12 (works on win7)
Summary: NB Platform 7.2 app w Embedded derby module does not work on Ubuntu 12 (works...
Status: RESOLVED INVALID
Alias: None
Product: platform
Classification: Unclassified
Component: Module System (show other bugs)
Version: 7.2
Hardware: PC Linux
: P2 normal with 1 vote (vote)
Assignee: Jaroslav Tulach
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-09-01 07:29 UTC by simgineer
Modified: 2012-09-10 21:55 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description simgineer 2012-09-01 07:29:21 UTC
When I create an embedded derby JPA app by wrapping the jpa classes in a netbeans module an include it into my platform app It will work fine when running it in the IDE (database will create itself and i can persist data), however, when i package the installer shell for linux and install, my app will no longer operate properly. Statements after the getEntityManager call do not execute and there are no error messages to observer.

I then tried compiling my project in windows 7 and was able to run it properly both inside the IDE and outside the IDE from the nb platform installer.

Basically i think this must have something to do with the installer packaging for the 7.2 platform on ubuntu 12.04

I've documented some of the detail here and will be happy to supply more info if it will help.

http://stackoverflow.com/questions/12220881/netbeans-platform-app-on-ubuntu-12-with-embedded-derby-db-and-jpa

Regards, James
Comment 1 Jaroslav Tulach 2012-09-07 10:25:51 UTC
OK. Why the statements don't execute? Try to use debugger.
Comment 2 simgineer 2012-09-10 21:55:10 UTC
Hi, I'm not sure how to debug because the anomaly only behaves when I create the installer for Ubuntu. It works fine when running in the IDE in both normal and debug modes. Would you know if there is a error log for a NetBeans platform app that I can look into?

Here are the lines:

                File homeDir = new File(System.getProperty("user.home")+"/.simdriver");
                homeDir.mkdirs();
                Msg.info("home dir is: "+homeDir.getAbsolutePath());
                System.setProperty("derby.system.home", homeDir.getAbsolutePath());
                System.setProperty("derby.stream.error.file", homeDir.getAbsolutePath()+"/log/derby.log");
                Msg.info("Check B1");
                System.out.println("Check B1");

// this line does not appear to work:
                em = Persistence.createEntityManagerFactory("VmCfgLibPU").createEntityManager();

// These lines do not execute when running the installed version. They do execute when running in the IDE with or wo the debugger.
                System.out.println(" the em is: "+em);
                System.out.println("em is open: "+em.isOpen());
                System.out.println("Check C1");