Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » Helios crashes or gets massive null-pointer errors with Android SDK XML editor
Helios crashes or gets massive null-pointer errors with Android SDK XML editor [message #548782] Thu, 22 July 2010 23:19 Go to next message
Russell Bateman is currently offline Russell BatemanFriend
Messages: 3799
Registered: July 2009
Location: Provo, Utah, USA
Senior Member

There may be a better forum for this, I haven't found it. Please suggest
if you can. I've resisted using Helios until just now, but decided to
use it to start a new Android project.

This occurs principally when I attempt to modify an XML file using what
I suppose to be a special XML editor for Android development.

I suspect that I should modify some of the start-up memory settings in
eclipse.ini?


My environment:
Windows 7 Professional 64-bit, 8Gb RAM, Eclipse 3.6 32-bit, 32-bit JDK
located on the path C:\Users\russ\dev\eclipse\jre\jdk1.6.0_20.


C:\Users\russ\dev\eclipse\eclipse.ini contains:

-startup
plugins/org.eclipse.equinox.launcher_1.1.0.v20100507.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.1.0.v 20100503
-product
org.eclipse.epp.package.jee.product
--launcher.defaultAction
openFile
--launcher.XXMaxPermSize
256M
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256m
--launcher.defaultAction
openFile
-vmargs
-Dosgi.requiredJavaVersion=1.5
-Xms40m
-Xmx512m
Re: Helios crashes or gets massive null-pointer errors with Android SDK XML editor [message #549389 is a reply to message #548782] Mon, 26 July 2010 14:20 Go to previous messageGo to next message
Eric Rizzo is currently offline Eric RizzoFriend
Messages: 3031
Registered: July 2009
Senior Member
On 7/22/10 7:19 PM, Russell Bateman wrote:
> There may be a better forum for this, I haven't found it. Please suggest
> if you can. I've resisted using Helios until just now, but decided to
> use it to start a new Android project.

Have you verified if the Android plugins are tested/supported against
Helios? It could be that they're only supported on 3.5.



>
> This occurs principally when I attempt to modify an XML file using what
> I suppose to be a special XML editor for Android development.
>
> I suspect that I should modify some of the start-up memory settings in
> eclipse.ini?
>
>
> My environment:
> Windows 7 Professional 64-bit, 8Gb RAM, Eclipse 3.6 32-bit, 32-bit JDK
> located on the path C:\Users\russ\dev\eclipse\jre\jdk1.6.0_20.
>
>
> C:\Users\russ\dev\eclipse\eclipse.ini contains:
>
> -startup
> plugins/org.eclipse.equinox.launcher_1.1.0.v20100507.jar
> --launcher.library
> plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.1.0.v 20100503
> -product
> org.eclipse.epp.package.jee.product
> --launcher.defaultAction
> openFile
> --launcher.XXMaxPermSize
> 256M
> -showsplash
> org.eclipse.platform
> --launcher.XXMaxPermSize
> 256m
> --launcher.defaultAction
> openFile
> -vmargs
> -Dosgi.requiredJavaVersion=1.5
> -Xms40m
> -Xmx512m
Re: Helios crashes or gets massive null-pointer errors with Android SDK XML editor [message #549397 is a reply to message #549389] Mon, 26 July 2010 14:45 Go to previous messageGo to next message
Russell Bateman is currently offline Russell BatemanFriend
Messages: 3799
Registered: July 2009
Location: Provo, Utah, USA
Senior Member

On 7/26/2010 8:20 AM, Eric Rizzo wrote:
> On 7/22/10 7:19 PM, Russell Bateman wrote:
>> There may be a better forum for this, I haven't found it. Please suggest
>> if you can. I've resisted using Helios until just now, but decided to
>> use it to start a new Android project.
>
> Have you verified if the Android plugins are tested/supported against
> Helios? It could be that they're only supported on 3.5.

Thanks, Eric. I'll look into that. I did not check into that precisely
because Lars Vogel's tutorial on Android uses Helios.
Re: Helios crashes or gets massive null-pointer errors with Android SDK XML editor [message #549664 is a reply to message #549397] Tue, 27 July 2010 13:42 Go to previous messageGo to next message
Eric Rizzo is currently offline Eric RizzoFriend
Messages: 3031
Registered: July 2009
Senior Member
On 7/26/10 10:45 AM, Russ Bateman wrote:
> On 7/26/2010 8:20 AM, Eric Rizzo wrote:
>> On 7/22/10 7:19 PM, Russell Bateman wrote:
>>> There may be a better forum for this, I haven't found it. Please suggest
>>> if you can. I've resisted using Helios until just now, but decided to
>>> use it to start a new Android project.
>>
>> Have you verified if the Android plugins are tested/supported against
>> Helios? It could be that they're only supported on 3.5.
>
> Thanks, Eric. I'll look into that. I did not check into that precisely
> because Lars Vogel's tutorial on Android uses Helios.

OK, well Lars knows his stuff so if he did it I'd trust that it's a good
combination ;-)
Re: Helios crashes or gets massive null-pointer errors with Android SDK XML editor [message #550586 is a reply to message #548782] Fri, 30 July 2010 23:17 Go to previous messageGo to next message
Russell Bateman is currently offline Russell BatemanFriend
Messages: 3799
Registered: July 2009
Location: Provo, Utah, USA
Senior Member

After a week of frustration I reached the conclusion that you cannot
install Android for use in Eclipse JEE, my usual mode. Instead, use the
plain Java Eclipse. My definitive installation became Eclipse Galileo
SR2 IDE for Java Developers. I added these lines to eclipse.ini, though
I probably did not have to be so generous:

-vmargs
-Xms256m
-Xmx1024m
-XX:PermSize=128m
-XX:MaxPermSize=512m

In order to distinguish this version of Eclipse from my usual JEE
development version on my task bar, I found an icon to graft onto it at
http://www.large-icons.com/stock-icons/free-large-android-ic ons.htm and
selected one that looked most like the green Android icon.
Re: Helios crashes or gets massive null-pointer errors with Android SDK XML editor [message #551867 is a reply to message #548782] Mon, 09 August 2010 20:54 Go to previous messageGo to next message
Les Lander is currently offline Les LanderFriend
Messages: 1
Registered: August 2010
Junior Member
I hope this helps...
To prevent the NullPointerException when editing Android XML files in Helios , change <resources> in such XML files as "strings.xml" to

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

Strangely, the namespace is referenced in the default "main.xml"

This fix comes from A. Ravinda..., and is buried in:
http://code.google.com/p/android/issues/detail?id=8173
----------------------
Les Lander
icon14.gif  Re: Helios crashes or gets massive null-pointer errors with Android SDK XML editor [message #558643 is a reply to message #551867] Mon, 13 September 2010 18:51 Go to previous message
Scott Bown is currently offline Scott BownFriend
Messages: 1
Registered: September 2010
Junior Member
Cheers for the note about "<resources xmlns:android="http://schemas.android.com/apk/res/android">"

Works a treat Smile
Previous Topic:Multiple Interface Confusion
Next Topic:Eclipse ADT hangs Windows 7 64 bit
Goto Forum:
  


Current Time: Sun Jun 25 20:59:49 GMT 2017

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

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