Mailing List webobjects-dev@wocommunity.org Message #299
From: Ramsey Gurley <webobjects-dev@wocommunity.org>
Subject: Re: [WO-DEV] EntityModeler and Java Version issue
Date: Wed, 27 Oct 2021 22:58:29 +0000
To: WebObjects & WOnder Development <webobjects-dev@wocommunity.org>
Hi Markus,

I've been working on that in my free time. Assuming nobody has any complaints, I'll merge it by the end of this week.


Ramsey

On Oct 27, 2021, at 10:21 PM, Markus Ruggiero (rucotec) <webobjects-dev@wocommunity.org> wrote:

I have Eclipse 2021-09 running with Java 15. Everything works except EntityModeler db access. I cannot reverse engineer nor generate SQL. Eclipse reports a crash

java.lang.RuntimeException: Failed to generate SQL.
at org.objectstyle.wolips.eomodeler.core.sql.EOFSQLGeneratorFactory$ReflectionSQLGenerator.generateSchemaCreationScript(EOFSQLGeneratorFactory.java:62)
at org.objectstyle.wolips.eomodeler.actions.GenerateSQLDialog.generateSql(GenerateSQLDialog.java:298)
at org.objectstyle.wolips.eomodeler.actions.GenerateSQLDialog$1.run(GenerateSQLDialog.java:279)
at java.base/java.lang.Thread.run(Thread.java:831)
Caused by: java.lang.reflect.InvocationTargetException
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:78)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:567)
at org.objectstyle.wolips.eomodeler.core.sql.EOFSQLGeneratorFactory$ReflectionSQLGenerator.generateSchemaCreationScript(EOFSQLGeneratorFactory.java:60)
... 3 more
Caused by: N/A
at com.webobjects.jdbcadaptor.JDBCContext.connect(JDBCContext.java:222)
at com.webobjects.jdbcadaptor.JDBCContext._tryConnect(JDBCContext.java:362)
at com.webobjects.jdbcadaptor.JDBCContext._fetchJDBCInfo(JDBCContext.java:594)
at com.webobjects.jdbcadaptor.JDBCPlugIn.jdbcInfo(JDBCPlugIn.java:1046)
at com.webobjects.jdbcadaptor.PostgresqlPlugIn.jdbcInfo(PostgresqlPlugIn.java:133)
at com.webobjects.jdbcadaptor.JDBCAdaptor.jdbcInfo(JDBCAdaptor.java:233)
at com.webobjects.jdbcadaptor.JDBCExpressionFactory.createExpression(JDBCExpressionFactory.java:26)
at com.webobjects.eoaccess.EOSQLExpressionFactory.expressionForEntity(EOSQLExpressionFactory.java:94)
at com.webobjects.eoaccess.synchronization.EOSchemaSynchronizationFactory._expressionForEntity(EOSchemaSynchronizationFactory.java:1007)
at com.webobjects.jdbcadaptor.PostgresqlSynchronizationFactory.createTableStatementsForEntityGroup(PostgresqlSynchronizationFactory.java:348)
at com.webobjects.eoaccess.synchronization.EOSchemaSynchronizationFactory.createTableStatementsForEntityGroups(EOSchemaSynchronizationFactory.java:500)
at com.webobjects.jdbcadaptor.PostgresqlSynchronizationFactory.schemaCreationStatementsForEntities(PostgresqlSynchronizationFactory.java:551)
at com.webobjects.jdbcadaptor.PostgresqlSynchronizationFactory.schemaCreationScriptForEntities(PostgresqlSynchronizationFactory.java:486)
at org.objectstyle.wolips.eomodeler.core.sql.EOFSQLGenerator53.generateSchemaCreationScript(EOFSQLGenerator53.java:483)
... 8 more

No idea what the problem is other than the runtime version of Java for Eclipse. Never had that crash when Eclipse ran on Java8. The current version of Eclipse does require at least Java 11.

Any idea what I am missing?

macOS Big Sur, Eclipse 2021-09, WOLips 4.18.20210217.5, postgresql-9.2-1000.jdbc4.jar, Installed JREs 15.0.1, 16.0.1, 1.8.0_261.

Compiled/generated apps run perfect inside Eclipse (debugging) and deployed, all with Java15 runtime, everything compiled with Java 1.8 compliance, though

Thanks
---markus---





Confidentiality Notice: This email, including all attachments and replies thereto, are covered by the Electronic Communications Privacy Act, 18 U.S.C. Sections 2510-2521 and are legally privileged. This information is confidential, and intended only for the use of the individuals or entities named above. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or the taking of any action in reliance on the contents of this transmitted information is strictly prohibited. Please notify us if you have received this transmission in error. Thank you.
Subscribe (FEED) Subscribe (DIGEST) Subscribe (INDEX) Unsubscribe Mail to Listmaster