Open
tsuedesu
opened this issue 10 years ago
•
16 comments
Hi,
Not sure if anyone is still active here. I'm having some issues with the source in eclipse, the error log is below.
I have no idea why, I did change the build target to 17 in the manifest though.
Error
Thu Jun 19 18:29:15 SAST 2014
com.ControllerDroid.client.view.ClickView failed to instantiate.
java.lang.ClassCastException: com.android.layoutlib.bridge.android.BridgeContext cannot be cast to com.ControllerDroid.client.activity.ControlActivity
at com.ControllerDroid.client.view.ClickView.(ClickView.java:26)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at com.android.ide.eclipse.adt.internal.editors.layout.ProjectCallback.instantiateClass(ProjectCallback.java:422)
at com.android.ide.eclipse.adt.internal.editors.layout.ProjectCallback.loadView(ProjectCallback.java:179)
at android.view.BridgeInflater.loadCustomView(BridgeInflater.java:207)
at android.view.BridgeInflater.createViewFromTag(BridgeInflater.java:135)
at android.view.LayoutInflater.rInflate_Original(LayoutInflater.java:755)
at android.view.LayoutInflater_Delegate.rInflate(LayoutInflater_Delegate.java:64)
at android.view.LayoutInflater.rInflate(LayoutInflater.java:727)
at android.view.LayoutInflater.rInflate_Original(LayoutInflater.java:758)
at android.view.LayoutInflater_Delegate.rInflate(LayoutInflater_Delegate.java:64)
at android.view.LayoutInflater.rInflate(LayoutInflater.java:727)
at android.view.LayoutInflater.inflate(LayoutInflater.java:492)
at android.view.LayoutInflater.inflate(LayoutInflater.java:373)
at com.android.layoutlib.bridge.impl.RenderSessionImpl.inflate(RenderSessionImpl.java:399)
at com.android.layoutlib.bridge.Bridge.createSession(Bridge.java:336)
at com.android.ide.common.rendering.LayoutLibrary.createSession(LayoutLibrary.java:334)
at com.android.ide.eclipse.adt.internal.editors.layout.gle2.RenderService.createRenderSession(RenderService.java:451)
at com.android.ide.eclipse.adt.internal.editors.layout.gle2.GraphicalEditorPart.renderWithBridge(GraphicalEditorPart.java:1545)
at com.android.ide.eclipse.adt.internal.editors.layout.gle2.GraphicalEditorPart.recomputeLayout(GraphicalEditorPart.java:1302)
at com.android.ide.eclipse.adt.internal.editors.layout.gle2.GraphicalEditorPart.activated(GraphicalEditorPart.java:1059)
at com.android.ide.eclipse.adt.internal.editors.layout.LayoutEditorDelegate.delegatePageChange(LayoutEditorDelegate.java:686)
at com.android.ide.eclipse.adt.internal.editors.common.CommonXmlEditor.pageChange(CommonXmlEditor.java:360)
at org.eclipse.ui.part.MultiPageEditorPart.setActivePage(MultiPageEditorPart.java:1083)
at org.eclipse.ui.forms.editor.FormEditor.setActivePage(FormEditor.java:607)
at com.android.ide.eclipse.adt.internal.editors.AndroidXmlEditor.selectDefaultPage(AndroidXmlEditor.java:450)
at com.android.ide.eclipse.adt.internal.editors.AndroidXmlEditor.addPages(AndroidXmlEditor.java:311)
at com.android.ide.eclipse.adt.internal.editors.common.CommonXmlEditor.addPages(CommonXmlEditor.java:285)
at org.eclipse.ui.forms.editor.FormEditor.createPages(FormEditor.java:138)
at org.eclipse.ui.part.MultiPageEditorPart.createPartControl(MultiPageEditorPart.java:358)
at org.eclipse.ui.internal.e4.compatibility.CompatibilityPart.createPartControl(CompatibilityPart.java:142)
at org.eclipse.ui.internal.e4.compatibility.CompatibilityEditor.createPartControl(CompatibilityEditor.java:96)
at org.eclipse.ui.internal.e4.compatibility.CompatibilityPart.create(CompatibilityPart.java:323)
at sun.reflect.GeneratedMethodAccessor30.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:56)
at org.eclipse.e4.core.internal.di.InjectorImpl.processAnnotated(InjectorImpl.java:877)
at org.eclipse.e4.core.internal.di.InjectorImpl.processAnnotated(InjectorImpl.java:857)
at org.eclipse.e4.core.internal.di.InjectorImpl.inject(InjectorImpl.java:119)
at org.eclipse.e4.core.internal.di.InjectorImpl.internalMake(InjectorImpl.java:333)
at org.eclipse.e4.core.internal.di.InjectorImpl.make(InjectorImpl.java:254)
at org.eclipse.e4.core.contexts.ContextInjectionFactory.make(ContextInjectionFactory.java:162)
at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.createFromBundle(ReflectionContributionFactory.java:102)
at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.doCreate(ReflectionContributionFactory.java:71)
at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.create(ReflectionContributionFactory.java:53)
at org.eclipse.e4.ui.workbench.renderers.swt.ContributedPartRenderer.createWidget(ContributedPartRenderer.java:129)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createWidget(PartRenderingEngine.java:949)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:633)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:735)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:706)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:700)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:685)
at org.eclipse.e4.ui.workbench.renderers.swt.StackRenderer.showTab(StackRenderer.java:1096)
at org.eclipse.e4.ui.workbench.renderers.swt.LazyStackRenderer$1.handleEvent(LazyStackRenderer.java:66)
at org.eclipse.e4.ui.services.internal.events.UIEventHandler$1.run(UIEventHandler.java:41)
at org.eclipse.swt.widgets.Synchronizer.syncExec(Synchronizer.java:180)
at org.eclipse.ui.internal.UISynchronizer.syncExec(UISynchronizer.java:150)
at org.eclipse.swt.widgets.Display.syncExec(Display.java:4491)
at org.eclipse.e4.ui.internal.workbench.swt.E4Application$1.syncExec(E4Application.java:205)
at org.eclipse.e4.ui.services.internal.events.UIEventHandler.handleEvent(UIEventHandler.java:38)
at org.eclipse.equinox.internal.event.EventHandlerWrapper.handleEvent(EventHandlerWrapper.java:197)
at org.eclipse.equinox.internal.event.EventHandlerTracker.dispatchEvent(EventHandlerTracker.java:197)
at org.eclipse.equinox.internal.event.EventHandlerTracker.dispatchEvent(EventHandlerTracker.java:1)
at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
at org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:148)
at org.eclipse.equinox.internal.event.EventAdminImpl.dispatchEvent(EventAdminImpl.java:135)
at org.eclipse.equinox.internal.event.EventAdminImpl.sendEvent(EventAdminImpl.java:78)
at org.eclipse.equinox.internal.event.EventComponent.sendEvent(EventComponent.java:39)
at org.eclipse.e4.ui.services.internal.events.EventBroker.send(EventBroker.java:80)
at org.eclipse.e4.ui.internal.workbench.UIEventPublisher.notifyChanged(UIEventPublisher.java:58)
at org.eclipse.emf.common.notify.impl.BasicNotifierImpl.eNotify(BasicNotifierImpl.java:374)
at org.eclipse.e4.ui.model.application.ui.impl.ElementContainerImpl.setSelectedElement(ElementContainerImpl.java:171)
at org.eclipse.e4.ui.internal.workbench.ModelServiceImpl.showElementInWindow(ModelServiceImpl.java:576)
at org.eclipse.e4.ui.internal.workbench.ModelServiceImpl.bringToTop(ModelServiceImpl.java:543)
at org.eclipse.e4.ui.internal.workbench.PartServiceImpl.delegateBringToTop(PartServiceImpl.java:610)
at org.eclipse.e4.ui.internal.workbench.PartServiceImpl.bringToTop(PartServiceImpl.java:322)
at org.eclipse.e4.ui.internal.workbench.PartServiceImpl.showPart(PartServiceImpl.java:1034)
at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(WorkbenchPage.java:3112)
at org.eclipse.ui.internal.WorkbenchPage.access$21(WorkbenchPage.java:3034)
at org.eclipse.ui.internal.WorkbenchPage$8.run(WorkbenchPage.java:3016)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:3012)
at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2976)
at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2967)
at org.eclipse.ui.ide.IDE.openEditor(IDE.java:534)
at org.eclipse.ui.ide.IDE.openEditor(IDE.java:493)
at org.eclipse.jdt.internal.ui.javaeditor.EditorUtility.openInEditor(EditorUtility.java:360)
at org.eclipse.jdt.internal.ui.javaeditor.EditorUtility.openInEditor(EditorUtility.java:167)
at org.eclipse.jdt.ui.actions.OpenAction.run(OpenAction.java:268)
at org.eclipse.jdt.ui.actions.OpenAction.run(OpenAction.java:233)
at org.eclipse.jdt.ui.actions.SelectionDispatchAction.dispatchRun(SelectionDispatchAction.java:275)
at org.eclipse.jdt.ui.actions.SelectionDispatchAction.run(SelectionDispatchAction.java:251)
at org.eclipse.jdt.internal.ui.packageview.PackageExplorerActionGroup.handleOpen(PackageExplorerActionGroup.java:376)
at org.eclipse.jdt.internal.ui.packageview.PackageExplorerPart$4.open(PackageExplorerPart.java:538)
at org.eclipse.ui.OpenAndLinkWithEditorHelper$InternalListener.open(OpenAndLinkWithEditorHelper.java:47)
at org.eclipse.jface.viewers.StructuredViewer$2.run(StructuredViewer.java:866)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:49)
at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:175)
at org.eclipse.jface.viewers.StructuredViewer.fireOpen(StructuredViewer.java:864)
at org.eclipse.jface.viewers.StructuredViewer.handleOpen(StructuredViewer.java:1152)
at org.eclipse.jface.viewers.StructuredViewer$6.handleOpen(StructuredViewer.java:1256)
at org.eclipse.jface.util.OpenStrategy.fireOpenEvent(OpenStrategy.java:275)
at org.eclipse.jface.util.OpenStrategy.access$2(OpenStrategy.java:269)
at org.eclipse.jface.util.OpenStrategy$1.handleEvent(OpenStrategy.java:309)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1392)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3742)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3363)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1113)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:997)
at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:138)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:610)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:567)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:150)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:354)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:181)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:636)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:591)
at org.eclipse.equinox.launcher.Main.run(Main.java:1450)
at org.eclipse.equinox.launcher.Main.main(Main.java:1426)
Did it point out which line had the error or anything else?
On Jun 19, 2014 9:25 AM, "tsuedesu" [email protected] wrote:
Hi,
Not sure if anyone is still active here. I'm having some issues with the
source in eclipse, the error is :
com.ControllerDroid.client.view.ClickView failed to instantiate.
I have no idea why, I did change the build target to 17 in the manifest
though.
Any guidance welcome.
Reply to this email directly or view it on GitHub
https://github.com/anantshri/premotedroid/issues/9.
Hmm I was hoping the compiler would be more helpful.
I don't remember if I still have the build environment set up for android
on my pc, but that line indicates it couldn't start the activity at all.
Were there any warnings?
On Jun 19, 2014 9:30 AM, "tsuedesu" [email protected] wrote:
Ah...it pointed to
com.ControllerDroid.client.view.ControlView.(ControlView.java:73)
Reply to this email directly or view it on GitHub
https://github.com/anantshri/premotedroid/issues/9#issuecomment-46583895
.
Warnings :
The serializable class ConnectionBluetooth does not declare a static final serialVersionUID field of type long ConnectionBluetooth.java /ControllerDroid Client/src/com/ControllerDroid/client/connection line 15 Java Problem
The serializable class Connection does not declare a static final serialVersionUID field of type long Connection.java /ControllerDroid Client/src/com/ControllerDroid/client/connection line 15 Java Problem
No grammar constraints (DTD or XML Schema) referenced in the document. build.xml /ControllerDroid Server line 1 XML Problem
The serializable class ConnectionWifi does not declare a static final serialVersionUID field of type long ConnectionWifi.java /ControllerDroid Client/src/com/ControllerDroid/client/connection line 15 Java Problem
Ok so it says AWTException is missing. This seems odd since I thought
that's part of the framework?
On Jun 19, 2014 9:47 AM, "tsuedesu" [email protected] wrote:
mmm...I have errors on the server too
The constructor ControllerDroidServerApp() refers to the missing type
AWTException
and
The constructor ControllerDroidServerApp() refers to the missing type
AWTException
I'm checking on the warnings
Reply to this email directly or view it on GitHub
https://github.com/anantshri/premotedroid/issues/9#issuecomment-46586050
.
What happens if you don't have the build target reset? Can you reset your
copy of the repo and rebuild just from there?
On Thu, Jun 19, 2014 at 10:44 AM, Anthony Takata [email protected]
wrote:
Ok so it says AWTException is missing. This seems odd since I thought
that's part of the framework?
On Jun 19, 2014 9:47 AM, "tsuedesu" [email protected] wrote:
mmm...I have errors on the server too
The constructor ControllerDroidServerApp() refers to the missing type
AWTException
and
The constructor ControllerDroidServerApp() refers to the missing type
AWTException
I'm checking on the warnings
Reply to this email directly or view it on GitHub
https://github.com/anantshri/premotedroid/issues/9#issuecomment-46586050
.
That error is normal because of how it's called in the project. However, it
should still launch on the device.
On Jun 19, 2014 11:21 AM, "tsuedesu" [email protected] wrote:
Ok...I got it to build with no errors, but it fails to run because
[2014-06-19 20:21:37 - ControllerDroid Protocol] Could not find
ControllerDroid Protocol.apk!
I've added the path to the ControllerDroid protocol.jar in the
"Controllerdroid protocol" bin folder
Reply to this email directly or view it on GitHub
https://github.com/anantshri/premotedroid/issues/9#issuecomment-46597546
.
Oh I remember this problem now, but I forgot how to get around it it's been
too long.
I'll see what I can find out, but it may be a while before I can work on
this.
On Jun 19, 2014 11:32 AM, "tsuedesu" [email protected] wrote:
This is the DDMS log
06-19 14:26:02.876: W/ActivityManager(1166): Activity destroy timeout for
ActivityRecord{b44e77e8 u0
com.ControllerDroid.client/.activity.ControlActivity}
06-19 14:26:03.376: I/ActivityManager(1166): Process
com.ControllerDroid.client (pid 2134) has died.
06-19 14:26:05.196: I/ActivityManager(1166): START u0
{act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER]
flg=0x10200000 cmp=com.ControllerDroid.client/.activity.ControlActivity}
from pid 1424
06-19 14:26:05.516: I/ActivityManager(1166): Start proc
com.ControllerDroid.client for activity
com.ControllerDroid.client/.activity.ControlActivity: pid=2150 uid=10058
gids={50058, 3003, 3002, 3001, 1028}
06-19 14:26:05.526: W/dalvikvm(2150): VFY: unable to find class referenced
in signature ([Lcom/ControllerDroid/protocol/ControllerDroidConnection;)
06-19 14:26:05.526: W/dalvikvm(2150): VFY: rejected
Lcom/ControllerDroid/client/app/ControllerDroid;.access$1
(Lcom/ControllerDroid/client/app/ControllerDroid;)[Lcom/ControllerDroid/protocol/ControllerDroidConnection;
06-19 14:26:05.536: W/dalvikvm(2150): Verifier rejected class
Lcom/ControllerDroid/client/app/ControllerDroid;
06-19 14:26:05.536: W/dalvikvm(2150): Class init failed in newInstance
call (Lcom/ControllerDroid/client/app/ControllerDroid;)
06-19 14:26:05.536: E/AndroidRuntime(2150): java.lang.VerifyError:
com/ControllerDroid/client/app/ControllerDroid
06-19 14:26:05.546: W/ActivityManager(1166): Force finishing activity
com.ControllerDroid.client/.activity.ControlActivity
06-19 14:26:05.766: I/WindowManager(1166): Screenshot Window{b43ea130 u0
Starting com.ControllerDroid.client} was all black! mSurfaceLayer=21010
minLayer=21010 maxLayer=21010
06-19 14:26:06.276: W/ActivityManager(1166): Activity pause timeout for
ActivityRecord{b4486c98 u0
com.ControllerDroid.client/.activity.ControlActivity}
06-19 14:26:16.526: W/ActivityManager(1166): Activity destroy timeout for
ActivityRecord{b4486c98 u0
com.ControllerDroid.client/.activity.ControlActivity}
06-19 14:31:05.781: I/ActivityManager(1166): Process
com.ControllerDroid.client (pid 2150) has died.
Reply to this email directly or view it on GitHub
https://github.com/anantshri/premotedroid/issues/9#issuecomment-46598954
.