Bug 497171 - Can't create an Android Activity via Menu
Summary: Can't create an Android Activity via Menu
Status: UNCONFIRMED
Alias: None
Product: andmore
Classification: Tools
Component: Core (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows 10
: P3 normal with 1 vote (vote)
Target Milestone: ---   Edit
Assignee: David Carver CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-07-02 01:07 EDT by Uw bru CLA
Modified: 2016-09-04 08:48 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Uw bru CLA 2016-07-02 01:07:49 EDT
What steps will reproduce the problem?
1. Create a new Android Project
2. Right click on the Project and select New -> Android Activity


-- Error Details --
Date: Sat Jul 02 06:23:32 CEST 2016
Message: Unhandled event loop exception
Severity: Error
Product: Eclipse 4.6.0.20160613-1800 (org.eclipse.epp.package.android.product)
Plugin: org.eclipse.ui
Session Data:
eclipse.buildId=4.6.0.I20160606-1100
java.version=1.8.0_92
java.vendor=Oracle Corporation
BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=de_DE
Framework arguments:  -product org.eclipse.epp.package.android.product
Command-line arguments:  -os win32 -ws win32 -arch x86_64 -product org.eclipse.epp.package.android.product

Exception Stack Trace:
java.lang.StackOverflowError
	at java.util.zip.ZipCoder.getBytes(Unknown Source)
	at java.util.zip.ZipFile.getEntry(Unknown Source)
	at java.util.jar.JarFile.getEntry(Unknown Source)
	at java.util.jar.JarFile.getJarEntry(Unknown Source)
	at sun.misc.URLClassPath$JarLoader.getResource(Unknown Source)
	at sun.misc.URLClassPath$JarLoader.findResource(Unknown Source)
	at sun.misc.URLClassPath.findResource(Unknown Source)
	at java.net.URLClassLoader$2.run(Unknown Source)
	at java.net.URLClassLoader$2.run(Unknown Source)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.net.URLClassLoader.findResource(Unknown Source)
	at java.lang.ClassLoader.getResource(Unknown Source)
	at java.lang.ClassLoader.getResource(Unknown Source)
	at org.eclipse.osgi.internal.framework.ContextFinder.getResource(ContextFinder.java:150)
	at java.lang.ClassLoader.getResourceAsStream(Unknown Source)
	at org.apache.xerces.parsers.SecuritySupport$6.run(Unknown Source)
	at java.security.AccessController.doPrivileged(Native Method)
	at org.apache.xerces.parsers.SecuritySupport.getResourceAsStream(Unknown Source)
	at org.apache.xerces.parsers.ObjectFactory.findJarServiceProvider(Unknown Source)
	at org.apache.xerces.parsers.ObjectFactory.createObject(Unknown Source)
	at org.apache.xerces.parsers.ObjectFactory.createObject(Unknown Source)
	at org.apache.xerces.parsers.DOMParser.<init>(Unknown Source)
	at org.apache.xerces.parsers.DOMParser.<init>(Unknown Source)
	at org.eclipse.andmore.android.model.manifest.parser.AndroidManifestParser.parseDocument(AndroidManifestParser.java:60)
	at org.eclipse.andmore.android.manifest.AndroidProjectManifestFile.getFromProject(AndroidProjectManifestFile.java:62)
	at org.eclipse.andmore.android.common.utilities.EclipseUtils.getDefaultPackageFragment(EclipseUtils.java:942)
	at org.eclipse.andmore.android.model.BuildingBlockModel.extractPackageFragment(BuildingBlockModel.java:218)
	at org.eclipse.andmore.android.model.BuildingBlockModel.extractPackageFragment(BuildingBlockModel.java:226)
	at org.eclipse.andmore.android.model.BuildingBlockModel.extractPackageFragment(BuildingBlockModel.java:226)
	at org.eclipse.andmore.android.model.BuildingBlockModel.extractPackageFragment(BuildingBlockModel.java:226)
...
Comment 1 jules CLA 2016-09-04 08:31:19 EDT
I'm also seeing this.  Windows 7, Java 1.8.0u102, completely fresh install of eclipse neon j2ee from the main web site today, added andmore from the marketplace, then saw this the first time I tried to work on an android project.

It seems as though it works the first time the new activity dialog appears (but not if you've created a new project).

eclipse.buildId=4.6.0.I20160606-1100
java.version=1.8.0_102
java.vendor=Oracle Corporation
BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=en_GB
Framework arguments:  -product org.eclipse.epp.package.jee.product -product org.eclipse.epp.package.jee.product -product org.eclipse.epp.package.jee.product -product org.eclipse.epp.package.jee.product
Command-line arguments:  -os win32 -ws win32 -arch x86_64 -product org.eclipse.epp.package.jee.product -product org.eclipse.epp.package.jee.product -product org.eclipse.epp.package.jee.product -data file:/C:/Users/myuserid/android/ -product org.eclipse.epp.package.jee.product

stack trace identical to the one in the original report.
Comment 2 jules CLA 2016-09-04 08:48:32 EDT
Actually, my last comment wasn't quite right.  It doesn't work first time you use it: it successfully opens the  dialog box if and only if there isn't a current project selected, but in that case the box is useless because you can't choose a source location and/or package to put the generated class into.

It may be relevant that the project I'm working on is set to use the marshmallow SDK.