Skip to Main Content Skip to Search
Login
File Exchange
MATLAB Newsgroup
Link Exchange
  Blogs  
 Contest 
MathWorks.com

Thread Subject: Java Error

Subject: Java Error

From: David Doria

Date: 17 Oct, 2007 14:17:07

Message: 1 of 7

Anytime I do something with a figure, i get this error:

java.lang.NullPointerException
at
com.mathworks.jmi.bean.MatlabBeanInterface.addCallback(MatlabBeanInterface.java:680)
at
com.mathworks.jmi.bean.MatlabCallbackInterface.addCallback(MatlabCallbackInterface.java:128)

but everything works fine! I can continue doing whatever I
was doing without even a hiccup, but i just get that error
printed a million times in my command window.

Whats up with that?

Thanks,
David

ps i'm on fedora 7 with
Java 1.6.0_03 with Sun Microsystems Inc. Java HotSpot(TM)
Client VM mixed mode, sharing

Subject: Re: Java Error

From: David Doria

Date: 18 Oct, 2007 17:45:03

Message: 2 of 7

Anyone know about this type of problem?


"David Doria" <daviddoria@gmail.com> wrote in message
<ff55h3$468$1@fred.mathworks.com>...
> Anytime I do something with a figure, i get this error:
>
> java.lang.NullPointerException
> at
>
com.mathworks.jmi.bean.MatlabBeanInterface.addCallback(MatlabBeanInterface.java:680)
> at
>
com.mathworks.jmi.bean.MatlabCallbackInterface.addCallback(MatlabCallbackInterface.java:128)
>
> but everything works fine! I can continue doing whatever I
> was doing without even a hiccup, but i just get that error
> printed a million times in my command window.
>
> Whats up with that?
>
> Thanks,
> David
>
> ps i'm on fedora 7 with
> Java 1.6.0_03 with Sun Microsystems Inc. Java HotSpot(TM)
> Client VM mixed mode, sharing

Subject: Re: Java Error

From: David Doria

Date: 22 Oct, 2007 16:43:56

Message: 3 of 7

Still getting this:

java.lang.NullPointerException
at
com.mathworks.jmi.bean.MatlabBeanInterface.addCallback(MatlabBeanInterface.java:680)
at
com.mathworks.jmi.bean.MatlabCallbackInterface.addCallback(MatlabCallbackInterface.java:128)
java.lang.NullPointerException

just so weird because it works fine...

Any thoughts?


"David Doria" <daviddoria@gmail.com> wrote in message
<ff862v$big$1@fred.mathworks.com>...
> Anyone know about this type of problem?
>
>
> "David Doria" <daviddoria@gmail.com> wrote in message
> <ff55h3$468$1@fred.mathworks.com>...
> > Anytime I do something with a figure, i get this error:
> >
> > java.lang.NullPointerException
> > at
> >
>
com.mathworks.jmi.bean.MatlabBeanInterface.addCallback(MatlabBeanInterface.java:680)
> > at
> >
>
com.mathworks.jmi.bean.MatlabCallbackInterface.addCallback(MatlabCallbackInterface.java:128)
> >
> > but everything works fine! I can continue doing whatever I
> > was doing without even a hiccup, but i just get that error
> > printed a million times in my command window.
> >
> > Whats up with that?
> >
> > Thanks,
> > David
> >
> > ps i'm on fedora 7 with
> > Java 1.6.0_03 with Sun Microsystems Inc. Java HotSpot(TM)
> > Client VM mixed mode, sharing
>

Subject: Re: Java Error

From: David Doria

Date: 02 Nov, 2007 00:56:15

Message: 4 of 7

Hmm it seems to be a problem when I move a window to my
second monitor. Is this not a known issue or something?

"David Doria" <daviddoria@gmail.com> wrote in message
<ffik0c$i3c$1@fred.mathworks.com>...
> Still getting this:
>
> java.lang.NullPointerException
> at
>
com.mathworks.jmi.bean.MatlabBeanInterface.addCallback(MatlabBeanInterface.java:680)
> at
>
com.mathworks.jmi.bean.MatlabCallbackInterface.addCallback(MatlabCallbackInterface.java:128)
> java.lang.NullPointerException
>
> just so weird because it works fine...
>
> Any thoughts?
>
>
> "David Doria" <daviddoria@gmail.com> wrote in message
> <ff862v$big$1@fred.mathworks.com>...
> > Anyone know about this type of problem?
> >
> >
> > "David Doria" <daviddoria@gmail.com> wrote in message
> > <ff55h3$468$1@fred.mathworks.com>...
> > > Anytime I do something with a figure, i get this error:
> > >
> > > java.lang.NullPointerException
> > > at
> > >
> >
>
com.mathworks.jmi.bean.MatlabBeanInterface.addCallback(MatlabBeanInterface.java:680)
> > > at
> > >
> >
>
com.mathworks.jmi.bean.MatlabCallbackInterface.addCallback(MatlabCallbackInterface.java:128)
> > >
> > > but everything works fine! I can continue doing whatever I
> > > was doing without even a hiccup, but i just get that error
> > > printed a million times in my command window.
> > >
> > > Whats up with that?
> > >
> > > Thanks,
> > > David
> > >
> > > ps i'm on fedora 7 with
> > > Java 1.6.0_03 with Sun Microsystems Inc. Java HotSpot(TM)
> > > Client VM mixed mode, sharing
> >
>

Subject: Re: Java Error

From: Yair Altman

Date: 02 Nov, 2007 09:18:20

Message: 5 of 7

> Hmm it seems to be a problem when I move a window to my
> second monitor. Is this not a known issue or something?
>
> > Still getting this:
> >
> > java.lang.NullPointerException
> > at
com.mathworks.jmi.bean.MatlabBeanInterface.addCallback(MatlabBeanInterface.java:680)
> > at
com.mathworks.jmi.bean.MatlabCallbackInterface.addCallback(MatlabCallbackInterface.java:128)
> > java.lang.NullPointerException


Maybe related to this known bug:
http://www.mathworks.com/support/bugreports/details.html?rp=383414

Yair Altman

Subject: Re: Java Error

From: Darren

Date: 02 Nov, 2007 14:54:07

Message: 6 of 7

I'm getting the exact same error on Kubuntu 7.04. It seems
to be causing trouble with any callback functions my figure
might have. I have a ButtonDownFcn in the figure that works
fine until the error gets thrown, then the callback is
totally ignored.

Any ideas?

Darren

Subject: Re: Java Error

From: Batuhan Osmanoglu

Date: 18 Jul, 2008 21:02:03

Message: 7 of 7

I get the same error when I use an external JRE (specified
using "setenv MATLAB_JAVA /usr/java/jdk1.6.0_05/jre" in
c-shell.) Also it happens when I try to use uigetdir
function. If I unset the MATLAB_JAVA I don't get error
messages...

Too bad, because I need MATLAB_JAVA to be able to call my
java codes from matlab.

Cheers,
Batu.

Matlab: R2007a (I haven't tested anything I wrote above with
R2007b or 2008...)
 
"Darren " <darrenb@NOSPAM.udel.edu> wrote in message
<fgfdmf$kv8$1@fred.mathworks.com>...
> I'm getting the exact same error on Kubuntu 7.04. It seems
> to be causing trouble with any callback functions my figure
> might have. I have a ButtonDownFcn in the figure that works
> fine until the error gets thrown, then the callback is
> totally ignored.
>
> Any ideas?
>
> Darren

Tags for this Thread

Add a New Tag:

Separated by commas
Ex.: root locus, bode

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

rssFeed for this Thread

envelope graphic E-mail this page to a colleague

Public Submission Policy
NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content. Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available via MATLAB Central. Read the complete Disclaimer prior to use.
Related Topics