ERROR when Run "model.generator"

204 views
Skip to first unread message

Andrea Checchia

unread,
Nov 28, 2013, 4:21:21 AM11/28/13
to idem...@googlegroups.com
Hi all,

I updated to the 2.0 version of the project.

Now when I run the model.generator from Eclipse, it gives me the following error:

28-nov-2013 10.08.17 org.compiere.util.Language getLanguage
INFO: Adding Language=it, Country=IT, Locale=it_IT
10:08:18.031 Adempiere.startup: iDempiere(r) Release 2.0_2013-10-31 -Smart Suite ERP, CRM and SCM- (c) 1999-2013 iDempiere(r); Implementation: iDempiere - Supported by iDempiere community
10:08:18.033 Ini.loadProperties: /opt/repos/idempiere-italia/idempiere.properties #28
[INFO] MLog clients using com.mchange.v2.log.FallbackMLog logging.
[INFO] Initializing c3p0-0.9.2 [built 09-February-2013 02:13:17 +0000; debug? true; trace: 10]
[INFO] Initializing c3p0 pool... com.mchange.v2.c3p0.ComboPooledDataSource [ acquireIncrement -> 3, acquireRetryAttempts -> 2, acquireRetryDelay -> 1000, autoCommitOnClose -> false, automaticTestTable -> null, breakAfterAcquireFailure -> false, checkoutTimeout -> 0, connectionCustomizerClassName -> null, connectionTesterClassName -> com.mchange.v2.c3p0.impl.DefaultConnectionTester, dataSourceName -> iDempiereDS, debugUnreturnedConnectionStackTraces -> false, description -> null, driverClass -> org.postgresql.Driver, factoryClassLocation -> null, forceIgnoreUnresolvedTransactions -> false, identityToken -> z8kfsx8y17tvlqp1eb039w|3cecb67f, idleConnectionTestPeriod -> 1200, initialPoolSize -> 10, jdbcUrl -> jdbc:postgresql://localhost:5432/idempiere?encoding=UNICODE, maxAdministrativeTaskTime -> 0, maxConnectionAge -> 0, maxIdleTime -> 1200, maxIdleTimeExcessConnections -> 1200, maxPoolSize -> 90, maxStatements -> 0, maxStatementsPerConnection -> 30, minPoolSize -> 5, numHelperThreads -> 3, preferredTestQuery -> SELECT Version FROM AD_System, properties -> {user=******, password=******}, propertyCycle -> 0, statementCacheNumDeferredCloseThreads -> 0, testConnectionOnCheckin -> false, testConnectionOnCheckout -> false, unreturnedConnectionTimeout -> 0, userOverrides -> {}, usesTraditionalReflectiveProxies -> false ]
10:08:22.255 Language.getLanguage: Adding Language=en, Country=US, Locale=en_US
10:08:22.260 Language.getLanguage: Adding Language=en, Country=US, Locale=en_US
!SESSION 2013-11-28 10:08:15.042 -----------------------------------------------
eclipse.buildId=unknown
java.version=1.6.0_27
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=linux, ARCH=x86_64, WS=gtk, NL=it_IT
Framework arguments:  -application org.adempiere.base.ModelGeneratorApplication
Command-line arguments:  -application org.adempiere.base.ModelGeneratorApplication -data /opt/repos/idempiere-italia/../runtime-model.generator -dev file:/opt/repos/idempiere-italia/.metadata/.plugins/org.eclipse.pde.core/model.generator/dev.properties -os linux -arch x86_64 -consoleLog

!ENTRY org.eclipse.osgi 4 0 2013-11-28 10:08:34.230
!MESSAGE Application error
!STACK 1
java.lang.NullPointerException
    at org.compiere.model.ModelValidationEngine.fireModelChange(ModelValidationEngine.java:404)
    at org.compiere.model.PO.saveFinish(PO.java:2239)
    at org.compiere.model.PO.saveUpdate(PO.java:2379)
    at org.compiere.model.MSystem.save(MSystem.java:268)
    at org.compiere.model.PO.saveEx(PO.java:2197)
    at org.compiere.model.MSystem.get(MSystem.java:78)
    at org.compiere.Adempiere.startupEnvironment(Adempiere.java:589)
    at org.compiere.Adempiere.startup(Adempiere.java:551)
    at org.adempiere.base.ModelGeneratorApplication.start(ModelGeneratorApplication.java:32)
    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:622)
    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)
    at org.eclipse.equinox.launcher.Main.main(Main.java:1386)
An error has occurred. See the log file
/opt/repos/idempiere-italia/.metadata/.plugins/org.eclipse.pde.core/model.generator/1385629695425.log.



Why??
Thanks in advance.

Andrew.

Jan Thielemann

unread,
Nov 28, 2013, 4:40:56 AM11/28/13
to idem...@googlegroups.com
You can try one of these:

1. Clean all Projects and rebuild the entire workspace
2. Rematerialzie the project
3. Setup your workspace from scratch

I had the same error the first time i ran the app but after the second run it worked without errors.

Hope it helps. :)

Andrea Checchia

unread,
Nov 28, 2013, 4:44:52 AM11/28/13
to idem...@googlegroups.com
ok, perfect ......  I cleaned the project and it worked.  thanks Jan Thielemann!
Reply all
Reply to author
Forward
0 new messages