Sun Relax NG converter

I am trying to use the Sun Relax NG Converter version 20030225 but get some exceptions.
C:\Dev\TheWineCellarBook\xml\sunconverter>java -jar rngconv.jar wineXML.xsd > wineXML.rng
Exception in thread "main" java.lang.ClassCastException
at com.sun.msv.datatype.xsd.TypeIncubator.derive(TypeIncubator.java:216)
at com.sun.msv.reader.datatype.xsd.XSDatatypeExp$1.derive(XSDatatypeExp.java:92)
at com.sun.msv.reader.datatype.xsd.RestrictionState.annealType(RestrictionState.java:41)
at com.sun.msv.reader.datatype.xsd.TypeWithOneChildState.makeType(TypeWithOneChildState.java
:42)
at com.sun.msv.reader.datatype.xsd.TypeState._makeType(TypeState.java:76)
at com.sun.msv.reader.datatype.xsd.TypeState.endSelf(TypeState.java:52)
at com.sun.msv.reader.SimpleState.endElement(SimpleState.java:100)
at org.xml.sax.helpers.XMLFilterImpl.endElement(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source)
at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(
Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)
at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
at com.sun.msv.reader.util.GrammarLoader._loadSchema(GrammarLoader.java:511)
at com.sun.msv.reader.util.GrammarLoader.parse(GrammarLoader.java:331)
at com.sun.msv.reader.util.GrammarLoader.loadSchema(GrammarLoader.java:178)
at com.sun.msv.writer.relaxng.Driver.main(Unknown Source)
I am on Windows XP Pro and I am not familar with Java (version installed is j2re1.4.2_01)
Would appreciate any hints on what I am doing wrong.
Best regards
Werner

Yes, I understand that it's not sure and its depend on
the factory. In the case of the JDK1.5's
factory, what's append ?No idea. I let the cowboys deal with Beta products and adopt when it's stable.
I have no opinion on Relax NG, I just want know if it
is understanded by the jdk.
And I'm a litlle boried to download xxx megas just for
that.xxx megas would be a great name for a porn-site.
Thank's for your help.Do you have a slow connection? It shouldn't be that big of a deal. It would be nice if we could just get the JDK without the install but oh well...

Similar Messages

  • Access MS-Access using JDBC ODBC bridge from Sun AMD64

    Hi,
    We are trying to configure a communication channel using the JDBC adapter. We are setting the driver to the JDBC-ODBC bridge driver and trying to access an MS Acess database from the PI server(sun amd64). When we set the driver to the JDBC-ODBC bridge, the J2EE engine tries to restart immediately and does not start. The std_server.out contains the following error:
    Service com.sap.aii.adapter.jdbc.svc started. (234 ms).
    1016 sun.io.CharToByteASCII::convert (370 bytes)
    1017 ! com.sap.sql.jdbc.common.CommonPreparedStatement::close (119
    bytes)
    ld.so.1: jlaunch: fatal: relocation error:
    file /usr/j2se/jre/lib/amd64/libJdbcO
    dbc.so: symbol SQLAllocEnv: referenced symbol not found
    Has anybody been able to configure the JDBC-ODBC bridge driver for MS Access? Also, has anybody used the database vendor(MS) drivers? If so, where are they available.
    Thanks in advance
    Vipin

    Hi
    Please go through below links that would be helpful to you
    SAP Network Blog: Connecting to MS Access using receiver JDBC Adapter (Without DSN)
    /people/sameer.shadab/blog/2005/10/24/connecting-to-ms-access-using-receiver-jdbc-adapter-without-dsn
    /people/sap.user72/blog/2005/06/01/file-to-jdbc-adapter-using-sap-xi-30
    If required Try the following driver. I havent used it but its available.
    HXTT Access is such a type 4 driver at http://www.hxtt.net/en/software/access/document.html .
    Thanks
    Swarup

  • Converting String to boolean not working

    Hello there - I am having a bit of trouble - I am trying to write a program to evaluate boolean expressions (fully parenthesized) As StringTokenizer goes through the expression, the boolean values are being pushed (as Boolean objects) and popped (converted to String) correctly, but the expression I am using to evaluate them is evaluating false (see my debug below)
    In my current code, I have op1 and op2 coming off of the stack as Strings but am not sure if Boolean.getBoolean() is the right method to use to convert them to boolean values. The Sun docs weren't very helpful and there wasn't anything that I could find on the Sun forum about converting Strings to boolean (vs. Boolean). This is what my evaluate code looks like:
    if (operation.equals("||")) {
    opB1 = Boolean.getBoolean(op1);
    opB2 = Boolean.getBoolean(op2);
    test = (opB1 || opB2);
    System.out.println("test = (opB1 || opB2) " + (opB1 || opB2)); //debug
    System.out.println("opB1 = " + opB1 + " opB2 = " + opB2); //debug
    In the above example - using the expression "( ( 1 < 2 ) && ( 2 > 1 ) )" my debug reads like this:
    Operator added to stack is (
    Operator added to stack is (
    Operand added to stack is 1
    Operator added to stack is <
    Operand added to stack is 2
    Operation removed from stack is <
    Operand removed from stack is 2
    Operand removed from stack is 1
    Boolean operand added to stack is true
    Operation removed from stack is (
    Operator added to stack is &&
    Operator added to stack is (
    Operand added to stack is 2
    Operator added to stack is >
    Operand added to stack is 1
    Operation removed from stack is >
    Operand removed from stack is 1
    Operand removed from stack is 2
    Boolean operand added to stack is true
    Operation removed from stack is (
    Operation removed from stack is &&
    Operand removed from stack is true //NOTE: values are both true
    Operand removed from stack is true
    test = (opB1 && opB2) false //NOTE: expression is evaluating as false
    opB1 = false opB2 = false //NOTE: converted String went from true to false!!
    Boolean operand added to stack is false
    Operation removed from stack is (
    When I changed the type of opB1 & opB2 to type Boolean, and use:
    if (operation.equals("||")) {
    opB1 = Boolean.valueOf(op1);
    opB2 = Boolean.valueOf(op2);
    test = (opB1 || opB2);
    System.out.println("test = (opB1 || opB2) " + (opB1 || opB2)); //debug
    System.out.println("opB1 = " + opB1 + " opB2 = " + opB2); //debug
    I get an error that || and && can't be used on type Boolean.
    I've spent several hours on this boolean part alone - any suggestions? (BTW - sorry for the long message!)

    You're a genius!! Wow I never would have figured that one out in a million years!! BTW - can you tell me how you got your code to be so nicely formatted in the post?
    Everytime I cut and paste - it looks aweful and all of the indentations are gone...
    Thanks again!!!

  • WDJ convert base64binary to image

    Hi Guys,
    I have an issue where I want to display an image that is stored in a base64binary Business Object attribute on an application service and convert it back to an image on the WDJ view.
    I have tried first displaying the response content as text, what comes back seems to be a relative path i.e. ../../folder1/folder2/image.jpg
    followed by a whole stream of session-id looking numbers.
    That obviously didnt work as it was relative & i tried adding the correct start for the path but that didnt work either.
    I then tried looking at taking the .toString() of the response attribute & setting that as reference for an image. Unfortunately that doesnt work either.
    I'm now stuck with ideas. I know that it is possible as the WS Navigator can provide the file as a download.
    Any ideas or pointers for where to look.
    Also, any thoughts about whether base64binary is the right attribute to be storing the image as.
    Cheers.
    Edited by: Kelsall Mark on May 26, 2010 5:47 PM

    hey Kelsall,
    I have came across a thread on sun java forum [converting base64binary to image|/thread/5161771 [original link is broken];. Hope this would help.
    please let me know status,
    Good Luck,
    Nikhil

  • Sun.io.MalformedInputException

    I am trying to open a java source code in Oracle JDeveloper 9.0.3.1 and am receiving this exception!
    What does this mean?
    I am able to open the same java source code in any other normal text editor!
    Is this a JDeveloper bug?
    sun.io.MalformedInputException
         int sun.io.ByteToCharUTF8.convert(byte[], int, int, char[], int, int)
              ByteToCharUTF8.java:152
         int java.io.InputStreamReader.convertInto(char[], int, int)
              InputStreamReader.java:137
         int java.io.InputStreamReader.fill(char[], int, int)
              InputStreamReader.java:186
         int java.io.InputStreamReader.read(char[], int, int)
              InputStreamReader.java:249
         void oracle.javatools.buffer.UnsynchronizedReader.fillBuffer()
              UnsynchronizedReader.java:162
         int oracle.javatools.buffer.UnsynchronizedReader.read()
              UnsynchronizedReader.java:85
         char[] oracle.javatools.buffer.AbstractTextBuffer.normalizeEOL(java.io.Reader, boolean)
              AbstractTextBuffer.java:1408
         void oracle.javatools.buffer.AbstractTextBuffer.read(java.io.Reader)
              AbstractTextBuffer.java:1261
         void oracle.ide.model.TextNode.loadURLContentIntoBuffer()
              TextNode.java:507
         void oracle.ide.model.TextNode.reopen()
              TextNode.java:218
         void oracle.ide.model.TextNode.open()
              TextNode.java:150
         oracle.javatools.buffer.TextBuffer oracle.ide.model.TextNode.acquireTextBuffer()
              TextNode.java:375
         void oracle.jdeveloper.ceditor.CodeEditor.initializeEditor(oracle.ide.addin.Context)
              CodeEditor.java:1238
         void oracle.jdeveloper.ceditor.CodeEditor.setContext(oracle.ide.addin.Context)
              CodeEditor.java:786
         oracle.ide.editor.Editor oracle.ideimpl.editor.EditorManagerImpl.createEditor(java.lang.Class, oracle.ide.addin.Context)
              EditorManagerImpl.java:1357
         oracle.ide.editor.Editor oracle.ideimpl.editor.EditorManagerImpl.openEditorInFrame(java.lang.Class, oracle.ide.addin.Context)
              EditorManagerImpl.java:646
         oracle.ide.editor.Editor oracle.ideimpl.editor.EditorManagerImpl.openDefaultEditorInFrame(oracle.ide.addin.Context)
              EditorManagerImpl.java:622
         boolean oracle.ideimpl.editor.EditorManagerImpl.handleDefaultAction(oracle.ide.addin.Context)
              EditorManagerImpl.java:2243
         boolean oracle.ide.ContextMenu.fireDefaultAction(oracle.ide.addin.Context)
              ContextMenu.java:343
         void oracle.ideimpl.explorer.BaseTreeExplorer.fireDefaultAction(java.awt.event.InputEvent)
              BaseTreeExplorer.java:1202
         void oracle.ideimpl.explorer.BaseTreeExplorer.dblClicked(java.awt.event.MouseEvent)
              BaseTreeExplorer.java:1448
         void oracle.ideimpl.explorer.BaseTreeExplorer.mouseReleased(java.awt.event.MouseEvent)
              BaseTreeExplorer.java:1469
         void oracle.ideimpl.explorer.CustomTree.processMouseEvent(java.awt.event.MouseEvent)
              CustomTree.java:171
         void java.awt.Component.processEvent(java.awt.AWTEvent)
              Component.java:3544
         void java.awt.Container.processEvent(java.awt.AWTEvent)
              Container.java:1164
         void java.awt.Component.dispatchEventImpl(java.awt.AWTEvent)
              Component.java:2593
         void java.awt.Container.dispatchEventImpl(java.awt.AWTEvent)
              Container.java:1213
         void java.awt.Component.dispatchEvent(java.awt.AWTEvent)
              Component.java:2497
         void java.awt.LightweightDispatcher.retargetMouseEvent(java.awt.Component, int, java.awt.event.MouseEvent)
              Container.java:2451
         boolean java.awt.LightweightDispatcher.processMouseEvent(java.awt.event.MouseEvent)
              Container.java:2216
         boolean java.awt.LightweightDispatcher.dispatchEvent(java.awt.AWTEvent)
              Container.java:2125
         void java.awt.Container.dispatchEventImpl(java.awt.AWTEvent)
              Container.java:1200
         void java.awt.Window.dispatchEventImpl(java.awt.AWTEvent)
              Window.java:922
         void java.awt.Component.dispatchEvent(java.awt.AWTEvent)
              Component.java:2497
         void java.awt.EventQueue.dispatchEvent(java.awt.AWTEvent)
              EventQueue.java:339
         boolean java.awt.EventDispatchThread.pumpOneEventForHierarchy(java.awt.Component)
              EventDispatchThread.java:131
         void java.awt.EventDispatchThread.pumpEventsForHierarchy(java.awt.Conditional, java.awt.Component)
              EventDispatchThread.java:98
         void java.awt.EventDispatchThread.pumpEvents(java.awt.Conditional)
              EventDispatchThread.java:93
         void java.awt.EventDispatchThread.run()
              EventDispatchThread.java:85
    Thanks in advance!

    sun.io.MalformedInputException
    This exception appears when running the follwing code:
    inputReader is obtained from a document that is tranfered via FTP to IFS.
    This error appears only when running on a Solaris platform (I tested with a windows platform and it work fine).
    Oracle version is 9i, IFS1.1
    Thanx This is how I obtain the Reader. This class is an Ifs Agent that respond to create events.
    public void processEvent(IfsEvent event) throws IfsException{
    Long objectId = event.getId();
    PublicObject po = getSession().getPublicObject(objectId);
    Document doc = (Document)po.getResolvedPublicObject();
    BufferedReader br = new BufferedReader(doc.getContentReader());
    someClass.readDocument(br);
    public boolean readDocument(Reader inputReader){
    FolderPathResolver resolver = new FolderPathResolver(ifsSession);
    BufferedReader bufferReader=new BufferedReader(inputReader);
    String line = "";
    StringBuffer file = new StringBuffer(1024);
    while ((line = bufferReader.readLine()) != null){
    file.append(line);
    I think that is something related to Reader but I don't know what....

  • Sun.io.MalformedInputException - wow

    Anybody seen one of these before?
    sun.io.MalformedInputException
      at sun.io.ByteToCharUTF8.convert(ByteToCharUTF8.java)
      at java.io.InputStreamReader.convertInto(InputStreamReader.java:127)
      at java.io.InputStreamReader.fill(InputStreamReader.java:176)
      at java.io.InputStreamReader.read(InputStreamReader.java:256)
      at java.io.BufferedReader.fill(BufferedReader.java:158)
      at java.io.BufferedReader.read1(BufferedReader.java:206)
      at java.io.BufferedReader.read(BufferedReader.java:280)
      at RecordReader.readRecord
      at Interpreter.interpret
      at NessDataManager.loadWas reading in a .csv file and it stopped rather abruptly with the above. Searched google for sun.io or sun api and not getting much.
    any help appreciated.
    m

    InputStreamReader converts bytes to chars (unicode) using a specified charset . I think the default is UTF-8 unless specified. It looks like the format of your inputfile does not match the UTF-8 format. You can specfiy the encoding when you create the InputStreamReader. Check the available constructors in the javadoc:
    http://java.sun.com/j2se/1.5.0/docs/api/java/io/InputStreamReader.html

  • Difference between files generated by converter

    hi to all
    can anybody plz tell me the diff between the .cap ,.ijc & .jca file generated by converter & use of those files while loading the SIM toolkit applet on the java card?
    thanks in advance
    Regards
    Divyesh.

    i but i think that will also not work .as Java Card
    2.1 development kit uses the same jar file as java
    card 2.1.2 kit.I think that the converter is different...you should try it.
    and one more thing Axalto views internally uses java
    card development kit 2.1.2 as a converter ,so how can
    i try with java card kit 2.1?Call the converter process directly using the command line with the jar. See the Java Card Development Kit documentation for details.
    -OR-
    Create a converter configuration for the Views tool by editing the Views converter configuration:
    VIEWS-Professional-1.8.X\config\converter\converter_globalconfig.xml
    - Add the Java Card 2.1 converter to the converter defintions at the top of the file
    - Add a custom <CardType> entry to your Views converter configuration file by copying an existing <CardType> entry. Change the CardType name value to something unique. Change the converter to match the converter definition you specified above. If you like, you can change the ATR to match your card.
    Now start Views, on the converter page, you will see that you can select the newly created card type, and based on the specified "Sun Java Card Converter" version will be selected.
    Now attempt to convert and load! Good luck - this is a possible solution. I hope it works...
    When the tools limit you, find an alternate path!

  • Problem with PBEWithMD5AndDES on RedHat 9

    Hi,
    I'm trying to encrypt a string then save it in the database, then retrieve the string and decrypt it.
    I have tested this on JDK1.3 (Sun and IBM) yet it works on Windows XP Pro and Debian, but as soon as I try it on RedHat 9 it fails.
    Where it all goes wrong is that when I call encrypt I get back an empty string, whereas I should get an encoded string. I suspect that it has to do with the following error which I can only recreate if I try writing it to a file and reading it back again, although there is absolutely NO exceptions thrown if I run the source below! (I have checked everything from system's default encoding and permissions in the security file)
    sun.io.MalformedInputException
    at sun.io.ByteToCharUTF8.convert(ByteToCharUTF8.java(Compiled Code))
    at java.io.InputStreamReader.convertInto(InputStreamReader.java:144)
    at java.io.InputStreamReader.fill(InputStreamReader.java:193)
    at java.io.InputStreamReader.read(InputStreamReader.java:256)
    at java.io.BufferedReader.fill(BufferedReader.java:145)
    at java.io.BufferedReader.read(BufferedReader.java:163)
    I can successfully encode a string and immediately decode it and it works, but I cannot save the encrypted string!
    Any ideas?
    I'm using Sun's jce1_2_2.jar (as a jre ext setup), and their sunjce_provider.jar.
    JDK version:
    java version "1.3.0"
    Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.0)
    Classic VM (build 1.3.0, J2RE 1.3.0 IBM build cx130-20010925 (JIT enabled: jitc))
    package sap.cryptography;
    import javax.crypto.*;
    import javax.crypto.interfaces.*;
    import javax.crypto.spec.*;
    import java.io.*;
    public class CryptoTest {
    private PBEKeySpec pbeKeySpec;
    private PBEParameterSpec pbeParameterSpec;
    private SecretKeyFactory keyFac;
    private Cipher cipher;
    private SecretKey pbeKey;
    private char[] alphabet;
    private byte[] salt = { (byte) 0x73, (byte) 0x99, (byte) 0x7e, (byte) 0xc8, (byte) 0xee, (byte) 0xc7, (byte) 0x21, (byte) 0x8c };
    private int count = 20;
    private char[] key = {'S', 'o', 'm', 'e', 'k', 'i', 'n', 'd', 'O', 'f', 'K', 'e', 'y'};
    public CryptoTest() {
    String al = new String("sdsadwqerwqw3243fde32543rfdasasdasd23434WFSDFERT512edqdqw421");
    this.alphabet = al.toCharArray();
    java.security.Provider sunJce = new com.sun.crypto.provider.SunJCE();
    java.security.Security.addProvider(sunJce);
    try {
    this.pbeParameterSpec = new PBEParameterSpec(salt, count);
    this.pbeKeySpec = new PBEKeySpec(this.key);
    this.keyFac = SecretKeyFactory.getInstance("PBEWithMD5AndDES");
    this.pbeKey = this.keyFac.generateSecret(pbeKeySpec);
    this.cipher = Cipher.getInstance("PBEWithMD5AndDES");
    catch(Exception e) {
    e.printStackTrace();
    public String convertToALPH(String text) {
    return java.net.URLEncoder.encode(text);
    private byte getByteEnc(char a) {
    for(byte i = 0; i < this.alphabet.length; i++)
    if(a == this.alphabet) {
    return i;
    return 0;
    public String convertToString(String text) {
    return java.net.URLDecoder.decode(text);
    public String encrypt(String clearText) {
    try {
    this.cipher.init(Cipher.ENCRYPT_MODE, this.pbeKey, this.pbeParameterSpec);
    byte[] cipherText = this.cipher.doFinal(clearText.getBytes());
    return new String(cipherText);
    catch(Exception e) {
    System.out.println("[CryptoTest:enrypt] Exception encrypting string(" + clearText + "): " + e.getMessage());
    e.printStackTrace();
    return null;
    public String decrypt(String eText) {
    byte[] encryptedText = eText.getBytes();
    try {
    this.cipher.init(Cipher.DECRYPT_MODE, this.pbeKey, this.pbeParameterSpec);
    byte[] clearText = this.cipher.doFinal(encryptedText);
    String ret = new String(clearText);
    return ret;
    catch(Exception e) {
    System.out.println("[CryptoTest:decrypt] Exception decoding string(" + eText + "): " + e.getMessage());
    e.printStackTrace();
    return null;
    public static void main(String[] args) {
    if(args==null)
    System.out.println("Usage:\tjava CryptoTest somestringtoencrypt\nOR\tjava CryptoTest somestringtodecrypt 1");
    boolean decrypt = false;
    CryptoTest c = new CryptoTest();
    if(args.length > 1) {
    String deconverted = c.convertToString(args[0]);
    System.out.println("Deconverted: " + deconverted);
    String decrypted = c.decrypt(deconverted);
    System.out.println("Decrypted: " + decrypted);
    else {
    String encrypted = c.encrypt(args[0]);
    System.out.println("Encrypted: " + encrypted);
    String converted = c.convertToALPH(encrypted);
    System.out.println("Converted: " + converted);
    Many thanks,
    Andy//

    I'm slightly confused by your comment, since when I write the string out to something I encode it in URLEncoding (or now as Base64 encoding) anyway.
    What caused me the trouble was not this section but rather that the cipher.doFinal failed to encrypt when I was using UTF8 encoding, as soon as I switched to ISO8859-1 encoding it worked fine - irrespective of the surrounding code.
    The changed method which now work are:
      public String encrypt(String clearText) {
        try {
          this.cipher.init(Cipher.ENCRYPT_MODE,this.pbeKey,this.pbeParameterSpec);
          byte[] cipherText = this.cipher.doFinal(clearText.getBytes(encType));
          return new String(cipherText, encType);
        catch(Exception e) {
          System.out.println("[Crypto:decrypt] Exception encrypting string("+clearText+"): "+e.getMessage());
          e.printStackTrace();
        return null;
      public String decrypt(String eText){
        try {
          byte[] encryptedText = eText.getBytes(encType);
          this.cipher.init(Cipher.DECRYPT_MODE,this.pbeKey,this.pbeParameterSpec);
          byte[] clearText = this.cipher.doFinal(encryptedText);
          String ret = new String (clearText, encType);
          return ret;
        catch(Exception e) {
          System.out.println("[Crypto:decrypt] Exception decrypting string("+eText+"): "+e.getMessage());
          e.printStackTrace();
        return null;
      }

  • How to show Greek characters in Italic style

    How to show Greek characters in Italic style
    Hi all, I'm tryng to resolve a problem with the Greek characters
    I need to display labels in two languages, english or greek inside my report.
    At the beginning of the report I have a placeholder with the xml code : *<?param@begin:p_language?>*, so I can understand inside my report if the user chose the Greek or English, and then I have many placeholders (labels) which have to be written in Greek or English.
    If the language chosen is English, I don't have any problem to show my labels bold or italic in every fonts
    Inside the placeholder I wrote the following code:
    *<?xdofx:if $p_language = 'Ελληνικά' then 'Οργανισμός' else if $p_language = 'Αγγλικά' then 'Organization' end if?>*
    I can chose font, style and bold/not bold directly from Word and when I run the report in pdf I see exactly what I chose.
    If the language chosen is Greek....I see always the label in Arial, NOT BOLD and NOT ITALIC...
    In order to see Greek characters BOLD:
    a) I added (under the ADMIN tab/Runtime Configuration/Font Mappings/ ) a font named Arial and I addeda target Font named Arialbd.ttf under the directory: D:\Oracle\Oracle_Homes\BIP_101341\jdk\jre\lib\fonts
    b) I changed the font (from word) to Arial
    Now, ONLY with tha ARIAL font I can see my labels in greek bold, but I can't still see them in italic style.....
    So, I tried to force these condition inside the placeholder with the following code:
    *<?if:$p_language = 'Ελληνικά'?><xsl:attribute xdofo:ctx="inlines" name="font">Times New Roman</xsl:attribute><xsl:attribute xdofo:ctx="inlines" name="font-style">Italic</xsl:attribute><xsl:attribute xdofo:ctx="inlines" name="color">red</xsl:attribute><xsl:attribute xdofo:ctx="inlines" name="font-weight">bold</xsl:attribute>Οργανισμός<?end if?>*
    ...but I continue to see the labels in Greek only bold, red but not in Italic Style......
    Also adding another font called Arialbi.ttf (Arial bold Italic)...I can't see my labels in Greek bold with Italic Style....
    Anybody had the same problem with another alphabet different from the latin one ???
    Any help will be appreciated
    Thanks in advance
    Alex

    Hi Chris,
    Thanks for your reply.However I still have some problems.
    I couldnt get jpdk 3.0.9.0.4 version the latest version that I
    got was jpdk 3.0.9.0.2.
    I tried the 3.0.9.0.2 version and it gave me the below error.
    Error-
    sun.io.MalformedInputException
         at sun.io.ByteToCharUTF8.convert(ByteToCharUTF8.java,
    Compiled Code)
         at java.io.InputStreamReader.convertInto
    (InputStreamReader.java, Compiled Code)
         at java.io.InputStreamReader.fill
    (InputStreamReader.java, Compiled Code)
         at java.io.InputStreamReader.read
    (InputStreamReader.java, Compiled Code)..........
    Can you guide me regarding this ???
    Regards,
    Mandar.

  • Help needed w/ JDeveloper and Raptor not working for me in 10.4

    Well, I've been successfully running the previous version of JDeveloper, 10.1.2.0.0 (Build 1811) for a few months on my OS X, Tiger (10.4) laptop. I recently tried to get Project Raptor running. I'm using Apple's version of Java from Software Update, J2SE 5.0 Release 3 which is the most up-to-date version I can find anywhere.
    My problem is this. I can do most anything fine, but as soon as I try to Debug an PL/SQL function in either Raptor, or the JDeveloper 10.1.3 build I get an error "Unsupported feature Vendor Code 17023" when I click OK in the Debug PL/SQL dialog box.
    Thing is that this works just fine in JDeveloper 10.1.2.0.0 (Build 1811). The thing that is interesting is the 10.1.2 JDeveloper uses the Java 1.4.2 where Raptor and JDeveoper 10.1.3 use the Java 1.5, I'm guessing it's a problem in Apple's Java 1.5 but can anyone else verify this or offer help to how I can make it work?
    tks

    I fail to get the error message you describe. What I get is:
    ===========================
    Connecting to the database test10.
    Executing PL/SQL: ALTER SESSION SET PLSQL_DEBUG=TRUE
    Executing PL/SQL: CALL DBMS_DEBUG_JDWP.CONNECT_TCP( '10.0.1.103', '52221' )
    Debugger accepted connection from database on port 52221.
    Processing 59 classes that have already been prepared...
    Finished processing prepared classes.
    ===========================
    Is this ok ?
    In the console log I got:
    sh ./raptorOracle Raptor 1.0
    Copyright (c) 2005 Oracle Corporation. All Rights Reserved.
    Working directory is /Users/ronr/Desktop/raptor/jdev/bin
    Initializing.. oracle.dbtools.raptor.explorer.jdev.ConnectionDialogAddin@1972bf
    Assert: Unknown Node:8: USER
    Assert: Unknown Node:8: SHARED QUERIES
    Assert: Unknown Node:8: TABLE EDITORS
    Assert: Unknown Node:8: VIEWS
    Assert: Unknown Node:8: MVIEWS
    Assert: Unknown Node:8: SYNONYM
    Assert: Unknown Node:8: SEQ
    Assert: Unknown Node:8: Recycle Bin
    Assert: Unknown Node:8: DB Link
    Assert: Unknown Node:8: MVIEW LOG
    Assert: Unknown Node:8: PLSQL
    Assert: Unknown Node:8: TRigger
    Assert: Unknown Node:8: INDEX
    Assert: SQLView initedException in thread "JPDA Event Processor" java.lang.IllegalAccessError: tried to access class com.sun.tools.jdi.VirtualMachineImpl from class com.sun.tools.jdi.OracleReferenceTypeImpl
    at com.sun.tools.jdi.OracleReferenceTypeImpl.<init>(OracleReferenceTypeImpl.java:60)
    at com.sun.tools.jdi.OracleReferenceTypeImpl.convert(OracleReferenceTypeImpl.java:203)
    at com.sun.jdi.OracleExtension.convert(OracleExtension.java:38)
    at oracle.jdevimpl.debugger.jdi.DebugJDI.getOracleReferenceType(DebugJDI.java:559)
    at oracle.jdevimpl.debugger.jdi.DebugJDI.addClass(DebugJDI.java:626)
    at oracle.jdevimpl.debugger.jdi.DebugJDI.addClassForReferenceType(DebugJDI.java:549)
    at oracle.jdevimpl.debugger.jdi.DebugJDI.run(DebugJDI.java:2651)
    at java.lang.Thread.run(Thread.java:613)
    Assert: Finding Context Menu for:FUNCTION_FOLDER
    Exception in thread "JPDA Event Processor" java.lang.IllegalAccessError: tried to access class com.sun.tools.jdi.VirtualMachineImpl from class com.sun.tools.jdi.OracleReferenceTypeImpl
    at com.sun.tools.jdi.OracleReferenceTypeImpl.<init>(OracleReferenceTypeImpl.java:60)
    at com.sun.tools.jdi.OracleReferenceTypeImpl.convert(OracleReferenceTypeImpl.java:203)
    at com.sun.jdi.OracleExtension.convert(OracleExtension.java:38)
    at oracle.jdevimpl.debugger.jdi.DebugJDI.getOracleReferenceType(DebugJDI.java:559)
    at oracle.jdevimpl.debugger.jdi.DebugJDI.addClass(DebugJDI.java:626)
    at oracle.jdevimpl.debugger.jdi.DebugJDI.addClassForReferenceType(DebugJDI.java:549)
    at oracle.jdevimpl.debugger.jdi.DebugJDI.run(DebugJDI.java:2651)
    at java.lang.Thread.run(Thread.java:613)
    Exception in thread "JPDA Event Processor" java.lang.IllegalAccessError: tried to access class com.sun.tools.jdi.VirtualMachineImpl from class com.sun.tools.jdi.OracleReferenceTypeImpl
    at com.sun.tools.jdi.OracleReferenceTypeImpl.<init>(OracleReferenceTypeImpl.java:60)
    at com.sun.tools.jdi.OracleReferenceTypeImpl.convert(OracleReferenceTypeImpl.java:203)
    at com.sun.jdi.OracleExtension.convert(OracleExtension.java:38)
    at oracle.jdevimpl.debugger.jdi.DebugJDI.getOracleReferenceType(DebugJDI.java:559)
    at oracle.jdevimpl.debugger.jdi.DebugJDI.addClass(DebugJDI.java:626)
    at oracle.jdevimpl.debugger.jdi.DebugJDI.addClassForReferenceType(DebugJDI.java:549)
    at oracle.jdevimpl.debugger.jdi.DebugJDI.run(DebugJDI.java:2651)
    at java.lang.Thread.run(Thread.java:613)
    Exception in thread "JPDA Event Processor" java.lang.IllegalAccessError: tried to access class com.sun.tools.jdi.VirtualMachineImpl from class com.sun.tools.jdi.OracleReferenceTypeImpl
    at com.sun.tools.jdi.OracleReferenceTypeImpl.<init>(OracleReferenceTypeImpl.java:60)
    at com.sun.tools.jdi.OracleReferenceTypeImpl.convert(OracleReferenceTypeImpl.java:203)
    at com.sun.jdi.OracleExtension.convert(OracleExtension.java:38)
    at oracle.jdevimpl.debugger.jdi.DebugJDI.getOracleReferenceType(DebugJDI.java:559)
    at oracle.jdevimpl.debugger.jdi.DebugJDI.addClass(DebugJDI.java:626)
    at oracle.jdevimpl.debugger.jdi.DebugJDI.addClassForReferenceType(DebugJDI.java:549)
    at oracle.jdevimpl.debugger.jdi.DebugJDI.run(DebugJDI.java:2651)
    at java.lang.Thread.run(Thread.java:613)
    In jdev/bin/raptor.conf I had to set:
    SetSkipJ2SDKCheck true
    I use:
    /System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/
    Ronald.

  • Unable to use PL/SQL Debugger, Production SQL Developer on OS X 10.4

    I am still unable to use the PL/SQL debugger in OS X.
    When I start the debugger I get this:
    Connecting to the database testdb.
    Executing PL/SQL: ALTER SESSION SET PLSQL_DEBUG=TRUE
    Executing PL/SQL: ALTER SESSION SET PLSQL_COMPILER_FLAGS=INTERPRETED
    Executing PL/SQL: CALL DBMS_DEBUG_JDWP.CONNECT_TCP( '172.16.81.33', '49260' )
    Debugger accepted connection from database on port 49260.
    Processing 56 classes that have already been prepared...
    Finished processing prepared classes.
    Then nothing, it never gets to a breakpoint or does anything else. It works just fine on my Win XP box, just not on my OS X machine.
    Anyone having this problem or have any tips to try? I've never gotten the debugging to work on any Raptor or SQL Developer build in OS X. However, JDeveloper debugging works just fine on this mac.

    I am also experiencing this problem.
    Perhaps the following excerpt from the console can shed some light on the problem.
    Exception in thread "JPDA Event Processor" java.lang.VerifyError: (class: com/sun/tools/jdi/OracleReferenceTypeImpl, method: <init> signature: (Lcom/sun/tools/jdi/ReferenceTypeImpl;)V) Bad access to protected data
         at com.sun.jdi.OracleExtension.convert(OracleExtension.java:38)
         at oracle.jdevimpl.debugger.jdi.DebugJDI.getOracleReferenceType(DebugJDI.java:559)
         at oracle.jdevimpl.debugger.jdi.DebugJDI.addClass(DebugJDI.java:626)
         at oracle.jdevimpl.debugger.jdi.DebugJDI.addClassForReferenceType(DebugJDI.java:549)
         at oracle.jdevimpl.debugger.jdi.DebugJDI.run(DebugJDI.java:2651)
         at java.lang.Thread.run(Thread.java:613)

  • Error in convertionof .class to CAP file

    we are using java_card_kit-2_2_1 with j2sdk-1.4.2_12 for developing Applet for Smart card.We are new to the javacard enviornment.We are testng with the avvailable samples in java card kit.
    The steps we are following is given below:
    1.Convertion of java file to class file.
    Class file generated in the path- c:\java_card_kit-2_2_1\samples\src\com\sun\javacard\samples\Helloworld
    2. convertion of class file to Cap file:
    we are using one batch file -run.bat
    run.bat:
    set CLASSES=%JCHOME%\lib\apduio.jar;...;%JC_HOME%\lib\api.jar;%JC_HOME%\lib\capdump.jar;
    xcopy /s %JC_HOME%\api_export_files\*.* exp
    java -classpath %_CLASSES% samples.src.com.sun.javacard.samples
    converter -config HelloWorld.opt
    3.We are running the run.bat file when exp folder is created having the .exp files init.
    4.Then we are using the converter as:
    converter -config ...HelloWorld.opt.
    the .opt file contains..
    -out EXP JCA CAP
    -exportpath C:\java_card_kit-2_2_1\api_export_files
    -applet 0xa0:0x0:0x0:0x0:0x62:0x3:0x1:0xc:0x1:0x1
    com.sun.javacard.samples.HelloWorld.HelloWorld
    com.sun.javacard.samples.HelloWorld
    0xa0:0x0:0x0:0x0:0x62:0x3:0x1:0xc:0x1 1.0
    Then the error is generated as:
    error:export file framework.exp of package javacard.framework not found.
    the above run.bat file the line below needs explanation..
    java -classpath %_CLASSES% samples.src.com.sun.javacard.samples
    converter -config HelloWorld.opt
    plz reply
    Message was edited by:
    jit_hk

    converting .class files to a loadable format for the smart card creates .cap file and .exp files. the .exp files specify information about any (shared) libraries.
    i dunno how exactly to do it with the java card kit from sun. look into the jcop converter tric.jar .

  • Encoding problem while reading binary data from MQ-series

    Dear all,
    we are running on 7.0 and we have an encoding problem while reading binary data from MQ-series. Because we are getting flat strings from queue we use module "Plain2ML" (MessageTransformBean) for wrapping xml-elements around the incoming data.
    The MQ-Series-Server is using CCSID 850, which we configured in connection parameters in communication channel (both parameters for Queuemanager CCSID and also CCSID of target).If there are special characters in the message (which HEX-values differ from codepage to codepage) we get errors in our adapter while executing, please see stack-trace for further analysis below.
    It seems to us that
    1. method ByteToCharUTF8.convert() expects UTF-8 in binary data
    2. Both CCSID parameters are not used anyway in JMS-adapter
    How can we solve this problem without changing anything on MQ-site?
    Here is the stack-trace:
    Catching com.sap.aii.af.mp.module.ModuleException: Transform: failed to execute the transformation: com.sap.aii.messaging.adapter.trans.TransformException: Error converting Message: 'sun.io.MalformedInputException'; nested exception caused by: sun.io.MalformedInputException caused by: com.sap.aii.messaging.adapter.trans.TransformException: Error converting Message: 'sun.io.MalformedInputException'; nested exception caused by: sun.io.MalformedInputException
        at com.sap.aii.af.modules.trans.MessageTransformBean.throwModuleException(MessageTransformBean.java:453)
        at com.sap.aii.af.modules.trans.MessageTransformBean.process(MessageTransformBean.java:387)
        at com.sap.aii.af.mp.module.ModuleLocalLocalObjectImpl0_0.process(ModuleLocalLocalObjectImpl0_0.java:103)
        at com.sap.aii.af.mp.ejb.ModuleProcessorBean.process(ModuleProcessorBean.java:292)
        at com.sap.aii.af.mp.processor.ModuleProcessorLocalLocalObjectImpl0_0.process(ModuleProcessorLocalLocalObjectImpl0_0.java:103)
        at com.sap.aii.adapter.jms.core.channel.filter.SendToModuleProcessorFilter.filter(SendToModuleProcessorFilter.java:84)
        at com.sap.aii.adapter.jms.core.channel.filter.MessageFilterContextImpl.callNext(MessageFilterContextImpl.java:195)
        at com.sap.aii.adapter.jms.core.channel.filter.ConvertBinaryToXiMessageFilter.filter(ConvertBinaryToXiMessageFilter.java:304)
        at com.sap.aii.adapter.jms.core.channel.filter.MessageFilterContextImpl.callNext(MessageFilterContextImpl.java:195)
        at com.sap.aii.adapter.jms.core.channel.filter.ConvertJmsMessageToBinaryFilter.filter(ConvertJmsMessageToBinaryFilter.java:112)
        at com.sap.aii.adapter.jms.core.channel.filter.MessageFilterContextImpl.callNext(MessageFilterContextImpl.java:195)
        at com.sap.aii.adapter.jms.core.channel.filter.InboundDuplicateCheckFilter.filter(InboundDuplicateCheckFilter.java:87)
        at com.sap.aii.adapter.jms.core.channel.filter.MessageFilterContextImpl.callNext(MessageFilterContextImpl.java:195)
        at com.sap.aii.adapter.jms.core.channel.filter.TxManagerFilter.filterSend(TxManagerFilter.java:123)
        at com.sap.aii.adapter.jms.core.channel.filter.TxManagerFilter.filter(TxManagerFilter.java:59)
        at com.sap.aii.adapter.jms.core.channel.filter.MessageFilterContextImpl.callNext(MessageFilterContextImpl.java:195)
        at com.sap.aii.adapter.jms.core.channel.filter.DynamicConfigurationFilter.filter(DynamicConfigurationFilter.java:72)
        at com.sap.aii.adapter.jms.core.channel.filter.MessageFilterContextImpl.callNext(MessageFilterContextImpl.java:195)
        at com.sap.aii.adapter.jms.core.channel.filter.PmiAgentFilter.filter(PmiAgentFilter.java:66)
        at com.sap.aii.adapter.jms.core.channel.filter.MessageFilterContextImpl.callNext(MessageFilterContextImpl.java:195)
        at com.sap.aii.adapter.jms.core.channel.filter.InboundCorrelationFilter.filter(InboundCorrelationFilter.java:60)
        at com.sap.aii.adapter.jms.core.channel.filter.MessageFilterContextImpl.callNext(MessageFilterContextImpl.java:195)
        at com.sap.aii.adapter.jms.core.channel.filter.JmsHeadersProfileFilter.filter(JmsHeadersProfileFilter.java:59)
        at com.sap.aii.adapter.jms.core.channel.filter.MessageFilterContextImpl.callNext(MessageFilterContextImpl.java:195)
        at com.sap.aii.adapter.jms.core.channel.filter.MessageInvocationsFilter.filter(MessageInvocationsFilter.java:89)
        at com.sap.aii.adapter.jms.core.channel.filter.MessageFilterContextImpl.callNext(MessageFilterContextImpl.java:195)
        at com.sap.aii.adapter.jms.core.channel.filter.JarmMonitorFilter.filter(JarmMonitorFilter.java:57)
        at com.sap.aii.adapter.jms.core.channel.filter.MessageFilterContextImpl.callNext(MessageFilterContextImpl.java:195)
        at com.sap.aii.adapter.jms.core.channel.filter.ThreadNamingFilter.filter(ThreadNamingFilter.java:62)
        at com.sap.aii.adapter.jms.core.channel.filter.MessageFilterContextImpl.callNext(MessageFilterContextImpl.java:195)
        at com.sap.aii.adapter.jms.core.channel.SenderChannelImpl.doReceive(SenderChannelImpl.java:263)
        at com.sap.aii.adapter.jms.core.channel.ChannelImpl.receive(ChannelImpl.java:437)
        at com.sap.aii.adapter.jms.core.connector.MessageListenerImpl.onMessage(MessageListenerImpl.java:36)
        at com.ibm.mq.jms.MQMessageConsumer$FacadeMessageListener.onMessage(MQMessageConsumer.java:399)
        at com.ibm.msg.client.jms.internal.JmsMessageConsumerImpl$JmsProviderMessageListener.onMessage(JmsMessageConsumerImpl.java:904)
        at com.ibm.msg.client.wmq.v6.jms.internal.MQMessageConsumer.receiveAsync(MQMessageConsumer.java:4249)
        at com.ibm.msg.client.wmq.v6.jms.internal.SessionAsyncHelper.run(SessionAsyncHelper.java:537)
        at java.lang.Thread.run(Thread.java:770)
    Caused by: com.sap.aii.messaging.adapter.trans.TransformException: Error converting Message: 'sun.io.MalformedInputException'; nested exception caused by: sun.io.MalformedInputException
        at com.sap.aii.messaging.adapter.Conversion.service(Conversion.java:714)
        at com.sap.aii.af.modules.trans.MessageTransformBean.processTransform(MessageTransformBean.java:538)
        at com.sap.aii.af.modules.trans.MessageTransformBean.processTransform(MessageTransformBean.java:528)
        at com.sap.aii.af.modules.trans.MessageTransformBean.processTransform(MessageTransformBean.java:471)
        at com.sap.aii.af.modules.trans.MessageTransformBean.process(MessageTransformBean.java:364)
        ... 36 more
    Caused by: sun.io.MalformedInputException
        at sun.io.ByteToCharUTF8.convert(ByteToCharUTF8.java:270)
        at sun.nio.cs.StreamDecoder$ConverterSD.convertInto(StreamDecoder.java:287)
        at sun.nio.cs.StreamDecoder$ConverterSD.implRead(StreamDecoder.java:337)
        at sun.nio.cs.StreamDecoder.read(StreamDecoder.java:223)
        at java.io.InputStreamReader.read(InputStreamReader.java:208)
        at java.io.BufferedReader.fill(BufferedReader.java:153)
        at java.io.BufferedReader.readLine(BufferedReader.java:316)
        at java.io.LineNumberReader.readLine(LineNumberReader.java:176)
        at com.sap.aii.messaging.adapter.Conversion.convertPlain2XML(Conversion.java:310)
        at com.sap.aii.messaging.adapter.Conversion.service(Conversion.java:709)
        ... 40 more
    Any ideas?
    Kind regards, Stefan

    Hi Stefan,
    for the first MTB now we are using only one parameter: Transform.ContentType = text/plain;charset="ISO-8859-1"
    The second MTB, which does the XML-Wrapping, is configured like this:
    Transform.Class = com.sap.aii.messaging.adapter.Conversion
    Transform.ContentType = application/xml
    xml.conversionType = SimplePlain2XML
    xml.fieldNames = value
    xml.fieldSeparator = §%zulu§%
    xml.processFieldNames = fromConfiguration
    xml.structureTitle = payload
    Both CCSID configuration parameters from the "Source"-Tab we've set to 850.
    Now, we don't get an error anymore - sun.io.malformedInputException - , but, unfortunately, now special character conversion succeeded (we need an "ß" and we get an ISO-HEX-E1 -> á).  E1 is (different from ISO) an "ß" in 850.
    Any ideas?

  • How to display Chinese in AWT (Urgent!)

    I have to problems,
    My computer is Win2K Traditional Chinese
    I try to run an application which Display chinese characters on the component of AWT. Although the application can run and can display correctly, there are exceptions. It throws the following error continuously,
    sun.io.UnknownCharacterException
    sun.io.UnknownCharacterException
    at sun.io.CharToByteISO8859_1.convert(Unknown Source)
    at sun.awt.PlatformFont.makeConvertedMultiFontChars(Unknown Source)
    at sun.awt.PlatformFont.makeConvertedMultiFontString(Unknown Source)
    at sun.awt.windows.WToolkit.eventLoop(Native Method)
    at sun.awt.windows.WToolkit.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)
    sun.io.UnknownCharacterException
    sun.io.UnknownCharacterException
    at sun.io.CharToByteISO8859_1.convert(Unknown Source)
    at sun.awt.PlatformFont.makeConvertedMultiFontChars(Unknown Source)
    at sun.awt.PlatformFont.makeConvertedMultiFontString(Unknown Source)
    at sun.awt.windows.WToolkit.eventLoop(Native Method)
    at sun.awt.windows.WToolkit.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)
    I try to encodes the string as follow, however, it throws another exception
    String x = new String("ChineseWordHere".getBytes("ISO-8859-1"), "Big5");
    It throws exception:
    java.io.UnsupportedEncodingException: Big-5
    at sun.io.Converters.getConverterClass(Unknown Source)
    at sun.io.Converters.newConverter(Unknown Source)
    at sun.io.ByteToCharConverter.getConverter(Unknown Source)
    at java.lang.String.getBTCConverter(Unknown Source)
    at java.lang.String.<init>(Unknown Source)
    at java.lang.String.<init>(Unknown Source)
    at Test1.<init>(Test1.java:8)
    at Test1.main(Test1.java:13)
    Do you know how to solve these two problems??
    (The most concern is that how to display Chinese in AWT)
    Thanks

    For starters, you shouldn't use the 8859 encoding since it only supports single byte representations. You should be able to successfully use UTF-8. Then to actually display the characters...or to type them, make sure you have an input method editor (IME) that supports the language - in theory if you are using a Chinese Win2k, you already have this with windows - just use the right font (I think MS Gothic should work) to show the characters. You might want to consider switching to Swing.
    Good luck

  • Problems running java applet in 1.4.2

    Hi,
    I need some help with running an applet in the following environment:
    Win 98 ver 2
    jre 1.4.2
    IE 6.0
    My applet runs in AOL within the same environment. However, the one we wrote does not run in this at all. I get the characteristic grey patch. Additionally, even the 1.4.2 test applets do not run in my environment. I get status messages like "load:class LoadUpload_100 not found".
    I need to mention that 1.2 applets run in the same environment without any issues.
    Any help on this will be greatly appreciate.
    Thanks,
    Akoul.
    [email protected]

    If you use Swing, you will need to convert your HTML using Sun's HTML converter.

Maybe you are looking for