Topic
IC4NOTICE: developerWorks Community will be offline May 29-30, 2015 while we upgrade to the latest version of IBM Connections. For more information, read our upgrade FAQ.
1 reply Latest Post - ‏2013-08-12T15:24:27Z by GalileoPerez
AviAbrami
AviAbrami
1 Post
ACCEPTED ANSWER

Pinned topic RAD 8.0.2 Visual Editor Copy Problem

‏2013-08-11T12:25:31Z |

I am using IBM Rational Application Developer (RAD) 8.0.2 on Windows 7
I open a java class in the Visual Editor
The class extends javax.swing.JPanel
The JPanel contains my class which extends javax.swing.JTextField
When I select the text field and click the right mouse button, I get a popup menu which has a Copy item.
When I choose Copy, the RAD log file contains:

java.lang.RuntimeException: An invalid XML character (Unicode:0xFFFF) was found ...
  at org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl$Escape.convert(Unknown Source)

The text field does contain the invalid XML character (on purpose).
I managed to locate the source code for method "convert" of class "Escape"
and so discovered why the exception is thrown.

My question is: How can I get the Copy to work with my text field class
that contains the character 0xFFFF ?

  • GalileoPerez
    GalileoPerez
    5 Posts
    ACCEPTED ANSWER

    Re: RAD 8.0.2 Visual Editor Copy Problem

    ‏2013-08-12T15:24:27Z  in response to AviAbrami

    Hi,

    you need to be sure that you are not using unicode characters beyond 0xFFFF which is the highest allowed by unicode 3.0 which comes for Java 1.4 the one supported for Java Visual Editor. 

    You can also represent the invalid character in the format \uxxxx.

    Hope this works for you!