I think you didn't get an answer because, in general, people are
successfully using Swing and JNI with the JDK1.2 and nobody recognized
your problem.

> I am using Linux6.0(glibc2.0) jdk1.2(blackdown).
> Is there any known problem with this transition??

Yes, there are known problems with the JDK1.2 pre-release - you can read
about them at the Blackdown site and look through the mail archives. But
I don't think there's anything resembling your description.

I'm not sure what you mean by "Linux 6.0". Red Hat 6.0? SuSE 6.0? If it's
Red Hat, then you've got glibc 2.1.


Nathan Meyers
[EMAIL PROTECTED]


On Fri, Nov 12, 1999 at 11:53:56AM -0500, Raj Patel wrote:
> Hi,
>         I am putting this problem here one more time.  I have a swing
> application using
> JNI.  Everything was working ok under blackdown jdk 1.1.7 with
> swing-1.1.1 .  Now
> i upgraded jdk to jdk 1.2(blackdown) so i don't have to have swing
> because it is
> already built in.  But now under jdk1.2 my application gives strange
> exception error,
> 
> 
> Exception occurred during event dispatching:
> java.lang.IndexOutOfBoundsException: -1
>         at java.util.BitSet.get(Compiled Code)
>         at javax.swing.DefaultListSelectionModel.clear(Compiled Code)
>         at javax.swing.DefaultListSelectionModel.setState(Compiled Code)
> 
>         at
> javax.swing.DefaultListSelectionModel.removeIndexInterval(Compiled Code
> )
>         at
> javax.swing.plaf.basic.BasicListUI$ListDataHandler.intervalRemoved(Comp
> iled Code)
>         at javax.swing.AbstractListModel.fireIntervalRemoved(Compiled
> Code)
>         at javax.swing.DefaultComboBoxModel.removeAllElements(Compiled
> Code)
>         at javax.swing.JComboBox.removeAllItems(Compiled Code)
>         at Fsa.refreshAttrCombo(Compiled Code)
>         at Fsa.addAttributes(Compiled Code)
>         at Fsa.createComponents(Compiled Code)
>         at Question$2.actionPerformed(Compiled Code)
>         at javax.swing.AbstractButton.fireActionPerformed(Compiled Code)
> 
>         at
> javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(Compiled
>  Code)
>         at javax.swing.DefaultButtonModel.fireActionPerformed(Compiled
> Code)
>         at javax.swing.DefaultButtonModel.setPressed(Compiled Code)
>         at
> javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Compiled Code)
>         at java.awt.Component.processMouseEvent(Compiled Code)
>         at java.awt.Component.processEvent(Compiled Code)
>         at java.awt.Container.processEvent(Compiled Code)
>         at java.awt.Component.dispatchEventImpl(Compiled Code)
>         at java.awt.Container.dispatchEventImpl(Compiled Code)
>         at java.awt.Component.dispatchEvent(Compiled Code)
>         at java.awt.LightweightDispatcher.retargetMouseEvent(Compiled
> Code)
>         at java.awt.LightweightDispatcher.processMouseEvent(Compiled
> Code)
>         at java.awt.LightweightDispatcher.dispatchEvent(Compiled Code)
>         at java.awt.Container.dispatchEventImpl(Compiled Code)
>         at java.awt.Window.dispatchEventImpl(Compiled Code)
>         at java.awt.Component.dispatchEvent(Compiled Code)
>         at java.awt.EventQueue.dispatchEvent(Compiled Code)
>         at java.awt.EventDispatchThread.run(Compiled Code)
> 
> 
> I tried to run in debugg mode but it died!!!!
> 
> black:rpatel% jdb Fsa
> Initializing jdb...
> 0xb0:class(Fsa)
> > run Fsa -interactive -outfile logfile
> running ...
> main[1]
> Current thread "main" died. Execution continuing...
> >
> Fsa exited
> 
> 
> I am using Linux6.0(glibc2.0) jdk1.2(blackdown).
> Is there any known problem with this transition??
> 
> -Raj
> 
> 
> ----------------------------------------------------------------------
> To UNSUBSCRIBE, email to [EMAIL PROTECTED]
> with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]


----------------------------------------------------------------------
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to