Failed to initialize graphics environment when using marlin-0.8.2-Unsafe-sun-java2d.jar

297 views
Skip to first unread message

Andrea Aime

unread,
Dec 24, 2017, 1:41:17 PM12/24/17
to marlin-...@googlegroups.com
Hi,
today I was trying to use the latest Marlin and stumbled into this:

24 dic 19:36:16 ERROR [geoserver.ows] - 
java.lang.NoClassDefFoundError: org/marlin/ReentrantContextProviderTL
at sun.java2d.pipe.AAShapePipe.<clinit>(AAShapePipe.java:50)
at sun.java2d.SurfaceData.<clinit>(SurfaceData.java:464)
at sun.awt.X11GraphicsEnvironment$1.run(X11GraphicsEnvironment.java:137)
at java.security.AccessController.doPrivileged(Native Method)
at sun.awt.X11GraphicsEnvironment.<clinit>(X11GraphicsEnvironment.java:74)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:264)
at java.awt.GraphicsEnvironment.createGE(GraphicsEnvironment.java:103)
at ...

My command line looks like:

-Xbootclasspath/a:/home/aaime/devel/marlin/binaries/marlin-0.8.2.jar -Xbootclasspath/p:/home/aaime/devel/marlin/binaries/marlin-0.8.2-Unsafe-sun-java2d.jar -Dsun.java2d.renderer=org.marlin.pisces.MarlinRenderingEngine

Removing marlin-0.8.2-Unsafe-sun-java2d.jar from the command line allows it to start up fine instead.
I've also tried to put the marlin-0.8.2.jar in "p" instead of "a" but that did not help

Cheers
Andrea

==
GeoServer Professional Services from the experts! Visit http://goo.gl/it488V for more information.
==

Ing. Andrea Aime
@geowolf
Technical Lead

GeoSolutions S.A.S.
Via di Montramito 3/A
55054  Massarosa (LU)
phone: +39 0584 962313
fax: +39 0584 1660272
mob: +39  339 8844549

http://www.geo-solutions.it
http://twitter.com/geosolutions_it

AVVERTENZE AI SENSI DEL D.Lgs. 196/2003

Le informazioni contenute in questo messaggio di posta elettronica e/o nel/i file/s allegato/i sono da considerarsi strettamente riservate. Il loro utilizzo è consentito esclusivamente al destinatario del messaggio, per le finalità indicate nel messaggio stesso. Qualora riceviate questo messaggio senza esserne il destinatario, Vi preghiamo cortesemente di darcene notizia via e-mail e di procedere alla distruzione del messaggio stesso, cancellandolo dal Vostro sistema. Conservare il messaggio stesso, divulgarlo anche in parte, distribuirlo ad altri soggetti, copiarlo, od utilizzarlo per finalità diverse, costituisce comportamento contrario ai principi dettati dal D.Lgs. 196/2003.

The information in this message and/or attachments, is intended solely for the attention and use of the named addressee(s) and may be confidential or proprietary in nature or covered by the provisions of privacy act (Legislative Decree June, 30 2003, no.196 - Italy's New Data Protection Code).Any use not in accord with its purpose, any disclosure, reproduction, copying, distribution, or either dissemination, either whole or partial, is strictly forbidden except previous formal approval of the named addressee(s). If you are not the intended recipient, please contact immediately the sender by telephone, fax or e-mail and delete the information in this message that has been received in error. The sender does not give any warranty or accept liability as the content, accuracy or completeness of sent messages and accepts no responsibility  for changes made after they were sent or for other risks which arise as a result of e-mail transmission, viruses, etc.


Laurent Bourgès

unread,
Dec 25, 2017, 7:14:16 AM12/25/17
to marlin-...@googlegroups.com
Hi Andrea,
Are you sure you used jars from:

Marlin jar provides the missing classes: marlin-0.8.2-Unsafe.jar

Please add '-Unsafe' to the jar path (bootclasspath append) that looks missing !

You should see marlin info in your log (catalina.out)...

Merry Xmas,
Cheers, 🍾
Laurent

--
You received this message because you are subscribed to the Google Groups "marlin-renderer" group.
To unsubscribe from this group and stop receiving emails from it, send an email to marlin-renderer+unsubscribe@googlegroups.com.
To post to this group, send email to marlin-renderer@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Laurent Bourgès

unread,
Jan 4, 2018, 4:40:02 AM1/4/18
to marlin-...@googlegroups.com
Andrea,
Does it work now ?

Laurent

Andrea Aime

unread,
Jan 4, 2018, 5:02:26 AM1/4/18
to marlin-...@googlegroups.com
Oh hey Laurent,
yes, I had the wrong file name in the system variables, thank you for pointing that out.
Funny that the java runtime does not fail the startup in that condition...

Cheers
Andrea
--

Regards,

Andrea Aime

Reply all
Reply to author
Forward
0 new messages