Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » java.lang.nullpointerexception(an error has occurred)
java.lang.nullpointerexception [message #549069] Sat, 24 July 2010 00:00 Go to next message
No real name is currently offline No real nameFriend
Messages: 2
Registered: July 2010
Junior Member
Forgive me. I am a little knew. Just installed the Android SDK and Eclipse Helios setup and am going through some of the Android tutorials. I successfully created the HelloWorld app but now I am trying to edit the XML code. I am trying to edit the string.xml file in value. When I change one character in the file I get a message box that says "Multiple problems have occurred. java.lang.nullpointerexception: An error has occurred. See log for more details."

Can some one explain what this is and what a possible solution may be.

Thanks
Re: java.lang.nullpointerexception [message #549070 is a reply to message #549069] Sat, 24 July 2010 00:22 Go to previous messageGo to next message
No real name is currently offline No real nameFriend
Messages: 2
Registered: July 2010
Junior Member
I actually figured it out. The default editor it was using was no good. Instead I have to right click on the file and go to: Open With<Androind XML Resource Editor. And now it works fine.
Re: java.lang.nullpointerexception [message #549136 is a reply to message #549070] Sun, 25 July 2010 04:20 Go to previous messageGo to next message
Russell Bateman is currently offline Russell BatemanFriend
Messages: 3798
Registered: July 2009
Location: Provo, Utah, USA
Senior Member

On 2010.07.23 18:22, mbcluck@gmail.com wrote:
> I actually figured it out. The default editor it was using was no good.
> Instead I have to right click on the file and go to: Open
> With<Androind XML Resource Editor. And now it works fine.

I complained about this a few days ago. The Android XML Resource Editor
is the one that comes up when I double-click the file. I had the same
result as you--having to dismiss a null-pointer error alert between
every keystroke. Using the more graphic approach to modifying my file
hardly worked at (which is why I went to the text editor method).

I wondered if I need to modify my start-up memory amounts.

The Android Layout Editor did not suffer from this problem.

This is disconcerting as Eclipse is supposed to be the primo Android
development environment.
Re: java.lang.nullpointerexception [message #549394 is a reply to message #549069] Mon, 26 July 2010 14:39 Go to previous messageGo to next message
Eric Rizzo is currently offline Eric RizzoFriend
Messages: 3070
Registered: July 2009
Senior Member
On 7/23/10 8:00 PM, mbcluck@gmail.com wrote:
> Forgive me. I am a little knew. Just installed the Android SDK and
> Eclipse Helios setup and am going through some of the Android tutorials.
> I successfully created the HelloWorld app but now I am trying to edit
> the XML code. I am trying to edit the string.xml file in value. When I
> change one character in the file I get a message box that says "Multiple
> problems have occurred. java.lang.nullpointerexception: An error has
> occurred. See log for more details."
>
> Can some one explain what this is and what a possible solution may be.
>
> Thanks

See the topic in this forum titled "Helios crashes or gets massive
null-pointer errors with Android SDK XML editor"

Eric
Re: java.lang.nullpointerexception [message #551318 is a reply to message #549394] Thu, 05 August 2010 22:25 Go to previous messageGo to next message
keith hannon is currently offline keith hannonFriend
Messages: 1
Registered: August 2010
Junior Member

add xml namespace to the resource tag. This will make the nullpointerexception go away.

<resources xmlns:android="http://schemas.android.com/apk/res/android";>
....
</resources>


courtesy of claesh in the google groups site
Re: java.lang.nullpointerexception [message #555780 is a reply to message #549070] Sat, 28 August 2010 15:59 Go to previous message
Leco  is currently offline Leco Friend
Messages: 1
Registered: August 2010
Junior Member
Thanks! I was having the same problem and this fixed it!
Previous Topic:Are there any existing Structured Editors for Java?
Next Topic:dynamic web again
Goto Forum:
  


Current Time: Fri Apr 26 19:53:49 GMT 2024

Powered by FUDForum. Page generated in 0.08352 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top