Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FOP integration test failed in native mode #3280

Closed
ffang opened this issue Nov 9, 2021 · 2 comments
Closed

FOP integration test failed in native mode #3280

ffang opened this issue Nov 9, 2021 · 2 comments
Assignees
Labels
Milestone

Comments

@ffang
Copy link
Contributor

ffang commented Nov 9, 2021

the exception is like

Caused by: java.lang.UnsatisfiedLinkError: no awt in java.library.path
	at com.oracle.svm.core.jdk.NativeLibrarySupport.loadLibraryRelative(NativeLibrarySupport.java:132)
	at java.lang.ClassLoader.loadLibrary(ClassLoader.java:197)
	at java.lang.Runtime.loadLibrary0(Runtime.java:830)
	at java.lang.System.loadLibrary(System.java:1871)
	at java.awt.Toolkit$3.run(Toolkit.java:1395)
	at java.awt.Toolkit$3.run(Toolkit.java:1393)
	at java.security.AccessController.doPrivileged(AccessController.java:87)
	at java.awt.Toolkit.loadLibraries(Toolkit.java:1392)
	at java.awt.Toolkit.<clinit>(Toolkit.java:1425)
	at com.oracle.svm.core.classinitialization.ClassInitializationInfo.invokeClassInitializer(ClassInitializationInfo.java:375)
	at com.oracle.svm.core.classinitialization.ClassInitializationInfo.initialize(ClassInitializationInfo.java:295)
	at java.awt.Color.<clinit>(Color.java:275)
	at com.oracle.svm.core.classinitialization.ClassInitializationInfo.invokeClassInitializer(ClassInitializationInfo.java:375)
	at com.oracle.svm.core.classinitialization.ClassInitializationInfo.initialize(ClassInitializationInfo.java:295)
	at org.apache.xmlgraphics.java2d.GraphicContext.<init>(GraphicContext.java:92)
	at org.apache.fop.render.intermediate.IFGraphicContext.<init>(IFGraphicContext.java:42)
	at org.apache.fop.render.intermediate.IFRenderer.<init>(IFRenderer.java:129)
	at org.apache.fop.render.RendererFactory.createRendererForDocumentHandler(RendererFactory.java:318)
	at org.apache.fop.render.RendererFactory.tryIFDocumentHandlerMaker(RendererFactory.java:299)
	at org.apache.fop.render.RendererFactory.createRenderer(RendererFactory.java:279)
	at org.apache.fop.area.RenderPagesModel.<init>(RenderPagesModel.java:71)
	at org.apache.fop.area.AreaTreeHandler.setupModel(AreaTreeHandler.java:135)
	at org.apache.fop.area.AreaTreeHandler.<init>(AreaTreeHandler.java:105)
	at org.apache.fop.render.RendererFactory.createFOEventHandler(RendererFactory.java:363)
	at org.apache.fop.fo.FOTreeBuilder.<init>(FOTreeBuilder.java:107)
	at org.apache.fop.apps.Fop.createDefaultHandler(Fop.java:104)
	at org.apache.fop.apps.Fop.<init>(Fop.java:78)
	at org.apache.fop.apps.FOUserAgent.newFop(FOUserAgent.java:184)
	at org.apache.fop.apps.FopFactory.newFop(FopFactory.java:246)
	at org.apache.camel.component.fop.FopProducer.transform(FopProducer.java:92)
	at org.apache.camel.component.fop.FopProducer.process(FopProducer.java:66)
	at org.apache.camel.support.AsyncProcessorConverterHelper$ProcessorToAsyncProcessorBridge.process(AsyncProcessorConverterHelper.java:66)
	... 39 more
Caused by: java.lang.NoClassDefFoundError: Could not initialize class java.awt.Color
	at com.oracle.svm.core.classinitialization.ClassInitializationInfo.initialize(ClassInitializationInfo.java:239)
	at org.apache.xmlgraphics.java2d.GraphicContext.<init>(GraphicContext.java:92)
	at org.apache.fop.render.intermediate.IFGraphicContext.<init>(IFGraphicContext.java:42)
	at org.apache.fop.render.intermediate.IFRenderer.<init>(IFRenderer.java:129)
	at org.apache.fop.render.RendererFactory.createRendererForDocumentHandler(RendererFactory.java:318)
	at org.apache.fop.render.RendererFactory.tryIFDocumentHandlerMaker(RendererFactory.java:299)
	at org.apache.fop.render.RendererFactory.createRenderer(RendererFactory.java:279)
	at org.apache.fop.area.RenderPagesModel.<init>(RenderPagesModel.java:71)
	at org.apache.fop.area.AreaTreeHandler.setupModel(AreaTreeHandler.java:135)
	at org.apache.fop.area.AreaTreeHandler.<init>(AreaTreeHandler.java:105)
	at org.apache.fop.render.RendererFactory.createFOEventHandler(RendererFactory.java:363)
	at org.apache.fop.fo.FOTreeBuilder.<init>(FOTreeBuilder.java:107)
	at org.apache.fop.apps.Fop.createDefaultHandler(Fop.java:104)
	at org.apache.fop.apps.Fop.<init>(Fop.java:78)
	at org.apache.fop.apps.FOUserAgent.newFop(FOUserAgent.java:184)
	at org.apache.fop.apps.FopFactory.newFop(FopFactory.java:246)
	at org.apache.camel.component.fop.FopProducer.transform(FopProducer.java:92)
	at org.apache.camel.component.fop.FopProducer.process(FopProducer.java:66)
	at org.apache.camel.support.AsyncProcessorConverterHelper$ProcessorToAsyncProcessorBridge.process(AsyncProcessorConverterHelper.java:66)
	... 39 more
@ffang ffang self-assigned this Nov 9, 2021
@ffang ffang added the test label Nov 9, 2021
@ffang
Copy link
Contributor Author

ffang commented Nov 9, 2021

This is probably mac machine specific, since per the graalvm issue comment here
oracle/graal#2842 (comment)
AWT isn't supported on macos yet.

I can see this problem on both main and camel-main branch.

Weird thing is that I passed all native tests on my mac weeks ago, not sure if this is caused by mac env mess-up(I installed graalvm version with JDK17 also, but this error is reproduced with JDK11 on my mac).

Anyway, I think we better disable this test on mac if this is mac specific

ffang added a commit to ffang/camel-quarkus that referenced this issue Nov 19, 2021
@ffang
Copy link
Contributor Author

ffang commented Nov 19, 2021

Disable this itest on mac
#3314

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants