On January 27th, this site will be read-only as we migrate to Oracle Forums for an improved community experience. You will not be able to initiate activity until January 30th, when you will be able to use this site as normal.

    Forum Stats

  • 3,889,532 Users
  • 2,269,755 Discussions
  • 7,916,774 Comments

Discussions

unable to open jfr

I install JRockit Mission Control successfully, and I can open the sample jfr, however when I open other jfr. following exception throw.  anyone can help?

Could not open the editor: An exception was thrown during initialization

java.lang.ClassCastException: Class cannot be casted to array

at com.jrockit.mc.flightrecorder.internal.parser.binary.factories.StackTraceFactory.createTrace(StackTraceFactory.java:72)

at com.jrockit.mc.flightrecorder.internal.parser.binary.factories.StackTraceFactory.createObject(StackTraceFactory.java:52)

at com.jrockit.mc.flightrecorder.internal.parser.binary.PositionalMapEntry.setCurrentObject(PositionalMapEntry.java:85)

at com.jrockit.mc.flightrecorder.internal.parser.binary.PositionalMapEntry.moveToNext(PositionalMapEntry.java:96)

at com.jrockit.mc.flightrecorder.internal.parser.binary.PositionalMapEntry.get(PositionalMapEntry.java:56)

at com.jrockit.mc.flightrecorder.internal.parser.binary.PositionalLongMap.get(PositionalLongMap.java:121)

at com.jrockit.mc.flightrecorder.internal.parser.binary.PoolValueParser.read(PoolValueParser.java:31)

at com.jrockit.mc.flightrecorder.internal.parser.binary.MainParser.read(MainParser.java:112)

at com.jrockit.mc.flightrecorder.internal.parser.binary.MainParser.read(MainParser.java:49)

at com.jrockit.mc.flightrecorder.provider.RepositoryBuilder.createRepository(RepositoryBuilder.java:63)

at com.jrockit.mc.flightrecorder.provider.RepositoryBuilder.build(RepositoryBuilder.java:52)

at com.jrockit.mc.flightrecorder.internal.JRockitFileProvider.createRepositoryFromFile(JRockitFileProvider.java:26)

at com.jrockit.mc.flightrecorder.spi.FileProvider.createRepository(FileProvider.java:43)

at com.jrockit.mc.flightrecorder.FlightRecording.<init>(FlightRecording.java:69)

at com.jrockit.mc.flightrecorder.ui.FlightRecordingEditor.createRecording(FlightRecordingEditor.java:134)

at com.jrockit.mc.flightrecorder.ui.FlightRecordingEditor.initialize(FlightRecordingEditor.java:47)

at com.jrockit.mc.components.ui.design.DesignEditor.init(DesignEditor.java:85)

at org.eclipse.ui.internal.EditorManager.createSite(EditorManager.java:828)

at org.eclipse.ui.internal.EditorReference.createPartHelper(EditorReference.java:647)

at org.eclipse.ui.internal.EditorReference.createPart(EditorReference.java:465)

at org.eclipse.ui.internal.WorkbenchPartReference.getPart(WorkbenchPartReference.java:595)

at org.eclipse.ui.internal.PartPane.setVisible(PartPane.java:313)

at org.eclipse.ui.internal.presentations.PresentablePart.setVisible(PresentablePart.java:180)

at org.eclipse.ui.internal.presentations.util.PresentablePartFolder.select(PresentablePartFolder.java:270)

at org.eclipse.ui.internal.presentations.util.LeftToRightTabOrder.select(LeftToRightTabOrder.java:66)

at org.eclipse.ui.internal.presentations.util.TabbedStackPresentation.selectPart(TabbedStackPresentation.java:474)

at org.eclipse.ui.internal.PartStack.refreshPresentationSelection(PartStack.java:1245)

at org.eclipse.ui.internal.PartStack.setSelection(PartStack.java:1199)

at org.eclipse.ui.internal.PartStack.showPart(PartStack.java:1597)

at org.eclipse.ui.internal.PartStack.add(PartStack.java:494)

at org.eclipse.ui.internal.EditorStack.add(EditorStack.java:103)

at org.eclipse.ui.internal.PartStack.add(PartStack.java:480)

at org.eclipse.ui.internal.EditorStack.add(EditorStack.java:112)

at org.eclipse.ui.internal.EditorSashContainer.addEditor(EditorSashContainer.java:64)

at org.eclipse.ui.internal.EditorAreaHelper.addToLayout(EditorAreaHelper.java:226)

at org.eclipse.ui.internal.EditorAreaHelper.addEditor(EditorAreaHelper.java:213)

at org.eclipse.ui.internal.EditorManager.createEditorTab(EditorManager.java:810)

at org.eclipse.ui.internal.EditorManager.openEditorFromDescriptor(EditorManager.java:707)

at org.eclipse.ui.internal.EditorManager.openEditor(EditorManager.java:669)

at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditorBatched(WorkbenchPage.java:2942)

at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(WorkbenchPage.java:2850)

at org.eclipse.ui.internal.WorkbenchPage.access$11(WorkbenchPage.java:2842)

at org.eclipse.ui.internal.WorkbenchPage$10.run(WorkbenchPage.java:2793)

at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)

at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2789)

at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2773)

at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2756)

at com.jrockit.mc.flightrecorder.ui.FlightRecordingOpener.open(FlightRecordingOpener.java:148)

at com.jrockit.mc.flightrecorder.ui.FlightRecordingOpener.openFile(FlightRecordingOpener.java:138)

at com.jrockit.mc.flightrecorder.ui.FlightRecordingOpener.openIfValidFile(FlightRecordingOpener.java:102)

at com.jrockit.mc.flightrecorder.ui.FlightRecordingOpener.open(FlightRecordingOpener.java:93)

at com.jrockit.mc.rcp.application.commands.OpenFile.execute(OpenFile.java:34)

at com.jrockit.mc.commands.Statement.execute(Statement.java:59)

at com.jrockit.mc.commands.CommandsPlugin.execute(CommandsPlugin.java:122)

at com.jrockit.mc.commands.CommandsPlugin.execute(CommandsPlugin.java:109)

at com.jrockit.mc.commands.CommandsPlugin.execute(CommandsPlugin.java:98)

at com.jrockit.mc.rcp.application.ApplicationWorkbenchWindowAdvisor.postWindowOpen(ApplicationWorkbenchWindowAdvisor.java:94)

at org.eclipse.ui.internal.WorkbenchWindow.fireWindowOpened(WorkbenchWindow.java:1359)

at org.eclipse.ui.internal.WorkbenchWindow.open(WorkbenchWindow.java:826)

at org.eclipse.ui.internal.Workbench$70.runWithException(Workbench.java:3720)

at org.eclipse.ui.internal.StartupThreading$StartupRunnable.run(StartupThreading.java:31)

at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)

at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:135)

at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:4140)

at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3757)

at org.eclipse.ui.application.WorkbenchAdvisor.openWindows(WorkbenchAdvisor.java:803)

at org.eclipse.ui.internal.Workbench$33.runWithException(Workbench.java:1595)

at org.eclipse.ui.internal.StartupThreading$StartupRunnable.run(StartupThreading.java:31)

at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)

at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:135)

at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:4140)

at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3757)

at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2604)

at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2494)

at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:674)

at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)

at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:667)

at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)

at com.jrockit.mc.rcp.application.Application.start(Application.java:24)

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:344)

at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

at java.lang.reflect.Method.invoke(Method.java:597)

at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:622)

at org.eclipse.equinox.launcher.Main.basicRun(Main.java:578)

at org.eclipse.equinox.launcher.Main.run(Main.java:1411)

at org.eclipse.equinox.launcher.Main.main(Main.java:1386)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

at java.lang.reflect.Method.invoke(Method.java:597)

at com.jrockit.mc.rcp.start.MCMain.run(MCMain.java:106)

at com.jrockit.mc.rcp.start.MCMain.main(MCMain.java:77)

jrmcimage.png