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

Cannot export image to the clipboard #216

Closed
a-s-russo opened this issue Feb 12, 2024 · 2 comments
Closed

Cannot export image to the clipboard #216

a-s-russo opened this issue Feb 12, 2024 · 2 comments
Assignees
Labels
bug Something isn't working
Milestone

Comments

@a-s-russo
Copy link

When I right-click on a chart and attempt to export the image to the clipboard...

clipboard

...an error occurs:

error1_screenshot

The details of the error are below:

java.lang.NullPointerException: Cannot invoke "java.util.Calendar.clone()" because "this.calendar" is null
at java.base/java.text.DateFormat.clone(Unknown Source)
at org.jfree.chart.axis.DateAxis.clone(DateAxis.java:1980)
at org.jfree.util.ObjectUtilities.clone(ObjectUtilities.java:170)
at org.jfree.chart.util.CloneUtils.cloneMapValues(CloneUtils.java:98)
at org.jfree.chart.plot.XYPlot.clone(XYPlot.java:5538)
at org.jfree.chart.plot.CombinedDomainXYPlot.clone(CombinedDomainXYPlot.java:776)
at org.jfree.chart.JFreeChart.clone(JFreeChart.java:1721)
at org.jfree.chart.ChartTransferable.(ChartTransferable.java:155)
at ec.util.chart.swing.Charts$ChartTransferable2.(Charts.java:612)
at ec.util.chart.swing.Charts.copyChart(Charts.java:429)
at ec.util.chart.swing.JTimeSeriesChart.copyImage(JTimeSeriesChart.java:407)
at ec.util.chart.TimeSeriesChartCommand$5.execute(TimeSeriesChartCommand.java:351)
at ec.util.chart.swing.JTimeSeriesChartCommand$Adapter.execute(JTimeSeriesChartCommand.java:305)
at ec.util.chart.swing.JTimeSeriesChartCommand$Adapter.execute(JTimeSeriesChartCommand.java:295)
[catch] at ec.util.various.swing.JCommand.executeSafely(JCommand.java:76)
at ec.util.various.swing.JCommand$ActionAdapter.actionPerformed(JCommand.java:134)
at java.desktop/javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
at java.desktop/javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
at java.desktop/javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
at java.desktop/javax.swing.DefaultButtonModel.setPressed(Unknown Source)
at java.desktop/javax.swing.AbstractButton.doClick(Unknown Source)
at java.desktop/javax.swing.plaf.basic.BasicMenuItemUI.doClick(Unknown Source)
at java.desktop/javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(Unknown Source)
at java.desktop/java.awt.Component.processMouseEvent(Unknown Source)
at java.desktop/javax.swing.JComponent.processMouseEvent(Unknown Source)
at java.desktop/java.awt.Component.processEvent(Unknown Source)
at java.desktop/java.awt.Container.processEvent(Unknown Source)
at java.desktop/java.awt.Component.dispatchEventImpl(Unknown Source)
at java.desktop/java.awt.Container.dispatchEventImpl(Unknown Source)
at java.desktop/java.awt.Component.dispatchEvent(Unknown Source)
at java.desktop/java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
at java.desktop/java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
at java.desktop/java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
at java.desktop/java.awt.Container.dispatchEventImpl(Unknown Source)
at java.desktop/java.awt.Window.dispatchEventImpl(Unknown Source)
at java.desktop/java.awt.Component.dispatchEvent(Unknown Source)
at java.desktop/java.awt.EventQueue.dispatchEventImpl(Unknown Source)
at java.desktop/java.awt.EventQueue$4.run(Unknown Source)
at java.desktop/java.awt.EventQueue$4.run(Unknown Source)
at java.base/java.security.AccessController.doPrivileged(Unknown Source)
at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
at java.desktop/java.awt.EventQueue$5.run(Unknown Source)
at java.desktop/java.awt.EventQueue$5.run(Unknown Source)
at java.base/java.security.AccessController.doPrivileged(Unknown Source)
at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
at java.desktop/java.awt.EventQueue.dispatchEvent(Unknown Source)
at org.netbeans.core.TimableEventQueue.dispatchEvent(TimableEventQueue.java:136)
at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.desktop/java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.desktop/java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.desktop/java.awt.EventDispatchThread.run(Unknown Source)

@a-s-russo
Copy link
Author

Note that I can export the SI chart. After running X13 and viewing the 'Main results' for a series, it is possible to export the SI chart via the clipboard to another application, but the SA + T chart cannot be exported.

@charphi charphi added the bug Something isn't working label Feb 13, 2024
@charphi charphi self-assigned this Feb 13, 2024
@charphi charphi added this to the 3.2.2 milestone Feb 26, 2024
@charphi
Copy link
Contributor

charphi commented Feb 27, 2024

Thanks for submitting this issue. It has been fixed in 79ad189.
You can already test it in the JD+ daily builds at https://github.com/nbbrd/jdemetra-app-snapshot/

@charphi charphi closed this as completed Feb 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants