question-circle Can't run after install on Win7 64bit with java 1.7 - IllegalStateException not same as #814

6 years 1 month ago - 6 years 1 month ago #1555 by SharmanJ
Copied content of Zip file to C:\Program Files\modelio and attempted to run by double clicking modelio.exe. Following log file content produced.

Should have a proper install process to register the program with Windows.

Log file:

!SESSION 2013-03-13 12:52:13.234
eclipse.buildId=unknown
java.version=1.7.0_07
java.vendor=Oracle Corporation
BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=en_NZ
Command-line arguments: -os win32 -ws win32 -arch x86_64

!ENTRY org.eclipse.osgi 4 0 2013-03-13 12:52:15.106
!MESSAGE Application error
!STACK 1
java.lang.IllegalStateException: The platform metadata area could not be written: C:\Program Files\modelio\workspace\.metadata. By default the platform writes its content
under the current working directory when the platform is launched. Use the -data parameter to
specify a different content area for the platform.
at org.eclipse.core.internal.runtime.DataArea.assertLocationInitialized(DataArea.java:61)
at org.eclipse.core.internal.runtime.DataArea.getStateLocation(DataArea.java:125)
at org.eclipse.core.internal.preferences.InstancePreferences.getBaseLocation(InstancePreferences.java:44)
at org.eclipse.core.internal.preferences.InstancePreferences.initializeChildren(InstancePreferences.java:199)
at org.eclipse.core.internal.preferences.InstancePreferences.<init>(InstancePreferences.java:59)
at org.eclipse.core.internal.preferences.InstancePreferences.internalCreate(InstancePreferences.java:209)
at org.eclipse.core.internal.preferences.EclipsePreferences.create(EclipsePreferences.java:369)
at org.eclipse.core.internal.preferences.EclipsePreferences.create(EclipsePreferences.java:357)
at org.eclipse.core.internal.preferences.PreferencesService.createNode(PreferencesService.java:389)
at org.eclipse.core.internal.preferences.RootPreferences.getChild(RootPreferences.java:63)
at org.eclipse.core.internal.preferences.RootPreferences.getNode(RootPreferences.java:96)
at org.eclipse.core.internal.preferences.RootPreferences.node(RootPreferences.java:85)
at org.eclipse.core.internal.preferences.AbstractScope.getNode(AbstractScope.java:38)
at org.eclipse.core.runtime.preferences.InstanceScope.getNode(InstanceScope.java:80)
at org.eclipse.ui.preferences.ScopedPreferenceStore.getStorePreferences(ScopedPreferenceStore.java:241)
at org.eclipse.ui.preferences.ScopedPreferenceStore.<init>(ScopedPreferenceStore.java:133)
at org.eclipse.ui.plugin.AbstractUIPlugin.getPreferenceStore(AbstractUIPlugin.java:284)
at org.eclipse.ui.internal.UISynchronizer.<init>(UISynchronizer.java:88)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2517)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2499)
at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:679)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:668)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at com.modeliosoft.modelio.app.intro.Application.start(Application.java:78)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:344)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:622)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:577)
at org.eclipse.equinox.launcher.Main.run(Main.java:1410)
Attachments:

Please Log in or Create an account to join the conversation.

6 years 1 month ago #1556 by pan
Can you write any file in the C:\Program Files\modelio\workspace\ ?

Please Log in or Create an account to join the conversation.

6 years 1 month ago - 6 years 1 month ago #1560 by SharmanJ
Answer: write access only with granted (elevated) Admin rights. e.g. copy, create by paste, delete. User has no rights to do anything of a modify/create nature. NB User is an Administrator, UAC is default.
So, taking the hint, I granted myself full access to the modelio directory and low and behold, I can use Modelio!

NB I have an SSD C: drive, so I would dearly like all apps to have any temporary files, etc., on my second drive - not an SSD - to reduce writes to the SSD. I only raise this as the first thing Modelio did was to create and populate the 'workspace' sub-directory. If that is the only time Modelio writes to this area it's fine.

Please Log in or Create an account to join the conversation.

6 years 1 month ago #1569 by cde
Hi SharmanJ,

Modelio saves some parameters in this directory (workspace), mainly when opening/closing the application...

There is a way to create this directory on another disk... Just create a short-cut for modelio.exe, edit its properties and set the 'Start in' value with a directory on your second drive...

Best regards,
cde

Please Log in or Create an account to join the conversation.

Moderators: oslcde
Time to create page: 0.042 seconds
^ Back to Top