Modify

Opened 8 years ago

Closed 7 years ago

Last modified 7 years ago

#16304 closed defect (fixed)

java 10 compatibility

Reported by: kendzi Owned by: kendzi
Priority: normal Milestone:
Component: Plugin kendzi3d Version:
Keywords: java10 java11 jaxb Cc:

Description (last modified by Don-vip)

Looks like my plugin kendzi3d stopped working when I upgraded to openjdk 10. I get an error:

Caused by: java.lang.ClassNotFoundException: javax.xml.bind.JAXBException

Class it is now moved to module java.xml.bind which needs to be included or added as deppendency.

I will fix that bug by including jar with jaxb, but I'm surprised to see that because I was sure you have some test for that.

So do you have an automated tests which checks for this kind of problems?

Attachments (0)

Change History (15)

comment:1 by kendzi, 8 years ago

Oki i found ticket #15128 so current approach is to run plugin by command: java --add-modules java.se.ee -jar josm.jar right?

On some stackoverflow post I found that proper solution is to add jar with missing class:
https://stackoverflow.com/questions/43574426/how-to-resolve-java-lang-noclassdeffounderror-javax-xml-bind-jaxbexception-in-j/48136912

Why it was not used by josm?

comment:2 by Don-vip, 8 years ago

Hi kendzi,
Please follow the discussions and commits here:

  • #15560 : Java 10 compatibility
  • #16047 : Java 11 compatibility

java --add-modules java.se.ee -jar josm.jar will work with Java 9/10 but not with 11+ as the Java EE modules have been removed from Java 11.

We have removed all of our JAXB (direct or indirect) dependencies. You can either do the same or ship the library with your plugin.

We have some basic plugin integration tests (we can see if a plugin uses an outdated JOSM API, and we try to load the plugin) but we cannot test all the plugins features.

comment:3 by Don-vip, 8 years ago

Component: PluginPlugin kendzi3d
Keywords: java10 java11 jaxb added
Owner: changed from team to kendzi

comment:4 by Don-vip, 8 years ago

Status: newneedinfo

Do you need more information?

comment:5 by kendzi, 8 years ago

Not for now. I cannot drop jaxb, so i will add lib's. Unfortunately maven plugins I'm using still are not ported to java 9. Additionally after adding libs there was some problems with versions, especially when app should be runnable in botch java 8 and beyond. So plan is to wait for plugin, later It will be fight with versions.

Not that I'm lazy but, Is there some road map when josm drops support for java 8?

comment:6 by Don-vip, 8 years ago

There are no immediate plans to drop Java 8. Unlike previous versions, the fate of Java on desktop is not very clear. Oracle is dropping a ton of desktop APIs and tools (WebStart, JavaFX, etc.) without much notice. We first need to wait for Java 11 release to see where Java is going. Starting from 11, Oracle won't provide a JRE anymore! So we will have to see what replacement we can offer for Windows and Mac. Not an easy task. For Linux it is complicated as well, Debian plans to move to Java 11 but they have not enough manpower to update all packages...

comment:7 by Don-vip, 8 years ago

What is the Maven plugin causing you trouble? I thought all had been updated long ago.

comment:8 by kendzi, 8 years ago

I'm generating schema using maven-jaxb2-plugin, looks they still fighting with java 9/10:
https://github.com/highsource/maven-jaxb2-plugin/issues/120

comment:9 by Don-vip, 8 years ago

Wow ticket open 1 year ago this is crazy. I wasn't aware jaxb plugin was not an official plugin from Apache Maven team. They updated their plugins long ago. I hope it will be released soon and the author keeps updating it.

comment:10 by Don-vip, 8 years ago

It seems 0.14.0 should work.

comment:11 by Don-vip, 7 years ago

Description: modified (diff)

comment:12 by Don-vip, 7 years ago

Status: needinfonew

comment:13 by Don-vip, 7 years ago

Status: newneedinfo

See https://github.com/kendzi/kendzi3d/pull/85. Can you please merge it and close this ticket if fixed?

comment:14 by Don-vip, 7 years ago

Resolution: othersoftware
Status: needinfoclosed

let's continue the discussion on https://github.com/kendzi/kendzi3d/pull/85 if needed

comment:15 by Don-vip, 7 years ago

Resolution: othersoftwarefixed

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain kendzi.
as The resolution will be set.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.