SAXParser InputStream problem - URGENT

hi
i'm trying to parse a a xml document as an inputstream, but every time i try to compile the code the following error appears:
"Incompatible type for method. Can't convert java.io.InputStream to java.lang.String".
the parse constructor as an inputstream input parameter. i don't know why this error happens.
the code is something like this:
Parser parser = new SAXParser();
InputStream is =null;
parser.setDocumentHandler(sample);
parser.setEntityResolver(sample);
parser.setDTDHandler(sample);
parser.setErrorHandler(sample);
//some code
//texto_xml is a CLOB variable
is = texto_xml.getAsciiStream();
parser.parse(is);
can someone help me?
thanks in advanced

Also, use the factory to get your SAX Parser instance:
SAXParserFactory factory=SAXParserFactory.newInstance();
factory.setValidating( true ); //set true to validate content against DTD
SAXParser parser = factory.newSAXParser();

Similar Messages

  • J2EE StartUp Problem, URGENT.

    Hi all!
    I'm having a problem since friday with the J2EE Engine Startup. The problem is that MMC says me that the server is running but i can access to the server by anyway. The developer trace of the jcontrol process is:
    [Thr 2968] Tue Aug 09 13:59:50 2005
    [Thr 2968] JControlICheckProcessList: process server0 started (PID:1544)
    JStartupStartJLaunch: program = C:\usr\sap\J2E\JC00/j2ee/os_libs/jlaunch.exe
    -> arg[00] = C:\usr\sap\J2E\JC00/j2ee/os_libs/jlaunch.exe
    -> arg[01] = pf=C:\usr\sap\J2E\SYS\profile\J2E_JC00_toshiba-user
    -> arg[02] = -DSAPINFO=J2E_00_sdm
    -> arg[03] = -file=C:\usr\sap\J2E\JC00\SDM\program\config\sdm_jstartup.properties
    -> arg[04] = -nodeName=sdm
    -> arg[05] = -nodeId=2
    -> arg[06] = -syncSem=JSTARTUP_WAIT_ON_2964
    -> arg[07] = -jvmOutFile=C:\usr\sap\J2E\JC00\work\jvm_sdm.out
    -> arg[08] = -stdOutFile=C:\usr\sap\J2E\JC00\work\std_sdm.out
    -> arg[09] = -locOutFile=C:\usr\sap\J2E\JC00\work\dev_sdm
    -> arg[10] = -mode=JCONTROL
    -> arg[11] = pf=C:\usr\sap\J2E\SYS\profile\J2E_JC00_toshiba-user
    -> lib path = PATH=C:\j2sdk1.4.2_08\jre\bin\server;C:\j2sdk1.4.2_08\jre\bin;C:\oracle\WAS\92\bin;C:\oracle\WAS\92\jre\1.4.2\bin\client;C:\oracle\WAS\92\jre\1.4.2\bin;C:\Program Files\Oracle\jre\1.3.1\bin;C:\Program Files\Oracle\jre\1.1.8\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\j2sdk1.4.2_08\bin;C:\oracle\WAS\92\Appache\perl\5.00503\bin\MSWin32-x86;C:\usr\sap\J2E\SCS01\exe;C:\usr\sap\J2E\JC00\exe;C:\usr\sap\J2E\SYS\exe\run
    -> exe path = PATH=C:\j2sdk1.4.2_08\bin;C:\usr\sap\J2E\JC00\j2ee\os_libs;C:\oracle\WAS\92\bin;C:\oracle\WAS\92\jre\1.4.2\bin\client;C:\oracle\WAS\92\jre\1.4.2\bin;C:\Program Files\Oracle\jre\1.3.1\bin;C:\Program Files\Oracle\jre\1.1.8\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\j2sdk1.4.2_08\bin;C:\oracle\WAS\92\Appache\perl\5.00503\bin\MSWin32-x86;C:\usr\sap\J2E\SCS01\exe;C:\usr\sap\J2E\JC00\exe;C:\usr\sap\J2E\SYS\exe\run
    [Thr 2968] Tue Aug 09 13:59:51 2005
    [Thr 2968] JControlICheckProcessList: process SDM started (PID:1556)
    [Thr 1188] Tue Aug 09 14:01:01 2005
    [Thr 1188] JControlMSMessageFunc: receive command:6, argument:1213679940 from Message Server
    [Thr 1188] JControlMSMessageFunc: receive command:6, argument:1213679940 from Message Server
    [Thr 1188] JControlMSMessageFunc: receive command:6, argument:1213679940 from Message Server
    [Thr 1188] JControlMSMessageFunc: receive command:6, argument:1213679940 from Message Server
    [Thr 1188] JControlMSMessageFunc: receive command:6, argument:1213679940 from Message Server
    [Thr 1188] JControlMSMessageFunc: receive command:6, argument:1213679940 from Message Server
    [Thr 1188] JControlMSMessageFunc: receive command:6, argument:1213679940 from Message Server
    [Thr 1188] JControlMSMessageFunc: receive command:6, argument:1213679940 from Message Server
    [Thr 1188] Tue Aug 09 14:01:58 2005
    [Thr 1188] JControlMSMessageFunc: receive command:6, argument:1213679940 from Message Server
    [Thr 1188] JControlMSMessageFunc: receive command:6, argument:1213679940 from Message Server
    [Thr 1188] JControlMSMessageFunc: receive command:6, argument:1213679940 from Message Server
    [Thr 1188] JControlMSMessageFunc: receive command:6, argument:1213679940 from Message Server
    [Thr 1188] JControlMSMessageFunc: receive command:6, argument:1213679940 from Message Server
    [Thr 1188] JControlMSMessageFunc: receive command:6, argument:1213679940 from Message Server
    [Thr 1188] JControlMSMessageFunc: receive command:6, argument:1213679940 from Message Server
    [Thr 1188] JControlMSMessageFunc: receive command:6, argument:1213679940 from Message Server
    [Thr 1188] Tue Aug 09 14:10:25 2005
    [Thr 1188] JControlMSReadMessage: NiPeek() returns -5 NIETIMEOUT
    [Thr 1188] Tue Aug 09 14:15:45 2005
    [Thr 1188] JControlMSReadMessage: NiPeek() returns -5 NIETIMEOUT
    [Thr 1188] Tue Aug 09 14:20:46 2005
    [Thr 1188] JControlMSReadMessage: NiPeek() returns -5 NIETIMEOUT
    [Thr 1188] Tue Aug 09 14:26:06 2005
    [Thr 1188] JControlMSReadMessage: NiPeek() returns -5 NIETIMEOUT
    [Thr 1188] Tue Aug 09 14:31:07 2005
    [Thr 1188] JControlMSReadMessage: NiPeek() returns -5 NIETIMEOUT
    [Thr 1188] Tue Aug 09 14:36:27 2005
    [Thr 1188] JControlMSReadMessage: NiPeek() returns -5 NIETIMEOUT
    [Thr 1188] Tue Aug 09 14:41:28 2005
    [Thr 1188] JControlMSReadMessage: NiPeek() returns -5 NIETIMEOUT
    Then i try to login the visual admin gives me a windows error and the msg_server process shuts down alone. Then i restart that node and agregate the following lines to the trace:
    Thr 1188] Tue Aug 09 14:42:25 2005
    [Thr 1188] *** ERROR => MsINiRead: NiBufReceive failed (NIECONN_BROKEN) [msxxi.c      2488]
    [Thr 1188] *** ERROR => MsIReadFromHdl: NiRead (rc=NIECONN_BROKEN) [msxxi.c      1652]
    [Thr 1188] Tue Aug 09 14:42:27 2005
    [Thr 1188] ***LOG Q0I=> NiPConnect2: SiPeekPendConn (10061: WSAECONNREFUSED: Connection refused) [nixxi_r.cpp 8588]
    [Thr 1188] *** ERROR => MsIAttachEx: NiBufConnect to toshiba-user/3601 failed (rc=NIECONN_REFUSED) [msxxi.c      633]
    [Thr 1188] *** WARNING => Can't reconnect to message server (toshiba-user/3601) [rc = -100]-> reconnect [jcntrms.c    295]
    [Thr 1188] Tue Aug 09 14:42:32 2005
    [Thr 1188] *** ERROR => MsIAttachEx: NiBufConnect to toshiba-user/3601 failed (rc=NIECONN_REFUSED) [msxxi.c      633]
    [Thr 1188] *** WARNING => Can't reconnect to message server (toshiba-user/3601) [rc = -100]-> reconnect [jcntrms.c    295]
    [Thr 1188] Tue Aug 09 14:42:38 2005
    [Thr 1188] *** ERROR => MsIAttachEx: NiBufConnect to toshiba-user/3601 failed (rc=NIECONN_REFUSED) [msxxi.c      633]
    [Thr 1188] *** WARNING => Can't reconnect to message server (toshiba-user/3601) [rc = -100]-> reconnect [jcntrms.c    295]
    [Thr 1188] Tue Aug 09 14:42:44 2005
    [Thr 1188] *** ERROR => MsIAttachEx: NiBufConnect to toshiba-user/3601 failed (rc=NIECONN_REFUSED) [msxxi.c      633]
    [Thr 1188] *** WARNING => Can't reconnect to message server (toshiba-user/3601) [rc = -100]-> reconnect [jcntrms.c    295]
    [Thr 1188] Tue Aug 09 14:42:49 2005
    [Thr 1188] JControlMSConnect: reconnected to message server (toshiba-user/3601)
    [Thr 1188] Tue Aug 09 14:48:11 2005
    [Thr 1188] JControlMSReadMessage: NiPeek() returns -5 NIETIMEOUT
    [Thr 1188] Tue Aug 09 14:53:12 2005
    [Thr 1188] JControlMSReadMessage: NiPeek() returns -5 NIETIMEOUT
    [Thr 1188] Tue Aug 09 14:58:32 2005
    [Thr 1188] JControlMSReadMessage: NiPeek() returns -5 NIETIMEOUT
    I try to login the visual admin again and gives me the following error: "Cannot open connection on host: 191.9.6.22 and port: 50004"
    Looking the log and trace files i see the following errors:
    - SAPEngine_System_Thread[impl:5]_5##0#0#Error#1#/System/Server#Plain###Encomi: failed to connect to toshiba-user/3201(Connection refused: connect)#
    - java.net.SocketException: socket closed
         at java.net.PlainSocketImpl.socketAccept(Native Method)
         at java.net.PlainSocketImpl.accept(PlainSocketImpl.java:353)
         at java.net.ServerSocket.implAccept(ServerSocket.java:448)
         at java.net.ServerSocket.accept(ServerSocket.java:419)
         at com.sap.engine.core.port.impl0.ServerSocketListener.run(ServerSocketListener.java:87)
    - erver socket listener opened by service on socket encountered error. The listener will be stopped.#2#p4#ServerSocket[addr=/0.0.0.0,port=0,localport=50004]
    I dont know whats happening, if somebody knows i hope that helps me. Please is urgent.
    Thx and Rgds.
    Gregory

    Hi, thx a lot both.
    Respect the link
    http://<hostname>:50<instanceno>00/sap/monitoring/SystemInfo , i cant access it. I cant access by telnet, by visual admin.
    In the work folder under \usr\sap\<sid>\JC00 i found that the last updated files are:
    - available.txt that contains the following data:
        Unavailable 08.08.2005 10:46:53 - 08.08.2005 10:58:54
        Available   08.08.2005 10:59:54 - 08.08.2005 13:52:54
        Unavailable 08.08.2005 13:53:54 - 08.08.2005 13:53:54
        Available   08.08.2005 13:54:54 - 08.08.2005 14:03:54
        Unavailable 08.08.2005 14:04:54 - 08.08.2005 14:04:54
        Available   08.08.2005 14:05:54 - 08.08.2005 14:34:54
        Unavailable 08.08.2005 14:35:54 - 08.08.2005 14:39:44
        Unavailable 08.08.2005 14:56:17 - 08.08.2005 16:24:13
        Unavailable 08.08.2005 16:28:07 - 08.08.2005 16:29:07
        Unavailable 08.08.2005 16:34:36 - 08.08.2005 17:17:58
        Unavailable 09.08.2005 08:13:36 - 09.08.2005 08:54:33
        Unavailable 09.08.2005 08:57:04 - 09.08.2005 12:46:25
        Available   09.08.2005 12:47:25 - 09.08.2005 13:26:25
        Available   09.08.2005 13:43:56 - 09.08.2005 13:55:56
        Unavailable 09.08.2005 13:56:40 - 09.08.2005 14:04:57
        Available   09.08.2005 14:05:57 - 09.08.2005 16:16:57
        Unavailable 09.08.2005 16:17:57 - 09.08.2005 17:27:12
        Unavailable 10.08.2005 08:10:30 - 10.08.2005 08:35:39
        Available   10.08.2005 08:36:39 - 10.08.2005 09:16:39
        Available   10.08.2005 12:33:51 - 10.08.2005 14:01:51
    - dev_jcontrol that contains the information displayed in the developer trace of jcontrol process(and y mentioned above)
    - dev_dispatcher that contains the following info:
        [Thr 2664] Wed Aug 10 08:33:04 2005
        [Thr 2664] JHVM_RegisterNatives: registering methods in com.sap.bc.proj.jstartup.JStartupFramework
        [Thr 2664] JLaunchISetClusterId: set cluster id 5761000
        [Thr 2664] JLaunchISetState: change state from [Initial (0)] to [Waiting for start (1)]
        [Thr 2664] JLaunchISetState: change state from [Waiting for start (1)] to [Starting (2)]
        [Thr 3320] Wed Aug 10 08:33:21 2005
        [Thr 3320] JLaunchISetP4Port: set p4 port 50004
        [Thr 3528] Wed Aug 10 08:33:26 2005
        [Thr 3528] JLaunchISetTelnetPort: set telnet port 50008
        [Thr 3528] JLaunchISetTelnetPort: set telnet port 50008
        [Thr 3584] Wed Aug 10 08:33:55 2005
        [Thr 3584] JLaunchISetHttpPort: set http port 50000
        [Thr 2664] Wed Aug 10 08:34:02 2005
        [Thr 2664] JLaunchISetState: change state from [Starting (2)] to [Running (3)]
        [Thr 2568] Wed Aug 10 08:34:08 2005
        [Thr 2568] JHVM_RegisterNatives: registering methods in com.sap.mw.rfc.driver.CpicDriver
        [Thr 3660] Wed Aug 10 08:35:07 2005
        [Thr 3660] JLaunchISetP4Port: set p4 port 50004
        [Thr 3600] Wed Aug 10 08:36:34 2005
        [Thr 3600] JLaunchISetHttpPort: set http port 50000
        [Thr 3612] Wed Aug 10 12:43:40 2005
        [Thr 3612] JLaunchISetHttpPort: set http port 50000
        [Thr 3612] JLaunchISetP4Port: set p4 port 50004
        [Thr 3612] JLaunchISetTelnetPort: set telnet port 50008
    - dev_server0 that contains:
        [Thr 2676] Wed Aug 10 08:33:06 2005
        [Thr 2676] JHVM_RegisterNatives: registering methods in com.sap.bc.proj.jstartup.JStartupFramework
        [Thr 2676] JLaunchISetClusterId: set cluster id 5761050
        [Thr 2676] JLaunchISetState: change state from [Initial (0)] to [Waiting for start (1)]
        [Thr 2676] JLaunchISetState: change state from [Waiting for start (1)] to [Starting (2)]
        [Thr 4296] Wed Aug 10 08:34:58 2005
        [Thr 4296] JHVM_RegisterNatives: registering methods in com.sap.mw.rfc.driver.CpicDriver
        [Thr 4296] Wed Aug 10 08:35:00 2005
        [Thr 4296] JHVM_RegisterNatives: registering methods in com.sap.mw.jco.util.SAPConverters
        [Thr 4296] JHVM_RegisterNatives: registering methods in com.sap.mw.jco.util.SAPCharToNUCByteConverter
        [Thr 4296] Wed Aug 10 08:35:01 2005
        [Thr 4296] JHVM_RegisterNatives: registering methods in com.sap.mw.jco.util.SAPNUCByteToCharConverter
        [Thr 2676] Wed Aug 10 08:35:07 2005
        [Thr 2676] JLaunchISetState: change state from [Starting (2)] to [Starting applications (10)]
        [Thr 208] Wed Aug 10 08:36:34 2005
        [Thr 208] JLaunchISetState: change state from [Starting applications (10)] to [Running (3)]
    I still dont know whats happening. And i need to solve the problem urgent. I hope u can help me.
    Thx and Rgds.
    Gregory.

  • DATE FIELD PROBLEMS - URGENT

    I´m having trouble with FormsCentral.
    My form is running about 8 months with no problems.
    Yesterday people started to complain that the system doesn´t accept any date.
    That means the date field restricts date entries, from date dd/mm/aaaa (brazilian format) to another dd/mm/aaaa, but every date that users input in, is considered by the system as invalid, even it´s a correct and valid date right between the interval specified!
    I need Help Urgent!!!
    I depend on these forms to finish the payrol service from here.
    Thanks
    I´ll be waiting.
    Maurício Galletti
    Message was edited by: SNOWMAUSS
    It look like the system accepts just dates starting from the date of today.
    I´m testing.
    Please help.
    Thanks
    Message was edited by: SNOWMAUSS
    It looks like the system have some problem just with the date 20/10/2013?!
    I´ve fixed the problem change the interval from 20/10/2013 to another date  and used  21/10/2013 to another date and it works!
    But I think something is wrong with the 20/10/2013 date?!
    To reproduce the erros just create a new form with date feature with this exaclty configurations and the bug appears:
    I´ll keep waiting
    Message was edited by: SNOWMAUSS

    Hi
    I´ve concluded that the problem persist if the date interval starts at the
    specific date "20/10/2013". Don´t know why?!
    Look at the screen capture above, you aks for
    Thanks a lot
    image: Imagem inline 1
    Maurício P. Galletti
    Contador
    [email protected]
    ( 55 11 3331-5567
    www.cadt.com.br
    2013/10/29 Genevieve Laroche <[email protected]>
       Re: DATE FIELD PROBLEMS - URGENT  created by Genevieve Laroche<http://forums.adobe.com/people/Genevieve+Laroche>in
    FormsCentral - View the full discussion<http://forums.adobe.com/message/5797083#5797083

  • Details:  i can not buy any thing from the app store and any thing from in side any games pls fix my problem urgent and as soon

    Details:
    Hi i can not buy any thing from the app store and any thing from in side any games pls fix my problem urgent and as soon
    Note this is second email pls answer and fix my problem
    <Email Edited by Host>

    These are public forums, you are not talking to iTunes Support here (most of the people here, including myself, are fellow users) - I've asked the hosts to remove your email address from your post
    If you are getting a message to contact iTunes support then you can do so via this page and ask them why the message is appearing (we won't know why) : http://www.apple.com/support/itunes/contact/ - click on Contact iTunes Store Support on the right-hand side of the page, then Purchases, Billing & Redemption
    If it's a different problem ... ?

  • Pricing problem-Urgent

    Hi all,
    iam getting a problem regarding pricing.
    When i make a Sales doc. with reference to an invoice,
    everything is being copied from invoice to the sales doc.-customer, material  and its no. , sales area, payment terms, incoterms, and material qty. also.
    But the pricing of the invoice is not getting copied on to the sales doc.
    I have maintained all checks available in the sales doc. type and the item category of the sales doc. type i.e
    Pricing: X
    and then in OVKK , i have maintained the doc. pric. procedure of the sales doc. type  with the pricing procedure of the invoice
    and again in the copy control measures, i have maintained
    Pricing type: D
    But i still not able to copy pricing procedure from the invoice to the Sales doc.
    I want the soltn. urgently.
    Thanks in advance
    Sourav

    run VTAF for your sales doc type/bil type
    and check item category
    set flag for "update doc flow"
    and pricing type B

  • HTML Link problem (Urgent!)

    I'm writing a prrogram that displays an HTML file. I used a JEditorPane. I tryed using the hyperlinkListener but it doesn't work! here's the class I wrote...
    can anyone help please?
    import java.awt.*;
    import java.awt.event.*;
    import java.io.*;
    import java.util.*;
    import javax.swing.*;
    import browser.*;
    import java.net.*;
    import javax.swing.event.*;
    * Classe :
    * Description :
    * Societe : Medias France
    * @version 1.0
    public class Aide extends JFrame implements HyperlinkListener
         BrowserInterface bI;
         URL url1;
         static Interface parent;
         public Aide(String titre, Interface i)
              super(titre);
              parent = i;
              getContentPane().setLayout(new BorderLayout());
              //bI = new BrowserInterface(jp);
              setBounds(10,10,800,600);
              addWindowListener(new WindowAdapter()
                   public void windowClosing(WindowEvent e)
                   quit(null);
              try
                   url1 = new URL("file:/home/darkazan/java/BDO/tablegen-1.8/help/help.html");
                   //bI.URL_Process(url1);
              catch (MalformedURLException e)
                   System.out.println("probleme " + e.toString());
              JEditorPane editorPane = new JEditorPane();
         editorPane.setEditable(false);
         try
         editorPane.setPage(url1);
         catch (IOException e)
         System.err.println("Attempted to read a bad URL: " + url1);
         JScrollPane editorScrollPane = new JScrollPane(editorPane);
              editorScrollPane.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED);
         editorScrollPane.setPreferredSize(new Dimension(800, 600));
         getContentPane().add(editorScrollPane, "Center");
         pack();
         setVisible(true);
         public void hyperlinkListener(HyperlinkEvent e)
              if (e.getEventType() == HyperlinkEvent.EventType.ACTIVATED)
         // do something on HL click
    System.out.println("ouverture");
              if (e.getEventType() == HyperlinkEvent.EventType.ENTERED)
              // do something on mouse over HL
         // do something on HL click
         System.out.println("bbbbbbbbbbbbbbbbbbbb");
    if (e.getEventType() == HyperlinkEvent.EventType.EXITED)
    // do something on HL click
    System.out.println("ggggggggggggggggggg");
    // do something on mouse moved away from HL
         public void hyperlinkUpdate(HyperlinkEvent e)
         public static void main(String[] args)
              Aide aide1 = new Aide("Help", parent);
         * Quitter l'application
         * @param     e L'evenement recu
         * @return     Sans objet.
         void quit(ActionEvent e)
              parent.bAide.setEnabled(true);
              dispose();
    }

    also check your file protocol it should look like this: file:/// with three slashes(i think?)
    here Mr. Urgent, my html viewer: (and it works) ;P
    import javax.swing.*;
    import javax.swing.event.*;
    import javax.swing.text.*;
    import javax.accessibility.*;
    import java.awt.*;
    import java.awt.event.*;
    import java.net.URL;
    import java.net.MalformedURLException;
    import java.io.IOException;
    public class iROCHelp extends JPanel implements HyperlinkListener{
    //ATTRIBUTES
    JEditorPane html;
    private static boolean HelpShowing = false;
    private static JFrame selTopic;
    //METHODS
    //Constructor
    public iROCHelp(java.net.URL URLstr){
    //setBorder(new EmptyBorder());
    setLayout(new BorderLayout());
    try{
    URL url = URLstr;
    if(url != null){
    html = new JEditorPane(url);
    html.setEditable(false);
    html.addHyperlinkListener(this);
    JScrollPane scroller = new JScrollPane();
    JViewport vp = scroller.getViewport();
    vp.add(html);
    vp.setBackingStoreEnabled(true);
    add(scroller, BorderLayout.CENTER);
    catch (MalformedURLException e){
    System.out.println("Malformed URL: " + e);
    catch (IOException e){
    System.out.println("IOException: " + e);
    }//HelpTopic CONSTRUCTOR
    public void hyperlinkUpdate(HyperlinkEvent e){
    if (e.getEventType() == HyperlinkEvent.EventType.ACTIVATED){
    linkActivated(e.getURL());
    }//hyperlinkUpdate
    protected void linkActivated(URL u){
    Cursor c = html.getCursor();
    Cursor waitCursor = Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR);
    html.setCursor(waitCursor);
    SwingUtilities.invokeLater(new PageLoader(u, c));
    }//linkActivated
    class PageLoader implements Runnable{
    PageLoader(URL u, Cursor c){
    url = u;
    cursor = c;
    public void run(){
    if (url == null){
    // restore the original cursor
    html.setCursor(cursor);
    Container parent = html.getParent();
    parent.repaint();
    else{
    Document doc = html.getDocument();
    try{
    html.setPage(url);
    catch (IOException ioe){
    html.setDocument(doc);
    finally{
    // schedule the cursor to revert after
    // the paint has happended.
    url = null;
    SwingUtilities.invokeLater(this);
    }//else
    }//run
    URL url;
    Cursor cursor;
    }//PageLoader
    public static void spawnHelp(java.net.URL URLStr){
    if (!HelpShowing){
    selTopic = new JFrame();
    selTopic.getContentPane().setLayout(new BorderLayout());
    selTopic.getContentPane().add(new iROCHelp(URLStr),BorderLayout.CENTER);
    Dimension dim = selTopic.getToolkit().getScreenSize();
    selTopic.setLocation((int)dim.getWidth()/2-selTopic.getWidth()/2,(int)dim.getHeight()/2-selTopic.getHeight()/2);
    selTopic.setSize(500, 400);
    selTopic.setTitle("Remote Operators Console Help");
    selTopic.addWindowListener(new WindowAdapter(){
    public void windowClosing(WindowEvent e){
    closeHelp();
    }//windowClosing
    selTopic.show();
    HelpShowing = true;
    }//if help showing
    }//spawnHelp
    public static void closeHelp(){
    if (HelpShowing){
    selTopic.dispose();
    HelpShowing = false;
    }//closeHelp
    }//HelpTopic CLASS

  • Media reconnection problem URGENT!

    I am in a very urgent situation.
    Working on a feature length project and today after opening 2 sequences I was working on yesterday I had to relink media, because my scratch disks were not connected.
    While relinking, final cut pop up says that some clips' media start & end has changed , continue with relinking or cancel. I had to continue work so I went on. Alas, now i am in front of a nightmare!
    Both sequencies have been altered. In some areas the edits look the same but the content is different, in other areas cuts have been totaly removed.
    please help.

    Thank you for trying to help. These file were imported by log and capture and were atomaticaly converted to prores 422 LT. I did not mess around with file names, as the names were given during the log and transfer proccess.
    This is definetely a final cut bug.
    The problem dissapeared (not solved though, as the reasons remain unknown) with the folowing way:
    a) I open one of the backed up files and looked at my rough cut wich consists of sequencies.
    b) By playing the 2 specific sequencies on the rough cut, there was no error in the edit.
    c) By opening these 2 sequencies on the project browser, there was a different edit !!!!
    d) By going back to the rough cut and double clicking on the nested sequence, I could see the original edit.
    e) Now I had  one specific sequence in the timeline, the same name, the identical sequence, opened in two different tabs. In one tab (the sequence that i entered to through the rough cut) the edit was the original, in the other tab (the one that i opened through the project browser) the edit was distorted !!!
    f) I copied the clips of the original edit to a newly created sequence.
    g) I deleted the old- problematic sequence
    h) i repeated the process with the second sequence that was altered by final cut on its own will.
    I hope this will help someone in a similar situation and I keep this question as unsolved, because in reality noone really knows - until now- the reason for this situation. Thank god it was solved.

  • MSI 6368 with USB problem (URGENT)

    I have an urgent need to solve this problem.
    Client has a computer based on this motherboard, with Celeron 1.1 Ghz, WIN 98 Second Edition.
    The USB port works with a Microsoft mouse. Client tries to install a Canon digital camera (D60), but the USB port cannot see the camera.
    Is there something I should be doing?
    Thanks a lot

    try a different cable?  Not sure about Canon but they might need a program that they supply with the camera to move the files off of the camera.  Sort of like MP3 players and how they ship with their own proprietary software to move files onto the player and etc.

  • Parsing from InputStream problem

    I have a serious problem with parsing XML from an InputStream.
    It is the exact same problem other people had before in those threads :
    http://forum.java.sun.com/thread.jsp?forum=34&thread=343710
    http://forum.java.sun.com/thread.jsp?forum=34&thread=68180
    http://forum.java.sun.com/thread.jsp?forum=34&thread=68259
    I have read the FAQ at http://www.jdom.org/docs/faq.html which suggest the following :
    byte[] buf = new byte[length];
    new DataInputStream(inputStream).readFully(buf);
    InputStream in = new ByteArrayInputStream(buf);
    (Contributed by Joseph Bowbeer)
    But my problem still remains the same. What happens if more than 1 XML documents were writen in the InputStream because the writting took place very fast and the receiver could not parse the XML document fast enough so now the byte buffer 'buf' contains 2 XML documents one after the other ? What if it contains half XML document because the sender was temporarily blocked or something; and after some time it continues with the rest XML document ?
    how could I overcome those problems ?
    thanks

    The root cause of the problems reported in this and other threads seems to be the SAX parsers are buffering the entire input stream before they commence parsing (which appears to be completely contrary to the spirit of SAX). This explains the parser hanging behaviour reported by some folk. It also explains why the parsers are awaiting for some sort of EOF marker before they begin parsing.
    Maybe this buffering behaviour has been fixed in the newer releases of xerces and crimson et al, but there is a good discussion of this problem and a solution (albeit for xerces), at http://xml.apache.org.xerces-j/faq-write.html, under the section "how do I read data from a stream as it arrives?".

  • PROCEDURE PROBLEM, URGENT ...

    Hi ,
    I am geting an error while puting hint in a sub query. The query is like this
    SELECT /*+ INDEX (EMP EMPIDX) */
    EMPNO
    FROM EMP
    WHERE DEPTNO IN (SELECT /*+ INDEX (DEPIDX) */ DEPTNO FROM DEP);
    My query is similar to the above one. And this query is part of Cursor defination in a Procedure. So when i try to compile the procedure it gives me error like
    PDE-USW002 The source of the stored program unit source is incomplete.
    QUESTION IS HOW TO AVOID THE ERROR. Because if i remove the hint this statement takes about 21 mins, if I put the hint it runs in 30 seconds. So I need the hints put in place badly . Please suggest something . This is very urgent .
    Thanks
    Feroz

    If that is really what is causing the problem and it won't compile in Forms Builder, then about the only way would be to create a server-side package/procedure, and call the procedure from the form and do the work on the server, and pass back the results to the form via parameters in the procedure call.

  • File Related problem--- Urgent

    Hi Friend's
    I have a Problem that and i am Looking for the solution. please Help me.
    There is a big file that content 5 lack record or may be more then this. my task is that i have to read this file and if there is any duplicate record then i have to remove this. for that i take two file.
    1. out.csv
    2. Reject.csv
    out.csv content unique record and that record witch are duplicate i have to keep this on reject.csv
    Logic...................
    1. First i read my main file and keep this record in a vector. now i again read a record from main file and check that this record is in vector or not. if yes-- then keep this in reject and if not then keep this in out file. but this logic fail because of that when record reached till 2.5 lack then exception come out of memory. vector size is too much big.
    2. in second for i read a record from main file and then write this in out file. next time when i read this file
    then at the same time i read out.csv and match main file reaord with the record of out file. if match then keep this in Reject.csv else write this in out.csv. this will also fail becouse it is taking more then 10 hours as i feel.
    so i want help in the problem so that i can form my task in very short time period.......................................
    it's very urgent for me. my project is dependent on this thing. Help me.
    Thanks

    Well 2.5 lakh records is a huge number as far as applying logic is concerned and keeping that in memory like a vector or something is certainly a bad idea.
    If the Stated was a give case to me.I'd try apply data pagination here is a sample logic which i can think off.
    1).I'd first define what is so called a Records as an entity or a javabean which overides equality method of two objects depending on stated logic
    2).I'd first fix a constant pagesize depending applying some probablity logic.
    3).Now i'd choose three set of files on which i delete the second file once the merging process is completed.
    4).Now on the first go i'd like to parse the the intial file and extract records and save them as JavaBean instances and save in a SortedSet / TreeSet interface.
    5).Consequtively, i'd be running a different thread which works on a Random Access file and inserts records in that temp random access file.
    6).Now,if the size of Set attains the fixed page size cache the results in Random Access file using the other thread and the empty the set once
    7).Would repeat the process uptil end of the parent file.
    8).Now,from the second file apply your initial logic only change is you'd using a Set of Entites.
    9).That should reduce the your memory problem to a larger extent.
    and The reason why i'm going for Set doesn't save duplicate records.
    or as said adviced by my fellow posters you might think of using a database in place and solve the issue with simple database queries and expressing the entities accordingly.
    REGARDS,
    RaHuL

  • Confirmation Mail Problem (urgent Solution) Please

    Dear Guys,
    After over the Registration Process, I want to send one confirmation mail. Mail Coding is properly worked. Only mail sent to my company id. But not to send yahoo, rediff and other things. what is the problem. I have changed the coding lot of time. But i was confused. I don't know what is the exact solution. If anybody knows please tell me. Urgent thing.

    Hi This is My JSP mail coding. Any problem in my mail coding. Please see that and tell me what did i do the errors. I dont know what errors?
    String host="mail.myCompany.com";
    String from="[email protected]";
    String to=ss;               // �ss� is JSP requestParameter name "to address";
    String subject="Confirmation Mail From MyCompany";
    String text = � Hereafter You will Access my Company mails�;
    boolean sessionDebug = false;
    Properties props = System.getProperties();
    props.put("mail.host", host);
    props.put("mail.transport.protocol", "smtp");
    Session mailSession = Session.getDefaultInstance(props, null);
    mailSession.setDebug(sessionDebug);
    Message msg = new MimeMessage(mailSession);
    msg.setFrom(new InternetAddress(from));
    InternetAddress[] address = {new InternetAddress(to)};
    msg.setRecipients(Message.RecipientType.TO, address);
    msg.setSubject(subject);
    msg.setText(text.toString());
    Transport.send(msg);
    out.println("To: " + to);
    out.println("Subject:"+subject);
    out.println();
    out.println(text);
    response.sendRedirect("jseeken.jsp");
    Now I have installed the free smtp server. But I don't know how to configure. Please tell me the exact solutions. I am awating for your reply.
    regards
    pooja

  • READ statement problem-URGENT.

    hai experts,
    I am facing problem with read statement.
    <b>read table itab with key f1 = '10'."it works.</b>
    But,
    now i store value '<b>10'</b> in variable <b>f</b> and use it as follows.
    <b>read table itab with key f1 = f."it isn't working</b>.
    My requirement is as above.I have to read a particular record from a internal table with key value stored in a variable ,key should not be  hardcoded.
    Do any one have any idea abt this.
    Plz, help me. Its very urgent.
    Thanks & Regards.
    Shivaa

    Hi Shiva
                That isn't a way to access the internal table via variable. Please refer transaction ABAPDOCU to know more information querying internal table(or transparent table) via a Variable and many more..
    <b> Helpfull: Reward points </b>
    Thanks and Kind Regards
    Mohan

  • ObjectOut/InputStream problem

    I have a problem on writing objects to a binary file. Let say, everytime the writeOBJ button is triggered in main program, "public void writePet(PetRecord newPet)" is invoked and the passing object is written to the ObjectOutputstream.
    The problem is, it is writing the same object over and over again eventhough the passing objects are different.
    (I make sure the passing objects are dfferent.)
    Also, appending is not working too....eventhough i said
    ObjectOutputStream outputStream = new ObjectOutputStream(new FileOutputStream("filename.records",true));
    the followindg is part of my code.....
    import java.io.*;
    import java.util.*;
    import javax.swing.*;
    public class MyFile
         private static int index = 0;
         private ObjectInputStream inputStream = null;
         private ObjectOutputStream outputStream = null;
         private Vector<PetRecord> readPetV = new Vector<PetRecord>(30);
         //private Vector<PetRecord> writePetV  = new Vector<PetRecord>(30);
         private boolean flagOutput = false;
         private boolean flagInput = false;
         public boolean getOutputflag()
              return flagOutput;
         public boolean getInputFlag()
              return flagInput;
         public int getIndex()
              return index;
         @SuppressWarnings("unchecked")
         public Vector<PetRecord> getReadPetV()
              return(Vector<PetRecord>)readPetV.clone();
    //==============================================================================================
         //Method for creating new file.
              public void connectToOutputFile()
                   boolean newFile = false;
                   do{
                        try
                             String fileName = JOptionPane.showInputDialog(null,
                                       "Please Enter the New file name","FileName.records");
                             File fileObject = new File(fileName);
                             if(!fileObject.exists())
                                  outputStream = new ObjectOutputStream(new FileOutputStream(fileName.trim()));
                                  newFile = true;
                                  flagOutput = true;
                             else
                                  JOptionPane.showMessageDialog(null,"File "+ fileName +" is already exist.");
                                  newFile = false;
                                  flagOutput = false;
                        catch (IOException exp)
                             JOptionPane.showMessageDialog(null,"Error Opening output file.");
                             newFile = false;
                             flagOutput = false;
                   }while(!newFile);
    //==============================================================================================
         //opening the input file for the display
              public void connectToInputFile()
                   boolean inputError = true;
                   String inputFileName = null;
                   do
                        inputFileName = JOptionPane.showInputDialog(null,
                                  "Please Enter the File name to Read from","FileName.records");
                        inputFileName = inputFileName.trim();
                        try
                             inputStream = new ObjectInputStream(new FileInputStream(inputFileName));
                             outputStream = new ObjectOutputStream(new FileOutputStream(inputFileName, true));
                             inputError  = false;
                             flagInput = true;
                             flagOutput = true;
                        catch(FileNotFoundException exp)
                             JOptionPane.showMessageDialog(null,"File "+inputFileName+" not found.");
                             inputError = true;
                             flagInput = false;
                        catch(IOException e)
                             JOptionPane.showMessageDialog(null,"Error Opening Input file"
                                       +inputFileName);
                             inputError = true;
                             flagInput = false;
                   }while(inputError);
    //==============================================================================================
         public void writePet(PetRecord newPet)
                   try
                        outputStream.writeObject((PetRecord)newPet);
                        outputStream.flush();
                   catch(IOException e)
                        JOptionPane.showMessageDialog(null,"Error writing to file.");
                        System.exit(0);
              public void writePet(PetRecord newPet)
                   writePetV.addElement(newPet);
              public void writePetV()
                   for(int i=0; i < writePetV.size(); i++)
                        try {
                             outputStream.writeObject((PetRecord)writePetV.elementAt(i));
                        } catch (IOException e) {
                             // TODO Auto-generated catch block
                             e.printStackTrace();
    //==============================================================================================
    //read method for reading the object from the file
              public void readData()
                   //reading the objects datas from file
                   PetRecord readNext;
                   try
                        while((readNext = (PetRecord)inputStream.readObject()) != null)
                             readPetV.addElement((PetRecord)readNext);
                             System.out.println(readNext.getName());
                   catch (Exception e)
                        //JOptionPane.showMessageDialog(null,"End of record");
                   index = readPetV.size();
    //==============================================================================================
    //     method for closing files.
              public void closeFile()
                   if (flagOutput)
                        try
                             outputStream.close();
                        catch(IOException e)
                             JOptionPane.showMessageDialog(null, "Error Closeing file"
                                       + e.getMessage());
                             System.exit(0);
                        catch(NullPointerException empty)
                             JOptionPane.showMessageDialog(null,"There is nothing to close. DUHH!!!!");
                   if (flagInput)
                        try
                             inputStream.close();
                        catch(IOException e)
                             JOptionPane.showMessageDialog(null, "Error Closeing file"
                                       + e.getMessage());
                             System.exit(0);
                        catch(NullPointerException empty)
                             JOptionPane.showMessageDialog(null,"There is nothing to close. DUHH!!!!");
    [/code]

    Ok! I think i solved the problem. In the main program I used one major object to pass through to the write() method. let's say constructed an PetRecord object and everytime I wanna add user input, I used "mutators" (set methods) of that Object and pass to the write(PetRecord newPet) method. It seems that eventhough the new values were taken by the newPet Object, it stills wirte the old one to the object stream. I don't know why that happen.
    So, what i did is, every time i want to add user input, I create a new Object of PetRecord class and it works fine.
    Does anybody have any idea why that happen???
    but appeending to a file still doesn't work though!!! I'm trying to fix it....

  • Xerces SAXParser validation problems

    I'm using the Xerces 2 beta 3 SAXParser to validate an XML document but
    it does not seem to raise a SAXParseException even though my XML is not valid.
    Say I have the following DTD, example.dtd:
    <?xml version='1.0' encoding='UTF-8' ?>
    <!ELEMENT a (b)>
    <!ELEMENT b (c)>
    <!ELEMENT c (#PCDATA)>
    Now, I have a well-formed XML document that is not valid because it clearly violates
    the DTD above:
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE class SYSTEM "example.dtd">
    <a>
    <c>Hello</c>
    </a>
    It is my understanding that the SAXParser validation should catch this invalid XML.
    Why does it not raise any Exceptions?
    From what I understood the only valid documents should contain 0 or more of the
    following XML statements:
    <c>Hello</c>
    OR
    <b>
    <c>Hello</c>
    </b
    OR
    <a>
    <b>
    <c>Hello</c>
    </b>
    </a>
    Also, note that if I forget a tag, the parser behaves as expected and raises a SAXParseException that reads
    'The element type "a" must be terminated by the matching end-tag "</a>'
    i.e. <c>Hello
    The only reason I mention this is to show that validation is set to true on the SAXParser.
    Any help would be greatly appreciated. Thanks in advance.
    KL

    The problem I am have does not seem to be with the value of the
    http://xml.org/sax/features/validation feature. I printed the value out after I set it and it is indeed set to true.
    I was reading more about the feature (see below) and am now thinking the validation might not occur because the grammar might not be read in by the parser.
    When that say "grammar" I assume they mean the DTD in my case. When they say "the document must specify a grammar," I assume that mean that my XML document must state the DTD to use in the DOCTYPE statement.
    My XML document looks kind of like this:
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE class SYSTEM "example.dtd" [
    <!ENTITY % entities SYSTEM "7670Entities2.0.xml">
    %entities;
    ]>
    <a>
    <b>
    <c>Hello</c>
    </b>
    </a>
    So have I specified the grammar correctly? Is there anyway to print out anything that will show that the grammar has indeed been read in?
    http://xml.org/sax/features/validation
    True:
    Validate the document.
    False:
    Do not validate the document.
    Default:
    false
    Access:
    (parsing) read-only; (not parsing) read-write;
    Note:
    If this feature is set to true, the document must specify a
    grammar. If this feature is set to false, the document may
    specify a grammar and that grammar will be parsed but
    no validation of the document contents will be performed.

Maybe you are looking for

  • How to get only aggregated results in a report?

    Hi, My report data comes in a completely drilled down format. My requirement is to only get the aggregated results in the report. The report has data for day,week and months. using the remove drill down option from the webviews the user can remove th

  • Open in new tab lists site in new tab but displaysd a blank page version 5

    New install of version 5. Home page opens ok (Google Australia) and I can run search ok. When I select a site to explore and use the open in new tab option (right click) the new tab appears and seems to run the load process. The tab displays the chos

  • Purchase order not create in sus

    Dear customizer, Ihave implemented a plan driven procurement with sus (r/3-sus) scenario,we have a problem when we transfer idoc from r/3 to sus.In sus sistem give me this error message "An error occured within an XI interface: Exception occurredE:BB

  • Which XML parser is used by JWSDP?

    Hi, SOAP messages are xml messages. I know that the SOAP messages are processed before invoking the web service. what parser is used to process the SOAP message at the service side. Is it a DOM parser or a SAX parser?? Can i make the server use anoth

  • Sharing accounts across 2 plan types  - Planning 9.3.1

    This is my first attempt to share accounts across 2 plan types and I am not getting expected results. In the setup, account 1234 was assigned to both Plan A and plan B with the "source plan type" as Plan B. When I create a form for Plan B, everything