Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Problem with 10.4.x and BufferedImage



Hi Folks,

I have a problem with the creation of a BufferedImage.

For demonstration purposis I use this small program:

package com.rc;
import java.awt.image.BufferedImage;
public class TestBufferedImage {
public TestBufferedImage() {
}
public static void main(String[] args) {
BufferedImage offScreenImg =
new BufferedImage(200, 30, BufferedImage.TYPE_BYTE_GRAY);
System.out.println("image created");
}
}


If I start it with
    java -cp . -Djava.awt.headless=true com.rc.TestBufferedImage
I get the following Message:

** ATTENTION ***

Please Attach Debugger : No Autorelease pool exists
Press any key to continue...
image created

and the program waits for any key press.
If I start the program with
java -cp . com.rc.TestBufferedImage
every thing is fine. But if there is an AWT Window open (NetBeans (3.6, 4.0, 4.1) or FOP 0.20.5 with -awt, ...)
I get


2005-05-26 09:11:52.107 java[430] CFLog (0): CFMessagePort: bootstrap_register(): failed 1103 (0x44f), port = 0xf003, name = 'java.ServiceProvider'
See /usr/include/servers/bootstrap_defs.h for the error codes.
2005-05-26 09:11:52.111 java[430] CFLog (99): CFMessagePortCreateLocal (): failed to name Mach port (java.ServiceProvider)
image created


On OS X 10.3.9 every thing was OK. A clean install of 10.4 and 10.4.1 show the described behaviour. The output above was generated with
Java HotSpot(TM) Client VM (build 1.5.0_02-36, mixed mode, sharing)
with Java 1.4.2 it is the same.


Any ideas how to solve the problem?

Thanks,

- wilhelm

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Java-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/java-dev/email@hidden

This email sent to email@hidden


Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.