Java7 issues with jfreechart

A discussion forum for JFreeChart (a 2D chart library for the Java platform).

Java7 issues with jfreechart

Postby yanakogan » Thu Oct 26, 2017 10:55 pm

Upgrading from Java6 to Java7 caused issues with freechart.
There are some unresolvable dependency issues.
Has anyone encountered this, and how to resolve it?
yanakogan
 
Posts: 2
Joined: Thu Oct 26, 2017 10:47 pm

Re: Java7 issues with jfreechart

Postby John Matthews » Fri Oct 27, 2017 12:33 am

I'm able to run JFreeChart 1.0.19 under Java 6, 7 & 8 on multiple platforms. Can you describe the issue you're having and post a short example.
John Matthews
 
Posts: 388
Joined: Wed Sep 12, 2007 3:18 pm

Re: Java7 issues with jfreechart

Postby david.gilbert » Fri Oct 27, 2017 3:35 pm

I'd be surprised if JDK 1.6 -> 1.7 causes any trouble, but please post details.
David Gilbert
JFreeChart Project Leader

:idea: Read my blog
:idea: Ask your company to buy the JFreeChart Developer Guide
:idea: Check out other products sold by my company Object Refinery Limited
david.gilbert
JFreeChart Project Leader
 
Posts: 11653
Joined: Fri Mar 14, 2003 10:29 am

Re: Java7 issues with jfreechart

Postby yanakogan » Fri Oct 27, 2017 4:49 pm

java6 workin with no issues
in hava 7, getting the below error: sorry if its too long

<msjava.soaptk.common.SOAPException: SOAPServiceBaseImpl.invokeHandlerMethod() caught invocation exception at msjava.soaptk.service.SOAPServiceBaseImpl.invokeHandlerMethod(SOAPServiceBaseImpl.java:366)
at msjava.soaptk.service.SOAPServiceBaseImpl.service(SOAPServiceBaseImpl.java:223)
at msjava.soaptk.processor.SOAPMessageHandler.handleMessage(SOAPMessageHandler.java:316)
at msjava.tiaf.processor.TIAFInputProcessor.doHandleMessage(TIAFInputProcessor.java:438)
at msjava.tiaf.processor.TIAFInputProcessor.doProcessMessage(TIAFInputProcessor.java:421)
at msjava.tiaf.processor.TIAFInputProcessor$TransportListener.processMessageInExecutor(TIAFInputProcessor.java:1020)
at msjava.tiaf.processor.TIAFInputProcessor$TransportListener.messageCallback(TIAFInputProcessor.java:988)
at msjava.tiaf.transport.mq.TIAFMQTransportBase.asyncMessageReceived(TIAFMQTransportBase.java:599)
at msjava.tiaf.transport.mq.TIAFMQServer$InputQueueDataListener.readCallback(TIAFMQServer.java:575)
at msjava.mqtk.mqi.MSMQIParallelReaderPool$DataListener.readCallback(MSMQIParallelReaderPool.java:77)
at msjava.mqtk.mqi.MSMQIAsyncReader$ReadThread.processAsyncRead(MSMQIAsyncReader.java:415)
at msjava.mqtk.mqi.MSMQIAsyncReader$ReadThread.doRead(MSMQIAsyncReader.java:330)
at msjava.mqtk.mqi.MSMQIAsyncReader$ReadThread.startRead(MSMQIAsyncReader.java:233)
at msjava.mqtk.mqi.MSMQIAsyncReader$ReadThread$1.eventOccurred(MSMQIAsyncReader.java:147)
at msjava.msnet.MSNetLoopDefaultImpl$TimedCallback.process(MSNetLoopDefaultImpl.java:1070)
at msjava.msnet.MSNetLoopDefaultImpl.processTimedCallbacks(MSNetLoopDefaultImpl.java:877)
at msjava.msnet.MSNetLoopDefaultImpl.processTimedCallbacks(MSNetLoopDefaultImpl.java:844)
at msjava.msnet.MSNetLoopDefaultImpl.innerLoop(MSNetLoopDefaultImpl.java:349)
at msjava.msnet.MSNetLoopDefaultImpl.outerLoop(MSNetLoopDefaultImpl.java:337)
at msjava.msnet.MSNetLoopDefaultImpl.loop(MSNetLoopDefaultImpl.java:304)
at msjava.msnet.MSNetLoop.loop(MSNetLoop.java:177)
at msjava.mqtk.mqi.MSMQIAsyncReader$ReadThread.run(MSMQIAsyncReader.java:161)
Caused by: java.lang.UnsatisfiedLinkError: /ms/dist/msjava/PROJ/oraclejdk/1.7.0_80/.exec/@sys/jre/lib/amd64/libfontmanager.so: /ms/dist/fsf/PROJ/gcc-lib/3.2.3-58/.exec/amd64.linux.2.4.glibc.2.3/lib64/libgcc_s.so.1: version `GCC_4.2.0' not found (required by /ms/dist/msjava/PROJ/oraclejdk/1.7.0_80/.exec/@sys/jre/lib/amd64/libfontmanager.so)
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary1(ClassLoader.java:1965)
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1890)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1872)
at java.lang.Runtime.loadLibrary0(Runtime.java:849)
at java.lang.System.loadLibrary(System.java:1088)
at sun.font.FontManagerNativeLibrary$1.run(FontManagerNativeLibrary.java:61)
at java.security.AccessController.doPrivileged(Native Method)
at sun.font.FontManagerNativeLibrary.<clinit>(FontManagerNativeLibrary.java:32)
at sun.font.SunFontManager$1.run(SunFontManager.java:339)
at java.security.AccessController.doPrivileged(Native Method)
at sun.font.SunFontManager.<clinit>(SunFontManager.java:335)
at sun.font.FontDesignMetrics.getMetrics(FontDesignMetrics.java:264)
at sun.java2d.SunGraphics2D.getFontMetrics(SunGraphics2D.java:827)
at org.jfree.text.TextFragment.calculateDimensions(TextFragment.java:227)
at org.jfree.text.TextLine.calculateDimensions(TextLine.java:196)
at org.jfree.text.TextBlock.calculateDimensions(TextBlock.java:177)
at org.jfree.chart.block.LabelBlock.arrange(LabelBlock.java:225)
at org.jfree.chart.block.BorderArrangement.arrangeNN(BorderArrangement.java:221)
at org.jfree.chart.block.BorderArrangement.arrange(BorderArrangement.java:137)
at org.jfree.chart.block.BlockContainer.arrange(BlockContainer.java:181)
at org.jfree.chart.block.CenterArrangement.arrangeNN(CenterArrangement.java:289)
at org.jfree.chart.block.CenterArrangement.arrange(CenterArrangement.java:98)
at org.jfree.chart.block.BlockContainer.arrange(BlockContainer.java:181)
at org.jfree.chart.block.FlowArrangement.arrangeNN(FlowArrangement.java:367)
at org.jfree.chart.block.FlowArrangement.arrangeRR(FlowArrangement.java:285)
at org.jfree.chart.block.FlowArrangement.arrange(FlowArrangement.java:160)
at org.jfree.chart.block.BlockContainer.arrange(BlockContainer.java:181)
at org.jfree.chart.title.LegendTitle.arrange(LegendTitle.java:469)
at org.jfree.chart.JFreeChart.drawTitle(JFreeChart.java:1134)
at org.jfree.chart.JFreeChart.draw(JFreeChart.java:1025)
at org.jfree.chart.JFreeChart.createBufferedImage(JFreeChart.java:1213)
at org.jfree.chart.JFreeChart.createBufferedImage(JFreeChart.java:1193)
at org.jfree.chart.JFreeChart.createBufferedImage(JFreeChart.java:1178)
at com.msamg.boardreports.chart.ChartBuilder.buildChart(ChartBuilder.java:165)
at com.msamg.boardreports.dataaccessor.BoardReportDataWriter.writeGraph(BoardReportDataWriter.java:223)
at com.msamg.boardreports.dataaccessor.BoardReportDataWriter.writeData(BoardReportDataWriter.java:52)
at com.msamg.boardreports.dataaccessor.BoardReportDataGenerator.generateReportData(BoardReportDataGenerator.java:87)
at com.msamg.boardreports.dataaccessor.BoardReportDataAccessor.execute(BoardReportDataAccessor.java:73)
at com.msim.reparch.dataprep.DataPrepServiceHandler.loadClassAndExecuteDA(DataPrepServiceHandler.java:322)
at com.msim.reparch.dataprep.DataPrepServiceHandler.appendMetadataAndExecuteDA(DataPrepServiceHandler.java:376)
at com.msim.reparch.dataprep.DataPrepServiceHandler.handleComponentRequest(DataPrepServiceHandler.java:209)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at msjava.soaptk.service.SOAPServiceBaseImpl.invokeHandlerMethod(SOAPServiceBaseImpl.java:341)
yanakogan
 
Posts: 2
Joined: Thu Oct 26, 2017 10:47 pm

Re: Java7 issues with jfreechart

Postby david.gilbert » Fri Oct 27, 2017 10:14 pm

This looks like a bug in Java2D, you should report it to Oracle and provide them details of the OS you are running on. Although first you should see if there is a later patch release available on your platform and also try JDK8 (or 9) to see if the bug is still there.
David Gilbert
JFreeChart Project Leader

:idea: Read my blog
:idea: Ask your company to buy the JFreeChart Developer Guide
:idea: Check out other products sold by my company Object Refinery Limited
david.gilbert
JFreeChart Project Leader
 
Posts: 11653
Joined: Fri Mar 14, 2003 10:29 am


Return to JFreeChart

Who is online

Users browsing this forum: Bing [Bot], Google [Bot], Joshi, Majestic-12 [Bot] and 11 guests