XML Sax Exception with 9.2.0.5 express*.jar files for Olap API

I was using the olap_api_92.jar that
came with jdeveloper for the olap api and having a coding problem.. In trying to see
if I could resolve the previous problem, I set my classpath to use the jar files provided with the 9.2.0.5
install for AiX.. all beginning with express*.jar
I now get an XML parsing error that I can't fix..
which jar is good, the olap_api_92.jar seems to work..
Help!
thanks,
Lisa Cox
OCLC Inc.
java.lang.RuntimeException: org.xml.sax.SAXParseException: <Line 179, Column 18>: XML-0124: (Fatal Error) An attribute cannot appear more than once in the same start tag.
at oracle.olapi.metadata.MetadataFetcher.processXML(MetadataFetcher.java:237)
at oracle.olapi.metadata.MetadataFetcher.fetchBaseMetadataObjects(MetadataFetcher.java:180)
at oracle.olapi.metadata.BaseMetadataProvider.fetchMetadataObject(BaseMetadataProvider.java:150)
at oracle.olapi.metadata.BaseMetadataProvider.fetchMetadataObject(BaseMetadataProvider.java:107)
at oracle.olapi.metadata.mdm.MdmMetadataProvider.getMetadataObject(MdmMetadataProvider.java:147)
at oracle.olapi.metadata.mdm.MdmMetadataProvider.getRootSchema(MdmMetadataProvider.java:174)
at oracle.express.mdm.MdmMetadataProvider.getRootSchema(MdmMetadataProvider.java:144)
at org.oclc.xwc.olap.OlapClient.main(OlapClient.java:494)

The OLAP component versions are empty.
<Check key="OLAP Catalog version" value=""/>
<Check key="OLAP AW Engine version" value=""/>
<Check key="OLAP API Server version" value=""/>
Please doublecheck that the catpatch.sql script ran without any errors.
Aneel Shenker
Senior Product Manager
Oracle Corp.

Similar Messages

  • Exception is thrown only while executing the jar file

    java.lang.NoClassDefFoundError: javax/mail/Address Exception is thrown only while executing the jar file. But the program compiles and executes good when executed for command prompt through the class files.
    I used javamail API in my program. Classpath and every others are set to the right one's. Executed fine when used java Random.class. But the problem is only with the jar file.
    Please help me out in this regard. Why the exception is thrown only in jar but not at class level.

    Assuming you're running your program using "java -jar", your jar file needs a Class-Path entry
    in the manifest file that references mail.jar.

  • How to use 3rd party jar files for xml transform

    Hi all,
    Am using OAS9.0.4 and I deployed my .ear successfully.
    In my application am using 4 jar files for xml transformation. (xerces.jar, xalan.jar, xml-apis.jar,xercesImpl.jar)
    OAS has its own xmlparserv2.jar file. Its using this jar file for transforming xml data and not even looking for above mentioned 4 jar files.
    In opmn.xml, I provided these 4 jar files in to class path. Then also it didn't effect my output.
    I also tried as put these 4 jar files into j2ee\home\applib directory, but o result.
    Can anybody tell me where should I keep these 4 jar files in OAS and OAS should use these 4 jar files instead of its own xmlparserv2.jar for transforming data.
    Thanks in Anticipation,
    Regards,
    RK

    Add the Xbootclasspath variable in the java-options field. It will somewhat look like the following in your opmn.xml file
    <process-type id="<OC4J Instance Name>" module-id="OC4J">
    <module-data>
    <category id="start-parameters">
    <data id="java-options value="........... -Xbootclasspath^/a:<location of your jar files>" />
    Ensure to use th ^/a (append) signature
    Regards,
    Chirag

  • Photoshop CC with CS3 will not open Nikon NEF files for the D610.[was:CC]

    Photoshop CC with CS3 will not open Nikon NEF files for the D610. Is there a fix for this? Fast Eddy

    I assume you're running Photoshop CC (not sure what you mean by "with CS3" unless that's the version you upgraded to CC from)
    Download Camera Raw 8.3RC
    http://labs.adobe.com/technologies/cameraraw8-3-cc/?tabID=details#tabTop

  • Trying to use XML SAX parser with JDK2 ...

    Hi,
    I'm pretty new to Java.
    I'm trying to write and use java sample using XML SAX parser. I try with XP and XML4J.
    Each time I compile it give me a error message like
    "SAX01.java:23: unreported exception java.lang.Exception; must be caught or declared to be
    thrown
    (new SAX01()).countBooks();
    ^
    Note: SAX01.java uses or overrides a deprecated API.
    Note: Recompile with -deprecation for details.
    1 error"
    For what I found, it seems that "deprecated" mean usage of old classes or methods. What should I do ?
    Wait for the XML parser to be rewrite ? ....
    Thank's
    Constant

    "SAX01.java:23: unreported exception
    java.lang.Exception; must be caught or declared to be
    thrown
    (new SAX01()).countBooks();
    ^Do this
    public static void main(String[] args) throws Exception {
    or do this
         try
                       first part of expression?(new SAX0()).countBooks();
         catch(Exception ex)     
              System.out.println("problem "+ ex);
    Note: SAX01.java uses or overrides a deprecated API.
    Note: Recompile with -deprecation for details.
    1 error"deprecation is just a warning if there are no errors elsewhere in your program it should compile fine, but if you want to find out how to change it do this:
    javac YourClassName.java -deprecation
    then look in the docs for an alternative.

  • Org.xml.sax.SAXParseException with XML Report Publish

    Anyone see the following error in XML Report Publisher? This happened after I ran Employee W2 XML Interface and ran XML Report Publisher for the output of the PDF output.
    --XDOException
    java.lang.reflect.InvocationTargetException
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at oracle.apps.xdo.common.xml.XSLT10gR1.invokeParse(XSLT10gR1.java:570)
         at oracle.apps.xdo.common.xml.XSLT10gR1.transform(XSLT10gR1.java:235)
         at oracle.apps.xdo.common.xml.XSLTWrapper.transform(XSLTWrapper.java:182)
         at oracle.apps.xdo.template.fo.util.FOUtility.generateFO(FOUtility.java:1044)
         at oracle.apps.xdo.template.fo.util.FOUtility.generateFO(FOUtility.java:997)
         at oracle.apps.xdo.template.fo.util.FOUtility.generateFO(FOUtility.java:212)
         at oracle.apps.xdo.template.FOProcessor.createFO(FOProcessor.java:1665)
         at oracle.apps.xdo.template.FOProcessor.generate(FOProcessor.java:975)
         at oracle.apps.xdo.oa.schema.server.TemplateHelper.runProcessTemplate(TemplateHelper.java:5936)
         at oracle.apps.xdo.oa.schema.server.TemplateHelper.processTemplate(TemplateHelper.java:3459)
         at oracle.apps.xdo.oa.schema.server.TemplateHelper.processTemplate(TemplateHelper.java:3548)
         at oracle.apps.xdo.oa.cp.JCP4XMLPublisher.runProgram(JCP4XMLPublisher.java:684)
         at oracle.apps.fnd.cp.request.Run.main(Run.java:157)
    Caused by: org.xml.sax.SAXParseException: <Line 268, Column 6>: XML-20109: (Fatal Error) PI with the name 'xml' can occur only in the beginning of the document.
         at oracle.xdo.parser.v2.XMLError.flushErrorHandler(XMLError.java:441)
         at oracle.xdo.parser.v2.XMLError.flushErrors1(XMLError.java:303)
         at oracle.xdo.parser.v2.NonValidatingParser.parseDocument(NonValidatingParser.java:305)
         at oracle.xdo.parser.v2.XMLParser.parse(XMLParser.java:289)
         ... 17 more
    Thanks.

    We are going to user Employee W-2 PDF.

  • Problem parsing XML with schema when extracted from a jar file

    I am having a problem parsing XML with a schema, both of which are extracted from a jar file. I am using using ZipFile to get InputStream objects for the appropriate ZipEntry objects in the jar file. My XML is encrypted so I decrypt it to a temporary file. I am then attempting to parse the temporary file with the schema using DocumentBuilder.parse.
    I get the following exception:
    org.xml.sax.SAXParseException: cvc-elt.1: Cannot find the declaration of element '<root element name>'
    This was all working OK before I jarred everything (i.e. when I was using standalone files, rather than InputStreams retrieved from a jar).
    I have output the retrieved XML to a file and compared it with my original source and they are identical.
    I am baffled because the nature of the exception suggests that the schema has been read and parsed correctly but the XML file is not parsing against the schema.
    Any suggestions?
    The code is as follows:
      public void open(File input) throws IOException, CSLXMLException {
        InputStream schema = ZipFileHandler.getResourceAsStream("<jar file name>", "<schema resource name>");
        DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
        DocumentBuilder builder = null;
        try {
          factory.setNamespaceAware(true);
          factory.setValidating(true);
          factory.setAttribute(JAXP_SCHEMA_LANGUAGE, W3C_XML_SCHEMA);
          factory.setAttribute(JAXP_SCHEMA_SOURCE, schema);
          builder = factory.newDocumentBuilder();
          builder.setErrorHandler(new CSLXMLParseHandler());
        } catch (Exception builderException) {
          throw new CSLXMLException("Error setting up SAX: " + builderException.toString());
        Document document = null;
        try {
          document = builder.parse(input);
        } catch (SAXException parseException) {
          throw new CSLXMLException(parseException.toString());
        }

    I was originally using getSystemResource, which worked fine until I jarred the application. The problem appears to be that resources returned from a jar file cannot be used in the same way as resources returned directly from the file system. You have to use the ZipFile class (or its JarFile subclass) to locate the ZipEntry in the jar file and then use ZipFile.getInputStream(ZipEntry) to convert this to an InputStream. I have seen example code where an InputStream is used for the JAXP_SCHEMA_SOURCE attribute but, for some reason, this did not work with the InputStream returned by ZipFile.getInputStream. Like you, I have also seen examples that use a URL but they appear to be URL's that point to a file not URL's that point to an entry in a jar file.
    Maybe there is another way around this but writing to a file works and I set use File.deleteOnExit() to ensure things are tidied afterwards.

  • Validating xml-files inside jar-files  for JWS

    I want to use xml-files inside a jar-file and want to validate them with dtd-files,
    located in the same jar-file. This does work, but only as long as the dtd-file is
    in the same directory as the xml-file.
    For example, I have no problem, with a DOC Type-statement like
    <!DOCTYPE questestinterop SYSTEM "ims_qtiv1p1.dtd" >
    With this statement, however, one needs an approprate dtd in every directory containing an XML-file of that type.
    If however i want to gather the necessary dtd's in a directory one (or more) levels above with a DOCTYPE-statement of the form
    <!DOCTYPE questestinterop SYSTEM "../ims_qtiv1p1.dtd" >
    I get error messages of the form
    java.io.FileNotFoundException: JAR entry Mikro/Marshall/BookQuestions/../ims_qtiv1p1.dtd not found in C:\Dokumente und Einstellungen\wreiss\Anwendungsdaten\Sun\Java\Deployment\javaws\cache\http\Dwiwi.upb.de\P80\DM~vwl08\DMOViSS\DMoviss_current\RMMikro.jar
         at org.apache.crimson.parser.Parser2.fatal(Unknown Source)
         at org.apache.crimson.parser.Parser2.externalParameterEntity(Unknown Source)
         at org.apache.crimson.parser.Parser2.maybeDoctypeDecl(Unknown Source)
         at org.apache.crimson.parser.Parser2.parseInternal(Unknown Source)
         at org.apache.crimson.parser.Parser2.parse(Unknown Source)
         at org.apache.crimson.parser.XMLReaderImpl.parse(Unknown Source)
         at org.apache.crimson.jaxp.DocumentBuilderImpl.parse(Unknown Source)
         at javax.xml.parsers.DocumentBuilder.parse(Unknown Source)
         at oviss.competenceCenter.XMLExpert.setElements(XMLExpert.java:245)
    though the dtd-file is in the parent-directory (inside the jar) and the unpacked xml-file can be successfully validated.
    Why does this happen. How can one use a single dtd for multiple xml-files (of the same type) in different directories?.
    Thanks
    Winfried Reiss

    In reply to myself, replacing the HTMLBrowser constructor with this;
    public HTMLBrowser()
                  URL url;
                  try
                       // Construct the URL
                       url= this.getClass().getResource('/'+dir+'/'+startPage);
                       setPage(url);
                  catch (Exception e)
                  System.out.println( "Problem setting help homepage");
                 setEditable(false);
                 addHyperlinkListener(new LinkListener(this));
            }made it work. This is because seemingly you need '/' at the start of the resouce's path and '/' as the separator, regardless of platform.
    I hope this helps someone else.
    John

  • Help with a question about making/running .jar files.

    First i have a question, can i make a .jar file that can run on a computer without JRE installed. And if i can, how do i make it. I have tried to make it on my computer, that has JRE but i keep getting the error when i run it: Exception in thread "main" java.lang.NoClassDefFoundError: Sample\FileSearchAnd im using the command:
    jar cvfm jarname.jar directory\manifest.txt directory\FileSearch.class directory\FileNode.classIt says it creates the .jar but is unable to run it.

    dford425 wrote:
    First i have a question, can i make a .jar file that can run on a computer without JRE installed. No, not unless you package the JRE with your dist. Hence the name JRE (Java Runtime Environment).
    And if i can, how do i make it. I have tried to make it on my computer, that has JRE but i keep getting the error when i run it: Exception in thread "main" java.lang.NoClassDefFoundError: Sample\FileSearch
    That simply means your not pointing the runtime to the classes. Set your CLASSPATH environment variable correctly and it will run (given you have a JRE which it appears you do).
    And im using the command:
    jar cvfm jarname.jar directory\manifest.txt directory\FileSearch.class directory\FileNode.classIt says it creates the .jar but is unable to run it.

  • Fatal Exception occurred when trying to execute a JAR file

    Hi,
    I have compiled my project in a jar file with the purpose of having an 'almost' executable file that would run with a simple double click.
    When running this file from the netbeans directory, it works fine, but if I move this jar file to, say, my desktop, then I get an error:
    Fatal Exception occurred. Program will exit.
    Is this normal?
    basically, I would like to create a stand-alon file that I can send to other people who can run it on their machines
    Am I doing the right thing, or missing something?
    P.S I should add that my application needs to read contente from some txt files which are stored in my PC, but that is clearly speficied in the code
    thanks

    I found that if I copy the whole of the dist directory and subdirectories, it works fine. I guess that's what could not be found.
    just for my learning, is that the correct solution: basically send over the whole dist+subdirectories and have the program run from there?
    thanks

  • Help on jar file for org.apache.xml.serialize.OutputFormat

    Hi all, I need help regarding on org.apache.xml.serialize.OutputFormat
    and org.apache.xml.serialize.XMLSerializer. May I know which jar files
    contain these? Thanks

    After installing jdk 1.5 the problem is now resolved and after prefexing a few of the import statements with com.sun.
    There are however some more classes as part of the Xerces 2.7.1 jar file as compared to the JWSDP 1.6 installed and this requires the xercesimpl.jar to be included in the classpath.
    Rgds,
    Seetesh

  • Exception while creating a jar file for bean

    Friendz,
    I am getting this error whenever i tried to create a jar file.
    I am using win 98 os and jdk1.4 please tell me what error it is
    C:\bean\programs\spectrum>jar cfm a.jar manifest.mft spectrum.class
    java.io.IOException: invalid header field
    at java.util.jar.Attributes.read(Attributes.java:355)
    at java.util.jar.Manifest.read(Manifest.java:162)
    at java.util.jar.Manifest.<init>(Manifest.java:52)
    at sun.tools.jar.Main.run(Main.java:124)
    at sun.tools.jar.Main.main(Main.java:904)
    Contents of manifest template file:
    Name:spectrum.class
    Java-Bean:True

    Manifests are saved with the .mf file extension. Rename your manifest mainfest.mf.

  • XML table of contents file for PDFBOOKBINDER API

    Here is my control file for making the PDFBOOKBINDER, Having touble making a table of contents, this code will merge the pdfs ( Also I need them to be RTF) it
    says you can use RTF in the documentation but HOW? This code will display my tableofcontents.rtf but does not put in the page numbers... need help
    Thanks,
    Doug
    <?xml version="1.0" encoding="utf-8"?>
    <outline xmlns="http://xmlns.oracle.com/oxp/book/">
      <!--
       The 'title-page' element should point to a PDF title page inserted
       at the beginning of the book. (OPTIONAL)
      -->
      <!-- So here is the title page reference, in this case it is going to use an RTF template -->
      <!-- <title-page type="rtf">c:/temp/Tableofcontents.rtf</title-page> -->
      <!-- next follow the three documents we want to combine -->
      <item>
    <content-container>
        <content>c:\temp\mypage1.pdf</content>
    </content-container>
      </item>
    <item>
    <content-container>
        <content>c:\temp\mypage2.pdf</content>
    </content-container>
      </item>
      <item>
    <content-container>
        <content>c:\temp\mypage3.pdf</content>
    </content-container>
      </item>
    </outline>

    Please take a look at this: http://blogs.oracle.com/xmlpublisher/2010/05/bookbindng_samples.html
    Thanks!

  • Making jar file for java application with third party (Crystal Report)

    Hi all,
    I'm writing a java program that integrate with Crystal Report, I can run it in JBuilder fine, but when I try to make a jar file with JBuilder and run it, it either doesn't work or give me error.
    Case 1: If i only include the "dependencies", the program run but it woun't call the report when I open it. It give me the following error:
    com.businessobjects.reports.sdk.JRCCommunicationAdapter
    com.crystaldecisions.sdk.occa.report.lib.ReportSDKException: com.businessobjects.reports.sdk.JRCCommunicationAdapter---- Error code:-2147215357 Error code name:internal
         com.crystaldecisions.sdk.occa.report.lib.ReportSDKException.throwReportSDKException(ILjava.lang.String;)V(Unknown Source)
         com.crystaldecisions.proxy.remoteagent.z.a(Ljava.lang.String;)Lcom.crystaldecisions.proxy.remoteagent.ICommunicationAdapter;(Unknown Source)
         com.crystaldecisions.sdk.occa.report.application.ReportAppSession.int()V(Unknown Source)
         com.crystaldecisions.sdk.occa.report.application.ReportAppSession.initialize()V(Unknown Source)
         com.crystaldecisions.sdk.occa.report.application.ClientDocument.for()V(Unknown Source)
         com.crystaldecisions.sdk.occa.report.application.ReportClientDocument.for()V(Unknown Source)
         com.crystaldecisions.sdk.occa.report.application.ClientDocument.open(Ljava.lang.Object;I)V(Unknown Source)
         com.crystaldecisions.reports.sdk.ReportClientDocument.open(Ljava.lang.Object;I)V(Unknown Source)
         GOV.NE.REVENUE.LB775.CRYSTALREPORT.JRCViewReport.launchApplication(JRCViewReport.java:43)
         GOV.NE.REVENUE.LB775.LB775$5.actionPerformed(LB775.java:1114)</message>
    case 2: if I include the "dependence and resources" when create jar file, then the program won't run. It gives me a message:
    Cannot find main class. Program will exit.
    But I do have the manifest.mf file that contain the main class.
    Thank you very much for any help.

    Hello, I have the same problem, did you solved it?
    Thanks

  • Problems with loading Ressources out of a jar file

    Hi Folks !
    My current job for my university is to make some Java programms runnable as a WebStart Application. With most of the programms this was no problem. But i have a problem with one.
    The gui of the program loads some icons out of the jar file with the following code:
    try {
          openIcon = new ImageIcon(ClassLoader.getSystemResource("guissstester/icons/open.png"));
          generateIcon = new ImageIcon(ClassLoader.getSystemResource("guissstester/icons/generate.png"));
          editIcon = new ImageIcon(ClassLoader.getSystemResource("guissstester/icons/edit.png"));
          propertiesIcon = new ImageIcon(ClassLoader.getSystemResource("guissstester/icons/properties.png"));
          alphabetIcon = new ImageIcon(ClassLoader.getSystemResource("guissstester/icons/alphabet.png"));
          cutIcon = new ImageIcon(ClassLoader.getSystemResource("guissstester/icons/cut.png"));
          saveIcon = new ImageIcon(ClassLoader.getSystemResource("guissstester/icons/save.png"));
          helpIcon = new ImageIcon(ClassLoader.getSystemResource("guissstester/icons/help.png"));
          aboutIcon = new ImageIcon(ClassLoader.getSystemResource("guissstester/icons/about.png"));
          exitIcon = new ImageIcon(ClassLoader.getSystemResource("guissstester/icons/exit.png"));
          startIcon = new ImageIcon(ClassLoader.getSystemResource("guissstester/icons/start.png"));
          stopIcon = new ImageIcon(ClassLoader.getSystemResource("guissstester/icons/stop.png"));
          preferencesIcon = new ImageIcon(ClassLoader.getSystemResource("guissstester/icons/preferences.png"));
          okIcon = new ImageIcon(ClassLoader.getSystemResource("guissstester/icons/ok.png"));
          noIcon = new ImageIcon(ClassLoader.getSystemResource("guissstester/icons/no.png"));
          clearIcon = new ImageIcon(ClassLoader.getSystemResource("guissstester/icons/clear.png"));
          plusIcon = new ImageIcon(ClassLoader.getSystemResource("guissstester/icons/plus.png"));
          minusIcon = new ImageIcon(ClassLoader.getSystemResource("guissstester/icons/minus.png"));
          overlapIcon = new ImageIcon(ClassLoader.getSystemResource("guissstester/icons/overlap.png"));
          canselIcon = new ImageIcon(ClassLoader.getSystemResource("guissstester/icons/cansel.png"));
        catch(NullPointerException e){
          JOptionPane.showMessageDialog(frame,
              "There was an error while loading icon files. Probably the needed icon files are not present.",
              "Missing icon files!", JOptionPane.ERROR_MESSAGE);
        }When i start the program as a normal jar with
    java -jar ssstester.jarAll Icons are loaded normaly. But when i start it as a WebStart Application i get the catch (NullPointerException e) error message "There was an error while loading icon files. Probably the needed icon files are not present. Missing icon files!".
    So where is the problem ? Don't know if it is important, but the Application gets full rights in the jnlp File
    <security>
        <all-permissions/>
    </security>Greetings and sorry for my horrible english,
    Christoph

    Thread.currentThread().getContextClassLoader().getResource(imageFilePath); to load the images than the one you are using right now
    Edited by: Mayya on Jun 17, 2008 4:34 AM

Maybe you are looking for

  • ORA-12709: error while loading create database character set

    I installed Oracle 8.05 on Linux successfully: was able to login whith SQLPlus, start and stop the db whith svrmgrl etc. During this install I chose WE8ISO8859P9 as the database characterset when prompted. After that I installed Oracle Application Se

  • Error while running PAPI API

    Hi, I am getting the following error while running a PAPI code in one of the machine. It runs fine in one another machine. I am using JRE1.5 in both the machines. Any Ideas?? Exception in thread "main" java.lang.NullPointerException      at java.util

  • Flash in PDF?

    Is there any way to get flash content into a form made with LiveCycle designer. Is there a way to open it in acrobat and have it editable enought to insert a swf if not in LiveCycle? Short story is I want to drop a colorpicker into the form, and I ca

  • Indesign trial still extracting from overnight!

    Hi,  I have a Mac Book Pro,  latest iOS and have downloaded 2 trials on InDesign but never got to evaluate due to unforseen circumstances.  Have attempted a third trial but it has been 'extracting' since last night. I have quit the installer and trie

  • How do you file a complaint with the App store?

    Does anyone know how to file a complaint with the app-store people?  This may sound really childish but PlayFirst has a series of games called Dream Chronicles available in the app store.  They're listed as free then in the description they tell you