Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 484457

Summary: Getting the Details of "Could not create the view" causes a complete crash
Product: [RT] RAP Reporter: Michael Fritscher <eclipse>
Component: RWTAssignee: Project Inbox <rap-inbox>
Status: RESOLVED DUPLICATE QA Contact:
Severity: normal    
Priority: P3    
Version: 3.1   
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard:

Description Michael Fritscher CLA 2015-12-16 03:05:09 EST
Trying to use the snippet in https://bugs.eclipse.org/bugs/show_bug.cgi?id=484456 in a View's createPartControl leads to the message Could not create the view: Could not initialize class . If I click in "Details >>" it makes a big boom:

[code]
Loading...FileView
Could not create the view: Could not initialize class de.zft.kommunikationsframework_gui_common.widgets.chartwidget.continuous.ContinuousChartWidget
Details >>
Could not create the view: Could not initialize class de.zft.kommunikationsframework_gui_common.widgets.chartwidget.binary.BinaryChartWidget
<< Details
java.lang.NoClassDefFoundError: Could not initialize class de.zft.kommunikationsframework_gui_common.widgets.chartwidget.binary.BinaryChartWidget
	at de.zft.maintelrob.gui.views.LogicView.initGUI(LogicView.java:168)
	at de.zft.maintelrob.gui.views.BaseDataView.createPartControl(BaseDataView.java:117)
	at org.eclipse.ui.internal.ViewReference.createPartHelper(ViewReference.java:375)
	at org.eclipse.ui.internal.ViewReference.createPart(ViewReference.java:226)
	at org.eclipse.ui.internal.WorkbenchPartReference.getPart(WorkbenchPartReference.java:599)
	at org.eclipse.ui.internal.PartPane.setVisible(PartPane.java:310)
	at org.eclipse.ui.internal.ViewPane.setVisible(ViewPane.java:542)
	at org.eclipse.ui.internal.presentations.PresentablePart.setVisible(PresentablePart.java:185)
	at org.eclipse.ui.internal.presentations.util.PresentablePartFolder.select(PresentablePartFolder.java:265)
	at org.eclipse.ui.internal.presentations.util.LeftToRightTabOrder.select(LeftToRightTabOrder.java:64)
	at org.eclipse.ui.internal.presentations.util.TabbedStackPresentation.selectPart(TabbedStackPresentation.java:479)
	at org.eclipse.ui.internal.PartStack.refreshPresentationSelection(PartStack.java:1262)
	at org.eclipse.ui.internal.PartStack.setSelection(PartStack.java:1215)
	at org.eclipse.ui.internal.PartStack.showPart(PartStack.java:1614)
	at org.eclipse.ui.internal.PartStack.createControl(PartStack.java:659)
	at org.eclipse.ui.internal.PartStack.createControl(PartStack.java:585)
	at org.eclipse.ui.internal.PartSashContainer.createControl(PartSashContainer.java:573)
	at org.eclipse.ui.internal.PerspectiveHelper.activate(PerspectiveHelper.java:269)
	at org.eclipse.ui.internal.Perspective.onActivate(Perspective.java:980)
	at org.eclipse.ui.internal.WorkbenchPage.onActivate(WorkbenchPage.java:2627)
	at org.eclipse.ui.internal.WorkbenchWindow$26.run(WorkbenchWindow.java:3077)
	at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:66)
	at org.eclipse.ui.internal.WorkbenchWindow.setActivePage(WorkbenchWindow.java:3058)
	at org.eclipse.ui.internal.WorkbenchWindow.busyOpenPage(WorkbenchWindow.java:763)
	at org.eclipse.ui.internal.Workbench$18.runWithException(Workbench.java:1266)
	at org.eclipse.ui.internal.StartupThreading$StartupRunnable.run(StartupThreading.java:32)
	at org.eclipse.swt.widgets.Synchronizer.syncExec(Synchronizer.java:230)
	at org.eclipse.ui.internal.UISynchronizer.syncExec(UISynchronizer.java:150)
	at org.eclipse.swt.widgets.Display.syncExec(Display.java:1097)
	at org.eclipse.ui.internal.StartupThreading.runWithWorkbenchExceptions(StartupThreading.java:55)
	at org.eclipse.ui.internal.Workbench.busyOpenWorkbenchWindow(Workbench.java:1262)
	at org.eclipse.ui.internal.Workbench.doOpenFirstTimeWindow(Workbench.java:2061)
	at org.eclipse.ui.internal.Workbench.openFirstTimeWindow(Workbench.java:1992)
	at org.eclipse.ui.internal.WorkbenchConfigurer.openFirstTimeWindow(WorkbenchConfigurer.java:188)
	at org.eclipse.ui.application.WorkbenchAdvisor.openWindows(WorkbenchAdvisor.java:790)
	at org.eclipse.ui.internal.Workbench$27.runWithException(Workbench.java:1640)
	at org.eclipse.ui.internal.StartupThreading$StartupRunnable.run(StartupThreading.java:32)
	at org.eclipse.swt.widgets.Synchronizer.syncExec(Synchronizer.java:230)
	at org.eclipse.ui.internal.UISynchronizer.syncExec(UISynchronizer.java:150)
	at org.eclipse.swt.widgets.Display.syncExec(Display.java:1097)
	at org.eclipse.ui.internal.StartupThreading.runWithoutExceptions(StartupThreading.java:110)
	at org.eclipse.ui.internal.Workbench.init(Workbench.java:1635)
	at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2655)
	at org.eclipse.ui.internal.Workbench.access$5(Workbench.java:2530)
	at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:701)
	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:336)
	at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:684)
	at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:157)
	at de.zft.kommunikationsframework_gui_common.Init.run(Init.java:89)
	at de.zft.kommunikationsframework_gui_common.rap.EntryPoint.createUI(EntryPoint.java:28)
	at org.eclipse.rap.rwt.internal.lifecycle.RWTLifeCycle.createUI(RWTLifeCycle.java:177)
	at org.eclipse.rap.rwt.internal.lifecycle.RWTLifeCycle$UIThreadController.run(RWTLifeCycle.java:290)
	at java.lang.Thread.run(Thread.java:745)
	at org.eclipse.rap.rwt.internal.lifecycle.UIThread.run(UIThread.java:107)


Could not create the view: Could not initialize class de.zft.kommunikationsframework_gui_common.widgets.codemirrorwidget.CodeMirrorWidget
Details >>
nametimestampenableInsertDeleteToggle Enable-Flag
1Zyklus 219nullmo/Zyklus 21900nullnull2015-10-14 16:13:21
2null00nullnull2015-10-14 16:33:33
3null00nullnull2015-10-14 16:33:45
idnamerootOrdnerrootOrdnerNamestarttimestampendtimestampzumCapturesyncServicesyncRequestdatetimeSet new start (now: 00:00,000)Set new end (now: 00:00,000)
00:00,000

/

00:00,000
Set Breakpoint
Speed:  1,00x
1xTimeSliderZyklusZyklusPictureViewerBreakpointDataViewCodeViewerCodeOrdnerLogicViewerChartViewerChartViewerChartViewer
Client Error

Details:

Error: Error: Operation "create" on target "w301" of type "null" failed:
Error in property parent of class rwt.widgets.base.ScrollBar in method setParent with incoming value '[object rwt.widgets.Text]': Is invalid!
Properties: 
parent = w300
style = HORIZONTAL


  Script: {"head":{},"operations":[["set","w3",{"defaultButton":"w214"}],["listen","w214",{"FocusOut":true}],["set","w214",{"text":"<< Details","mnemonicIndex":3}],["set","w215",{"children":["w300"]}],["create","w300","rwt.widgets.Text",{"parent":"w215","style":["LEFT","MULTI","H_SCROLL","V_SCROLL","BORDER"],"bounds":[0,0,1400,44],"tabIndex":29,"background":[255,255,255,255],"text":"java.lang.NoClassDefFoundError: Could not initialize class de.zft.kommunikationsframework_gui_common.widgets.chartwidget.binary.BinaryChartWidget\r\n\tat de.zft.maintelrob.gui.views.LogicView.initGUI(LogicView.java:168)\r\n\tat de.zft.maintelrob.gui.views.BaseDataView.createPartControl(BaseDataView.java:117)\r\n\tat org.eclipse.ui.internal.ViewReference.createPartHelper(ViewReference.java:375)\r\n\tat org.eclipse.ui.internal.ViewReference.createPart(ViewReference.java:226)\r\n\tat org.eclipse.ui.internal.WorkbenchPartReference.getPart(WorkbenchPartReference.java:599)\r\n\tat org.eclipse.ui.internal.PartPane.setVisible(PartPane.java:310)\r\n\tat org.eclipse.ui.internal.ViewPane.setVisible(ViewPane.java:542)\r\n\tat org.eclipse.ui.internal.presentations.PresentablePart.setVisible(PresentablePart.java:185)\r\n\tat org.eclipse.ui.internal.presentations.util.PresentablePartFolder.select(PresentablePartFolder.java:265)\r\n\tat org.eclipse.ui.internal.presentations.util.LeftToRightTabOrder.select(LeftToRightTabOrder.java:64)\r\n\tat org.eclipse.ui.internal.presentations.util.TabbedStackPresentation.selectPart(TabbedStackPresentation.java:479)\r\n\tat org.eclipse.ui.internal.PartStack.refreshPresentationSelection(PartStack.java:1262)\r\n\tat org.eclipse.ui.internal.PartStack.setSelection(PartStack.java:1215)\r\n\tat org.eclipse.ui.internal.PartStack.showPart(PartStack.java:1614)\r\n\tat org.eclipse.ui.internal.PartStack.createControl(PartStack.java:659)\r\n\tat org.eclipse.ui.internal.PartStack.createControl(PartStack.java:585)\r\n\tat org.eclipse.ui.internal.PartSashContainer.createControl(PartSashContainer.java:573)\r\n\tat org.eclipse.ui.internal.PerspectiveHelper.activate(PerspectiveHelper.java:269)\r\n\tat org.eclipse.ui.internal.Perspective.onActivate(Perspective.java:980)\r\n\tat org.eclipse.ui.internal.WorkbenchPage.onActivate(WorkbenchPage.java:2627)\r\n\tat org.eclipse.ui.internal.WorkbenchWindow$26.run(WorkbenchWindow.java:3077)\r\n\tat org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:66)\r\n\tat org.eclipse.ui.internal.WorkbenchWindow.setActivePage(WorkbenchWindow.java:3058)\r\n\tat org.eclipse.ui.internal.WorkbenchWindow.busyOpenPage(WorkbenchWindow.java:763)\r\n\tat org.eclipse.ui.internal.Workbench$18.runWithException(Workbench.java:1266)\r\n\tat org.eclipse.ui.internal.StartupThreading$StartupRunnable.run(StartupThreading.java:32)\r\n\tat org.eclipse.swt.widgets.Synchronizer.syncExec(Synchronizer.java:230)\r\n\tat org.eclipse.ui.internal.UISynchronizer.syncExec(UISynchronizer.java:150)\r\n\tat org.eclipse.swt.widgets.Display.syncExec(Display.java:1097)\r\n\tat org.eclipse.ui.internal.StartupThreading.runWithWorkbenchExceptions(StartupThreading.java:55)\r\n\tat org.eclipse.ui.internal.Workbench.busyOpenWorkbenchWindow(Workbench.java:1262)\r\n\tat org.eclipse.ui.internal.Workbench.doOpenFirstTimeWindow(Workbench.java:2061)\r\n\tat org.eclipse.ui.internal.Workbench.openFirstTimeWindow(Workbench.java:1992)\r\n\tat org.eclipse.ui.internal.WorkbenchConfigurer.openFirstTimeWindow(WorkbenchConfigurer.java:188)\r\n\tat org.eclipse.ui.application.WorkbenchAdvisor.openWindows(WorkbenchAdvisor.java:790)\r\n\tat org.eclipse.ui.internal.Workbench$27.runWithException(Workbench.java:1640)\r\n\tat org.eclipse.ui.internal.StartupThreading$StartupRunnable.run(StartupThreading.java:32)\r\n\tat org.eclipse.swt.widgets.Synchronizer.syncExec(Synchronizer.java:230)\r\n\tat org.eclipse.ui.internal.UISynchronizer.syncExec(UISynchronizer.java:150)\r\n\tat org.eclipse.swt.widgets.Display.syncExec(Display.java:1097)\r\n\tat org.eclipse.ui.internal.StartupThreading.runWithoutExceptions(StartupThreading.java:110)\r\n\tat org.eclipse.ui.internal.Workbench.init(Workbench.java:1635)\r\n\tat org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2655)\r\n\tat org.eclipse.ui.internal.Workbench.access$5(Workbench.java:2530)\r\n\tat org.eclipse.ui.internal.Workbench$5.run(Workbench.java:701)\r\n\tat org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:336)\r\n\tat org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:684)\r\n\tat org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:157)\r\n\tat de.zft.kommunikationsframework_gui_common.Init.run(Init.java:89)\r\n\tat de.zft.kommunikationsframework_gui_common.rap.EntryPoint.createUI(EntryPoint.java:28)\r\n\tat org.eclipse.rap.rwt.internal.lifecycle.RWTLifeCycle.createUI(RWTLifeCycle.java:177)\r\n\tat org.eclipse.rap.rwt.internal.lifecycle.RWTLifeCycle$UIThreadController.run(RWTLifeCycle.java:290)\r\n\tat java.lang.Thread.run(Thread.java:745)\r\n\tat org.eclipse.rap.rwt.internal.lifecycle.UIThread.run(UIThread.java:107)\r\n","editable":false}],["create","w301","rwt.widgets.ScrollBar",{"parent":"w300","style":["HORIZONTAL"]}],["create","w302","rwt.widgets.ScrollBar",{"parent":"w300","style":["VERTICAL"]}]]}
  Stack: Error: Operation "create" on target "w301" of type "null" failed:
Error in property parent of class rwt.widgets.base.ScrollBar in method setParent with incoming value '[object rwt.widgets.Text]': Is invalid!
Properties: 
parent = w300
style = HORIZONTAL

    at Object.rwt.remote.MessageProcessor._processError (http://127.0.0.1:10080/rwt-resources/rap-client.js:61943:11)
    at Object.rwt.remote.MessageProcessor.processOperationArray (http://127.0.0.1:10080/rwt-resources/rap-client.js:61784:12)
    at Object.rwt.remote.MessageProcessor.processMessage (http://127.0.0.1:10080/rwt-resources/rap-client.js:61736:12)
    at rwt.qx.Class.define.members._handleSuccess (http://127.0.0.1:10080/rwt-resources/rap-client.js:62420:19)
    at Object._success (http://127.0.0.1:10080/rwt-resources/rap-client.js:31487:43)
    at Object.rwt.remote.Request._onReadyStateChange (http://127.0.0.1:10080/rwt-resources/rap-client.js:31538:18)
    at XMLHttpRequest. (http://127.0.0.1:10080/rwt-resources/rap-client.js:624:17)
  Debug: on
  Request: {"head":{"requestCounter":4},"operations":[["set","w212",{"selection":[0,54]}],["set","w3",{"activeControl":"w214"}],["notify","w214","Selection",{"button":1,"shiftKey":false,"ctrlKey":false,"altKey":false}],["set","w1",{"cursorLocation":[1382,577],"focusControl":"w214"}]]}
[/code]

On RAP 3.0, I don't have exactly this problem, but in general clicking on "Details >>" on similiar errors worked.
Comment 1 Ivan Furnadjiev CLA 2015-12-16 03:12:58 EST
The client crash is already fixed with change https://git.eclipse.org/r/#/c/60177/. Please check the upcoming RAP 3.1M4.

*** This bug has been marked as a duplicate of bug 482981 ***