#123 Failed to load data file from MBS

open
nobody
None
5
2006-03-08
2006-03-08
qct1123
No

I tried to run MBSCaseStudy_Chaps1and2MBSGUI.pjt but each time
when I tried to open the environment file, I received the following
messages and could not browse to the data file. Please help. Thank
you.

Welcome to DrJava.
> java MBSGUI
java.lang.UnsatisfiedLinkError: getLaunchServicesInfo
at apple.laf.AquaFileView.getLaunchServicesInfo(Native Method)
at apple.laf.AquaFileView.isPackage(AquaFileView.java:241)
at apple.laf.AquaFileView.isTraversable(AquaFileView.java:166)
at javax.swing.JFileChooser.isTraversable(JFileChooser.java:1518)
at javax.swing.JFileChooser.setCurrentDirectory(JFileChooser.java:
535)
at javax.swing.JFileChooser.<init>(JFileChooser.java:321)
at javax.swing.JFileChooser.<init>(JFileChooser.java:303)
at EnvFileChooser.<init>(EnvFileChooser.java)
at EnvironmentController.openFile(EnvironmentController.java)
at MBSGUIFrame$1.actionPerformed(MBSGUIFrame.java)
at javax.swing.AbstractButton.fireActionPerformed
(AbstractButton.java:1819)
at javax.swing.AbstractButton
$ForwardActionEvents.actionPerformed(AbstractButton.java:1872)
at javax.swing.DefaultButtonModel.fireActionPerformed
(DefaultButtonModel.java:420)
at javax.swing.DefaultButtonModel.setPressed
(DefaultButtonModel.java:258)
at javax.swing.AbstractButton.doClick(AbstractButton.java:321)
at javax.swing.plaf.basic.BasicMenuItemUI.doClick
(BasicMenuItemUI.java:1113)
at javax.swing.plaf.basic.BasicMenuItemUI
$MouseInputHandler.mouseReleased(BasicMenuItemUI.java:943)
at java.awt.Component.processMouseEvent(Component.java:
5166)
at java.awt.Component.processEvent(Component.java:4963)
at java.awt.Container.processEvent(Container.java:1613)
at java.awt.Component.dispatchEventImpl(Component.java:3681)
at java.awt.Container.dispatchEventImpl(Container.java:1671)
at java.awt.Component.dispatchEvent(Component.java:3543)
at java.awt.LightweightDispatcher.retargetMouseEvent
(Container.java:3527)
at java.awt.LightweightDispatcher.processMouseEvent
(Container.java:3242)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:
3172)
at java.awt.Container.dispatchEventImpl(Container.java:1657)
at java.awt.Window.dispatchEventImpl(Window.java:1606)
at java.awt.Component.dispatchEvent(Component.java:3543)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:480)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy
(EventDispatchThread.java:234)
at java.awt.EventDispatchThread.pumpEventsForHierarchy
(EventDispatchThread.java:184)
at java.awt.EventDispatchThread.pumpEvents
(EventDispatchThread.java:178)
at java.awt.EventDispatchThread.pumpEvents
(EventDispatchThread.java:170)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:
100)
>

Discussion

  • Robert Cartwright

    Logged In: YES
    user_id=430590

    The program is blowing up inside Apple specific library code
    that only runs on Mac OS X. We see more Java Virtual
    Machine bugs on the Mac than other platforms (probably
    because Sun develops the JVMs for Windows and Linux while
    Apple develops the Mac OS X implementation). I no longer
    use a Mac (because Apple support for Java has been weak),
    but I will ask a member of the development team with a Mac
    to check it out. In the interim, I suggest running the MBS
    on a Linux or Windows box.

     
  • Dan Smith

    Dan Smith - 2006-03-15

    Logged In: YES
    user_id=1060117

    Two things you can do to help us address the problem:

    1) Go to Edit -> Preferences, select "Display Options", and change the "Look and
    Feel" to something besides apple.laf.AquaLookAndFeel; restart DrJava. Does this
    eliminate the error? I would expect that it would.

    2) What version of OS X are you using? Some bugs in the AquaLookAndFeel have
    been fixed in later releases.

     
  • qct1123

    qct1123 - 2006-03-15

    Logged In: YES
    user_id=1471266

    1. I have tried to change the "Look and Feel" to
    Javax.swing.plaf.metal.MetalLookAndFeel and
    Com.sun.java.swing.plaf.motif.MotifLookAndFeel; but this did not help
    eliminating the error.
    2. I was running on OS X 10.4.5

    Thank you for your time.

     
  • Robert Cartwright

    Logged In: YES
    user_id=430590

    What release of DrJava are you running? I suggest that you
    try the latest development release if you are not already
    running it. When a usage scenario fails on Mac OS X and not
    only any other platforms, the Apple JVM is usually the
    culprit. But it is also possible that there is a timing bug
    in DrJava that only manifests on the Mac OS X platform. We
    have gradually been cleaning up the synchonization of DrJava
    threads so the latest development release is likely to have
    fewer timing problems.

     
  • qct1123

    qct1123 - 2006-04-03

    Logged In: YES
    user_id=1471266

    I tried to install the latest development release but failed to do so. After
    clicking on the Dr Java icon on the desktop to run, there was error message:

    java.lang.RuntimeException: Attempt to call current on an iterator in the final
    position
    at edu.rice.cs.drjava.model.definitions.reducedmodel.ModelList
    $Iterator.current(ModelList.java:249)
    at
    edu.rice.cs.drjava.model.definitions.reducedmodel.ReducedModelControl.get
    HighlightStatus(ReducedModelControl.java:408)
    at edu.rice.cs.drjava.model.AbstractDJDocument.getHighlightStatus
    (AbstractDJDocument.java:228)
    at edu.rice.cs.drjava.model.definitions.ColoringGlyphPainter.paint
    (ColoringGlyphPainter.java:116)
    at javax.swing.text.GlyphView.paintTextUsingColor(GlyphView.java:439)
    at javax.swing.text.GlyphView.paint(GlyphView.java:430)
    at javax.swing.text.BoxView.paintChild(BoxView.java:144)
    at javax.swing.text.BoxView.paint(BoxView.java:407)
    at javax.swing.text.BoxView.paintChild(BoxView.java:144)
    at javax.swing.text.BoxView.paint(BoxView.java:407)
    at javax.swing.text.ParagraphView.paint(ParagraphView.java:569)
    at javax.swing.text.BoxView.paintChild(BoxView.java:144)
    at javax.swing.text.BoxView.paint(BoxView.java:407)
    at javax.swing.plaf.basic.BasicTextUI$RootView.paint(BasicTextUI.java:
    1320)
    at javax.swing.plaf.basic.BasicTextUI.paintSafely(BasicTextUI.java:637)
    at javax.swing.plaf.basic.BasicTextUI.paint(BasicTextUI.java:771)
    at javax.swing.plaf.basic.BasicTextUI.update(BasicTextUI.java:750)
    at javax.swing.JComponent.paintComponent(JComponent.java:552)
    at edu.rice.cs.drjava.ui.InteractionsPane.paintComponent
    (InteractionsPane.java:167)
    at javax.swing.JComponent.paint(JComponent.java:840)
    at javax.swing.JComponent.paintChildren(JComponent.java:674)
    at javax.swing.JComponent.paint(JComponent.java:849)
    at javax.swing.JViewport.paint(JViewport.java:720)
    at javax.swing.JComponent.paintChildren(JComponent.java:674)
    at javax.swing.JComponent.paint(JComponent.java:849)
    at javax.swing.JComponent.paintChildren(JComponent.java:674)
    at javax.swing.JComponent.paint(JComponent.java:849)
    at javax.swing.JComponent.paintChildren(JComponent.java:674)
    at javax.swing.JComponent.paint(JComponent.java:849)
    at javax.swing.JComponent.paintChildren(JComponent.java:674)
    at javax.swing.JSplitPane.paintChildren(JSplitPane.java:1021)
    at javax.swing.JComponent.paint(JComponent.java:849)
    at javax.swing.JComponent.paintChildren(JComponent.java:674)
    at javax.swing.JComponent.paint(JComponent.java:849)
    at javax.swing.JComponent.paintChildren(JComponent.java:674)
    at javax.swing.JComponent.paint(JComponent.java:849)
    at javax.swing.JLayeredPane.paint(JLayeredPane.java:557)
    at javax.swing.JComponent.paintChildren(JComponent.java:674)
    at javax.swing.JComponent.paint(JComponent.java:849)
    at java.awt.GraphicsCallback$PaintCallback.run(GraphicsCallback.java:
    34)
    at sun.awt.SunGraphicsCallback.runOneComponent
    (SunGraphicsCallback.java:60)
    at sun.awt.SunGraphicsCallback.runComponents
    (SunGraphicsCallback.java:97)
    at java.awt.Container.paint(Container.java:1325)
    at sun.awt.RepaintArea.paint(RepaintArea.java:194)
    at apple.awt.ComponentModel.handleEvent(ComponentModel.java:290)
    at java.awt.Component.dispatchEventImpl(Component.java:3744)
    at java.awt.Container.dispatchEventImpl(Container.java:1671)
    at java.awt.Window.dispatchEventImpl(Window.java:1606)
    at java.awt.Component.dispatchEvent(Component.java:3543)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:480)
    at java.awt.EventDispatchThread.pumpOneEventForHierarchy
    (EventDispatchThread.java:234)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy
    (EventDispatchThread.java:184)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:
    178)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:
    170)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:100)

    Please let me know if you need any other info.
    Thank you very much

     
  • Dan Smith

    Dan Smith - 2006-04-03

    Logged In: YES
    user_id=1060117

    When you used the "javax.swing.plaf.metal.MetalLookAndFeel" look and feel, did
    you get the *same* error message? Did the first few lines of the exception point
    to apple.laf.AquaFileView....? That would surprise me, since there should be no
    references to apple.laf.* if you're using a different look and feel. If we can make
    that distinction, it would be helpful, since then we would know whether the
    problem is in the Apple LAF or somewhere else.

     
  • Dan Smith

    Dan Smith - 2006-04-03

    Logged In: YES
    user_id=1060117

    Thanks for submitting the stack trace from your error in the latest development
    release. Could I have you create a separate bug report (rather than a support
    request) for that issue, so that it can be treated separately? (I would do it
    myself, but it's helpful to have your user ID as a point of contact for the bug.)

     
  • Dan Smith

    Dan Smith - 2006-04-03

    Logged In: YES
    user_id=1060117

    Nevermind on creating a separate bug. It has already been submitted here:
    [ 1456450 ] Runtime Exception with version 20060127-2145 on start

    You could post a message on that bug saying you've experienced the same
    problem.

     
  • Mathias Ricken

    Mathias Ricken - 2006-04-05

    Logged In: YES
    user_id=1075744

    A Comp 212 student had a similar problem on her Mac:

    This is the error trace that I get when I try to run
    RiceMBSfw out of
    the Interactions Pane in Dr. Java

    java controller.MBSController

    UnsatisfiedLinkError: getLaunchServicesInfo
    at apple.laf.AquaFileView.getLaunchServicesInfo(Native Method)
    at apple.laf.AquaFileView.isPackage(AquaFileView.java:241)
    at apple.laf.AquaFileView.isTraversable(AquaFileView.java:166)
    at
    javax.swing.JFileChooser.isTraversable(JFileChooser.java:1550)
    at
    javax.swing.JFileChooser.setCurrentDirectory(JFileChooser.java:
    556)
    at javax.swing.JFileChooser.<init>(JFileChooser.java:333)
    at javax.swing.JFileChooser.<init>(JFileChooser.java:315)
    at view.EnvFileChooser.<init>(EnvFileChooser.java:48)
    at view.MBSView.<init>(MBSView.java:207)
    at controller.MBSController.run(MBSController.java:47)
    at controller.MBSController.main(MBSController.java:154)
    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:585)

     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks