Skip to Main Content

Java Development Tools

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

Error With Stacked Bar Chart

Hammam SamirApr 8 2018 — edited Apr 15 2018

Hello All,

I'm using Jdev version 12.2.1.2.0

I Have a parent table and a Child Table, in the Parent Table I have 3 transient attribute to calculate the Sum of The Child Table

I got the Sum  using groovy syntax   ChildTable.sum("Attribute")

It works Fine when Running the App module in JPR

I Created a JSF Page and Dropped the VO to the page as a stacked Bar Chart, Choosed The 3 Transient Attribute as Bars and one attribute as Axis,

when I run the Page , i got the following Error

Illegal character in path at index 21: file:/C:/Users/Hammam Delmar/AppData/Roaming/JDeveloper/system12.2.1.2.42.161008.1648/o.j2ee/drs/Application3/ViewControllerWebApp.war/WEB-INF/classes/model/FamilyViewRow.bcs

Reviewing the bcs file, i found no errors  and again it works fine when ruun it in Jpr

Someone Can Help me With That

Thanks

Hammam

This post has been answered by Timo Hahn on Apr 9 2018
Jump to Answer

Comments

Timo Hahn
Answer

Have you tried to open the file in a normal editor?

Sometimes such an editor adds some bytes to the file (UTF-8 bytes) which will then result in such an error.

Or try to move the code into the VO meta data.

Timo

Marked as Answer by Hammam Samir · Sep 27 2020
Hammam Samir

HI,

Thanks Mr. Timo for your reply,

I opened the File in the notepad, I Saved and replaced the file using the unicode and ANSI , when opened it again in the Jdev editor i really found Some Extra Characters and a space between every character in the file , i replaced the code a gain in the notepad and run the application , but the same error still occur ,

I changed the transient attribute to use vo row implementation java file and it worked , but please for future use, can you advice how to move the Groovy code to the VO meta data?

Thanks for your help

Hammam

Hammam Samir

HI,

After Searching the Internet , I found that starting from version 12.2 , All Transient attributes Groovy Expressions will be saved in a separate bcs file to improve the Performance, When adding the code directly to the xml , the framework will ask to locate the bcs file, it's a problem with the Editor as you mentioned, but using an older version will Perform correctly,

Thank you

1 - 3
Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on May 13 2018
Added on Apr 8 2018
3 comments
214 views