java.lang.RuntimeException error

Post Reply
leandro
Posts: 5
Joined: 18 Oct 2012 19:44

java.lang.RuntimeException error

Post by leandro » 13 Dec 2012 16:48

Dear all!!

I'd been try run the openLCA 1.2.8 source code in Linux Ubuntu OS
but there is a something wrong that I can't soolver

follows the file .log

If someone culd help-me, thanks!!!


!SESSION 2012-12-13 11:56:58.077 -----------------------------------------------
eclipse.buildId=unknown
java.version=1.6.0_24
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=linux, ARCH=x86, WS=gtk, NL=en
Framework arguments: -product org.openlca.core.application.openLCA
Command-line arguments: -product org.openlca.core.application.openLCA -data /root/workspace/../runtime-openLCA.product -dev file:/root/workspace/.metadata/.plugins/org.eclipse.pde.core/openLCA.product/dev.properties -os linux -ws gtk -arch x86 -consoleLog -data @noDefault

!ENTRY org.eclipse.equinox.app 0 0 2012-12-13 11:56:59.235
!MESSAGE Product org.openlca.core.application.openLCA could not be found.

!ENTRY org.eclipse.osgi 2 0 2012-12-13 11:56:59.458
!MESSAGE One or more bundles are not resolved because the following root constraints are not resolved:
!SUBENTRY 1 org.eclipse.osgi 2 0 2012-12-13 11:56:59.459
!MESSAGE Bundle initial@reference:file:dropins/org.eclipse.persistence.oracle.nosql_2.4.1.v20121003-ad44345.jar/ was not resolved.
!SUBENTRY 2 org.eclipse.persistence.oracle.nosql 2 0 2012-12-13 11:56:59.460
!MESSAGE Missing host org.eclipse.persistence.nosql_2.4.1.

!ENTRY org.eclipse.osgi 2 0 2012-12-13 11:56:59.482
!MESSAGE The following is a complete list of bundles which are not resolved, see the prior log entry for the root cause if it exists:
!SUBENTRY 1 org.eclipse.osgi 2 0 2012-12-13 11:56:59.483
!MESSAGE Bundle org.eclipse.persistence.oracle.nosql_2.4.1.v20121003-ad44345 [47] was not resolved.
!SUBENTRY 2 org.eclipse.persistence.oracle.nosql 2 0 2012-12-13 11:56:59.484
!MESSAGE Missing host org.eclipse.persistence.nosql_2.4.1.
!SUBENTRY 2 org.eclipse.persistence.oracle.nosql 2 0 2012-12-13 11:56:59.485
!MESSAGE Missing optionally imported package oracle.AQ_0.0.0.
!SUBENTRY 2 org.eclipse.persistence.oracle.nosql 2 0 2012-12-13 11:56:59.485
!MESSAGE Missing optionally imported package oracle.kv_0.0.0.

!ENTRY org.eclipse.osgi 4 0 2012-12-13 11:56:59.487
!MESSAGE Application error
!STACK 1
java.lang.RuntimeException: No application id has been found.
at org.eclipse.equinox.internal.app.EclipseAppContainer.startDefaultApp(EclipseAppContainer.java:242)
at org.eclipse.equinox.internal.app.MainApplicationLauncher.run(MainApplicationLauncher.java:29)
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:369)
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:616)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:620)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:575)
at org.eclipse.equinox.launcher.Main.run(Main.java:1408)
at org.eclipse.equinox.launcher.Main.main(Main.java:1384)
An error has occurred. See the log file
/root/workspace/.metadata/.plugins/org.eclipse.pde.core/openLCA.product/1355407018450.log.

aciroth
Posts: 750
Joined: 09 May 2010 23:28

Re: java.lang.RuntimeException error

Post by aciroth » 13 Dec 2012 19:20

Hi Leandro,
compilation of the source code has changed recently, we have written a new description in the wiki, check please here http://openlca.org/documentation/index. ... le_openLCA
Cheers,
Andreas

leandro
Posts: 5
Joined: 18 Oct 2012 19:44

Re: java.lang.RuntimeException error

Post by leandro » 29 Jan 2013 18:50

Hi,

thaks for your help!
I got a new error message,
while trying to connect to the MySQL database
I already uncheck “embedded” (should be embedded=false)

I write down the log file

and I hope to continue whith your help, thanks!!

java.sql.SQLException: Access denied for user 'root'@'localhost' (using password: NO)
at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1073)
at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3597)
at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3529)
at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:935)
at com.mysql.jdbc.MysqlIO.secureAuth411(MysqlIO.java:4101)
at com.mysql.jdbc.MysqlIO.doHandshake(MysqlIO.java:1300)
at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2337)
at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2370)
at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2154)
at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:792)
at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:47)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:532)
at com.mysql.jdbc.Util.handleNewInstance(Util.java:411)
at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:381)
at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:305)
at java.sql.DriverManager.getConnection(DriverManager.java:620)
at java.sql.DriverManager.getConnection(DriverManager.java:200)
at org.openlca.core.database.ConnectionData.createServerConnection(ConnectionData.java:85)
at org.openlca.core.database.DescriptorFetch.doFetch(DescriptorFetch.java:28)
at org.openlca.core.database.MySQLServer.getDatabaseDescriptors(MySQLServer.java:221)
at org.openlca.core.application.db.ConnectionJob.run(ConnectionJob.java:36)
at org.openlca.core.application.WrappedUIJob$1.run(WrappedUIJob.java:26)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
at org.openlca.core.application.WrappedUIJob.runInUIThread(WrappedUIJob.java:22)
at org.eclipse.ui.progress.UIJob$1.run(UIJob.java:95)
at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:135)
at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:3529)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3182)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2701)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2665)
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 org.openlca.core.application.plugin.Application.start(Application.java:36)
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:353)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
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:616)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
at org.eclipse.equinox.launcher.Main.main(Main.java:1414)

aciroth
Posts: 750
Joined: 09 May 2010 23:28

Re: java.lang.RuntimeException error

Post by aciroth » 29 Jan 2013 19:11

Hi Leandro,
for Linux, you need to run MySQL independently of openLCA (thus, unchecking embedded server is correct) and have a user 'root' without password in MySQL. The latter does not seem to work in your case.
Hth,
Andreas

leandro
Posts: 5
Joined: 18 Oct 2012 19:44

Re: java.lang.RuntimeException error

Post by leandro » 25 Feb 2013 16:03

Thaks for your help

the problem was solved!

Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests