URGENT Help for applet with JAR file in Netscape

I am having Applet with few classes
Html is in /www directory
and all class files are in /www/javaclassfiles
I jared all javaclassfiles with following command
c:\www\javaclassfiles>jar -cvf sample.jar TaxPaymentAppletForm.class *.class
where sample.jar is my jar file and TaxPaymentAppletForm.class is the main applet class file.
THEN I DELETED ALL CLASS FILES & KEPT ONLY SAMPLE.JAR FILE ON SERVER
My html code is like below:
<APPLET CODE="TaxPaymentAppletForm" ARCHIVE="sample.jar" CODEBASE="JavaClassFiles" WIDTH=460 HEIGHT=400></APPLET>
The things are running on IE properly, but not on Netscape. Netscape is giving following error :
java.io.IOException: <null>
at netscape.net.URLConnection.connect(Compiled Code)
at netscape.net.URLConnection.getInputStream(Compiled Code)
* at netscape.applet.AppletClassLoader.grabArchiveFile(Compiled Code)
at netscape.applet.AppletClassLoader.openArchive(Compiled Code)
at netscape.applet.AppletClassLoader.openArchive(Compiled Code)
at netscape.applet.AppletClassLoader.<init>(Compiled Code)
at netscape.applet.AppletClassLoader.getClassLoader(Compiled Code)
at netscape.applet.DerivedAppletFrame$LoadAppletEvent.dispatch(Compiled Code)
at java.awt.EventDispatchThread$EventPump.dispatchEvents(Compiled Code)
at java.awt.EventDispatchThread.run(Compiled Code)
at netscape.applet.DerivedAppletFrame$AppletEventDispatchThread.run(Compiled Code)
# Unable to load archive http://nearbuy_server:90/iras/JavaClassFiles/sample.jar: java.io.IOException: <null>
# Applet exception: class TaxPaymentAppletForm could not be loaded
# Applet exception: class TaxPaymentAppletForm could not be loaded
# Applet exception: class TaxPaymentAppletForm could not be loaded
In netscape also it is sometimes running some times not, without any logical reson.
Any help regarding this is appreciated
manisha

Following is the more detailed analysis when applet is running and when not
On local server, it is running fine on both IE / Netscape
When I transfered jar file to live server
On IE it is running for the first time and then onwards not running, If I clear the catch then again applet is running.
For second time it is giving following error :
IOException Loading Archive: http://dev1.janusx-collections.com/iras/JavaClassFiles/AppletForm.jar
java.io.IOException: dev1.janusx-collections.com:80//iras/JavaClassFiles/AppletForm.jar
at com/ms/net/wininet/http/HttpInputStream.connect
at com/ms/net/wininet/http/HttpInputStream.<init>
at com/ms/net/wininet/http/HttpURLConnection.createInputStream
at com/ms/net/wininet/WininetURLConnection.getInputStream
at com/ms/vm/loader/JarArchiveSet.loadNextJar
at com/ms/vm/loader/JarArchiveSet.getResourceBits
at com/ms/vm/loader/JarArchiveSet.getClassData
at com/ms/vm/loader/ResourceLoader.getClassData
at com/ms/vm/loader/URLClassLoader.findClass
at com/ms/vm/loader/URLClassLoader.loadClass
at com/ms/vm/loader/URLClassLoader.loadClass
at com/ms/applet/AppletPanel.processSentEvent
at com/ms/applet/AppletPanel.processSentEvent
at com/ms/applet/AppletPanel.run
at java/lang/Thread.run
java.lang.ClassNotFoundException: TaxPaymentAppletForm
at com/ms/vm/loader/URLClassLoader.loadClass
at com/ms/vm/loader/URLClassLoader.loadClass
at com/ms/applet/AppletPanel.processSentEvent
at com/ms/applet/AppletPanel.processSentEvent
at com/ms/applet/AppletPanel.run
at java/lang/Thread.run
ON Netscape it is NOT running at all on from live server and error is as given in above first post.
manisha

Similar Messages

  • Applet with jar file doesn't work in iframe

    Hi
    I have weired problem.
    I created a applet and work fine in jsp page but i created another jsp page that has iframe and when i try to open this applet in that iframe it doesn't work it just throws error file not found.
    Does anyone has any solution.
    Thanks in advance

    I ran into a similar problem before and worked around it by moving the query to a pipelined function in the database as described at WITH clause unexpectedly causes ORA-00942 in Reports Builder
    Hope this helps.

  • Urgent help please, I made an file with the size 1024x768, then i made two folios, one for retina 2048x1536 and one for non retina 1024x768, i have alot of video content in it, everything works perfect on my retina ipad, but when i open it on ipad 2 an er

    Urgent help please, I made an file with the size 1024x768, then i made two folios, one for retina 2048x1536 and one for non retina 1024x768, i have alot of video content in it, everything works perfect on my retina ipad, but when i open it on ipad 2 an error appears on the pages with video content?

    its in german:
    der Vorgang könnte nicht abgeschlossen werden.
    something like the process coundnt be completed

  • No more connections available to this remote computer...Urgent Help for File server...

    Hi Guys,
    I need urgent help regards to our school File server which is having "No more connection to this remote computer error"
    on SMB Shares where I usually authenticate with a domain username it used to work fine since till 3 weeks ago.
    Now I can browse the SMB shares with only IP... Netbios gets straight away this error message from non-domain joined pc's where the computer needs to connect to the SCCM distribution point on this file server.
    Strangely, Domain joined pc's does not have this problem at all they can use Netbios or IP no problem at all. But someone from a standalone laptop or desktop who needs to access shares through netbios gets this message.
    Can someone help me please?
    I did check DNS yet there is no problem on DNS I checked PTR record for the server to make sure it is not turned in to multihome accidently but nothing at all.
    I also did a NETMON where I captured the data from server and the client I get these errors:
    205 4:54:35 PM 16/12/2013
    7.3299179 10.2.1.96
    10.2.0.13 TCP
    TCP:Flags=......S., SrcPort=49312, DstPort=Microsoft-DS(445), PayloadLen=0, Seq=1771710719, Ack=0, Win=8192 ( Negotiating scale factor 0x2 ) = 8192
    {TCP:22, IPv4:21}
    206 4:54:35 PM 16/12/2013
    7.3299668 10.2.0.13
    10.2.1.96 TCP
    TCP:Flags=...A..S., SrcPort=Microsoft-DS(445), DstPort=49312, PayloadLen=0, Seq=2167618331, Ack=1771710720, Win=8192 ( Negotiated scale factor 0x8 ) = 2097152
    {TCP:22, IPv4:21}
    207 4:54:35 PM 16/12/2013
    7.3301468 10.2.1.96
    10.2.0.13 TCP
    TCP:Flags=...A...., SrcPort=49312, DstPort=Microsoft-DS(445), PayloadLen=0, Seq=1771710720, Ack=2167618332, Win=16425 (scale factor 0x2) = 65700
    {TCP:22, IPv4:21}
    208 4:54:35 PM 16/12/2013
    7.3301468 10.2.1.96
    10.2.0.13 SMB
    SMB:C; Negotiate, Dialect = PC NETWORK PROGRAM 1.0, LANMAN1.0, Windows for Workgroups 3.1a, LM1.2X002, LANMAN2.1, NT LM 0.12, SMB 2.002, SMB 2.???
    {SMBOverTCP:23, TCP:22, IPv4:21}
    209 4:54:35 PM 16/12/2013
    7.3307974 10.2.0.13
    10.2.1.96 SMB2
    SMB2:R   NEGOTIATE (0x0), GUID={8447F237-5219-D48A-40C0-29092450C68E}
    {SMBOverTCP:23, TCP:22, IPv4:21}
    210 4:54:35 PM 16/12/2013
    7.3314064 10.2.1.96
    10.2.0.13 SMB2
    SMB2:C   SESSION SETUP (0x1) {SMBOverTCP:23, TCP:22, IPv4:21}
    211 4:54:35 PM 16/12/2013
    7.3318815 10.2.0.13
    10.2.1.96 SMB2
    SMB2:R  - NT Status: System - Error, Code = (22) STATUS_MORE_PROCESSING_REQUIRED  SESSION SETUP (0x1), SessionFlags=0x0
    {SMBOverTCP:23, TCP:22, IPv4:21}
    212 4:54:35 PM 16/12/2013
    7.3324012 10.2.1.96
    10.2.0.13 SMB2
    SMB2:C   SESSION SETUP (0x1) {SMBOverTCP:23, TCP:22, IPv4:21}
    215 4:54:35 PM 16/12/2013
    7.3339977 10.2.0.13
    10.2.1.96 SMB2
    SMB2:R  - NT Status: System - Error, Code = (109) STATUS_LOGON_FAILURE  SESSION SETUP (0x1)  
    {SMBOverTCP:23, TCP:22, IPv4:21}
    216 4:54:35 PM 16/12/2013
    7.3341805 10.2.1.96
    10.2.0.13 TCP
    TCP:Flags=...A.R.., SrcPort=49312, DstPort=Microsoft-DS(445), PayloadLen=0, Seq=1771711788, Ack=2167619070, Win=0 (scale factor 0x2) = 0
    {TCP:22, IPv4:21}
    217 4:54:35 PM 16/12/2013
    7.3357089 10.2.1.96
    10.2.0.13 TCP
    TCP:Flags=......S., SrcPort=49313, DstPort=Microsoft-DS(445), PayloadLen=0, Seq=2943201172, Ack=0, Win=8192 ( Negotiating scale factor 0x2 ) = 8192
    {TCP:27, IPv4:21}
    218 4:54:35 PM 16/12/2013
    7.3357422 10.2.0.13
    10.2.1.96 TCP
    TCP:Flags=...A..S., SrcPort=Microsoft-DS(445), DstPort=49313, PayloadLen=0, Seq=3718656547, Ack=2943201173, Win=8192 ( Negotiated scale factor 0x8 ) = 2097152
    {TCP:27, IPv4:21}
    219 4:54:35 PM 16/12/2013
    7.3359768 10.2.1.96
    10.2.0.13 TCP
    TCP:Flags=...A...., SrcPort=49313, DstPort=Microsoft-DS(445), PayloadLen=0, Seq=2943201173, Ack=3718656548, Win=16425 (scale factor 0x2) = 65700
    {TCP:27, IPv4:21}
    220 4:54:35 PM 16/12/2013
    7.3359768 10.2.1.96
    10.2.0.13 SMB2
    SMB2:C   NEGOTIATE (0x0), GUID={8213462D-2600-D1B1-11E3-65FC4BCDE707}
    {SMBOverTCP:28, TCP:27, IPv4:21}
    221 4:54:35 PM 16/12/2013
    7.3364173 10.2.0.13
    10.2.1.96 SMB2
    SMB2:R   NEGOTIATE (0x0), GUID={8447F237-5219-D48A-40C0-29092450C68E}
    {SMBOverTCP:28, TCP:27, IPv4:21}
    222 4:54:35 PM 16/12/2013
    7.3369702 10.2.1.96
    10.2.0.13 SMB2
    SMB2:C   SESSION SETUP (0x1) {SMBOverTCP:28, TCP:27, IPv4:21}
    223 4:54:35 PM 16/12/2013
    7.3373474 10.2.0.13
    10.2.1.96 SMB2
    SMB2:R  - NT Status: System - Error, Code = (22) STATUS_MORE_PROCESSING_REQUIRED  SESSION SETUP (0x1), SessionFlags=0x0
    {SMBOverTCP:28, TCP:27, IPv4:21}
    224 4:54:35 PM 16/12/2013
    7.3377060 10.2.1.96
    10.2.0.13 SMB2
    SMB2:C   SESSION SETUP (0x1) {SMBOverTCP:28, TCP:27, IPv4:21}
    227 4:54:35 PM 16/12/2013
    7.3390552 10.2.0.13
    10.2.1.96 SMB2
    SMB2:R  - NT Status: System - Error, Code = (109) STATUS_LOGON_FAILURE  SESSION SETUP (0x1)  
    {SMBOverTCP:28, TCP:27, IPv4:21}
    Regards,
    Gokhan

    Solution has been found, 
    After doing bit of a backtrack, site DC's were out of sync with PDC with time.
    Also Time service was shutdown on PDC which has been enabled and pointed to the Australian pool ntp IP address.
    Everything is back on track now.
    Regards,
    Gokhan Cil

  • I am new with JAR files please help me

    Hi Dear All,
    I am new with JAR files, I know concept, but dont know how to careate JAR, and how do i use it?
    Please help me.
    Thanks

    This tutorial covers that:
    http://java.sun.com/docs/books/tutorial/deployment/jar/index.html

  • Problem loading Applets from Jar files on 64 bit machine

    I am developing an applet (extends Applet but uses swing components) using JDK 1.6 (Though these problems still happen in JDK 1.7) and I am unable to get the applet to load on a 64 bit machine in most cases. The web server(s) are running on localhost and I am connecting on the same machine using a local network ip address (such as 192.168.*.*)
    Below are all of my test results. Can someone provide a suggestion for repairing this? The Windows Server machine is a clients computer I access to it via remote desktop but I can't do much with it though I do have administrator rights. The Windows 7 machine is my development platform so I have been able to do extensive testing on it.
    This problem is presenting in the following environments when trying to load an applet from JAR files in a HTML document using the Applet or Object tag.
    Windows Server 2008 (Intel Chipset)
    Tested Browsers:
    Internet Explorer 9 (32 bit) - Shows it is blocked by default then simply shows an x when loaded from a web page, same result when loading from local drive.
    Windows 7 Home Premium (AMD Chipset)
    Tested Browsers:
    Firefox 6.0.1 (32 bit) - Java logo shows with spinner, after a few minutes there is finally an error that a class in the jar was not found
    Internet Explorer 9 (32 bit) - Java logo shows with spinner, after a few minutes there is finally an error that a class in the jar was not found
    Internet Explorer 9 (64 bit) - Java logo shows with spinner and most of the windows desktop manager freezes, keyboard is the only thing that responds so you can alt-tab to another app to regain control of the desktop.
    Chrome (32 bit) - Java logo shows with spinner, after a few minutes there is finally an error that a class in the jar was not found
    The only way I have been able to get a Java applet to run on a 64 bit machine are the following ways.
    Firefox 9 nightly (64 bit) works perfectly! Go Firefox!
    Internet Explorer 9 (32 bit) loading directly from drive (c:\...)
    Chrome (32 bit) loading directly from drive (c:\...)
    Firefox 6.0.1 (32 bit) loading directly from drive (c:\....)
    Can someone please help! I've been fighting with this bug for over a week and I can't find anything that will solve it, I have noticed that in some cases if my jar has very little code in it than it will run on the server, but the minute I start adding things to it the jar won't load anymore.

    jschell wrote:
    rritoch wrote:
    I am developing an applet (extends Applet but uses swing components) using JDK 1.6 (Though these problems still happen in JDK 1.7) and I am unable to get the applet to load on a 64 bit machine in most cases.
    To clarify...
    1. You have tried it on 32 bit machine? Exactly which OS?I tested this on Windows Vista Business which is in 32 bit mode and the applets run without any problems
    >
    2. Your only 64 bit tests have involved 2008/Win7?
    If so then I would suspect something with windows not java. Probably permissions.
    The web server(s) are running on localhost and I am connecting on the same machine using a local network ip address (such as 192.168.*.*)
    Yes, I haven't tried running the jars on other operating systems.
    >
    I don't understand that. If you are running on localhost then you should connect to localhost. If running on an IP then you should connect to that. Perhaps you meant that you have tested using both of those?I'm testing using the lan ip address but I'm connecting from the same machine. I've tried localhost and that didn't work so I tried lan ip since that will likely have a different java security context than localhost. At first I was blaming the IIS server but I downloaded the jar directly and using HTTP fox was able to verify that the jar is being sent with the correct mime-type and that the server can upload the jar file without a problem. This leaves me to believe the problem is with Java.

  • How do I update a file in an Applet's JAR file from the Applet code

    Here's my problem.
    My applet is using a serializable history data in which I am storing in the applet's JAR file. When I run the applet, I read the file with "getResourceAsStream()" and run my program with that hist data. When my applet is closed, I need to update this file from my Applet's code and I dumfounded about how to do that.
    Is there any way to update a file in the Applet's JAR file through the Java Applet code? (i.e. OutputStream?).
    Would appreciate any advice people have.

    Just place a copy of the file on the local hard disk and update that. When you start the Applet you try to read from the hard disk. If the file exists then no problem otherwise copy it from the jar to the hard disk.

  • Help on creating a jar file

    I created a game and I need help on creating a jar file.
    I know the basics such as having a root folder, a manifest file and what goes in it, etc. And I know some programs like JGrasp can do the jar file for you, but it tells me it cannot find the main class. Does anybody know another program that can do that for me, or can i easily do it manually?
    any help is appreciated

    You can use jar.exe to create jar files.
    Just type jar and hit enter on the console it will give the help message about parameters.
    if you do not really need to put any spesific menifest information. Just zip the files using some zip software and change the extenction to jar. (Thats what I am doing most of the time)

  • How to use javap with jar files ?

    how to use javap with jar files ?
    thanks

    As long as the jar is on the class path, your gold. So,
    javap -classpath myjar.jar mypackage.MyClass
    Chuck

  • Solutions for problems with QuickTime files in After Effects CC (12.0)

    We have a new blog post up about solutions for problems with QuickTime files in After Effects CC (12.0) because of conflict with DVCPROHDVideoOut QuickTime components. 
    Please read that post and let us know here on this forum thread if you have any questions or comments. 
    Also, please let us know if the proposed solution works for you.

    Mark - The new document that we published is meant to address a specific issue. You can confirm you have the issue by the following:
    Adobe QT32 Server is not running when you receive these errors. Keep Activity Monitor open to track whether or not it is running.
    The crash log for QT32 Server indicate CoreAudio as the last component called. You can find the crash logs in Users/username/Library/Logs/DiagnosticReports. The report will look like this:
    Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
    0   ???                                     0x04981f90 0 + 77078416
    1   com.apple.audio.CoreAudio               0x949d05c1 __Call_block_invoke_03 + 56
    2   libdispatch.dylib                       0x94a90f8f _dispatch_call_block_and_release + 15
    If this is not the issue you're having, please start a new thread and provide the usual data. If your problem does match this issue, please double-check that you've followed the steps in the new document and post back here.

  • Trouble with iPhoto after latest update for compatibility with RAW-files

    Hi all, I'm having serious trouble with iPhoto since the latest update for compatibility with RAW-files for digital fotocamera's (version 2.4).
    After connection with the camera iphoto starts up as usual and i can start importing my pictures. So far all goes well. After having imported my pictures (visual with thumbs and so one) and having created an event iPhoto isn't able to show any pictures. Stopping and restarting Iphoto gives a message that there are a number of photo's available that havent been imported yet (!!???). I can choose to import or ignore. Whatever i choose i'm not capable of visualising the photo's.
    Anyone with a similar problem and the solution? Can i remove the update?
    I've tried several camera's all with the same problem.
    thx for any replies
    niki001

    Hi Terence, thanks for the reply (i'll wait with the downgrade for now ;-p).
    I made a small step by step report of my findings:
    1. Attach camera to imac
    2. iPhoto starts up with previews of the pictures (so far so good)
    3. Give event-name and start import ( so far so good)
    4. 'Latest Import'-report all fine, previews ok, check with event : previews fine. All seems well
    5. disconnect camera, stop iPhoto. As far as now all seems normal.
    6. Restart iPhoto : Message 'iPhoto Library contains photo's which havent been imported. Import Y/N?'.!!!???
    7. Option Y : IPhoto imports photo's imported in step 3 in a new event box (shown as a 'black box' on screen). Last made event (step 3) shows up as a black square in overview all events. Double click on event gives empty squares where previews should appear. Double click on photo preview gives large explanationmark on screen.
    8. Drag event-box over screen shows thumbs within square, release event returns to 'black box'.
    9. Shut down iPhoto.
    10. Restart iPhoto jumps back to step 6 as long as i keep answering Y.(Each time creating a new extra 'black box event').
    11. When i now look within iPhoto Library i can find a map Import in which i can find back the last imported photo's from step 3.
    12. Dragging these pictures to my desktop (preview gives no problem at all) and from there back in to iPhoto simply recreats a new 'black box event'.
    13. In step 6 option N gives a message 'creat iphoto Library recovered'. In iPhoto Library map Import has disapeared.
    14.When looking into map 'iphoto Library recovered' i can find my originally iported photo's. However same problem as in step 12.
    I used aperture (trial version) to see wether the problem could be photo-related, but here al goes well.
    So, any idea's???
    thx

  • Just switching from CS4 & LR5 on Windows desktops to CS+LR monthly subcription for Mac, with catalogues, files etc residing on external HDD): Anything to be particularly aware of, or beware of, before/during switch?

    Just switching from CS4 & LR5 on Windows desktops to CS+LR monthly subcription for Mac, with catalogues, files etc residing on external HDD (due to multi-location living & lots of travel). Anything I need to be particularly aware of, or beware of, before/during switch? Thanks a lot for suggestions, recommendations, tips, experiences. Best, Joachim

    The switch should be straight forward but I would start by uninstalling LR 5. This is because there is no specific CC version of Lightroom and you can’t run the creative cloud version and the perpetual version on the same machine. Your catalog and images will be safe and will not be affected by uninstalling. CS4 will not be affected and will still work independently.
    Then launch CC desktop and go to the Apps tab. I would recommend installing in this order:
    Photoshop CC 2014
    Photoshop CC (if you need this to run old plug-ins)
    Lightroom 5
    If you install in that order LR will automatically recognize Photoshop for external editing from the LR Library.

  • Just switching from CS4 & LR5 on Windows desktops to CS+LR monthly subcription for Mac, with catalogues, files etc residing on external HDD: Anything I need to be particularly aware of, or beware of, before/during switch?

    Just switching from CS4 & LR5 on Windows desktops to CS+LR monthly subcription for Mac, with catalogues, files etc residing on external HDD (due to multi-location living & lots of travel). Anything I need to be particularly aware of, or beware of, before/during the switch? Thanks a lot for recommendations, suggestions, warnings, tips. Best, Joachim

    The switch should be straight forward but I would start by uninstalling LR 5. This is because there is no specific CC version of Lightroom and you can’t run the creative cloud version and the perpetual version on the same machine. Your catalog and images will be safe and will not be affected by uninstalling. CS4 will not be affected and will still work independently.
    Then launch CC desktop and go to the Apps tab. I would recommend installing in this order:
    Photoshop CC 2014
    Photoshop CC (if you need this to run old plug-ins)
    Lightroom 5
    If you install in that order LR will automatically recognize Photoshop for external editing from the LR Library.

  • Urgent help for processing XML stream read from a JAR file

    Hi, everyone,
         Urgently need your help!
         I am reading an XML config file from a jar file. It can print out the result well when I use the following code:
    ===============================================
    InputStream is = getClass().getResourceAsStream("conf/config.xml");
    BufferedReader br = new BufferedReader(new InputStreamReader(is));
    String line;
    while ((line = br.readLine()) != null) {
    System.out.println(line); // It works fine here, which means that the inputstream is correct
    // process the XML stream I read from above
    NodeIterator ni = processXPath("//grid/gridinfo", is);
    Below is the processXPath() function I have written:
    public static NodeIterator processXPath(String xpath, InputStream byteStream) throws Exception {
    // Set up a DOM tree to query.
    InputSource in = new InputSource(byteStream);
    DocumentBuilderFactory dfactory = DocumentBuilderFactory.newInstance();
    dfactory.setNamespaceAware(true);
    Document doc = dfactory.newDocumentBuilder().parse(in);
    // Use the simple XPath API to select a nodeIterator.
    System.out.println("Querying DOM using " + xpath);
    NodeIterator ni = XPathAPI.selectNodeIterator(doc, xpath);
    return ni;
    It gives me so much errors:
    org.xml.sax.SAXParseException: The root element is required in a well-formed doc
    ument.
    at org.apache.xerces.framework.XMLParser.reportError(XMLParser.java:1213
    at org.apache.xerces.framework.XMLDocumentScanner.reportFatalXMLError(XM
    LDocumentScanner.java:570)
    at org.apache.xerces.framework.XMLDocumentScanner$XMLDeclDispatcher.endO
    fInput(XMLDocumentScanner.java:790)
    at org.apache.xerces.framework.XMLDocumentScanner.endOfInput(XMLDocument
    Scanner.java:418)
    at org.apache.xerces.validators.common.XMLValidator.sendEndOfInputNotifi
    cations(XMLValidator.java:712)
    at org.apache.xerces.readers.DefaultEntityHandler.changeReaders(DefaultE
    ntityHandler.java:1031)
    at org.apache.xerces.readers.XMLEntityReader.changeReaders(XMLEntityRead
    er.java:168)
    at org.apache.xerces.readers.UTF8Reader.changeReaders(UTF8Reader.java:18
    2)
    at org.apache.xerces.readers.UTF8Reader.lookingAtChar(UTF8Reader.java:19
    7)
    at org.apache.xerces.framework.XMLDocumentScanner$XMLDeclDispatcher.disp
    atch(XMLDocumentScanner.java:686)
    at org.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocumentS
    canner.java:381)
    at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1098)
    at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.
    java:195)
    at processXPath(Unknown Source)
    Thank you very much!
    Sincerely Yours
    David

    org.xml.sax.SAXParseException: The root element is required in a well-formed document.This often means that the parser can't find the document. You think it should be able to find the document because your test code could. However if your test code was not in the same package as your real (failing) code, your test is no good because getResourceAsStream("conf/config.xml") is looking for that file name relative to the package of the class that contains that line of code.
    If your test code wasn't in any package, put a slash before the filename and see if that works.

  • Urgent help with jar file

    I'm writing a program in VB that calls on a JAR file. It has been working great for weeks. Last night, I moved the JAR file to a new location on my machine, and it suddenly stopped working at all.
    I know nothing about Java. Do I need to recompile the file? I tried moving the whole directory back to its original location but it didn't help.
    Thanks in advance.

    Dude I'm telling you straight up, the program has a bug. The evidence is in the error message. Maybe the bug was not manifested before, but it was there.
    Do you have access to the source? Do you know how to compile it? You should recompile it with the -g flag to include debug information. Then the error message will include a method name and line number for the offending portion of code. If you're not able to figure it out yourself, you could post that portion of code here for someone to comment on.

Maybe you are looking for