My Oracle Support Banner

ClassCastException When Editing "If Condition" Parameters in JDeveloper (Doc ID 2174532.1)

Last updated on OCTOBER 01, 2021

Applies to:

Oracle Service Bus - Version 12.2.1.0.0 and later
Information in this document applies to any platform.

Symptoms


When working in an OSB project, if you add an 'IF' action and then define that IF action as a condition, you can then define the parameters to evaluate accordingly with your process logic. But if you then try to edit the IF action, in the graphical editor the changes seem to be active, but if you analyze the template's code, nothing has been updated. You can also close and reopen the pipeline to see that no changes occurred in the IF action.

Steps to reproduce the problem:
1. Open an OSB project in JDev that contains a pipeline and an IF action
2. Open the pipeline
3. Open the existing IF action. Edit a value within the action and click OK.
4. Verify that the edit was not reflected in the pipeline's code. close and reopen the pipeline to see that the IF action remains with the original value


The following stack trace occurs when trying to open the pipeline:

Performing action (51) Refresh IfEditDemo.jpr [ from ProjectNavigatorWindow ] [ for ( IfEditDemo.pipeline, IfEditDemo.jpr, IfEditDemo.jws ) ]
Performing action (13) Save All [ from InspectorWindowImpl ] [ for ( IfEditDemo.pipeline, IfEditDemo.jpr, IfEditDemo.jws ) ]
Invoking command: [ from InspectorWindowImpl ] [ for ( IfEditDemo.pipeline, IfEditDemo.jpr, IfEditDemo.jws ) ]
Performing action (18) Copy [ from BugLogPage ] [ for ( <none>, IfEditDemo.jpr, IfEditDemo.jws ) ]
Uncaught exception
java.lang.ClassCastException: sun.awt.image.BufImgSurfaceData cannot be cast to sun.java2d.xr.XRSurfaceData
sun.java2d.xr.XRPMBlitLoops.cacheToTmpSurface(XRPMBlitLoops.java:145)
sun.java2d.xr.XrSwToPMBlit.Blit(XRPMBlitLoops.java:353)
sun.java2d.pipe.DrawImage.blitSurfaceData(DrawImage.java:959)
sun.java2d.pipe.DrawImage.renderImageCopy(DrawImage.java:577)
sun.java2d.pipe.DrawImage.copyImage(DrawImage.java:67)
sun.java2d.pipe.DrawImage.copyImage(DrawImage.java:1014)
sun.java2d.SunGraphics2D.drawImage(SunGraphics2D.java:3318)
sun.java2d.SunGraphics2D.drawImage(SunGraphics2D.java:3296)
jx.s.RepaintManager$PaintManager.paintDoubleBuffered(RepaintManager.java:1582)
jx.s.RepaintManager$PaintManager.paint(RepaintManager.java:1495)
jx.s.BufferStrategyPaintManager.paint(BufferStrategyPaintManager.java:306)
jx.s.RepaintManager.paint(RepaintManager.java:1265)
jx.s.JComponent.paint(JComponent.java:1042)
j.a.GraphicsCallback$PaintCallback.run(GraphicsCallback.java:39) 

 

Cause

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Symptoms
Cause
Solution
References


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.