eclipse-archived / concierge

Eclipse Concierge™ project
https://www.eclipse.org/concierge/
Eclipse Public License 1.0
33 stars 22 forks source link

Running Concierge on CEE-J results on NPE #37

Closed JochenHiller closed 7 years ago

JochenHiller commented 7 years ago

An user running Concierge on Skelmir CEE-J reports:

The org.eclipse.concierge.Concierge constructor calls System.getProperty(“java.specification.name”). With CEE-J this system property is not defined which causes a NullPointerException and failure to start.

See code at https://github.com/eclipse/concierge/blob/59ba0eb4d2c7a347bb3f084ae3524b4595585346/framework/org.eclipse.concierge/src/org/eclipse/concierge/Concierge.java#L680

We can use a default value for the property of "" so we assume it is NOT a J2ME VM by default, and try to get execution environment base on java.specification.version