Parse problem using SOMSchema reading an .xsd file

          Platform: windowsXP, WLI2.1, WLS6.1sp1
          The following is extracted from a log of the sample WLI server.
          I used it as a platform for an adapter under development.
          The log shows an erronous SOMSchema after a failed creation of an application
          view.
          The cause is long before. During a parse of a schema.xsd from a file into a SOMSchema
          it loses a '/'.
          <xsd:element name="Value">
          <xsd:complexType>
          <xsd:complexContent>
          <xsd:extension base="xsd:complexType">
          <xsd:attribute name="col" use="required"/>
          <xsd:attribute name="row" use="required"/>
          </xsd:extension>
          --> <xsd:complexContent/>
          </xsd:complexType>
          </xsd:element>
          Of course I worked around by dropping the tag </xsd:complexContent/>. Without
          all parses allright.
          From the erronous SOMSchema you can derive valid DocumentRecords.
          For that reason I guess the problem is to be found in the schema package.
          

          Platform: windowsXP, WLI2.1, WLS6.1sp1
          The following is extracted from a log of the sample WLI server.
          I used it as a platform for an adapter under development.
          The log shows an erronous SOMSchema after a failed creation of an application
          view.
          The cause is long before. During a parse of a schema.xsd from a file into a SOMSchema
          it loses a '/'.
          <xsd:element name="Value">
          <xsd:complexType>
          <xsd:complexContent>
          <xsd:extension base="xsd:complexType">
          <xsd:attribute name="col" use="required"/>
          <xsd:attribute name="row" use="required"/>
          </xsd:extension>
          --> <xsd:complexContent/>
          </xsd:complexType>
          </xsd:element>
          Of course I worked around by dropping the tag </xsd:complexContent/>. Without
          all parses allright.
          From the erronous SOMSchema you can derive valid DocumentRecords.
          For that reason I guess the problem is to be found in the schema package.
          

Similar Messages

  • Problem using saxparser(reading japanese xml file)

    Hi everybody,
    I hav a problem while reading japanese xml file.(UTF-8 charset)
    I have to read the file and process it.
    But in the characters function of the saxparser(defaulthandler) the japanese chatracters are not read properly and the program is
    displaying some junk values(????) instead of the actual japanese characters.
    I am also usind xsd validation.
    I am not able to where the characters manipulation is being done.
    Please help me as soon as possible .
    Thanks in advance,
    Charan.

    There are a couple of things probably going on.
    1) When I've done things using Unicode unusual characters, they do not print properly if you do System.out.println( ). If you have a Gui panel and can put them into a JTextArea or JEditorPane, they may show up properly if you have set the font for that object to one that can display the characters.
    2) Many people starting with SAX write their code assuming that the characters method is only called once for each element that has text content. This is incorrect. The characters method can be called many times, and it is your responsibility to catch all of the data. In 1.4 you can use a StringBuffer, or in 1.5 there is a StringBuilder. You use these to accumulate the data from all of the calls to charactrers() between the startElement and endElement.
    Each parser can decide how often it calls characters, so you have to be able to process data from several calls.
    Dave Patterson

  • Using Adobe Reader for PDF Files

    I am having a heck of a problem using Adobe Reader to open PDF files.
    Work very well until last week when I downloaded the upgrade for the program. I had been using Adobe5 (6), upgraded to Adobe Reader 9. Now, I can not open a pdf file that is sent to me. Nor, can I save a file into the PDF format.
    I have done the pass word, permission thing, have removed the Adobe 9 from the hard drive and than reloaded it.
    Still have the same problems.
    Does anyone have any suggestions that they would be willing to provide that might get me back into business?

    Well up front I would like to thank all of you that responded, and tell you that I am sorry that I have not posted back. But, I have been trying to incorporate and to ensure that I have been following the suggestions that you have provided.
    Let me provide a bit more of information:
    I am trying to safe a chart from the Reunion Family program, which I have been using for a few years.
    I did save one Descendant chart and was able to send it to a group of the family as a PDF file. This was using adobe 5. After I sent that chart, I upgraded the adobe 5 software to adobe reader 9. Since the upgrade I have not been able to save a chart in the Graphic File.pdf. The file saves but when I open the file it is a one page blank document. However, I can go into preferences and by changing the view size, it will show the entire document (sometimes). I tried to save that document and send it, but the people who receive it stated that it comes as a blank page. I also, saved the file as a JPEG and sent it, but the people stated that it comes as a very narrow column, unreadable, and can not be open.
    I have went back and removed the installed upgrade and started from scratch, I am using the correct software package, and after uploading it, I do run the permissions program.
    So, once again I am trying to obtain some knowledge on how to safe the descendant file as a PDF file and send it by e mail.
    It is driving me crazy-and once again proves that the machine is much smarter than I.
    Any help would be appreciated.

  • I have been buying apps for a long time  without a problem using my credit card on file. All of a sudden itunes is not recognizing my card which is in good standing. All the info is correct but itunes/apple says it doesn't  match the bank info. Any ideas

    I have been buying apps for a long time  without a problem using my credit card on file. All of a sudden itunes is not recognizing my card which is in good standing. All the info is correct but itunes/apple says it doesn't  match the bank info. Any ideas?

    Answered in your Other post on this Topic...
    https://discussions.apple.com/message/24053626#24053626

  • Cant use adobe reader to open file because i get a window saying i mush agree to the terms an condui

    Cant use adobe reader to open file because i get a window saying i must agree to the term and conditions before i use it.    no place to do this

    Mac HD/Applications
    Double click the Adobe Reader app and accept the agreement.

  • How to read and XSD file in java prospective in NWDS

    Hi !!
    anybody can help me that
    how to read and XSD file in java prospective in Netweaver developer Studio
    Regards
    Abhishek Agrahari

    I guess you can make it more clear...

  • What file type should i use for reading a large file of data?

    I want to store data in a file and access them later. The data file could reach 500 to 1000 MBytes, as a binary file.
    I may have memory problems.
    I do not need the whole data in memory, only a few data each time, for my calculations.
    If i use a binary file, i can not read only a few data. I have to load the whole file and then read the data i need.
    Is this correct?
    If i use another type of file, can i read only a few bytes without loading the whole file?
    Maybe a TDMS file?
    Solved!
    Go to Solution.

    I would probably use a TDMS file for this since it could also be read into excel if it were small enough - just more flexiblility. But you can also do it using binary types. You don't have to read the entire file when using binary files. See below.

  • Firefox crashes when using adobe reader retriving pdf files

    For instance when I tried to get a pdf file from the IRS web site using adobe reader firefox crashes it also does the same thing on other sites with pdf files what would be the problem and how could I resolve this issue.

    Hi roy6640,
    Have you looked at the Knowledge Base articles [[Troubleshooting plugins]] or [[Using the Adobe Reader plugin with Firefox]]? There is some good information in there. You may want to try reinstalling the plugin as well or updating it if it is out of date.
    Hopefully this helps!

  • Problem using layers from another FLA file

    Hello
    I have an email form in my Flash MX 2004 site here:
    http://stevehigham59.7host.com/myFlash/myFlash.html
    The form, which consists of three layers and some Action
    Script, works fine.
    Then I have a site I am trying to customise, so I have
    recreated the form layer by layer. I do not get any error messages
    from Action Script, but when I try to send myself an email all I
    receive is a message entitled 'undefined'.
    That is, Flash seems to 'see' the PHP script I have -
    otherwise I would not receive any message at all - but it does not
    work as my form does in the link above.
    I thought, maybe, I had recreated the layers wrongly, so I
    did it again, but still no joy.
    What could be the problem?
    Many thanks.
    Steve

    In your "Read From Spreadsheet File", you have your delimiter set to "\s", meaning that the VI expects the delimiter between numbers to be a space.
    Have you actually looked at the formatting of your text file?  Evidently not.  The delimiter in your text file is a tab...not a space. 
    Delete the "\s" input to the VI (a tab delimiter is the default delimiter for "Read From Spreadsheet File") and it'll work fine.  I just did it, and sure enough, it works fine.
    The reason that "Read From Spreadsheet" cannot read your .xls file is because a file created with Excel (that is, an .xls file) is a custom Microsoft format, and not a standard text file.  In order to read an .xls file directly, you'll have to use ActiveX.
    Hope that helps.
    d
    Message Edited by DianeS on 02-14-2010 07:46 PM

  • Problems using AVI read/write example

    I would like to test some vision processing software I wrote by reading an AVI file rather than a live stream. I found the "AVI read/write example" mentioned on this forum and it sounds like exactly what i need, but I cannot get it to read my avi files. When I run the example read VI, it says "An exception occured with the external code called by a call library node". Doing further testing, I found one AVI on my computer that would work, all others crash the VI. Another odd behavior is that the "avi init read" subvi will return the wrong frame rate for some AVIs. I have tried both compressed and uncompressed AVIs all in RGB format. I have also tried different frame rates and encoding options for my AVI file with no luck. I am just a stud
    ent, so buying software is not an option for me.
    Has anyone had problems reading AVIs with this? Are there AVI encoding options that will make this VI work?

    Hello,
    I think the avi functions that you get are VFW based, it can not read
    any format of compression codec. But it should be able to read
    uncompressed AVI files. But anyway, if you can't get IMAQ-vision 7.0
    avi functions to try (I don't have, I don't know how it works), you
    can always get my IVision to try out. In IVision, there are two groups
    of avi functions. One is called "AVI functions", they are VFW based,
    so not always work for all kind compressed avi files, but I have
    another group called "Media files", the functions there work for all
    format compressed AVI files, including mpeg, asf, avi... you can
    access the frame image by using a callback vi (example included), seek
    the media position, change play rate, etc.
    Go to get a download at:
    http://www.hytekautomatio
    n.com/Products/IVision.html
    Irene
    excube wrote in message news:<50650000000800000028B00000-1068850981000@exc​hange.ni.com>...
    > I would like to test some vision processing software I wrote by
    > reading an AVI file rather than a live stream. I found the "AVI
    > read/write example" mentioned on this forum and it sounds like exactly
    > what i need, but I cannot get it to read my avi files. When I run the
    > example read VI, it says "An exception occured with the external code
    > called by a call library node". Doing further testing, I found one AVI
    > on my computer that would work, all others crash the VI. Another odd
    > behavior is that the "avi init read" subvi will return the wrong frame
    > rate for some AVIs. I have tried both compressed and uncompressed AVIs
    > all in RGB format. I have also tried different frame rates and
    > encoding options for my AVI file with no luck. I am just a student, so
    > buying software is not an option for me.
    >
    > Has anyone had problems reading AVIs
    with this? Are there AVI encoding
    > options that will make this VI work?

  • My Mac OS X v 10.6.8 used to read mpg movie files.  Now it doesn't.  What changed and how do I correct it?

    My Mac used to read mpg as well as mp4 movie files.  Now it does not recognize the .mpg movies.  What changed & how do I correct it?

    Try using the VLC Media Player.  It's free and can play just about any kind of media file or stream you can throw at it.

  • I try to open a PDF file but it will not. What can i use to read a PDF file.

    What can i use to read a PDF.

    1. Install free Adobe Reader App.
    2. Hold down attachment and "Open In" Adobe Reader
    http://i1224.photobucket.com/albums/ee374/Diavonex/fb20a68a.jpg

  • ResizeImage using dimensions read from text file

    XP Pro
    CS
    1GB Ram
    Javascripting
    Currently have the following code which works great.
    if (largePrefsIsOpen) {
    docRef.resizeImage(289,null);
    I am encountering a problem with trying to put a variable in the dimension area (289,null)
    I am reading a file that contains only the string "289,null" and want to read that into the resize paramaters as follows...
    if (largePrefsIsOpen) {
    docRef.resizeImage(largePrefsContents);
    I can see the value of largePrefsContents is "289,null" minus the quotes but the image is resized to the following pixel dimensions 1 X 7.
    The dimensions are read from a text file and put in the variable "largePrefsContents" but for some reason it is not resizing to that.
    Any help would be greatly appreciated.
    Jeff

    Thank you all very much.
    Paul R's and try67's solution both work.
    I can make this work but there still is an easier way for this - There has to be. :-)
    I would still love to be able to parse as in the original string from the text file "289,null". The reason being is that sometimes the image may be resized based on the height and that would leave the width null (null,289).
    That may not work in those cases because you won't know what is an integer and I have already thought through some lengthier code to make it work, but we all are trying to do the same thing - simpler and fewer lines of code are better.
    I think I would like to parse the list as first suggested by Mark Walsh and then take the advice from Paul R and try67 and work towards a solution for the parsed portions of the text file.
    I really do appreciate your time in looking this over.
    Jeff

  • Problem using Resource Bundle in XSLT File

    Hi All,
    I've been trying to use Resource Bundle on my XSLT file with no success for the last 2 weeks. So I would like some help to definitely end this problem.
    The fact is that i have a property file that i would like to read and it works fine when i use jsp or a servlet however when i try to call the same property file using my XSL i get the message below:
    java.util.MissingResourceException: Can't find bundle for base name thoth, locale en_US
    Follow the code from my Stylesheet that i'm calling the resource bundle:
    <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
    xmlns:java="java.util.ResourceBundle" exclude-result-prefixes="java" version="1.0">
    <xsl:strip-space elements="*"/>
    <xsl:output method="html" indent="yes" version="4.0"/>
    <xsl:output encoding="ISO-8859-1"/>
    <xsl:template match="page">
    <html>
    <body>
    <xsl:apply-templates select="paragraph"/>
    <xsl:variable name="resources" select="java:getBundle('thoth')"/>
    <xsl:value-of select="java:getString($resources,'general.title')"/>
    </body>
    </html>
    </xsl:template>
    </xsl:stylesheet>
    Please someone could help me why this file cannot be located, I am 100% of sure the property file path is in my classpath since it works fine in a servlet. Should i have to put it some other place? Do i have some other way to read this file and show the information from the file?
    I would appreciate any help
    thanks in advance and Regards
    Fabio

    Please someone could help me why this file cannot be located, I am 100% of sure the property file path is in my classpath since it works fine in a servlet.
    Is the property file in your classpath? or whether the directory where the property file is residing is in your classpath. Please put only the directory where the property file is located in the classpath and try again.
    It may be working fine with the servlet because j2ee servlet containers put the classes and lib directory automatically in the classpath therefore resource bundle gets loaded even without putting it explicitly in the classpath. This doesn't happen when you try to test some component from the console.
    Let me know if this does not work.
    regards,
    Abhishek.

  • Problem Using wlserver task in ant file

    I am trying to create a weblogic domain using the following in my ant file:
    <target name="new-server">
    <mkdir dir="/opt/deployment/domains" />
    <wlserver dir="/opt/deployment/domains"
    beahome="/opt/bea"
    domainname="SandboxDomain"
    servername="AdminServer"
    host="localhost" port="7001"
    generateConfig="true"
    username="weblogic" password="password"
    productionmodeenabled="false"
    action="start" failonerror="true" />
    </target>
    However, I keep getting the following exception:
    [wlserver] Exception in thread "main" java.lang.NoClassDefFoundError: weblogic/Server
    I am executing the ant script by placing the weblogic.jar file in the lib directory of ant. I am also using ant version 1.6.2. Any suggestions on how to remedy this problem would be appreciated.

    Hi,
    Had the same problem, try adding the classpath attribute to the wlserver tasks.
    example:
    <wlserver dir="${SERVER_DOMAINS}/test_domain"
    beahome="${SERVER_ROOT}"
    weblogichome="${SERVER_WEBLOGIC_HOME}"
    generateConfig="true"
    host="localhost"
    port="6001"
    username="${WEBLOGIC_USER}"
    password="${WEBLOGIC_PASSWORD}"
    servername="testServer"
    action="start"
    classpath="<wl_installdir>\server\lib\weblogic.jar">
    Regards,

Maybe you are looking for