You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@xmlbeans.apache.org by Pasi <pa...@iki.fi> on 2007/04/27 14:29:46 UTC

NPE at org.apache.xmlbeans.impl.store.Cur.listRemove(Cur.java:2783)

Hi all!

I'm having some really strange problems with xmlbeans. I got a new laptop
and started to use it in our project which we have been developing several
years now. Xmlbeans is an essential part of the project and has been working
well until now. I'm running exactly same Java version, Eclipse version and
OS (debian 4 thoug.h. the last one was 3) in the new version as I run in the
last laptop. Just checked out the code from CVS and started working but now
I get frequent crashes deep inside the xmlbeans code:

java.lang.NullPointerException
	at org.apache.xmlbeans.impl.store.Cur.listRemove(Cur.java:2783)
	at org.apache.xmlbeans.impl.store.Locale.getCur(Locale.java:2771)
	at org.apache.xmlbeans.impl.store.Locale.tempCur(Locale.java:2732)
	at org.apache.xmlbeans.impl.store.Locale.tempCur(Locale.java:2727)
	at org.apache.xmlbeans.impl.store.Xobj.tempCur(Xobj.java:348)


The strange thing is that similar problems has occured with other user using
the same new hardware (but windows os). I just can't figure out how the
hardware could affect the java runtime but it seems to do so anyways. 

Do someone have similar problems or do someone know how to fix or workaroung
the problem? All the null pointers occur in Cur.java. My hardware is Dell
Latituyde D820.

Thanks for the help! I'm getting a bit desperate.

-Pasi
-- 
View this message in context: http://www.nabble.com/NPE-at-org.apache.xmlbeans.impl.store.Cur.listRemove%28Cur.java%3A2783%29-tf3657399.html#a10218217
Sent from the Xml Beans - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: user-help@xmlbeans.apache.org


Re: NPE at org.apache.xmlbeans.impl.store.Cur.listRemove(Cur.java:2783)

Posted by Pasi <pa...@iki.fi>.

It seems to be a thread related problem. I disabled the duo-core support
from bios and everything started working just fine. 

-Pasi


Pasi wrote:
> 
> 
> Could this problem have something to do with threadding? Our application
> is very strongly threadded and run under Eclipse. The new laptop has
> multi-core processor and threads might therefore get executed
> simultaneously. Is there any trick to make xmlbeans more threadsafe? Or is
> there any way to turn off the multi-core support for JVM (sun's website
> doesn't seem to contain anything about this).
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/NPE-at-org.apache.xmlbeans.impl.store.Cur.listRemove%28Cur.java%3A2783%29-tf3657399.html#a10252227
Sent from the Xml Beans - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: user-help@xmlbeans.apache.org


Re: NPE at org.apache.xmlbeans.impl.store.Cur.listRemove(Cur.java:2783)

Posted by Pasi <pa...@iki.fi>.

Hi Jacob!

Sorry for confusing message. I meant that I did checkout our project (which
contains xmlbeans) and didn't make any changes to it. I'm running exactly
same code on my old laptop and on my new one. The project works without any
problems on the old one but on the new one I get multiple exception form
methods in Cur.java and Locale.java. 

It seems to crash in several places in our code and I cannot find any common
thing between them. Cursor handling seem to go wrong most of the time. 

Could this problem have something to do with threadding? Our application is
very strongly threadded and run under Eclipse. The new laptop has multi-core
processor and threads might therefore get executed simultaneously. Is there
any trick to make xmlbeans more threadsafe? Or is there any way to turn off
the multi-core support for JVM (sun's website doesn't seem to contain
anything about this).

-Pasi



Jacob Danner-2 wrote:
> 
> Hi Pasi,
> Just to clarify, you mean the code from SVN right? What revision are you
> at?
> I've got a Dell Latitude D820 and I have NOT had any similar issues.
> Might you be able to share some code with in your project that's
> causing this?
> Thanks,
> -Jacob Danner
> 
> 

-- 
View this message in context: http://www.nabble.com/NPE-at-org.apache.xmlbeans.impl.store.Cur.listRemove%28Cur.java%3A2783%29-tf3657399.html#a10250139
Sent from the Xml Beans - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: user-help@xmlbeans.apache.org


Re: NPE at org.apache.xmlbeans.impl.store.Cur.listRemove(Cur.java:2783)

Posted by Jacob Danner <ja...@gmail.com>.
Hi Pasi,
Just to clarify, you mean the code from SVN right? What revision are you at?
I've got a Dell Latitude D820 and I have NOT had any similar issues.
Might you be able to share some code with in your project that's
causing this?
Thanks,
-Jacob Danner

On 4/27/07, Pasi <pa...@iki.fi> wrote:
>
> Hi all!
>
> I'm having some really strange problems with xmlbeans. I got a new laptop
> and started to use it in our project which we have been developing several
> years now. Xmlbeans is an essential part of the project and has been working
> well until now. I'm running exactly same Java version, Eclipse version and
> OS (debian 4 thoug.h. the last one was 3) in the new version as I run in the
> last laptop. Just checked out the code from CVS and started working but now
> I get frequent crashes deep inside the xmlbeans code:
>
> java.lang.NullPointerException
>         at org.apache.xmlbeans.impl.store.Cur.listRemove(Cur.java:2783)
>         at org.apache.xmlbeans.impl.store.Locale.getCur(Locale.java:2771)
>         at org.apache.xmlbeans.impl.store.Locale.tempCur(Locale.java:2732)
>         at org.apache.xmlbeans.impl.store.Locale.tempCur(Locale.java:2727)
>         at org.apache.xmlbeans.impl.store.Xobj.tempCur(Xobj.java:348)
>
>
> The strange thing is that similar problems has occured with other user using
> the same new hardware (but windows os). I just can't figure out how the
> hardware could affect the java runtime but it seems to do so anyways.
>
> Do someone have similar problems or do someone know how to fix or workaroung
> the problem? All the null pointers occur in Cur.java. My hardware is Dell
> Latituyde D820.
>
> Thanks for the help! I'm getting a bit desperate.
>
> -Pasi
> --
> View this message in context: http://www.nabble.com/NPE-at-org.apache.xmlbeans.impl.store.Cur.listRemove%28Cur.java%3A2783%29-tf3657399.html#a10218217
> Sent from the Xml Beans - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@xmlbeans.apache.org
> For additional commands, e-mail: user-help@xmlbeans.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: user-help@xmlbeans.apache.org