This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 108737 - Documentation without any figures
Summary: Documentation without any figures
Status: RESOLVED DUPLICATE of bug 82394
Alias: None
Product: uml
Classification: Unclassified
Component: General (show other bugs)
Version: 5.x
Hardware: All All
: P3 blocker (vote)
Assignee: issues@uml
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-07-03 11:39 UTC by lg
Modified: 2007-07-03 20:11 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description lg 2007-07-03 11:39:32 UTC
Running NB 5.5.1 on top of JDK 1.6.0.1/Linux, all current fixes applied.

I prepared a simple UML project (platform independent model) with a single use-case diagram. Unfortunately, "Generate
model report" gives some JavaDoc-style report without any figures (in fact, the files are zero length) and IDE log file
reports:


java.lang.reflect.InvocationTargetException
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at com.tomsawyer.editor.TSEGraphImageEncoder.writeJPEGFormat(DashoA9*..)
        at org.netbeans.modules.uml.ui.products.ad.viewfactory.ETEGraphImageEncoder.save(ETEGraphImageEncoder.java:71)
        at org.netbeans.modules.uml.ui.controls.drawingarea.GetHelper.saveAsGraphic2(GetHelper.java:152)
        at org.netbeans.modules.uml.ui.swing.drawingarea.ADDrawingAreaControl.saveAsGraphic2(ADDrawingAreaControl.java:8130)
        at org.netbeans.modules.uml.ui.controls.drawingarea.UIDiagram.saveAsGraphic2(UIDiagram.java:189)
        at org.netbeans.modules.uml.reporting.dataobjects.DiagramData.toReport(DiagramData.java:494)
        at org.netbeans.modules.uml.reporting.ReportTask.generateReport(ReportTask.java:161)
        at org.netbeans.modules.uml.reporting.ReportTask.run(ReportTask.java:130)
        at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:499)
        at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:932)
Caused by: java.lang.ClassCastException: sun.awt.image.DataBufferNative cannot be cast to java.awt.image.DataBufferInt
        at sun.awt.image.codec.JPEGImageEncoderImpl.encode(JPEGImageEncoderImpl.java:405)
        at sun.awt.image.codec.JPEGImageEncoderImpl.encode(JPEGImageEncoderImpl.java:228)
        ... 14 more
java.lang.reflect.InvocationTargetException
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at com.tomsawyer.editor.TSEGraphImageEncoder.writeJPEGFormat(DashoA9*..)
        at org.netbeans.modules.uml.ui.products.ad.viewfactory.ETEGraphImageEncoder.save(ETEGraphImageEncoder.java:71)
        at org.netbeans.modules.uml.ui.controls.drawingarea.GetHelper.saveAsGraphic2(GetHelper.java:152)
        at org.netbeans.modules.uml.ui.swing.drawingarea.ADDrawingAreaControl.saveAsGraphic2(ADDrawingAreaControl.java:8130)
        at org.netbeans.modules.uml.ui.controls.drawingarea.UIDiagram.saveAsGraphic2(UIDiagram.java:189)
        at org.netbeans.modules.uml.reporting.dataobjects.DiagramData.toReport(DiagramData.java:494)
        at org.netbeans.modules.uml.reporting.ReportTask.generateReport(ReportTask.java:161)
        at org.netbeans.modules.uml.reporting.ReportTask.run(ReportTask.java:130)
        at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:499)
        at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:932)
Caused by: java.lang.ClassCastException: sun.awt.image.DataBufferNative cannot be cast to java.awt.image.DataBufferInt
        at sun.awt.image.codec.JPEGImageEncoderImpl.encode(JPEGImageEncoderImpl.java:405)
        at sun.awt.image.codec.JPEGImageEncoderImpl.encode(JPEGImageEncoderImpl.java:228)
        ... 14 more
java.lang.reflect.InvocationTargetException
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at com.tomsawyer.editor.TSEGraphImageEncoder.writeJPEGFormat(DashoA9*..)
        at org.netbeans.modules.uml.ui.products.ad.viewfactory.ETEGraphImageEncoder.save(ETEGraphImageEncoder.java:71)
        at org.netbeans.modules.uml.ui.controls.drawingarea.GetHelper.saveAsGraphic2(GetHelper.java:152)
        at org.netbeans.modules.uml.ui.swing.drawingarea.ADDrawingAreaControl.saveAsGraphic2(ADDrawingAreaControl.java:8130)
        at org.netbeans.modules.uml.ui.controls.drawingarea.UIDiagram.saveAsGraphic2(UIDiagram.java:189)
        at org.netbeans.modules.uml.reporting.dataobjects.DiagramData.toReport(DiagramData.java:494)
        at org.netbeans.modules.uml.reporting.ReportTask.generateReport(ReportTask.java:161)
        at org.netbeans.modules.uml.reporting.ReportTask.run(ReportTask.java:130)
        at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:499)
        at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:932)
Caused by: java.lang.ClassCastException: sun.awt.image.DataBufferNative cannot be cast to java.awt.image.DataBufferInt
        at sun.awt.image.codec.JPEGImageEncoderImpl.encode(JPEGImageEncoderImpl.java:405)
        at sun.awt.image.codec.JPEGImageEncoderImpl.encode(JPEGImageEncoderImpl.java:228)
        ... 14 more
Comment 1 Sergey Petrov 2007-07-03 11:45:32 UTC
You can try to open your project in Netbeans 6.0 to generate report, or change color depth of your screen (see issue
82394), may be fix will be ported to 5.5x too but can't say when. 

*** This issue has been marked as a duplicate of 82394 ***