ThinkingRock Forum

To go back to http://www.trgtd.com.au
It is currently Thu May 23, 2013 6:31 pm

All times are UTC




Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 14 posts ] 
Author Message
PostPosted: Mon May 12, 2008 11:58 am 
Offline

Joined: Sat Dec 08, 2007 12:10 pm
Posts: 92
I tried to run RC3 from a USB stick, but an error comes up upon opening a data file:

Quote:
java.lang.LinkageError: JAXB 2.0 API is being loaded from the bootstrap classloader, but this RI (from nbjcl:file:/D:/TR-2.0.0.rc.3/tr-2.0.0.rc.3/tr/tr/modules/ext/jaxb-impl.jar!/com/sun/xml/bind/v2/model/impl/ModelBuilder.class) needs 2.1 API. Use the endorsed directory mechanism to place jaxb-api.jar in the bootstrap classloader. (See http://java.sun.com/j2se/1.5.0/docs/guide/standards/)
at com.sun.xml.bind.v2.model.impl.ModelBuilder.<clinit>(ModelBuilder.java:173)
at com.sun.xml.bind.v2.runtime.JAXBContextImpl.getTypeInfoSet(JAXBContextImpl.java:422)
at com.sun.xml.bind.v2.runtime.JAXBContextImpl.<init>(JAXBContextImpl.java:286)
at com.sun.xml.bind.v2.ContextFactory.createContext(ContextFactory.java:139)
at com.sun.xml.bind.v2.ContextFactory.createContext(ContextFactory.java:117)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at javax.xml.bind.ContextFinder.newInstance(Unknown Source)
at javax.xml.bind.ContextFinder.find(Unknown Source)
at javax.xml.bind.JAXBContext.newInstance(Unknown Source)
at javax.xml.bind.JAXBContext.newInstance(Unknown Source)
at tr.view.actions.screens.dao.ScreensDAOJAXB.restore(ScreensDAOJAXB.java:146)
at tr.view.actions.screens.dao.ScreensDAOProvider.initialiseScreensDAO(ScreensDAOProvider.java:70)
at tr.view.actions.screens.dao.ScreensDAOProvider.provide(ScreensDAOProvider.java:57)
at tr.view.actions.RAAction.actionPerformed(RAAction.java:110)
at tr.view.WindowUtils.openInitialWindow(WindowUtils.java:90)
at tr.data.Installer$1$1.windowOpened(Installer.java:86)
at java.awt.AWTEventMulticaster.windowOpened(Unknown Source)
at java.awt.AWTEventMulticaster.windowOpened(Unknown Source)
at java.awt.Window.processWindowEvent(Unknown Source)
at javax.swing.JFrame.processWindowEvent(Unknown Source)
at java.awt.Window.processEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Window.dispatchEventImpl(Unknown Source)
[catch] at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at org.netbeans.core.TimableEventQueue.dispatchEvent(TimableEventQueue.java:104)
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)


The batch file to start TR on the USB stick is as follows:

Quote:
SET JAVA_HOME=java\jre1.6.0_05
SET PATH=%PATH%;%JAVA_HOME%\bin
TR-2.0.0.rc.3\tr-2.0.0.rc.3\tr\bin\tr.exe


I have copied the Java directory from my PC to a Java\jre1.6.0_05 directory on the USB stick, but made no other changes to the TR RC3 installation on the USB stick.

The host PC on which I have the USB stick attached has an earlier Java version installed on it.

I can run RC2 on the USB stick with no problem, without using the USB stick Java.

On the PC that already has the jre1.6.0_05 the program runs with no problem.

Also, I have deleted the .thinkingrock directory in Documents and Settings, but with no success.


Top
 Profile  
 
 Post subject:
PostPosted: Mon May 12, 2008 12:31 pm 
Offline

Joined: Wed Jul 05, 2006 10:51 am
Posts: 898
Location: Sydney, Australia
Have you tried using the jdkhome setting in the tr.conf configuration file?

_________________
ThinkingRock Developer


Top
 Profile  
 
 Post subject:
PostPosted: Mon May 12, 2008 1:35 pm 
Offline

Joined: Sat Dec 08, 2007 12:10 pm
Posts: 92
Jeremy, I changed that setting, but I got a different error. Unfortunately I'm not at the PC where the problem occurs, but I think the error was as follows after I made the change that you mention:
Quote:
java.lang.NoClassDefFoundError: Could not initialize class com.sun.xml.bind.v2.model.impl.RuntimeModelBuilder
at com.sun.xml.bind.v2.runtime.JAXBContextImpl.getTypeInfoSet(JAXBContextImpl.java:422)
at com.sun.xml.bind.v2.runtime.JAXBContextImpl.<init>(JAXBContextImpl.java:286)
at com.sun.xml.bind.v2.ContextFactory.createContext(ContextFactory.java:139)
at com.sun.xml.bind.v2.ContextFactory.createContext(ContextFactory.java:117)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at javax.xml.bind.ContextFinder.newInstance(Unknown Source)
at javax.xml.bind.ContextFinder.find(Unknown Source)
at javax.xml.bind.JAXBContext.newInstance(Unknown Source)
at javax.xml.bind.JAXBContext.newInstance(Unknown Source)
at tr.view.actions.screens.dao.ScreensDAOJAXB.restore(ScreensDAOJAXB.java:146)
at tr.view.actions.screens.dao.ScreensDAOProvider.initialiseScreensDAO(ScreensDAOProvider.java:70)
at tr.view.actions.screens.dao.ScreensDAOProvider.provide(ScreensDAOProvider.java:57)
at tr.view.actions.RAAction.actionPerformed(RAAction.java:110)
at tr.view.WindowUtils.openInitialWindow(WindowUtils.java:90)
at tr.data.OpenAction.performAction(OpenAction.java:102)
at org.openide.util.actions.CallableSystemAction$1.run(CallableSystemAction.java:118)
at org.netbeans.modules.openide.util.ActionsBridge.doPerformAction(ActionsBridge.java:77)
at org.openide.util.actions.CallableSystemAction.actionPerformed(CallableSystemAction.java:114)
at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
at javax.swing.AbstractButton.doClick(Unknown Source)
at javax.swing.plaf.basic.BasicMenuItemUI.doClick(Unknown Source)
at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(Unknown Source)
at java.awt.Component.processMouseEvent(Unknown Source)
at javax.swing.JComponent.processMouseEvent(Unknown Source)
at java.awt.Component.processEvent(Unknown Source)
at java.awt.Container.processEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Window.dispatchEventImpl(Unknown Source)
[catch] at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at org.netbeans.core.TimableEventQueue.dispatchEvent(TimableEventQueue.java:104)
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)


at java.awt.EventDispatchThread.run(Unknown Source)


Top
 Profile  
 
 Post subject:
PostPosted: Tue May 13, 2008 12:11 am 
Offline

Joined: Wed Jul 05, 2006 10:51 am
Posts: 898
Location: Sydney, Australia
Another JAXB problem by the looks. I have used JAXB for accessing the ReviewActions.xml file but there is a problem with JAXB versions in Java versions.

I need to fix this before the final release.

_________________
ThinkingRock Developer


Top
 Profile  
 
 Post subject:
PostPosted: Tue May 13, 2008 2:34 am 
Offline

Joined: Wed Jul 05, 2006 10:51 am
Posts: 898
Location: Sydney, Australia
I think I now know how to solve this problem.

I wonder if you could try it out on your system. If so ...

1) go to the folder: <install_dir>\tr\modules\ext

2) make a new folder and name it: endorsed

3) copy jaxb-api.jar into the new endorsed folder (ie. from <install_dir>\tr\modules\ext to <install_dir>\tr\modules\ext\endorsed)

4) edit <install_dir>\tr\etc\tr.conf and in the default_options setting, add the following:

-J-Djava.endorsed.dirs=..\tr\modules\ext\endorsed

_________________
ThinkingRock Developer


Top
 Profile  
 
 Post subject:
PostPosted: Tue May 13, 2008 12:54 pm 
Offline

Joined: Sat Dec 08, 2007 12:10 pm
Posts: 92
Based on your suggestion and the installation on my USB stick:

Regarding step 1) the ext folder is actually in <install>\tr-2.0.0.rc.3\tr\tr\modules\ext\ (please note the two "tr" directories)

2) + 3) I made the new folder, named it endorsed and copied the jaxb-api.jar in it.

4) I edited the tr.conf file in my <install>\tr-2.0.0.rc.3\tr\etc\ by adding -J-Djava.endorsed.dirs=..\tr\modules\ext\endorsed

I need to ask about the following: Do I (a) have to precede the added line in step 4) with default_options= and (b) do I have to put the added line inside quotes?

Secondly, how exactly do I change the jdkhome entry in the config file? Do I place the path to my Java on USB in quotes like --jdkhome="d:\jre1.6.0_05" or without quotes?

As it is, the following is recorded in the log:

Quote:
>System Info:
Product Version = ThinkingRock 2.0.0.rc.3
Operating System = Windows XP version 5.1 running on x86
Java; VM; Vendor = 1.6.0_02; Java HotSpot(TM) Client VM 1.6.0_02-b06; Sun Microsystems Inc.
Runtime = Java(TM) SE Runtime Environment 1.6.0_02-b06
Java Home = C:\Program Files\Java\jre1.6.0_02
System Locale; Encoding = en_GB (tr); Cp1252
Home Directory = C:\Documents and Settings\USER
Current Directory = D:\TR-2.0.0.rc.3\tr-2.0.0.rc.3\tr
User Directory = C:\Documents and Settings\USER\Application Data\.thinkingrock\tr-2.0.0.rc.3
Installation = D:\TR-2.0.0.rc.3\tr-2.0.0.rc.3\tr\tr
D:\TR-2.0.0.rc.3\tr-2.0.0.rc.3\tr\ide9
D:\TR-2.0.0.rc.3\tr-2.0.0.rc.3\tr\platform8
Boot & Ext. Classpath = C:\Program Files\Java\jre1.6.0_02\lib\resources.jar;C:\Program Files\Java\jre1.6.0_02\lib\rt.jar;C:\Program Files\Java\jre1.6.0_02\lib\sunrsasign.jar;C:\Program Files\Java\jre1.6.0_02\lib\jsse.jar;C:\Program Files\Java\jre1.6.0_02\lib\jce.jar;C:\Program Files\Java\jre1.6.0_02\lib\charsets.jar;C:\Program Files\Java\jre1.6.0_02\classes;C:\Program Files\Java\jre1.6.0_02\lib\ext\dnsns.jar;C:\Program Files\Java\jre1.6.0_02\lib\ext\sunjce_provider.jar;C:\Program Files\Java\jre1.6.0_02\lib\ext\sunmscapi.jar;C:\Program Files\Java\jre1.6.0_02\lib\ext\sunpkcs11.jar
Application Classpath = D:\TR-2.0.0.rc.3\tr-2.0.0.rc.3\tr\platform8\lib\boot.jar;D:\TR-2.0.0.rc.3\tr-2.0.0.rc.3\tr\platform8\lib\org-openide-modules.jar;D:\TR-2.0.0.rc.3\tr-2.0.0.rc.3\tr\platform8\lib\org-openide-util.jar
Startup Classpath = D:\TR-2.0.0.rc.3\tr-2.0.0.rc.3\tr\platform8\core\core.jar;D:\TR-2.0.0.rc.3\tr-2.0.0.rc.3\tr\platform8\core\org-openide-filesystems.jar;D:\TR-2.0.0.rc.3\tr-2.0.0.rc.3\tr\tr\core\locale\core_tr.jar
-------------------------------------------------------------------------------
WARNING [org.openide.filesystems.Ordering]: Not all children in Services/JavaHelp/ marked with the position attribute: [helpset.xml], but some are: [overview-helpset.xml, appl-helpset.xml, contexts-helpset.xml, criteria-helpset.xml, collect-helpset.xml, process-helpset.xml, review-actions-helpset.xml, review-projects-helpset.xml, review-future-helpset.xml, review-reference-helpset.xml, imports-helpset.xml, imports-thoughts-helpset.xml, export-actions-helpset.xml, export-future-helpset.xml, export-information-helpset.xml, exports-helpset.xml, report-actionsbycontext-helpset.xml, report-actionsbydate-helpset.xml, report-nextactions-helpset.xml, report-pocketmod-helpset.xml, report-projectdetails-helpset.xml, report-projectoutline-helpset.xml, prefs-about-helpset.xml, prefs-actions-screens-helpset.xml, prefs-calendar-helpset.xml, prefs-datafile-helpset.xml, prefs-extract-helpset.xml, prefs-extract-clean-helpset.xml, prefs-gui-helpset.xml, prefs-projects-helpset.xml, prefs-recurrence-helpset.xml, prefs-review-actions-helpset.xml, action-helpset.xml, archive-helpset.xml, project-helpset.xml, tasks-activation-helpset.xml, tasks-recurrence-helpset.xml, shortcuts-helpset.xml]
WARNING [java.util.prefs]: Could not open/create prefs root node Software\JavaSoft\Prefs at root 0x80000002. Windows RegCreateKeyEx(...) returned error code 5.
INFO [tr.datastore]: Loading data started...
INFO [tr.datastore]: Loading data finished.
INFO [tr.autoversion]: Starting
INFO [org.netbeans.core.startup.NbEvents]: Turning on modules:
INFO [tr.autoversion]: Finished
org.openide.util [7.12.0.1 1 200804211638]
org.openide.modules [7.6 200804211638]
org.apache.commons.lang [1.0 080511]
org.openide.filesystems [7.8 200804211638]
org.jdesktop.beans [1.0 080511]
org.jdesktop.layout/1 [1.5 1.0.3 200804211638]
org.openide.awt [7.1.0.1 200804211638]
org.netbeans.api.progress/1 [1.11.0.1 1 200804211638]
org.openide.dialogs [7.6 200804211638]
org.openide.nodes [7.3.0.1 200804211638]
org.openide.windows [6.20 200804211638]
tr.util [1.0 080511]
tr.global [1.0 080511]
org.netbeans.bootstrap/1 [2.11 200804211638]
org.netbeans.core.startup/1 [1.12.0.1 200804211638]
org.netbeans.modules.autoupdate.services [1.4 200804211638]
org.netbeans.modules.options.api/1 [1.6 200804211638]
org.openide.explorer [6.13 1 200804211638]
org.netbeans.modules.editor.mimelookup/1 [1.9 200804211638]
org.openide.text [6.18 200804211638]
org.openide.actions [6.7.0.1 200804211638]
org.netbeans.modules.queries/1 [1.12 200804211638]
org.openide.loaders [6.9 200804211638]
org.openide.io [1.12 200804211638]
org.netbeans.swing.plaf [1.7 200804211638]
org.netbeans.core/2 [3.7.0.1 200804211638]
org.netbeans.modules.settings/1 [1.14 200804211638]
org.netbeans.swing.tabcontrol [1.11 200804211638]
org.netbeans.core.windows/2 [2.10.0.1 200804211638]
org.netbeans.modules.javahelp/1 [2.10 200804211638]
tr.appl [1.0 080511]
tr.prefs.projects [1.0 080511]
org.apache.avalon.framework [1.0 080511]
org.apache.commons.logging [1.0 080511]
net.fortuna.ical4j [1.0 080511]
tr.prefs.recurrence [1.0 080511]
tr.prefs.dates [1.0 080511]
tr.model [1.2 080511]
tr.datastore [1.0 080511]
tr.background.recurrence [1.0 080511]
org.xmlpull.v1 [1.0 080511]
com.thoughtworks.xstream [1.0 080511]
tr.prefs.datafile [1.0 080511]
tr.prefs.calendar [1.0 080511]
tr.datastore.xstream [1.0 080511]
tr.prefs.gui [1.0 080511]
tr.swing [1.0 080511]
tr.runtime [1.0 080511]
tr.view [1.0 080511]
tr.background.activation [1.0 080511]
tr.data [1.0 080511]
org.apache.xmlgraphics.ps [1.0 080511]
javax.xml [1.0 080511]
org.apache.wml [1.0 080511]
org.apache.xml.serializer [1.0 080511]
org.apache.bcel [1.0 080511]
org.apache.commons.io [1.0 080511]
org.w3c.css [1.0 080511]
org.apache.fop [1.0 080511]
tr.extract [1.0 080511]
tr.extract.exports [1.0 080511]
tr.extract.exports.actions [1.0 080511]
tr.data.files [1.0 080511]
org.netbeans.core.ui/1 [1.11 200804211638]
org.netbeans.modules.autoupdate.ui [1.4 200804211638]
org.netbeans.modules.masterfs/2 [2.14 200804211638]
org.netbeans.libs.jsr223/1 [1.7 6 200804211638]
org.netbeans.modules.templates [1.2 200804211638]
org.netbeans.modules.favorites/1 [1.13 200804211638]
org.netbeans.modules.options.keymap [1.3 200804211638]
org.netbeans.modules.core.kit [1.1 200804211638]
tr.view.criteria [1.0 080511]
ca.odell.glazedlists [1.0 080511]
tr.view.topics [1.0 080511]
tr.view.project [1.1 080511]
tr.extract.exports.future [1.0 080511]
tr.view.contexts [1.0 080511]
tr.view.action [1.0 080511]
tr.view.process [1.0 080511]
tr.view.filters [1.0 080511]
tr.view.future [1.0 080511]
tr.extract.reports [1.0 080511]
tr.extract.reports.actionsbycontext [1.0 080511]
org.netbeans.modules.editor.mimelookup.impl/1 [1.2 200804211638]
tr.extract.reports.projectoutline [1.0 080511]
jaxb [1.0 080511]
tr.extract.reports.nextactions [1.0 080511]
tr.imports [1.0 080511]
tr.archive [1.0 080511]
tr.extract.reports.projectdetails [1.0 080511]
tr.view.projects [1.0 080511]
org.netbeans.modules.progress.ui [1.1 200804211638]
tr.view.reference [1.0 080511]
tr.view.collect [2.0.0 080511]
tr.services [1.0 080511]
tr.view.actions [1.0 080511]
tr.view.overview [1.0 080511]
org.netbeans.core.output2/1 [1.9.0.1 1 200804211638]
tr.imports.thoughts/2 [2.0.1 1 080511]
tr.extract.reports.actionsbydate [1.0 080511]
tr.autoversion [1.0 080511]
org.openide.execution [1.11 200804211638]
tr.extract.exports.information [1.0 080511]
org.netbeans.modules.extbrowser/1 [1.12 200804211638]
tr.extract.clean [1.0 080511]
tr.extract.reports.pocketmod [1.0 080511]
INFO [tr.view.actions]: initialiseScreensDAO()
INFO [tr.view.actions]: ScreensDAOJAXB.getData()
INFO [tr.view.actions]: ScreensDAOJAXB.getData()
Diagnostic information
Input arguments:
-Xms64m
-Xmx256m
-XX:PermSize=64m
-XX:MaxPermSize=256m
-Dnetbeans.logger.console=true
-ea
-Djdk.home=C:\Program
Files\Java\jre1.6.0_02
-Dnetbeans.home=D:\TR-2.0.0.rc.3\tr-2.0.0.rc.3\tr\platform8
-Dnetbeans.dirs=D:\TR-2.0.0.rc.3\tr-2.0.0.rc.3\tr\tr;D:\TR-2.0.0.rc.3\tr-2.0.0.rc.3\tr\ide9
-Dnetbeans.user=C:\Documents
and
Settings\USER\Application
Data\.thinkingrock\tr-2.0.0.rc.3
-Dnetbeans.system_http_proxy=DIRECT
-Dnetbeans.system_http_non_proxy_hosts=
-Dsun.awt.keepWorkingSetOnMinimize=true
Compiler: HotSpot Client Compiler
Heap memory usage: initial 64.0MB maximum 254.1MB
Non heap memory usage: initial 84.2MB maximum 308.0MB
Garbage collector: Copy (Collections=29 Total time spent=0s)
Garbage collector: MarkSweepCompact (Collections=0 Total time spent=0s)
Classes: loaded=4704 total loaded=4704 unloaded 0
INFO [org.netbeans.core.ui.warmup.DiagnosticTask]: Total memory 1,056,161,792
INFO [null]: Total physical memory 1,056,161,792
WARNING [org.openide.filesystems.Ordering]: Not all children in Menu/Help/ marked with the position attribute: [master-help.xml], but some are: [HelpCSAction.shadow, tr-data-sep115.instance, OverviewAction.shadow, HomePage.shadow, Separator1.instance, org-netbeans-modules-autoupdate-ui-actions-CheckForUpdatesAction.shadow, org-netbeans-core-actions-AboutAction.instance]
INFO [org.netbeans.modules.autoupdate.updateprovider.AutoupdateCatalogCache]: Processing URL: http://www.thinkingrock.com.au/autoupdate/tr-2.0.xml
INFO [org.netbeans.modules.autoupdate.updateprovider.AutoupdateCatalogCache]: Reading URL http://www.thinkingrock.com.au/autoupdate/tr-2.0.xml failed (java.util.concurrent.ExecutionException: java.net.ConnectException: Connection timed out: connect)
INFO [org.netbeans.modules.autoupdate.ui.actions.AutoupdateCheckScheduler]: java.net.ConnectException: Connection timed out: connect
java.io.IOException: java.net.ConnectException: Connection timed out: connect
at org.netbeans.modules.autoupdate.updateprovider.AutoupdateCatalogCache.notifyException(AutoupdateCatalogCache.java:185)
at org.netbeans.modules.autoupdate.updateprovider.AutoupdateCatalogCache.copy(AutoupdateCatalogCache.java:180)
at org.netbeans.modules.autoupdate.updateprovider.AutoupdateCatalogCache.writeCatalogToCache(AutoupdateCatalogCache.java:105)
at org.netbeans.modules.autoupdate.updateprovider.AutoupdateCatalogProvider.refresh(AutoupdateCatalogProvider.java:121)
at org.netbeans.modules.autoupdate.services.UpdateUnitProviderImpl.refresh(UpdateUnitProviderImpl.java:164)
at org.netbeans.api.autoupdate.UpdateUnitProvider.refresh(UpdateUnitProvider.java:158)
[catch] at org.netbeans.modules.autoupdate.ui.actions.AutoupdateCheckScheduler$4.run(AutoupdateCheckScheduler.java:142)
at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:561)
at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:986)
INFO [org.netbeans.modules.autoupdate.updateprovider.AutoupdateCatalog]: No content in cache for tr_appl_update_center provider. Returns EMPTY_MAP
INFO [org.apache.fop.apps.FopFactory]: Source resolution set to: 72.0dpi (px2mm=0.35277778)
INFO [org.apache.fop.apps.FopFactory]: Default page-height set to: 11in
INFO [org.apache.fop.apps.FopFactory]: Default page-width set to: 8.26in
INFO [org.apache.fop.apps.FopFactory]: base set to: nbinst:///resource/fop/
INFO [FOP]: Target resolution set to: 72.0dpi (px2mm=0.35277778)

***A lot of WARNING messages here which I deleted from this posting***

INFO [tr.activation]: Started.
INFO [tr.activation]: Finished.
INFO [tr.recurrence]: Started.
INFO [tr.recurrence]: Finished.
SET JAVA_HOME=jre1.6.0_05
SET PATH=%PATH%;%JAVA_HOME%\bin
TR-2.0.0.rc.3\tr-2.0.0.rc.3\tr\bin\tr.exe


Based on the above, my batch file to start TR does not find the Java application on the USB and uses the version on the PC hard disk. :(

In the current situation, I can actually get the program to load data (without making the changes you suggested), if I delete the ReviewActions.xml every time before starting the application. The ReviewActions.xml is anyway created with a zero filesize.


Top
 Profile  
 
 Post subject:
PostPosted: Tue May 13, 2008 11:11 pm 
Offline

Joined: Wed Jul 05, 2006 10:51 am
Posts: 898
Location: Sydney, Australia
This fix is for the JAXB exceptions. I have used JAXB to access the ReviewActions.xml file.

In your tr.conf file you should have a default_options setting and a jdkhome setting something like:

default_options="-J-Djava.endorsed.dirs=..\tr\modules\ext\endorsed -J-Xms64m -J-Xmx256m -J-XX:PermSize=64m -J-XX:MaxPermSize=256m -J-ea -J-Dnetbeans.logger.console=true"

jdkhome="d:\jre1.6.0_05"


Top
 Profile  
 
 Post subject:
PostPosted: Wed May 14, 2008 3:46 am 
Offline

Joined: Sat Dec 08, 2007 12:10 pm
Posts: 92
Thank you. I'll try that.


Top
 Profile  
 
 Post subject:
PostPosted: Mon May 19, 2008 12:39 pm 
Offline

Joined: Sat Dec 08, 2007 12:10 pm
Posts: 92
Following my previous post I can now confirm that I got RC3 to work from the Java installed on my USB.

In summary -

I created the endorsed directory as described earlier.

I made a batch file as follows:
SET JAVA_HOME=d:\jre1.6.0_05
SET PATH=%PATH%;%JAVA_HOME%
TR-2.0.0.rc.3\tr-2.0.0.rc.3\tr\bin\tr.exe

Obviously my USB is on the D drive.

File tr.conf includes the line:
jdkhome="d:\jre1.6.0_05"

and

default_options="-J-Djava.endorsed.dirs=..\tr\modules\ext\endorsed -J-Xms64m -J-Xmx256m -J-XX:PermSize=64m -J-XX:MaxPermSize=256m -J-ea -J-Dnetbeans.logger.console=true"


The only remaining quirk is that a MS DOS window remains open throughout the session when TR is running. Is there a solution to this little issue? This vbs script that I found doesn't work:
Code:
CreateObject("Wscript.Shell").Run "thinkingrock2.bat",0


Top
 Profile  
 
 Post subject:
PostPosted: Mon May 19, 2008 1:06 pm 
Offline

Joined: Wed Jul 05, 2006 10:51 am
Posts: 898
Location: Sydney, Australia
I have written a small NSIS launcher for TR.

It looks for a suitable JRE or JDK in the following order:
- in the registry for JDK 1.6
- in the registry for JRE 1.6
- in the registry for JDK 1.5
- in the registry for JRE 1.5
- uses JAVA_HOME system variable if there is one set
- uses <tr_install_dir>\tr\bin\jre if it exists

It then executes tr.exe passing the JDK or JDK in the --jdkhome argument.

if no JRE or JDK was found then the jdkhome arg is not used and the jdkhome setting in tr.conf will be used.

This should hopefully mean that it will not be necessary to set the jdkhome and it should also work for using TR on a USB drive.

This will be in RC4 which should be out tomorrow.

_________________
ThinkingRock Developer


Top
 Profile  
 
 Post subject:
PostPosted: Mon May 19, 2008 4:10 pm 
Offline

Joined: Sat Dec 08, 2007 12:10 pm
Posts: 92
Thank you very much. I look forward to trying the new RC.


Top
 Profile  
 
 Post subject:
PostPosted: Mon May 19, 2008 6:24 pm 
Offline

Joined: Mon May 07, 2007 11:03 am
Posts: 74
Location: Amsterdam, NL
GetItDone wrote:
The only remaining quirk is that a MS DOS window remains open throughout the session when TR is running. Is there a solution to this little issue? This vbs script that I found doesn't work:
Code:
CreateObject("Wscript.Shell").Run "thinkingrock2.bat",0


Hi GetItDone,

You can try the executable hideexec.exe and run it with the thinkingrock executable location as parameter. Hideexec is a free utility, download it @ http://www.scriptlogic.com/products/scr ... efault.asp

In a batch file:

Code:
@echo off
set THINKINGROCK="C:\Program Files\tr-2.0.0.rc.3\tr-2.0.0.rc.3\tr\bin
set HIDEEXEC=c:\tools\hideexec.exe

%HIDEEXEC% %THINKINGROCK%


Good luck,

charlieMOGUL[/code]


Top
 Profile  
 
 Post subject:
PostPosted: Tue May 20, 2008 2:19 pm 
Offline

Joined: Wed Jul 05, 2006 10:51 am
Posts: 898
Location: Sydney, Australia
Ok there is a new release candidate version (RC4) on souceforge.

The new launcher launcher should find a Java version if there is one. If you want to supply one on the usb key, put it in the bin directory and make sure it is named jre (i.e. rename and remove the version). In the final release we will provide a download with a JRE included, but I have not done this yet.


Top
 Profile  
 
 Post subject: Solution confirmed
PostPosted: Mon May 26, 2008 2:34 pm 
Offline

Joined: Mon May 26, 2008 2:29 pm
Posts: 1
Location: Madrid
Quote:
I think I now know how to solve this problem.

I wonder if you could try it out on your system. If so ...

1) go to the folder: <install_dir>\tr\modules\ext

2) make a new folder and name it: endorsed

3) copy jaxb-api.jar into the new endorsed folder (ie. from <install_dir>\tr\modules\ext to <install_dir>\tr\modules\ext\endorsed)

4) edit <install_dir>\tr\etc\tr.conf and in the default_options setting, add the following:

-J-Djava.endorsed.dirs=..\tr\modules\ext\endorsed


Hi. I confirm this solution works, with one minor glitch: I had to move jaxb-impl.jar under the 'endorsed' dir too. Otherwise the exception kept rising.
Now everything is working (for now at least).
Thanks very much for your efforts.

See ya around.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 14 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group