java.lang.ClassCastException: java.lang.Integer

Oracle Community | 807549 | 1 decade ago
  1. 0

    stack dump problem

    Oracle Community | 1 decade ago | 807549
    java.lang.ClassCastException: java.lang.Integer
  2. 0

    Inserting Long value into HSQLDB numeric column

    Google Groups | 6 years ago | Shannon
    java.lang.ClassCastException: java.lang.Integer
  3. 0

    GridView error "ClassCastException: java.lang.Integer"

    Stack Overflow | 4 years ago | Akyl
    java.lang.ClassCastException: java.lang.Integer
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Problem Running Chapter 6 Earthquake - Page 2 | 11 months ago
    java.lang.RuntimeException: Unable to start activity ComponentInfo{net.iamcorbin.earthquake/net.iamcorbin.earthquake.UserPreferences}: java.lang.ClassCastException: java.lang.Integer
  6. 0

    STR: 1) Alter a level property to use the captionColumn attribute to use a column in the DB whose data type is an integer (and probably other non-string types) 2) Use an application that takes advantage of the captionColumn attribute 3) An exception similar to the following will occur: java.lang.ClassCastException: java.lang.Integer at mondrian.rolap.RolapMember.getName( at org.freeolap.olap.mondrian.MondrianCube.fillMembers( at org.freeolap.olap.mondrian.MondrianCube.fillMembers( at org.freeolap.olap.mondrian.MondrianCube.fillMembers( at org.freeolap.olap.mondrian.MondrianCube.fillMembers( at org.freeolap.olap.mondrian.MondrianCube.fillMembers( at org.freeolap.olap.mondrian.MondrianCube.exploreCube( at org.freeolap.olap.mondrian.MondrianCube.connect( at org.freeolap.FreeOlapPlugin.doConnect( at org.freeolap.FreeOlapPlugin.connect( at org.freeolap.ApplicationWorkbenchWindowAdvisor.postWindowOpen( at org.eclipse.ui.internal.WorkbenchWindow.fireWindowOpened( at at org.eclipse.ui.internal.Workbench.busyOpenWorkbenchWindow( at org.eclipse.ui.internal.Workbench.doOpenFirstTimeWindow( at org.eclipse.ui.internal.Workbench.access$10( at org.eclipse.ui.internal.Workbench$ at org.eclipse.ui.internal.Workbench.runStartupWithProgress( at org.eclipse.ui.internal.Workbench.openFirstTimeWindow( at org.eclipse.ui.internal.WorkbenchConfigurer.openFirstTimeWindow( at org.eclipse.ui.application.WorkbenchAdvisor.openWindows( at org.eclipse.ui.internal.Workbench.init( at org.eclipse.ui.internal.Workbench.runUI( at org.eclipse.ui.internal.Workbench.createAndRunWorkbench( at org.eclipse.ui.PlatformUI.createAndRunWorkbench( at at org.eclipse.core.internal.runtime.PlatformActivator$ at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication( at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start( at at at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke( at sun.reflect.DelegatingMethodAccessorImpl.invoke( at java.lang.reflect.Method.invoke( at org.eclipse.core.launcher.Main.invokeFramework( at org.eclipse.core.launcher.Main.basicRun( at at org.eclipse.core.launcher.Main.main( In this instance I was using FreeAnalysis. It looks as if getName() is expecting to return a string, but if I'm not mistaken it's annoyed because the data type of the column being retrieved is not a string, but I could just be flat wrong because the stack trace says line 377, but 377 occurs between these two functions on a blank line: void makeUniqueName(HierarchyUsage hierarchyUsage) { if (parentMember == null && key != null) { String n = hierarchyUsage.getName(); if (n != null) { String name = keyToString(key); n = Util.quoteMdxIdentifier(n); this.uniqueName = Util.makeFqName(n, name); if (getLogger().isDebugEnabled()) { getLogger().debug("RolapMember.makeUniqueName: uniqueName=" +uniqueName); } } } } private void setUniqueName(Object key) { String name = keyToString(key); this.uniqueName = (parentMember == null) ? Util.makeFqName(getHierarchy(), name) : Util.makeFqName(parentMember, name); } ... which leads me to believe that the current version of FreeAnalysis may have been compiled with an earlier version of mondrian, so I'm really not certain where this error is truly happening. At the very least what I'm asking for is: catch this exception and re-throw it with a more descriptive message. As a last resort I just did a search/replace to remove all captionColumn entries in my schema on the off chance that guess might fix it (after having exhausted all other attempts at fixing it by looking at the other more likely suspects), and it just so happened that it did.

    Pentaho BI Platform Tracking | 9 years ago | Brian Vandenberg
    java.lang.ClassCastException: java.lang.Integer

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.ClassCastException


      at postfix2.calculatePostfix()
    2. Unknown
      1. postfix2.calculatePostfix(
      2. TheFrame.actionPerformed(
      2 frames
    3. Java RT
      1. java.awt.Button.processActionEvent(Unknown Source)
      2. java.awt.Button.processEvent(Unknown Source)
      3. java.awt.Component.dispatchEventImpl(Unknown Source)
      4. java.awt.Component.dispatchEvent(Unknown Source)
      5. java.awt.EventQueue.dispatchEvent(Unknown Source)
      6. java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
      7. java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
      8. java.awt.EventDispatchThread.pumpEvents(Unknown Source)
      9. java.awt.EventDispatchThread.pumpEvents(Unknown Source)
      10. Source)
      10 frames