[SOLVED] Gemini JPA bundles refresh even with -DREFRESH_BUNDLES=false [message #983369] |
Tue, 13 November 2012 22:04 |
Jay Billings Messages: 54 Registered: July 2011 |
Member |
|
|
I am having a problem with Gemini JPA where the bundles refresh even with -DREFRESH_BUNDLES=false as a VM argument in the product configuration. Weaving is disabled in the persistence.xml files. The output from the command line of the compiled code shows that the bundles are restarted, (copied below my signature for clarity).
I wouldn't mind the bundle refresh, but it causes everything including our RCP client to refresh because they depend on the persistence bundles. We are currently trying to find a work around or optimization in our design, but is there another parameter or something that needs to be configured?
In the output, note the duplicate messages about builders being registered and VisIt being started. I have removed most of the text from the exception because it is caused by the messed up starting sequence (the UI is looking for something). Also note the lines line: "INiCECore Message: Item EntityManagerFactory set!
jdbc:derby:database/itemDatabase;create=true" There are several of those lines, but only one persistence unit for Items!
Any thoughts? Thanks in advance for your time!
Jay
----- Output -----
osgi> Gemini DBAccess Derby starting
!SESSION 2012-11-13 17:00:43.797 -----------------------------------------------
eclipse.buildId=unknown
java.version=1.6.0_24
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=linux, ARCH=x86_64, WS=gtk, NL=en_US
Command-line arguments: -os linux -ws gtk -arch x86_64 -consoleLog -console -clean
!ENTRY org.eclipse.core.resources 2 10035 2012-11-13 17:00:46.619
!MESSAGE The workspace exited with unsaved changes in the previous session; refreshing workspace to recover changes.
INiCECore Message: Default workspace location is file:/home/bkj/NiCEFiles/
INiCECore Message: Item DenovoMP Model registered with NiCECore.
INiCECore Message: Item DenovoMP Launcher registered with NiCECore.
INiCECore Message: Item Job Profile registered with NiCECore.
INiCECore Message: Composite Item MultiLauncher registered with NiCECore.
!ENTRY org.eclipse.ui.workbench 4 0 2012-11-13 17:00:47.939
!MESSAGE Unable to create view ID gov.ornl.nice.client.eclipse.common.ItemViewer: An unexpected exception was thrown.
!STACK 0
java.lang.NullPointerException
at gov.ornl.nice.client.eclipse.common.ItemViewer.createPartControl(ItemViewer.java:92)
at
INiCECore Message: Data Structures EntityManagerFactory set!
jdbc:derby:database/datastructuresDatabase;create=true
Item Message: Adding DataComponent to map!
Item Message: Total number of mapped DataComponents = 1
Item Message: Total number of Entries in the Entry list = 0
Item Message: Adding DataComponent to map!
Item Message: Adding DataComponent to map!
Item Message: Total number of mapped DataComponents = 2
Item Message: Total number of Entries in the Entry list = 7
INiCECore Message: Item EntityManagerFactory set!
jdbc:derby:database/itemDatabase;create=true
Item Message: Adding DataComponent to map!
Item Message: Total number of mapped DataComponents = 1
Item Message: Total number of Entries in the Entry list = 0
Item Message: Adding DataComponent to map!
Item Message: Adding DataComponent to map!
Item Message: Total number of mapped DataComponents = 2
Item Message: Total number of Entries in the Entry list = 7
INiCECore Message: Item EntityManagerFactory set!
jdbc:derby:database/itemDatabase;create=true
INiCECore Message: Item EntityManagerFactory set!
jdbc:derby:database/itemDatabase;create=true
INiCECore Message: Component context set!
INiCECore Message: NiCE Core Server loaded, but without webservice.
INiCEClient Message: Core service set.
INiCEClient Message: Widget Factory set!
INiCECore Message: Item Geometry Editor registered with NiCECore.
VisItAnalysisTool Message: Connection parameters:
VisItAnalysisTool Message: Bin Path = /home/bkj/visit/bin
VisItAnalysisTool Message: Port = 5600
Running: viewer2.5.2 -host 127.0.0.1 -port 5600 -nowin -nosplash -noconfig
INiCECore Message: Item Reactor Analyzer registered with NiCECore.
INiCECore Message: Default workspace location is file:/home/bkj/NiCEFiles/
INiCECore Message: Item Job Profile registered with NiCECore.
INiCECore Message: Item Geometry Editor registered with NiCECore.
INiCECore Message: Item DenovoMP Model registered with NiCECore.
INiCECore Message: Item DenovoMP Launcher registered with NiCECore.
VisItAnalysisTool Message: Connection parameters:
VisItAnalysisTool Message: Bin Path = /home/bkj/visit/bin
VisItAnalysisTool Message: Port = 5600
INiCECore Message: Item Reactor Analyzer registered with NiCECore.
INiCECore Message: Composite Item MultiLauncher registered with NiCECore.
INiCECore Message: Data Structures EntityManagerFactory set!
jdbc:derby:database/datastructuresDatabase;create=true
INiCECore Message: Item EntityManagerFactory set!
jdbc:derby:database/itemDatabase;create=true
INiCECore Message: Item EntityManagerFactory set!
jdbc:derby:database/itemDatabase;create=true
INiCECore Message: Data Structures EntityManagerFactory set!
jdbc:derby:database/datastructuresDatabase;create=true
INiCECore Message: Data Structures EntityManagerFactory set!
jdbc:derby:database/datastructuresDatabase;create=true
Item Message: Adding DataComponent to map!
Item Message: Total number of mapped DataComponents = 1
Item Message: Total number of Entries in the Entry list = 0
Item Message: Adding DataComponent to map!
Item Message: Adding DataComponent to map!
Item Message: Total number of mapped DataComponents = 2
Item Message: Total number of Entries in the Entry list = 7
INiCECore Message: Item EntityManagerFactory set!
jdbc:derby:database/itemDatabase;create=true
INiCECore Message: Item EntityManagerFactory set!
jdbc:derby:database/itemDatabase;create=true
INiCECore Message: Component context set!
INiCECore Message: NiCE Core Server loaded, but without webservice.
INiCEClient Message: Core service set.
INiCEClient Message: Widget Factory set!
Jay Jay Billings
Oak Ridge National Laboratory
Twitter: @jayjaybillings
[Updated on: Thu, 15 November 2012 13:02] Report message to a moderator
|
|
|
|
|
Re: Gemini JPA bundles refresh even with -DREFRESH_BUNDLES=false [message #984541 is a reply to message #984214] |
Wed, 14 November 2012 19:50 |
Scott Hull Messages: 32 Registered: July 2012 |
Member |
|
|
I am working with Jay on this issue.
In our current selection of bundles, we removed all of the older instances Gemini and older dependencies and replaced them with the updated milestones of Gemini (1.1.0), dbaccess.derby, and eclipselink (version 2.4). We have added the respective calls for our maven pieces and updated the target definition as well. I made sure to also removed the three older org.eclipse.persistence bundles: o.e.p.jpa.osgi and the o.e.p.equinox bundles.
By doing all of this, I noticed that we are getting a new prompt on startup of the client in the IDE. It states that the datastructures and item are set not to refresh, so the bundles will not be weaved. This is new, and I think a positive step in the right direction. Nevertheless, in our product's execution it does not prompt us this command and still "refreshes" anyways.
I am going to update our product definition to make sure that it is getting the correct bundle information, but there could be other issues elsewhere.
[Updated on: Wed, 14 November 2012 19:57] Report message to a moderator
|
|
|
|
Re: Gemini JPA bundles refresh even with -DREFRESH_BUNDLES=false [message #985505 is a reply to message #984689] |
Thu, 15 November 2012 12:59 |
Jay Billings Messages: 54 Registered: July 2011 |
Member |
|
|
Mike,
As Forest describes above, we addressed several bugs in our configuration while upgrading to 1.1 and we found that in one of the product files I had written REFRESH_BUNDLE instead of REFRESH_BUNDLES for the VM argument.
Thanks very much for your help! I will mark this solved.
Jay
Jay Jay Billings
Oak Ridge National Laboratory
Twitter: @jayjaybillings
|
|
|
Powered by
FUDForum. Page generated in 0.03309 seconds