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 82405 - [55cat] Export as jpg on linux generates empty files
Summary: [55cat] Export as jpg on linux generates empty files
Status: RESOLVED DUPLICATE of bug 82394
Alias: None
Product: uml
Classification: Unclassified
Component: Output (show other bugs)
Version: 5.x
Hardware: All Linux
: P1 blocker (vote)
Assignee: issues@uml
URL:
Keywords: REGRESSION
: 84374 (view as bug list)
Depends on:
Blocks:
 
Reported: 2006-08-10 15:31 UTC by Sergey Petrov
Modified: 2007-07-13 08:53 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
massages log with jpg generation exception (22.30 KB, application/octet-stream)
2006-08-21 10:23 UTC, Andrew Korostelev
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Sergey Petrov 2006-08-10 15:31:33 UTC
reproducible with build 17
Comment 1 Sergey Petrov 2006-08-10 15:32:22 UTC
may be root cause the same as for
http://www.netbeans.org/issues/show_bug.cgi?id=82394
Comment 2 Peter Lam 2006-08-10 22:29:00 UTC
I can't reproduce this on my linux fc3 system. I could export any type of jpg
image using jdk 1.6. Please provide more detail steps on how to reproduce the
problem.
Comment 3 Peter Lam 2006-08-15 00:59:28 UTC
I have tested on all platforms including a different linux fc3 system but still
have not been able to reproduce this problem. I think this might be machine
specific issue.
Comment 4 Andrew Korostelev 2006-08-21 10:22:04 UTC
for me Bug is reproducible on several FC3 machines even on jdk1.5 
So mark it as regression with NO dependency to jdk1.6

Comment 5 Andrew Korostelev 2006-08-21 10:23:07 UTC
There is a problem with graphics library.
This problem should be catched and user should be informed instead of silent
generation of jpg files of zero size.

There is an exception in log caused by (full log is attached):
Caused by: java.lang.ClassCastException: sun.awt.image.DataBufferNative
	at sun.awt.image.codec.JPEGImageEncoderImpl.encode(JPEGImageEncoderImpl.java:405)
	at sun.awt.image.codec.JPEGImageEncoderImpl.encode(JPEGImageEncoderImpl.java:228)


Exception is absolutely the same as in issue 82394
Comment 6 Andrew Korostelev 2006-08-21 10:23:43 UTC
Created attachment 33108 [details]
massages log with jpg generation exception
Comment 7 brviking 2006-09-06 23:41:34 UTC
I had this problem on Ubuntu 6.06 LTS with JDK 1.6.0 b98, using NB 200609050000.
Comment 8 brviking 2006-09-07 01:04:01 UTC
Changed sumary to [55cat] as necessary to track it on NetCat 5.5 program tools
(like dashboard and everything else).
Comment 9 Sergey Petrov 2006-09-07 09:02:22 UTC
*** Issue 84374 has been marked as a duplicate of this issue. ***
Comment 10 Yang Su 2006-09-15 18:15:48 UTC

*** This issue has been marked as a duplicate of 82394 ***
Comment 11 Peter Lam 2007-07-13 08:53:34 UTC
For the record, backporting has been verified on NB 5.5/5.5.1.