Bug on OS X version of Java 5.0 - opening file dialogs

Hi
I keep getting a fatal error message that terminates my application when running under Java 5.0 in OS X. The same code used to run in 1.4.2 without problems. I haven't tried running in windows yet. The error seems to occur only when i try to open JFileChoosers - though on a test class file i successfully opened one without problems.
Here's the message:
2005-08-14 09:37:19.613 java[333] CFLog (0): CFMessagePort: bootstrap_register(): failed 1103 (0x44f), port = 0x10203, name = 'java.ServiceProvider'
See /usr/include/servers/bootstrap_defs.h for the error codes.
2005-08-14 09:37:19.636 java[333] CFLog (99): CFMessagePortCreateLocal(): failed to name Mach port (java.ServiceProvider)
Up to now the application is still running ok, and can still do stuff... But if i attempt to choose a file (internally using a JFileChooser) the following is displayed:
java(333,0x18d6c00) malloc: *** error for object 0x3b6b90: incorrect checksum for freed object - object was probably modified after being freed, break at szone_error to debug
java(333,0x18d6c00) malloc: *** set a breakpoint in szone_error to debug
Bus error
application terminates
Has anyone else seen this? Is there a fix?
Cheers
JJ.

Thanks for that, BlueInGreen.
My code uses the non-parameter version of JFileChooser already so the cause is something else i think.
The only thing i do to JFileChooser is the follwing:
JFileChooser openChooser = new JFileChooser();
openChooser.setCurrentDirectory(new File("."));
openChooser.setMultiSelectionEnabled(true);
openChooser.setFileSelectionMode(JFileChooser.FILES_AND_DIRECTORIES);This is so frustrating because the code looks absolutely fine and works perfectly in 1.4.2!
Thanks,
JJ.

Similar Messages

  • Java apps hang when trying to open file dialog

    I have several Java applications installed on my Windows Vista machine
    All work perfectly except when accessing any file dialogs.
    If a file dialog is required, the application just hangs
    The only way to resolve this is to open task manager and kill the javaw.exe process
    Does anyone know what is wrong.
    I am using Java 6 update 17 and have tried re-installing the environment.

    ATyas wrote:
    I don't think the problem lies with the vendor apps.
    All Java applications from whatever source exibit this problem. These are independently developed applications from independent vendors.
    I don't have a Java application on my machine that does not exhibit this issue.
    I thought that the problem must be permisions, but am not sure where to look.One or more of the following could be the source of the problem.
    - The apps
    - Your computer
    - The VM
    The first can in fact be the problem because you are not running all possible apps on your computer. Far as you know all the apps that you run use the same library.
    No one here has access to your computer so no one will be able to fix it. No one here has access to those apps so we can fix those either.
    If and only if the vendor of the apps determined that there is a bug in the VM then they could localize it and report it. Without localization and assurance that it is the VM no one can fix it.
    Keep in mind as well that Vista has been out for years. So it seems likely that a general problem with the VM like that would have been discovered by now. Doesn't mean it doesn't exist, but again the vendor of the apps is more likely to discover it.
    For yourself trying running the apps in super user mode (whatever it is called.) If it is a permissions problem then that demonstrates it. Note that if it is permission problem then it most assuredly is one that the vendors must deal with. Just as any other app on Vista must do.

  • Open file dialog in java apps causes segmentation fault

    Started to happen since sometime early in the java 1.5 releases (the early developer releases and still now)
    Programs like Eclipse (3.1.x) and Azureus (2.3.0.x), when I try and open a file using the toolbar or menu the application dumps. I am tried repairing permissions, deleting java config/cache files, etc. No luck.
    I thought I narrowed it down to either my external firewire drive or samba volume being mounted, but that seemed to just be a false positive.
    here is part of the backtrace:
    Local Time = Mon Jan 30 01:28:05 2006
    # This JavaNativeCrash log describes the Java state at a Native Crash in a Java application.
    # The corresponding native state can be found in the crash log generated by CrashReporter.
    # If this error is reproducible, please report it with the following information:
    # 1. Provide the steps to reproduce, a test case, and any relevant information
    # 2. This JavaNativeCrash_pid<num>.crash.log (Java state)
    # 3. The corresponding <name>.crash.log (native state; generated by CrashReporter)
    # File report at: http://bugreport.apple.com/
    # An unexpected Java error has been detected by HotSpot Virtual Machine:
    # Java VM: Java HotSpot(TM) Client VM (1.5.0_06-57 mixed mode)
    # Bus Error (0xa) at pc=0xfffeff18, pid=10101, tid=25184768
    --------------- T H R E A D ---------------
    Current thread (0x005014f0): JavaThread "main" [thread_innative, id=-1610551960]
    Stack: [0xbf800000,0xc0000000)
    Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
    j org.eclipse.swt.internal.carbon.OS.NavDialogRun(I)I+0
    j org.eclipse.swt.widgets.DirectoryDialog.open()Ljava/lang/String;+167
    dual core 2.3, 2.5gb ram, 2x36gb sata wd raptors   Mac OS X (10.4.4)  

    I forgot to tell you that we in this case use a remote connection through Cisco VPN. Are there difference in how Jinitiator and SUN's JPI handle this
    We also tried against other customer width the same result. It seems to have importance if you are remote or not. If you are on local LAN it seems to be the almost the same time if you use Jinitiator or SUN's JPI.
    //Robert

  • Java 6 Desktop open

    I want to be able to open files with the default application from java. The Desktop class works for this when using:
    1. local filepaths
    2. network drives
    3. UNC pathnames
    but does not when the UNC pathnames have spaces in them!
    Does anyone know how to solve this problem?

    Hi,
    I also have the same problem, but with my JNI and C++ expertise, I was able to isolate the problem.
    My platform:
    - Microsoft Windows XP, Family Edition (French), Version 2002, Service Pack 3
    - JRE 1.6.0_21
    In the source of the JDK6 (Src/windows/classes/sun/awt/windows/WDesktopPeer.java), the Desktop.open(file) calls the native method
    ShellExecute(*uri.toString()*, "open")
    For example, if you try to open "c:\helloworld.pdf",
    uri.toString() = "*file:/c:/helloworld.pdf*"if I call ShellExecute("C:\\helloworld.pdf", "open"), it works
    but if I call ShellExecute(" file:/c:/helloworld.pdf", "open"), it doesn't work on my platform.
    In both case, the ShellExecuteW or ShellExecuteA function of the Windows API return the integer 42 (> 32), saying that the functions succeeded. If the file object is not correct, the function should return a value <= 32.
    => The bug is not due to Java implementation, but to a bug in the Windows API.
    Other remark:
    I also tried the "ShellExec_RunDLL" entry point of the Shell32.dll library using RunDll32 utility. Both commands below are running correctly:
    rundll32 SHELL32.DLL,ShellExec_RunDLL "C:\hello.pdf"
    rundll32 SHELL32.DLL,ShellExec_RunDLL "file:/C:/hello.pdf"My conclusion:
    1) A workaround could be implemented in the JRE: use the file path without the "file:/" protocol prefix.
    2) This bug seems to be present only one some version of Windows XP (to confirm).
    Rodolphe.

  • Open a file dialog box using java

    Duncan & Frank or anyone
    Can you please tell, or give me a link, which explains how to open a file dialog box using java, and not webutil.
    I'm trying to read a file on the desktop and update a database table.
    Thanks

    See Open File Dialog on the WEB... If you can get me the full version numbers I can tell you your supported position.
    Regards
    Grant

  • The required version of java ,1.4.2_06, is not the latest and may not conta

    Hi
    I've implemented SSL on Discoverer and it works fine,
    the problem comes when discoverer laucnhes it pops up with this massage
    the required version of java ,1.4.2_06, is not the latest and may not contain latest security updates.
    I the click on yes, and then it takes about five minutes to work.
    I followed metalink note 427930.1 and it did not help.
    I'm busy going thru matalink note 290807.1
    can someone please help.
    Thanks
    Sibusiso

    Change your formsweb.cfg to use JRE 1.6.0_27. It is not a good idea to use old JRE versions. Each new release includes bug fixes as well as security enhancements. Using old versions may leave your system at risk of exposing bugs and/or security vulnerabilities. Since Forms 11 is certified with 1.6.0_12 and supported with all 1.6.0_12+ versions, moving to the latest in the 1.6 series is a good approach.
    Alternatively, disable the Autoupdate feature in the JRE, found on the JRE Control Panel.
    For future reference, there is a Forum specifically dedicated to JRE issues/questions:
    Java Runtime Environment (JRE)

  • [svn] 4669: Fix for - compiled SWF varies depending on version of java pointed

    Revision: 4669
    Author: [email protected]
    Date: 2009-01-26 11:00:48 -0800 (Mon, 26 Jan 2009)
    Log Message:
    Fix for - compiled SWF varies depending on version of java pointed
    QE Notes: Some mustella tests may need to be updated, as includes will be processed as per the order specified during compilation.
    Doc Notes: None
    Bugs: SDK-18168
    Reviewed By: Paul
    tests: checkintests, mxmlcunit
    Ticket Links:
    http://bugs.adobe.com/jira/browse/SDK-18168
    Modified Paths:
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/CompilerAPI.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/CompilerSwcContext.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/common/Configuration.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/swc/SwcMovie.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/linker/FlexMovie.java

    Revision: 4669
    Author: [email protected]
    Date: 2009-01-26 11:00:48 -0800 (Mon, 26 Jan 2009)
    Log Message:
    Fix for - compiled SWF varies depending on version of java pointed
    QE Notes: Some mustella tests may need to be updated, as includes will be processed as per the order specified during compilation.
    Doc Notes: None
    Bugs: SDK-18168
    Reviewed By: Paul
    tests: checkintests, mxmlcunit
    Ticket Links:
    http://bugs.adobe.com/jira/browse/SDK-18168
    Modified Paths:
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/CompilerAPI.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/CompilerSwcContext.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/common/Configuration.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/swc/SwcMovie.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/linker/FlexMovie.java

  • Does this Sun Update apply to the coldfusion version of java?

    Does anyone know if this patch to Sun Java needs to be
    applied to the version of Java that automatically comes with
    Coldfusion 7?
    http://sunsolve.sun.com/search/document.do?assetkey=1-26-102934-1

    A) Quickly looking this over the bug is talking about image
    parsing by an applet. Neither of which would typically run inside a
    server.
    B) The fix is to upgrade to 1.4.2_15 or higher. CFMX7 has
    been certified with 1.4.2_16 which has many fixes over CFMX7's
    built in JRE. It also has the daylight savings time fixes and the
    fix to A. Why not just upgrade?

  • Quick quesion about installing newer versions of Java

    I've got Windows XP Home and I had a quick check in Add or Remove (in Control Panel) and realised that I've got: -
    J2SE Runtime Environment 5.0 Update 5 and
    J2SE Runtime Environment 5.0 Update 6
    I've read that Java Runtime Environment 1.5.0.7 is available.
    I also heard that some older versions of Java may have security holes so should I install Java Runtime Environment 1.5.0.7 and if yes, should I delete the older versions that I've already got?
    Any help would be greatly appreciated.

    Generally the most current version (excluding an initial family release that introduces new features, like 1.5.0) is the most bug-free, since the changes incorporated are bug fixes only.
    None of the versions 1.5.0_05, _06, or _07 have any known security problems.
    Since Java versions are independent, unless you have a specific reason otherwise, only one version is required. Uninstall in reverse install order before installing a new version to minimize potential problems.

  • How do I get different and older versions of java plugin to work

    I want to use firefox at my work, my company uses a program that uses java. But the programmers at my company aren't really good and when they check for the java plugin they check for the specific jre-6u21 instead of the generic with 6uXX. Sometimes I have to use another version of the program that requieres Version=1,4,2,06. They work fine with iexplorer.
    If I update to the current version (update 24) Firefox can't find the plugin. Explorer just gives a warning that you might be missing important security updates.
    Can Firefox give a warning or run with the latest version instead of looking for the missing plugins?

    This is what Oracle has to say about the problem: [http://www.java.com/en/download/faq/other_jreversions.xml Download older versions of Java]
    If you install an older version in Firefox it will be listed in Tools | Add-ons | Plugins and you can disable it there. But as Oracle mentions, using older versions potentially exposes your system to attack such as the one mentioned here: [http://www.h-online.com/open/news/item/Java-SE-6-Update-24-fixes-floating-point-bug-1190818.html Floating Point Bug]

  • HT1338 For your safety, Firefox has disabled your outdated version of Java. Please upgrade to the latest version.How do I do this??

    How do I get an updated version of Java?

    This was the last Java update for Leopard:
    Update 10, 29 June 2011 - This release updates J2SE 5.0 to 1.5.0_30, and updates Java SE 6 to 1.6.0_26. J2SE 1.4.2 is no longer being updated to fix bugs or security issues and remains disabled by default in this update. Support for out-of-process Java applets on Mac OS X 10.5 Leopard has been removed with this update.
    This release is only for Mac OS X 10.5.8 or later versions of Mac OS X 10.5. http://support.apple.com/kb/DL1359
    There will not be any more as Leopard is no longer supported by Apple.

  • After updating to OS 10.8.3 java does not function.  I've validated the most current version of Java is installed.  Has anyone else had this issue?

    After updating to OS 10.8.3 java does not function.  I've validated that the most current version of Java is installed and active in Safari.  Has anyone else had this problem?

    Yes indeed.  See this thread - I have found a fix, but I am hoping once the engineers see this (Bug filed) that someone has an easier method, or a patch.
    Something went wrong with the update in certain instances and it kills the Java plugin.  Give this a shot - it takes a bit of time, but worthwhile.
    https://discussions.apple.com/message/21528056#21528056
    medward wrote:
    After updating to OS 10.8.3 java does not function.  I've validated that the most current version of Java is installed and active in Safari.  Has anyone else had this problem?

  • 10.6.8 Java not working. "No compatible version of Java 1.5  is available"

    Hey Guys
    Firstly I would like to thank you for clicking this question and would ask you please if you have a solution to my problem answer whatever you can.  Anyway lets get on with it.
    Recently I have been having a problem on my macbook.  I am running 10.6.8 as said in title.  Previously i was having an inactive plugin error going on and the software update said there were no newer versions available.  However when looking for a solution for this by clearing my java cache ect. i somehow ended up with this problem.  Whenever I try to run a java based application such as minecraft it says "Cannot launch "Minecraft" No compatible version of Java 1.5+ is avaiable." Also when from this menu i try to open Java Preferences it says "You can't use this version of the application Java Preferences with this version of Mac Os X.  You have Mac OS X 10.6.8. The application requires Mac OS X 10.7 or later." I did not download java 1.7 or a different version of Java Preferences outside of the software update.  If you have any idea of what's going on please help me out.  I am struggling to get on with work and games without java even working. 
    Thanks for your help
    Will

    Are you up to date with the updates?
    Update for Snow Leopard users:
    Apple issued update 12 for Java for OS 10.6:
    http://support.apple.com/kb/DL1573
    Note:  On systems that have not already installed Java for Mac OS X 10.6 update 9 or later, this update will configure web browsers to not automatically run Java applets. Java applets may be re-enabled by clicking the region labeled "Inactive plug-in" on a web page. If no applets have been run for an extended period of time, the Java web plug-in will deactivate.
    If, after installing Java for OS X 2013-002 and the latest version of Java 7 from Oracle, you want to disable Java 7 and re-enable the Apple-provided Java SE 6 web plug-in and Web Start functionality, follow these steps:
    http://support.apple.com/kb/HT5559?viewlocale=en_US
    Further update:
    Apple issued this Java related security update No. 13 on February 19:
    http://support.apple.com/kb/HT5666
    and Update No. 14 on March 4:  http://support.apple.com/kb/DL1573
    http://support.apple.com/kb/HT5677
    The standard recommendation is for users to turn off Java except when they have to use it on known and trusted websites (like their bank). Javascript, which is unrelated despite the name, can be left on.

  • Will 2D objects in java.awt.geom.* be Serializable in next version of Java?

    I am pretty frustrated about having to write my own Serializable classes. I'm not sure if this is the right place to ask, but will the next version of Java supports Serializable 2D objects?
    Further, I was trying to write my own class to extend java.awt.geom.GeneralPath to become Serializable, but it's declared "final". What should I do? (I had no problems with Rectangle2D.Double, Line2D.Double, etc.)
    Any help is greatly appreciated.
    Selwyn

    Your code for serializing the state of the General path forgets two things:
    1. the winding rule
    2. the segments types!
    You could use a vector, but I just directly wrote to the file:
    private void writeObject(ObjectOutputStream oos) throws IOException
    {     out.defaultWriteObject();
         //write state of transient GeneralPath _gp;
         out.writeInt(_gp.getWindingRule());
         float[] coord = new float[6];
         PathIterator i = _gp.getPathIterator(null);
         while(!i.isDone())
         {     int seg = i.currentSegment(coords);
              writeInt(seg);
              //switch on seg, writing correct # of floats from coords
              i.next();
         out.writeInt(-1);     //sentinel for end-of-data: SEG_LINETO etc are [0,4]
    private void readObject(ObjectInputStream in)
    throws IOException, ClassNotFoundException
    {     in.defaultReadObject();
         int rule = in.readInt();
         _gp = new GeneralPath(rule);
         //etc...
    }3. I'm just winging this code -- haven't tested it
    --Nax                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • I am trying to use a website that requires that my computer have the lastest version of Java, which I have updated and installed, however Firefox does not recon

    I am trying to use a website that requires that my computer have the latest version of Java, which I have updated and installed Java 7 Update 51 (64-bit), however Firefox does not recognize that I even have Java on my computer. My computer is 64-bit
    When I run "Verify Java Version" it show nothing is installed... but it is, I know that for a fact because it shows in my "Control Panel/Programs/Programs and Features".
    When I go back to the Java Download page, the following message is visible:
    "We have detected you may be viewing this page in a 32-bit browser. If you use 32-bit and 64-bit browsers interchangeably, you will need to install both 32-bit and 64-bit Java in order to have the Java plug-in for both browsers."
    My question is this:
    Is there a way to change my Firefox browser from 32-bit to 64-bit.... because it appears that this is way Java is not functioning properly?

    Firefox needs 32-bit plugins, so you'll need to install 32-bit Java for Firefox.
    No, you can't change Firefox from 32-bt to 64-bit. There is a Nightly 64-bit version (alpha) of Firefox, but it is used only to test for regressions until development is resumed.

Maybe you are looking for