Exception error, Need Help!

Need help!
Why my java program work well under C:\, but can't under D:\Java today? It worked well even yesterday. I had tried the "Hello World", it can not work under D:\Java either.
when I enter the "java d:\java\Hello" order(after javac of cause), those displays are here:
Exception in thread "main" java.lang.NoClassDefFoundError: d:\java\Hello
Caused by: java.lang.ClassNotFoundException:d:\java\Hello
at java.net.URLClassLoader$1.run<URLClassLoader.java:200>
at java.security.AccessController.doPrivileged<Native Method>
at java.net.URLClassLoader.findClass<URLClassLoader.java:188>
at java.lang.ClassLoader.loadClass<ClassLoader.java:306>
at sun.misc.Launcher$AppClassLoader.loadClass<Launcher.java:276>
at java.lang.ClassLoader.loadClass<ClassLoader.java:251>
at java.lang.ClassLoader.loadClassInternal<ClassLoader.java:319>
The Hello.java has no problem,and it worked well even yesterday!
I just don't know what had happened.
Someone who can help me please reply or email at [email protected]
Thank you!

The simple "Hello World" can work under Editplus, but can't under DOS.
The error appears as the same. I don't know what I should do, could you tell me please?
Thank you!First test whether environment variables had been set properlyor not
To test :-
1) Open cmd
2) type java
3) If it runs that means you have set it properly
Then go to your program directory i.e d:\java\
and type
javac Hello.java //to compile it and then
java Hello //To run it

Similar Messages

  • General exception error need help!

    Experts,
    i am facing this problem. i connect to the net by proxy (through office Lan). none of the java applets work for me. Need help
    Java Plug-in 1.5.0_08
    Using JRE version 1.5.0_08 Java HotSpot(TM) Client VM
    User home directory = C:\Documents and Settings\mkrishna
    network: Loading user-defined proxy configuration ...
    network: Done.
    network: Loading direct proxy configuration ...
    network: Done.
    network: Proxy Configuration: No proxy
    basic: Cache is enabled
    basic: Location: C:\Documents and Settings\mkrishna\Application Data\Sun\Java\Deployment\cache\javapi\v1.0
    basic: Maximum size: unlimited
    basic: Compression level: 1
    c: clear console window
    f: finalize objects on finalization queue
    g: garbage collect
    h: display this help message
    l: dump classloader list
    m: print memory usage
    o: trigger logging
    p: reload proxy configuration
    q: hide console
    r: reload policy configuration
    s: dump system and deployment properties
    t: dump thread list
    v: dump thread stack
    x: clear classloader cache
    0-5: set trace level to <n>
    basic: Registered modality listener
    basic: Referencing classloader: sun.plugin.ClassLoaderInfo@872380, refcount=1
    basic: Registered modality listener
    basic: Referencing classloader: sun.plugin.ClassLoaderInfo@872380, refcount=2
    basic: Registered modality listener
    basic: Referencing classloader: sun.plugin.ClassLoaderInfo@872380, refcount=3
    basic: Added progress listener: sun.plugin.util.GrayBoxPainter@15212bc
    basic: Loading applet ...
    basic: Initializing applet ...
    basic: Starting applet ...
    basic: Added progress listener: sun.plugin.util.GrayBoxPainter@97a560
    basic: Loading applet ...
    basic: Initializing applet ...
    basic: Starting applet ...
    basic: Added progress listener: sun.plugin.util.GrayBoxPainter@1ea5671
    basic: Loading applet ...
    basic: Initializing applet ...
    basic: Starting applet ...
    basic: httpCompression = true
    network: Connecting http://150.101.78.39/dsmapp/catalog/classes/liste.jar with proxy=DIRECT
    network: Connecting http://150.101.78.39/dsmapp/catalog/classes/ZoneFavoris.class with proxy=DIRECT
    network: Connecting http://150.101.78.39/dsmapp/catalog/classes/ZoneFavoris.class with proxy=DIRECT
    network: Connecting http://150.101.78.39/dsmapp/catalog/classes/Outline.class with proxy=DIRECT
    network: Connecting http://150.101.78.39/dsmapp/catalog/classes/ZoneFavoris/class.class with proxy=DIRECT
    network: Connecting http://150.101.78.39/dsmapp/catalog/classes/ZoneFavoris/class.class with proxy=DIRECT
    load: class ZoneFavoris.class not found.
    java.lang.ClassNotFoundException: ZoneFavoris.class
         at sun.applet.AppletClassLoader.findClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at sun.applet.AppletClassLoader.loadClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at sun.applet.AppletClassLoader.loadCode(Unknown Source)
         at sun.applet.AppletPanel.createApplet(Unknown Source)
         at sun.plugin.AppletViewer.createApplet(Unknown Source)
         at sun.applet.AppletPanel.runLoader(Unknown Source)
         at sun.applet.AppletPanel.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)
    Caused by: java.io.IOException: open HTTP connection failed.
         at sun.applet.AppletClassLoader.getBytes(Unknown Source)
         at sun.applet.AppletClassLoader.access$100(Unknown Source)
         at sun.applet.AppletClassLoader$1.run(Unknown Source)
         at java.security.AccessController.doPrivileged(Native Method)
         ... 10 more
    basic: Exception: java.lang.ClassNotFoundException: ZoneFavoris.class
    java.lang.ClassNotFoundException: ZoneFavoris.class
         at sun.applet.AppletClassLoader.findClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at sun.applet.AppletClassLoader.loadClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at sun.applet.AppletClassLoader.loadCode(Unknown Source)
         at sun.applet.AppletPanel.createApplet(Unknown Source)
         at sun.plugin.AppletViewer.createApplet(Unknown Source)
         at sun.applet.AppletPanel.runLoader(Unknown Source)
         at sun.applet.AppletPanel.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)
    Caused by: java.io.IOException: open HTTP connection failed.
         at sun.applet.AppletClassLoader.getBytes(Unknown Source)
         at sun.applet.AppletClassLoader.access$100(Unknown Source)
         at sun.applet.AppletClassLoader$1.run(Unknown Source)
         at java.security.AccessController.doPrivileged(Native Method)
         ... 10 more
    basic: Modality pushed
    basic: Modality pushed
    basic: Modality pushed
    basic: Modality popped
    basic: Modality popped
    basic: Modality popped
    basic: Modality pushed
    basic: Modality pushed
    basic: Modality pushed
    basic: Modality popped
    basic: Modality popped
    basic: Modality popped
    network: Connecting http://150.101.78.39/dsmapp/catalog/classes/Outline/class.class with proxy=DIRECT
    load: class ZoneFavoris.class not found.
    java.lang.ClassNotFoundException: ZoneFavoris.class
         at sun.applet.AppletClassLoader.findClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at sun.applet.AppletClassLoader.loadClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at sun.applet.AppletClassLoader.loadCode(Unknown Source)
         at sun.applet.AppletPanel.createApplet(Unknown Source)
         at sun.plugin.AppletViewer.createApplet(Unknown Source)
         at sun.applet.AppletPanel.runLoader(Unknown Source)
         at sun.applet.AppletPanel.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)
    Caused by: java.io.IOException: open HTTP connection failed.
         at sun.applet.AppletClassLoader.getBytes(Unknown Source)
         at sun.applet.AppletClassLoader.access$100(Unknown Source)
         at sun.applet.AppletClassLoader$1.run(Unknown Source)
         at java.security.AccessController.doPrivileged(Native Method)
         ... 10 more
    basic: Exception: java.lang.ClassNotFoundException: ZoneFavoris.class
    java.lang.ClassNotFoundException: ZoneFavoris.class
         at sun.applet.AppletClassLoader.findClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at sun.applet.AppletClassLoader.loadClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at sun.applet.AppletClassLoader.loadCode(Unknown Source)
         at sun.applet.AppletPanel.createApplet(Unknown Source)
         at sun.plugin.AppletViewer.createApplet(Unknown Source)
         at sun.applet.AppletPanel.runLoader(Unknown Source)
         at sun.applet.AppletPanel.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)
    Caused by: java.io.IOException: open HTTP connection failed.
         at sun.applet.AppletClassLoader.getBytes(Unknown Source)
         at sun.applet.AppletClassLoader.access$100(Unknown Source)
         at sun.applet.AppletClassLoader$1.run(Unknown Source)
         at java.security.AccessController.doPrivileged(Native Method)
         ... 10 more
    basic: Modality pushed
    basic: Modality pushed
    basic: Modality pushed
    basic: Modality popped
    basic: Modality popped
    basic: Modality popped
    load: class Outline.class not found.
    java.lang.ClassNotFoundException: Outline.class
         at sun.applet.AppletClassLoader.findClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at sun.applet.AppletClassLoader.loadClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at sun.applet.AppletClassLoader.loadCode(Unknown Source)
         at sun.applet.AppletPanel.createApplet(Unknown Source)
         at sun.plugin.AppletViewer.createApplet(Unknown Source)
         at sun.applet.AppletPanel.runLoader(Unknown Source)
         at sun.applet.AppletPanel.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)
    Caused by: java.io.IOException: open HTTP connection failed.
         at sun.applet.AppletClassLoader.getBytes(Unknown Source)
         at sun.applet.AppletClassLoader.access$100(Unknown Source)
         at sun.applet.AppletClassLoader$1.run(Unknown Source)
         at java.security.AccessController.doPrivileged(Native Method)
         ... 10 more
    basic: Exception: java.lang.ClassNotFoundException: Outline.class
    java.lang.ClassNotFoundException: Outline.class
         at sun.applet.AppletClassLoader.findClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at sun.applet.AppletClassLoader.loadClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at sun.applet.AppletClassLoader.loadCode(Unknown Source)
         at sun.applet.AppletPanel.createApplet(Unknown Source)
         at sun.plugin.AppletViewer.createApplet(Unknown Source)
         at sun.applet.AppletPanel.runLoader(Unknown Source)
         at sun.applet.AppletPanel.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)
    Caused by: java.io.IOException: open HTTP connection failed.
         at sun.applet.AppletClassLoader.getBytes(Unknown Source)
         at sun.applet.AppletClassLoader.access$100(Unknown Source)
         at sun.applet.AppletClassLoader$1.run(Unknown Source)
         at java.security.AccessController.doPrivileged(Native Method)
         ... 10 more
    basic: Modality pushed
    basic: Modality pushed
    basic: Modality pushed
    basic: Modality popped
    basic: Modality popped
    basic: Modality popped

    Hi
    I think you need to configure proxy for the JRE
    If you are using windows Go to control panel , you will find an icon called java plugin. if you have installed multiple JRE you will find multiple icons . Select the one which is configured to browser.
    You will find a proxies tab in that window , add the proxy details there
    Hope this helps you
    Vijay

  • Getting exception error - need help resolving please

    I am getting the following exception when I try running a short program that user the Scanner object:
    Enter a number in feet: Exception in thread "main" java.util.NoSuchElementException
         at java.util.Scanner.throwFor(Scanner.java:817)
         at java.util.Scanner.next(Scanner.java:1431)
         at java.util.Scanner.nextDouble(Scanner.java:2335)
         at FeetInchConvert.main(FeetInchConvert.java:27)
    Here's the program I am running (which compiled w/o errors):
    import java.util.*;
    public class FeetInchConvert
    // Prompt for feet and convert to inches.
    // Next, prompt for inches and convert to feet.
    public static void main(String[] args)
    final double INCHES_IN_FEET = 12.0;
    double feet, inches;
    int wholeInches;
    Scanner ourScanner = new Scanner(System.in);
    System.out.print("Enter a number in feet: ");
    feet = ourScanner.nextDouble();
    inches = feet * INCHES_IN_FEET;
    System.out.println("\n" + feet + " feet is " +
    inches + " inches.\n");
    System.out.print("Now, enter a whole number in inches: ");
    wholeInches = ourScanner.nextInt();
    feet = wholeInches / INCHES_IN_FEET;
    System.out.println("\n" + wholeInches + " inches is " +
    feet + " feet.");
    I have installed Java 5.0 on my Windows XP Pro system. I'm thinking that something might be wrong with my configuration. I am using TextPad for development.
    Can someone please help me out on this one?
    Thank you!
    Melissa

    This is the configuration that works for me:
    Click Configure
    Click Preferences
    Click Tools
    Click Run Java Application
    Command should be java.exe
    Parameters should be $BaseName
    Initial folder should be $FileDir
    All of the checkboxes are unchecked.
    Mark

  • Acrobat Error - need help! - Acrobat 9 Pro

    When I try to open an acrobat files my it trys to Open EVERY acrobat file on my computer and does so until I get the following message
    "There was an error opening this document.  The maximum number of files are already open.  No other files can be opened or printed until some are closed"
    Then I have to force quit.
    This just started happending a few months ago
    I am on a Mac OSX
    I need help!  Any suggestions?
    Debbie

    I  have a 10.5.8
    I am not that technical so not sure what you mean about applejack etc.
    Thanks for helping!
    Debbie
    Date: Sat, 10 Apr 2010 13:03:28 -0600
    From: [email protected]
    To: [email protected]
    Subject: Acrobat Error - need help! - Acrobat 9 Pro
    What version of OS X? Some people have luck by clearing their caches. This can be done with Applejack in 10.5. Onyx will work in SL.
    >

  • HTTP Server (Main) error need help.

    Hello,
    We are having the following error in the HTTP Server logs and need to understand what is causing this issue.
    [Tue Dec 19 15:29:35 2006] [error] [client 192.168.228.32] [ecid: 962577774223,1] File does not exist: d:/oracle/product/oh_as_mid/forms/java/oracle/forms/engine/RunformBundle_en_AU.class
    [Tue Dec 19 15:29:35 2006] [error] [client 192.168.228.32] [ecid: 2216708226414,1] File does not exist: d:/oracle/product/oh_as_mid/forms/java/oracle/forms/engine/RunformBundle_en_AU.class
    [Tue Dec 19 15:29:35 2006] [error] [client 192.168.228.32] [ecid: 4484450958748,1] File does not exist: d:/oracle/product/oh_as_mid/forms/java/oracle/forms/engine/RunformBundle_en_AU.properties
    [Tue Dec 19 15:30:25 2006] [error] [client 192.168.228.32] [ecid: 1166509825:192.168.228.32:1712:2352:20,0] (10054)An existing connection
    was forcibly closed by the remote host: MOD_OC4J_0087: Got an unexpected error while calling send() to send a message to oc4j and the
    error code is 10054.
    [Tue Dec 19 15:30:25 2006] [error] [client 192.168.228.32] [ecid: 1166509825:192.168.228.32:1712:2352:20,0] MOD_OC4J_0053: Failed to call
    network routine to send out an ajp13 buffer message to oc4j.
    [Tue Dec 19 15:30:25 2006] [warn] [client 192.168.228.32] [ecid: 1166509825:192.168.228.32:1712:2352:20,0] MOD_OC4J_0027: Failed to send
    out an ajp13 message to oc4j.
    [Tue Dec 19 15:30:25 2006] [error] [client 192.168.228.32] [ecid: 1166509825:192.168.228.32:1712:2352:20,0] MOD_OC4J_0026: Failed to marshal
    a request to ajp13 message headers or send them to the web container.
    [Tue Dec 19 15:32:43 2006] [error] [client 192.168.228.32] [ecid: 2921083055113,1] File does not exist: d:/oracle/product/oh_as_mid/forms/java/oracle/ewt/alert/resource/AlertBundle_en_AU.class
    [Tue Dec 19 15:32:43 2006] [error] [client 192.168.228.32] [ecid: 5360624479132,1] File does not exist: d:/oracle/product/oh_as_mid/forms/java/oracle/ewt/alert/resource/AlertBundle_en_AU.class
    [Tue Dec 19 15:32:43 2006] [error] [client 192.168.228.32] [ecid: 911038360600,1] File does not exist: d:/oracle/product/oh_as_mid/forms/java/oracle/ewt/alert/resource/AlertBundle_en_AU.properties
    [Tue Dec 19 15:32:46 2006] [error] [client 192.168.228.32] [ecid: 2921083055113,1] File does not exist: d:/oracle/product/oh_as_mid/forms/java/oracle/ewt/alert/resource/AlertBundle_en_AU.class
    [Tue Dec 19 15:32:46 2006] [error] [client 192.168.228.32] [ecid: 4793688799699,1] File does not exist: d:/oracle/product/oh_as_mid/forms/java/oracle/ewt/alert/resource/AlertBundle_en_AU.class
    [Tue Dec 19 15:32:46 2006] [error] [client 192.168.228.32] [ecid: 859498756624,1] File does not exist: d:/oracle/product/oh_as_mid/forms/java/oracle/ewt/alert/resource/AlertBundle_en_AU.properties
    Any help would be great.

    More information from the OC4J_BI_Forms application log file.
    06/12/20 07:44:35 formsweb: Forms session <78> failed during startup: no response from runtime process
    06/12/20 07:44:35 formsweb: Forms session <78> exception stack trace:
    oracle.forms.engine.RunformException: Forms session <78> failed during startup: no response from runtime process
    at oracle.forms.servlet.RunformProcess.connect(Unknown Source)
    at oracle.forms.servlet.RunformProcess.dataToRunform(Unknown Source)
    at oracle.forms.servlet.RunformSession.dataToRunform(Unknown Source)
    at oracle.forms.servlet.ListenerServlet.doPost(Unknown Source)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:824)
    at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:330)
    at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:830)
    at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.AJPRequestHandler.run(AJPRequestHandler.java:224)
    at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.AJPRequestHandler.run(AJPRequestHandler.java:133)
    at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:192)
    at java.lang.Thread.run(Thread.java:534)

  • JDBC - mmMySQL error need help

    hi,
    i hope somebody can help me. I installed mmMySQL its an JDBC driver
    and as i tried to make a query with ORDERBY fieldname ASC i got an
    error:
    Syntax error or Access violation you have an error in your SQL syntax
    near xxx.
    Heres a code snippet would be thankfull for any help
    public static void showToplist(PrintStream printstream)
    String username="root";
    String password="mosesistdoof";
    String toplist="";
    int position;
    try
    Connection con =
    DriverManager.getConnection("jdbc:mysql://localhost/Chat?user="+
    username+"&password="+ password);
    Statement stmt = con.createStatement();
    ResultSet rs = stmt.executeQuery("SELECT * FROM user ORDERBY
    Punktzahl");
    rs.next();
    stmt.close();
    con.close();
    position=0;
    String Toplist=TemplateReader.JITTmpl("top", "chat");
    printstream.println(Toplist.substring(0,
    Toplist.indexOf("§toplist§")));
    while(rs.next())
    position++;
    printstream.println("<td width=\"15%\"><b><font
    color=\"#0000ff\">" + Integer.toString(position) + "</td><td
    width=\"41%\"><b><font color=\"#0000ff\">" + rs.getString("Username")
    + "</font></b></td><td width=\"44%\"><b><font color=\"#0000ff\">" +
    rs.getString("Punktzahl") + "</font></b></td>");
    printstream.println(Toplist.substring(Toplist.indexOf("§toplist§")
    + 4, Toplist.length()));
    catch(Exception MySQLException)
    System.out.println("SQLException: " +
    MySQLException.getMessage());

    Hi Gidror,
    You need to use "ORDER BY" clause instead of "ODERBY".
    Regards,
    Slava Imeshev
    "Gidror" <[email protected]> wrote in message
    news:[email protected]..
    hi,
    i hope somebody can help me. I installed mmMySQL its an JDBC driver
    and as i tried to make a query with ORDERBY fieldname ASC i got an
    error:
    Syntax error or Access violation you have an error in your SQL syntax
    near xxx.
    Heres a code snippet would be thankfull for any help
    public static void showToplist(PrintStream printstream)
    String username="root";
    String password="mosesistdoof";
    String toplist="";
    int position;
    try
    Connection con =
    DriverManager.getConnection("jdbc:mysql://localhost/Chat?user="+
    username+"&password="+ password);
    Statement stmt = con.createStatement();
    ResultSet rs = stmt.executeQuery("SELECT * FROM user ORDERBY
    Punktzahl");
    rs.next();
    stmt.close();
    con.close();
    position=0;
    String Toplist=TemplateReader.JITTmpl("top", "chat");
    printstream.println(Toplist.substring(0,
    Toplist.indexOf("§toplist§")));
    while(rs.next())
    position++;
    printstream.println("<td width=\"15%\"><b><font
    color=\"#0000ff\">" + Integer.toString(position) + "</td><td
    width=\"41%\"><b><font color=\"#0000ff\">" + rs.getString("Username")
    + "</font></b></td><td width=\"44%\"><b><font color=\"#0000ff\">" +
    rs.getString("Punktzahl") + "</font></b></td>");
    printstream.println(Toplist.substring(Toplist.indexOf("§toplist§")
    + 4, Toplist.length()));
    catch(Exception MySQLException)
    System.out.println("SQLException: " +
    MySQLException.getMessage());

  • Scholar92 - Strange error Need help please

    Lecori Salutem
    The program I have a problem with is supposed to extract info from a DB. It extracts the info perfectly but I cannot access the info with my get commands from other classes.
    When i fire the program it says " [Ljava.lang.String;@1ba34f2 ". Can anyone help me to solve this problem please.
    ////////CODE STARTS HERE
    import java.sql.*;
    import javax.swing.*;
    /** Description:
    *  Die program word gebruik om al die metadata en paths wat getabuleer is
    *  op die Music DB te access en te stoor.
    *  @author Benni( [email protected])
    public class SQLImport
        private Connection connSQL;
            int tel = 2; // ID in SQL tabel begin by "2"
            String [] tName = new String [100];
    String [] tArtist = new String [100];
    String [] tGenre = new String [100];
    String [] tMood = new String [100];
    String [] tPath = new String [100];
    String [] tJavaPath = new String [100];
    String [] tID = new String [100];
    String [] tTime = new String [100];
    public SQLImport( )
    try
    Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
    connSQL = DriverManager.getConnection("jdbc:odbc:DRIVER={Microsoft Access Driver (*.mdb)};DBQ=Music.mdb");
    JOptionPane.showMessageDialog(null, "Connection Successfully Established", "Notification",JOptionPane.INFORMATION_MESSAGE);
    catch (Exception sqlConnectionFailed)
    JOptionPane.showMessageDialog(null, sqlConnectionFailed, "ERROR:",JOptionPane.ERROR_MESSAGE);
    Statement statement = null;
    try
    statement = connSQL.createStatement( );
    catch (SQLException statementERROR)
    JOptionPane.showMessageDialog(null,statementERROR, "ERROR:",JOptionPane.ERROR_MESSAGE);
    char optionChoice;
    do
    optionChoice = getMenuChoice();
    if(optionChoice == 'A')
    try
    String querySQL = "SELECT * FROM tbl_ListedMusic ORDER BY ID ;";
    System.out.println(querySQL);
    ResultSet resultSet = statement.executeQuery(querySQL);
    while (resultSet.next( ))
    tID[tel] = resultSet.getString("ID");
    tName[tel] = resultSet.getString("TrackName");
    tArtist[tel] = resultSet.getString("TrackArtist");
    tTime[tel] = resultSet.getString("TrackTime");
    tGenre[tel] = resultSet.getString("TrackGenre");
    tMood[tel] = resultSet.getString("TrackMood");
    tJavaPath[tel] = resultSet.getString("TrackJavaPath");
    tPath[tel] = resultSet.getString("TrackPath");
    tel++;
    catch (SQLException infoImportError)
    JOptionPane.showMessageDialog(null,infoImportError, "ERROR:",JOptionPane.ERROR_MESSAGE);
    while (optionChoice != 'X');
    //NB! Strings are " " chars are ' '
    public String[ ] gettID( )
    return tID;
    public String[ ] gettName( )
    return tName;
    public char getMenuChoice( )
    String menu = "A) Import .mp3 info \n X) Exit";
    char choice = JOptionPane.showInputDialog(menu).toUpperCase( ).charAt(0);
    return choice;
    public static void main (String [ ] args)
    SQLImport sql = new SQLImport( );
    String [ ] blah = new String [10];
    blah = sql.gettID();
    System.out.println(blah);
    //Code ENDS
    How do I resolve the " [Ljava.lang.String;@1ba34f2   "  ? Much apreciated
    Regards,
    Bennu                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

    This forum is about the Messaging Server email server and related products. I think you have posted this question in the wrong forum.

  • User Error Needs Help Correcting - Repeatable Tag on Custom Section Attribute

    OK, I have v.6111.  Today I am manually putting the supplier_eq_create tag on all the the existing attributes in our custom sections so suppliers can add them when we send eQs. Unfortuately, I accidently clicked on the Repeatable tag instead of Supplier_EQ_Create in a couple of instances in our Export/Staging Environment.  When I try to remove the Repeatable tag, I get the error that says " row's Repeatable status cannot be altered after the row has been activated" ... we have not actually used the repeatable functionality of the tag.  I need to know how I can remove this tag from active attributes due to human error before I import to PROD.  Can the forum help me?
    Best, Beckie

    Hi Beckie,
    As long as you are sure that no-one has consume this you can remove this tag with a database script.
    As with every script make sure that you backup your data.
    With the following script you can find the rows that contain repeatable tag for a particular section template
    select rowTemplate.* from eaSectionDynamicTagJoins rowTTagjoin
    inner join commonEARowTemplate rowTemplate on rowTemplate.pkid = rowTTagjoin.fkEAS
    inner join commonLookups tag on tag.pkid = rowTTagjoin.fkTag
    inner join commonEASectionTemplate sectionTemplate on sectionTemplate.pkid = rowTemplate.fkSectionTemplate
    where tag.Name = 'Repeatable' and langID = 0 and Category = 'EASRowDynamicTag'
    and sectionTemplate.id = '<custom section id>';
    Tags are linked to custom section row templates using eaSectionDynamicTagJoins table.
    You can remove the tag from a specific row using the following script
    delete from eaSectionDynamicTagJoins
    where fkEAS = '<pkid of the row>';
    Hope this helps. Let me know if you have any questions,
    Dmitriy

  • Stuck with an error, need help.

    Hi Gurus,
    I am calling the workflow throught the function module SWW_wi_start_simple, I am throwing with an exception 'read_failed' Can any one say why this error being stated.
    Secondly, I coded as below to start the work flow with the wf container. How can i use those conatiner variables in the workflow builder
    I coded as below now , now can i use these variables directly in workflow builder or do i need to create again in the workflow builder.
    Can any one say this please I am in need.
    code
    FUNCTION zhr_workflow_initiator.
    ""Local interface:
    *"  IMPORTING
    *"     REFERENCE(EMPLOYEENR) LIKE  PA0000-PERNR
    *"     REFERENCE(PLANNAME) LIKE  T5UCA-LTEXT
    *"     REFERENCE(DEPENDANCY) LIKE  T5UCF-LTEXT
    INCLUDE <cntn01>.
      DATA: wis_obj TYPE swc_object.
      DATA: task  LIKE  swwvpublic-wi_rh_task VALUE 'WS90000001',
            WI_ID LIKE  swwvpublic-wi_id.
      DATA: agents LIKE swhactor OCCURS 0 WITH HEADER LINE,
            wi_container LIKE swcont OCCURS 0 WITH HEADER LINE.
      DATA:BEGIN OF benadjreakey,
                pernr      LIKE  PA0001-PERNR,
               subty      like  p0378-subty,
               objps      like  p0378-objps,
               sprps      like  p0378-sprps,
               endda      like  p0378-endda,
               begda      like  p0378-begda,
               seqnr      like  p0378-seqnr,
            END OF benadjreakey.
    data: l_PLANNAME(30) TYPE c,
          l_DEPENDANCY(20)  TYPE c.
    data: BENEFIT_PLAN      like T5UCA-BPLAN,
          DEPENDACY_CODE    like T5UCF-DEPCV,
          COMPANY_CODE      like PA0001-BUKRS,
          PERSONAL_AREA     like PA0001-WERKS.
    "Initialize" NULL_AGENTS1
      CLEAR agents.
      REFRESH agents.
      MOVE employeenr  TO benadjreakey-pernr.
      move planname    to l_planname.
      move dependancy  to l_dependancy.
    **MOVE SUBTYPE        to BENADJREAKEY-subty.
    **MOVE LOCKINDICATOR  to BENADJREAKEY-sprps.
    **MOVE VALIDITYEND    to BENADJREAKEY-endda.
    **MOVE VALIDITYBEGIN    to BENADJREAKEY-begda.
    **MOVE RECORDNUMBER    to BENADJREAKEY-seqnr.
    CALL FUNCTION 'ZHR_BEN_WORFLOW_DATA'
    EXPORTING
       PLANNAME         = l_planname
       PERNR            = benadjreakey-pernr
       DEPENDANCY       = l_dependancy
    IMPORTING
       BENEFIT_PLAN         = benefit_plan
       DEPENDACY_CODE       = DEPENDACY_CODE
       COMPANY_CODE         = COMPANY_CODE
       PERSONAL_AREA        = PERSONAL_AREA
    Get object Referance
      swc_create_object wis_obj 'BENADJREAS' benadjreakey.
      swc_set_element wi_container 'benefit_plan_code'    BENEFIT_PLAN.
      swc_set_element wi_container 'Dependancy_code'      DEPENDACY_CODE.
      swc_set_element wi_container 'Company_code'         Company_code.
      swc_set_element wi_container 'PERSONAL_AREA'        PERSONAL_AREA.
    swc_set_element wi_container 'ADJUSTMENTREASON' wis_obj.
      swc_container_to_persistent wi_container.
      CALL FUNCTION 'SWW_WI_START_SIMPLE'
      EXPORTING
            task = task
      IMPORTING
            wi_id = wi_id
      TABLES
          AGENTS = AGENTS
          wi_container = wi_container
      EXCEPTIONS
            id_not_created = 1
            read_failed = 2
            execution_failed = 3.
    MOVE wi_id    TO workitem_id.
      IF sy-subrc <> 0.
        WRITE / 'NO_workflow_started'.
      ENDIF.
    ENDFUNCTION.
    Ravi

    Hi Ravi,
    You were able to program the function module but you are not able to find out why the exception is raised? This sounds a bit strange to me, or do you want us to give an answer in stead of searching for one yourself?
    If you didn't create these container elements in the workflow you can't use them, and it could even be that that is why your exception is raised. By putting them in a container which is used when starting the workflow, they will not be automatically created in your workflow.
    And to be more up to date use FM SAP_WAPI_START_WORKFLOW as Arghadip suggested.
    Regards,
    Martin

  • Ssis package error need help to fix it. though disabled all triggers and droped all the foreign keys and truncated tables on pipeline constraints.

    [PartyName1 [6672]] Error: SSIS Error Code DTS_E_OLEDBERROR.  An OLE DB error has occurred. Error code: 0x80004005.
    An OLE DB record is available.  Source: "Microsoft SQL Server Native Client 11.0"  Hresult: 0x80004005  Description: "Transaction (Process ID 1414) was deadlocked on lock resources with another process and has been chosen as the
    deadlock victim. Rerun the transaction.".

    you need to provide Details about your package like what is source/destination.. any SQL query/where is the exact deadlock point.
    Please check the following links which may help you.
    http://blogs.technet.com/b/fort_sql/archive/2011/12/12/get-rid-of-deadlocks.aspx
    http://msdn.microsoft.com/en-us/library/ms191242.aspx
    Let us TRY this |
    My Blog :: http://quest4gen.blogspot.com/

  • Adding "window to a container:illegal argument exception".error plz help

    Thanks to Mr.Andrew and sun for developing the following code for a
    mediaplayer which is implemented in jmf.This is working in core java. But
    when i have converted it to Applet it compiles but an error adding "window
    to a container:illegal argument exception".code is given below plz point
    me where is the error;
    import javax.media.*;
    import java.text.DecimalFormat;
    import java.awt.*;
    import java.awt.FileDialog;
    import java.awt.event.*;
    import javax.swing.*;
    import javax.swing.border.*;
    import java.io.*;
    import java.net.*;
    import java.util.*;
    class nwa extends WindowAdapter{
    frameclass frame;
    public nwa(frameclass frame){
    this.frame=frame;
    public void windowClosing (WindowEvent e)
    //User selected close from System menu.
    //Call dispose to invoke windowClosed.
    frame.dispose ();
    public void windowClosed (WindowEvent e)
    //if (player != null)
    //player.close ();
    System.exit (0);
    class frameclass extends JFrame
    frameclass(){
    nwa n=new nwa(this);
    this.addWindowListener(n);                    
    public class PlayerApplet extends JApplet
              implements
    ActionListener,ControllerListener,ItemListener, KeyListener
    frameclass frame=new frameclass();
    Player player;
    Component vc, cc;
    JProgressBar volumeBar;
         JButton fastRewind;
         JButton fastForward;
         JButton play;
    int sizeIncrease = 2;
    boolean invokedStop = false;
         /** Big */
         int progressFontSize=30;
    boolean first = true, loop = false;
    String currentDirectory;
    public void init(){
    JMenu m = new JMenu ("File");
    JMenuItem mi = new JMenuItem ("Open...");
    mi.addActionListener (this);
    m.add (mi);
    m.addSeparator ();
    JCheckBoxMenuItem cbmi = new JCheckBoxMenuItem ("Loop", false);
    cbmi.addItemListener (this);
    m.add (cbmi);
    m.addSeparator ();
    mi = new JMenuItem ("Exit");
    mi.addActionListener (this);
    m.add (mi);
    JMenuBar mb = new JMenuBar ();
    mb.add (m);
    frame.setJMenuBar (mb);
    setSize (200, 200);
         final JPanel p = new JPanel(new GridLayout(1,0,5,5));
              p.setBorder(new EmptyBorder(3,5,5,5) );
              fastRewind = new JButton("<html><body><font size=+"+
    sizeIncrease+ "><<");
              fastRewind.setToolTipText("Fast Rewind");
              fastRewind.addActionListener( new ActionListener(){
                   public void actionPerformed(ActionEvent ae) {
                        if (player!=null) {
                             invokedStop = false;
                             skipBack();
                        } else {
    JOptionPane.showMessageDialog(play,
                             new JLabel("Open a sound file
    first!"));
              fastRewind.addKeyListener(this);
              p.add(fastRewind);
              JButton stop = new JButton("<html><body><font size=+"+
    sizeIncrease+ ">&#9632;");
              stop.setToolTipText("Stop");
              stop.addActionListener( new ActionListener(){
                   public void actionPerformed(ActionEvent ae) {
                        invokedStop = true;
                        //player.stop();
                        sp();
              stop.addKeyListener(this);
              p.add(stop);
              play = new JButton("<html><body><font size=+"+
    sizeIncrease+ ">>");
              play.setToolTipText("Play");
              play.addActionListener( new ActionListener(){
                   public void actionPerformed(ActionEvent ae) {
                        if (player!=null) {
                             invokedStop = false;
                             player.setRate(1);
                             st();
                        } else {
    JOptionPane.showMessageDialog(play,
                             new JLabel("Open a sound file
    first!"));
              play.addKeyListener(this);
              p.add(play);
              fastForward = new JButton("<html><body><font size=+"+
    sizeIncrease+ ">>>");
              fastForward.setToolTipText("Fast Forward");
              fastForward.addActionListener( new ActionListener(){
                   public void actionPerformed(ActionEvent ae) {
                        if (player!=null) {
                             invokedStop = false;
                             skipForward();
                        } else {
    JOptionPane.showMessageDialog(play,
                             new JLabel("Open a sound file
    first!"));
              fastForward.addKeyListener(this);
              p.add(fastForward);
              p.addKeyListener(this);
              frame.add(p,BorderLayout.CENTER);     
              add(frame);
    // pack ();
    setVisible (true);
    public void start(){
    st();
    public void stop(){
    sp();
    public void destroy(){
    player.stop();
    player.deallocate();
    public void actionPerformed (ActionEvent e)
                   if (e.getActionCommand().equals("Exit"))
                   // Call dispose to invoke windowClosed.
                   frame.dispose ();
                        return;
         FileDialog fd = new FileDialog (frame, "Open File",
    FileDialog.LOAD);
         fd.setDirectory (currentDirectory);
         fd.show ();
         // If user cancelled, exit.
              if (fd.getFile() == null)
         return;
    currentDirectory = fd.getDirectory ();
              if (player != null)
         player.close ();
         try
         player = Manager.createPlayer (new MediaLocator
    ("file:" +
    fd.getDirectory() +
    fd.getFile()));
         catch (java.io.IOException e2)
    System.out.println (e2);
    return;
         catch (NoPlayerException e2)
    System.out.println ("Could not find a player.");
    return;
              if (player == null)
         System.out.println ("Trouble creating a player.");
         return;
    first = false;
    frame.setTitle (fd.getFile ().toString());
    player.addControllerListener (this);
    player.prefetch ();
    public void controllerUpdate (ControllerEvent e)
    if (e instanceof ControllerClosedEvent)
    if (vc != null)
    remove (vc);
    vc = null;
    if (cc != null)
    remove (cc);
    cc = null;
    return;
    if (e instanceof EndOfMediaEvent)
    if (loop)
    player.setMediaTime (new Time (0));
    player.start ();
    return;
    if (e instanceof PrefetchCompleteEvent)
    player.start ();
    return;
    if (e instanceof RealizeCompleteEvent)
    vc = player.getVisualComponent ();
    if (vc != null)
    add (vc);
    cc = player.getControlPanelComponent ();
    if (cc != null){
         this.add (cc, BorderLayout.SOUTH);
                        this.show();
    public void keyReleased(KeyEvent ke) {
    int keycode = ke.getKeyCode();
              if (keycode==KeyEvent.VK_LEFT) {
                   skipBack();
              } else if (keycode==KeyEvent.VK_RIGHT) {
                   skipForward();
         public void keyTyped(KeyEvent ke) {
         int keycode = ke.getKeyCode();
              if (keycode==KeyEvent.VK_LEFT) {
                   skipBack();
              } else if (keycode==KeyEvent.VK_RIGHT) {
                   skipForward();
         public void keyPressed(KeyEvent ke) {
              int keycode = ke.getKeyCode();
              if (keycode==KeyEvent.VK_LEFT) {
                   skipBack();
              } else if (keycode==KeyEvent.VK_RIGHT) {
                   skipForward();
              }else if (keycode==KeyEvent.VK_UP) {
                   st();
              }else if (keycode==KeyEvent.VK_DOWN) {
                   sp();
    public void skipForward() {
    double secs=5;
    double playersecs = player.getMediaTime().getSeconds();
    Time settime = new javax.media.Time(playersecs + secs);
    player.setMediaTime(settime);
    public void skipBack() {
              double secs1=5;
    double playersecs1 = player.getMediaTime().getSeconds();
    Time settime1 = new javax.media.Time(playersecs1 - secs1);
    player.setMediaTime(settime1);
         public void st() {
         player.start();
         public void sp() {
         player.stop();
    public void itemStateChanged (ItemEvent e)
    loop = !loop;
    When i comment add(frame) this error goes but i got a null poiter
    exception
    Plz help
    manu

    Hi Andrew,
    Thanks for ur reply.Sorrry that my code not included in the code block.
    My problem have been solved partly.Now playerapplet is working properly.It can play files from local machine(through open menuitem from file menu) as well as local network (through url menuitem from file menu).
    There is no requirement to play file from internet at present.
    I have given arrow keys to forward/backward/open/close.
    I have now completed my first part of project.Now i have to start the second part ie Controlling arrow keys using a joystick like instrument.The instrument and driver will be provided by my co. and the user is using only this device.Plz help me how to do that.
    The code is given below
    import javax.media.*;
    import java.text.DecimalFormat;
    import java.awt.*;
    import java.awt.FileDialog;
    import java.awt.event.*;
    import javax.swing.*;
    import javax.swing.border.*;
    import java.io.*;
    import java.net.*;
    import java.util.*;
    <APPLET CODE=PlayerApplet.class
    WIDTH=320 HEIGHT=300>
    </APPLET>
    class nwa extends WindowAdapter
         frameclass frame;
         Player player;
         public nwa(frameclass frame,Player player)
          this.player=player;
          this.frame=frame;
         public void windowClosing (WindowEvent e)
          //User selected close from System menu.
          //Call dispose to invoke windowClosed.
          frame.dispose ();
          public void windowClosed (WindowEvent e)
              if (player != null)
                   player.stop();
                player.close ();
                   player.deallocate();
          System.exit (0);
    class frameclass extends JFrame
    Player player;
         frameclass(Player player)
         nwa n=new nwa(this,player);
         this.addWindowListener(n);                    
    public class PlayerApplet extends JApplet
               implements ActionListener,ControllerListener,ItemListener, KeyListener
               Player player=null;
               frameclass frame=new frameclass(player);
                 Component vc, cc;
                 Container f;
                 JProgressBar volumeBar;
                 JButton fastRewind;
              JButton fastForward;
              JButton play;
              int sizeIncrease = 2;
              boolean invokedStop = false;
              /** Big */
              int progressFontSize=30;
                 boolean first = true, loop = false;
                 String currentDirectory;
                 public void init()
                          f=frame.getContentPane();
                         JMenu m = new JMenu ("File");
                         JMenuItem mi = new JMenuItem ("Open...");
                         mi.addActionListener (this);
                         m.add (mi);
                         m.addSeparator ();
                         mi = new JMenuItem ("URL");
                         mi.addActionListener (this);
                         m.add (mi);
                         m.addSeparator ();
                         JCheckBoxMenuItem cbmi = new JCheckBoxMenuItem ("Loop", false);
                         cbmi.addItemListener (this);
                         m.add (cbmi);
                         m.addSeparator ();
                         mi = new JMenuItem ("Exit");
                         mi.addActionListener (this);
                         m.add (mi);
                         JMenuBar mb = new JMenuBar ();
                         mb.add (m);
                         frame.setJMenuBar (mb);
                         setSize (500, 500);
                           JPanel p = new JPanel(new GridLayout(1,0,5,5));
                        p.setBorder(new EmptyBorder(3,5,5,5) );
                        fastRewind = new JButton("<html><body><font size=+"+ sizeIncrease+ "><<");
                        fastRewind.setToolTipText("Fast Rewind");
                        fastRewind.addActionListener( new ActionListener(){
                             public void actionPerformed(ActionEvent ae) {
                                  if (player!=null) {
                                       invokedStop = false;
                                       skipBack();
                                  } else {
                                       JOptionPane.showMessageDialog(play,
                                       new JLabel("Open a sound file first!"));
                        fastRewind.addKeyListener(this);
                        p.add(fastRewind);
                        JButton stop = new JButton("<html><body><font size=+"+ sizeIncrease+ ">&#9632;");
                        stop.setToolTipText("Stop");
                        stop.addActionListener( new ActionListener(){
                                  public void actionPerformed(ActionEvent ae) {
                                       invokedStop = true;
                                       sp();
                        stop.addKeyListener(this);
                        p.add(stop);
                        play = new JButton("<html><body><font size=+"+ sizeIncrease+ ">>");
                        play.setToolTipText("Play");
                        play.addActionListener( new ActionListener()
                                  public void actionPerformed(ActionEvent ae) {
                                       if (player!=null) {
                                            invokedStop = false;
                                            player.setRate(1);
                                            st();
                                       } else {
                                            JOptionPane.showMessageDialog(play,
                                            new JLabel("Open a sound file first!"));
              play.addKeyListener(this);
              p.add(play);
              fastForward = new JButton("<html><body><font size=+"+ sizeIncrease+ ">>>");
              fastForward.setToolTipText("Fast Forward");
              fastForward.addActionListener( new ActionListener(){
                   public void actionPerformed(ActionEvent ae) {
                        if (player!=null) {
                             invokedStop = false;
                             skipForward();
                        } else {
                             JOptionPane.showMessageDialog(play,
                             new JLabel("Open a sound file first!"));
              fastForward.addKeyListener(this);
              p.add(fastForward);
              frame.getContentPane().add(p,BorderLayout.CENTER);
              frame.setVisible (true);
              frame.pack();
              frame.setResizable(false);
      public void stop(){
      sp();
      public void destroy(){
       player.stop();
        player.deallocate();
      public void actionPerformed (ActionEvent e)
              if (e.getActionCommand().equals("Exit"))
                             // Call dispose to invoke windowClosed.
                             player.stop();
                             player.close();
                             player.deallocate();
                             frame.dispose ();
                                  return;
              if (e.getActionCommand().equals("Open..."))
                             FileDialog fd = new FileDialog (frame, "Open File",
                                         FileDialog.LOAD);
                              fd.setDirectory (currentDirectory);
                              fd.show ();
                              // If user cancelled, exit.
                              if (fd.getFile() == null)
                             return;
                              currentDirectory = fd.getDirectory ();
                                   if (player != null){
                                       player.close ();
                                       player.deallocate();
                         try
                  player = Manager.createPlayer (new MediaLocator
                                               ("file:" +
                                               fd.getDirectory() +
                                               fd.getFile()));
                              catch (java.io.IOException e2)
                            System.out.println ("file not found :"+e2);
                            return;
                              catch (NoPlayerException e2)
                            System.out.println ("Could not find a player.");
                            return;
                    if (player == null)
                   System.out.println ("Trouble creating a player.");
                   return;
                    first = false;
                    frame.setTitle (fd.getFile ().toString());
                    player.addControllerListener (this);
                    player.prefetch ();
                   return;
              if (e.getActionCommand().equals("URL"))
                             FileDialog fd = new FileDialog (frame, "Open File",
                                         FileDialog.LOAD);
                         fd.setDirectory (currentDirectory);
                         fd.show ();
                         // If user cancelled, exit.
                              if (fd.getFile() == null)
                             return;
                         currentDirectory = fd.getDirectory ();
                              if (player != null){
                                       player.close ();
                                       player.deallocate();
                   try
                        URL url = new URL ("file://"+fd.getDirectory()+fd.getFile());
                    MediaLocator mediaLocator = new MediaLocator (url);
                        player = Manager.createPlayer (mediaLocator);
                   catch (java.io.IOException e2)
                  System.out.println ("file not found :"+e2);
                  return;
                    catch (NoPlayerException e2)
                  System.out.println ("Could not find a player.");
                  return;
                    if (player == null)
                   System.out.println ("Trouble creating a player.");
                   return;
          first = false;
          frame.setTitle (fd.getFile ().toString());
          player.addControllerListener (this);
          player.prefetch ();
              return;
       public void controllerUpdate (ControllerEvent e)
          if (e instanceof ControllerClosedEvent)
              if (vc != null)
                  frame.getContentPane().remove (vc);
                  vc = null;
              if (cc != null)
                  frame.getContentPane().remove (cc);
                  cc = null;
              return;
          if (e instanceof EndOfMediaEvent)
              if (loop)
                  player.setMediaTime (new Time (0));
                  player.start ();
              return;
          if (e instanceof PrefetchCompleteEvent)
              player.start();
              return;
          if (e instanceof RealizeCompleteEvent)
            if (vc != null)
                  remove (vc);
                  vc = null;
              if (cc != null)
                  remove (cc);
                  cc = null;
              vc = player.getVisualComponent ();
              if (vc != null)
                  frame.getContentPane().add(vc,BorderLayout.NORTH);
              cc = player.getControlPanelComponent ();
              if (cc != null){
                       frame.getContentPane().add (cc, BorderLayout.SOUTH);
                     frame.setVisible(true);
                     frame.pack();
    public void keyReleased(KeyEvent ke) {
    int keycode = ke.getKeyCode();
              if (keycode==KeyEvent.VK_LEFT) {
                   skipBack();
              } else if (keycode==KeyEvent.VK_RIGHT) {
                   skipForward();
         public void keyTyped(KeyEvent ke) {
         int keycode = ke.getKeyCode();
              if (keycode==KeyEvent.VK_LEFT) {
                   skipBack();
              } else if (keycode==KeyEvent.VK_RIGHT) {
                   skipForward();
         public void keyPressed(KeyEvent ke) {
              int keycode = ke.getKeyCode();
              if (keycode==KeyEvent.VK_LEFT) {
                   skipBack();
              } else if (keycode==KeyEvent.VK_RIGHT) {
                   skipForward();
              }else if (keycode==KeyEvent.VK_UP) {
                   st();
              }else if (keycode==KeyEvent.VK_DOWN) {
                   sp();
    public void skipForward() {
    Time settime;
    double secs=5;
    double playersecs = player.getMediaTime().getSeconds();
    double duration = player.getDuration().getSeconds();
              if((playersecs+secs) < duration){
                      settime = new javax.media.Time(playersecs + secs);
                      player.setMediaTime(settime);
              }else {
                        player.setMediaTime(new Time(duration));
    public void skipBack() {
              double secs1=5;
              double secs2=0;
              double playersecs1 = player.getMediaTime().getSeconds();
              Time settime1;
              if((playersecs1 - secs1) > secs2){
                      settime1 = new javax.media.Time(playersecs1 - secs1);
                      player.setMediaTime(settime1);
              }else {
                        player.setMediaTime(new Time(0));
         public void st() {
         player.start();
         public void sp() {
         player.stop();
       public void itemStateChanged (ItemEvent e)
          loop = !loop;
    With Thanks
    manuEdited by: mm_mm on Nov 27, 2007 11:09 PM

  • Tomcat 4.0.6 503 error - Need help !

    I am running jsp and servlets in tomcat 4.0.6 server..(commercial server)...
    My application runs well in my pc.. but when i upload the webapps/xxx folder into mainwebsite_html folder in the server a 503 error with "the servlet jsp is currently unavailable"..constantly appears.. I asked for a restart and still same message appears.
    My web.xml is posted here:
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd">
    <web-app>
    <display-name>UCanExport</display-name>
    <description>UCanExport description page</description>
    <taglib>
         <taglib-uri>http://java.sun.com/jstl/sql</taglib-uri>
         <taglib-location>/WEB-INF/sql.tld</taglib-location>
    </taglib>
    <taglib>
         <taglib-uri>http://java.sun.com/jstl/core</taglib-uri>
         <taglib-location>/WEB-INF/c.tld</taglib-location>
    </taglib>
    <resource-ref>
    <description>MySQL Datasource</description>
    <res-ref-name>jdbc/devDb</res-ref-name>
    <res-type>javax.sql.DataSource</res-type>
    <res-auth>Container</res-auth>
    </resource-ref>
    <resource-ref>
    <description>Resource reference to a factory for javax.mail.Session</description>
    <res-ref-name>mail/Session</res-ref-name>
    <res-type>javax.mail.Session</res-type>
    <res-auth>Container</res-auth>
    </resource-ref>
    </web-app>
    I have a simple jsp page ..index.jsp.. just to verify..with the following code:
    <%@ page contentType="text/html; charset=iso-8859-1" language="java" import="java.sql.*" session="true" errorPage="genericError.jsp" %>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <% response.write("no problem with jsp");%>
    </body>
    </html>
    The html pages load properly... I have a mysql database ..some background might also help.. Initially i developed the whole site in tomcat 5 and migrated it backwards to tomcat 4.0.6 to ensure compatibility with my commerical server...
    Full error message: given by browser:
    type Status report
    message Servlet jsp is currently unavailable
    description The requested service (Servlet jsp is currently unavailable) is not currently available.
    My lib folder inside my WEB-INF has servlet.jar and other jar files..
    Looking forward to get some help..
    Thanks in advance
    Arumugam

    Unfortuntely, I dont have an access to the log files.. anyways.. after troubleshooting the error message is as follows:
    type Exception report
    message Internal Server Error
    description The server encountered an internal error (Internal Server Error) that prevented it from fulfilling this request.
    exception
    org.apache.jasper.JasperException: This absolute uri (http://java.sun.com/jstl/sql) cannot be resolved in either web.xml or the jar files deployed with this application
         at org.apache.jasper.compiler.TagLibraryInfoImpl.(TagLibraryInfoImpl.java:194)
         at org.apache.jasper.compiler.TagLibraryInfoImpl.(TagLibraryInfoImpl.java:174)
         at org.apache.jasper.compiler.JspParseEventListener.processTaglibDirective(JspParseEventListener.java:1170)
         at org.apache.jasper.compiler.JspParseEventListener.handleDirective(JspParseEventListener.java:765)
         at org.apache.jasper.compiler.DelegatingListener.handleDirective(DelegatingListener.java:125)
         at org.apache.jasper.compiler.Parser$Directive.accept(Parser.java:255)
         at org.apache.jasper.compiler.Parser.parse(Parser.java:1145)
         at org.apache.jasper.compiler.Parser.parse(Parser.java:1103)
         at org.apache.jasper.compiler.Parser.parse(Parser.java:1099)
         at org.apache.jasper.compiler.ParserController.parse(ParserController.java:214)
         at org.apache.jasper.compiler.Compiler.compile(Compiler.java:210)
         at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:548)
         at org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspServlet.java:176)
         at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:188)
         at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:381)
         at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:473)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:683)
         at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:574)
         at org.apache.catalina.core.ApplicationDispatcher.access$100(ApplicationDispatcher.java:115)
         at org.apache.catalina.core.ApplicationDispatcher$PrivilegedInclude.run(ApplicationDispatcher.java:146)
         at java.security.AccessController.doPrivileged(Native Method)
         at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:488)
         at org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:819)
         at org.apache.jsp.loginpage$jsp._jspService(loginpage$jsp.java:69)
         at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:201)
         at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:381)
         at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:473)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
         at org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:98)
         at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:176)
         at java.security.AccessController.doPrivileged(Native Method)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:172)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:190)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
         at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
         at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2347)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
         at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
         at org.apache.ajp.tomcat4.Ajp13Processor.process(Ajp13Processor.java:458)
         at org.apache.ajp.tomcat4.Ajp13Processor.run(Ajp13Processor.java:551)
         at java.lang.Thread.run(Thread.java:534)
    I have ensured that that the uri parameter value
    is same in web.xml lib files and in jsp files... i am using jstl 1.0 as this version is compatible with a older jstl and core files.
    any sugggestions..

  • TEXT_CONVERT_XLS_TO_SAP getting error, need help!

    Good day, everyone!
    I am using FM TEXT_CONVERT_XLS_TO_SAP to read in an Excel file.  However, I am getting an error, and the error information I'm displaying isn't helping me much.  I'm using the widely-found sample code for this FM that is on this forum.  Here's my error routine after the FM call:
      IF sy-subrc <> 0.
        MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
              WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      ENDIF.
    The problem is that this information isn't helpful to me.  When I run it, I get this:
    "Error during conversion - field type conflict (see long text)"
    There are values in the sy-msgv fields, but aside from one value being a value from my Excel spreadsheet, I don't know what the others mean.  I've searched and can find no documentation for this FM.  Also, I don't know how to "see long text."
    Can anyone help?  Points awarded for all helpful answers.
    Thanks!!

    Hi venkat,
    befor i kept comments for exceptions so i got that error
    now i used
    CALL FUNCTION 'TEXT_CONVERT_XLS_TO_SAP'
        EXPORTING
        I_FIELD_SEPERATOR        =
          i_line_header            =  'X'
          i_tab_raw_data           =  it_raw       " WORK TABLE
          i_filename               =  p_FILE2
        TABLES
          i_tab_converted_data     = i_spreadsheet[]   "ACTUAL DATA
       EXCEPTIONS
          conversion_failed        = 1
          OTHERS                   = 2.
      IF SY-SUBRC = 0.
      ENDIF.
    OK, I got the first item to upload to bid, but not the remaining.
    Bid Invitation
    Item
    Basic Data
    1
    D
    I
    1
    Normal
    1
    Material
    1E+09
    BATTERY L
    00/00/00
    0:00:00
    00/00/00
    00/00/00
    *00
    EA
    USD
    1E+09
    Bid Invitation
    Item
    Basic Data
    2
    D
    I
    2
    Normal
    1
    Material
    BATTERY F
    00/00/00
    0:00:00
    00/00/00
    00/00/00
    *00
    EA
    USD
    Bid Invitation
    Item
    Basic Data
    3
    D
    I
    3
    Normal
    1
    Material
    Cable t89
    00/00/00
    0:00:00
    00/00/00
    00/00/00
    *00
    EA
    USD
    Edited by: sukruthi raj on Mar 12, 2008 8:37 PM

  • When i am trying to type my licence key i get an error need help quick!

    when i am typing my serial number into adobe photoshop cs6 i get an error can someone other get me an other key please

    Nope, sorry, not on a user to user help forum.
    I hope you haven't waited for this response before taking other action.  You'll need to call Adobe customer support on the telephone to resolve licensing issues.
    Anticipating your next question, the phone number is available from Adobe's web site.  Look at each page and imagine where they might have hidden it.  Hint:  Start with MENU.
    -Noel

  • CRW32.exe error NEED HELP

    I get an error when I click on the print preview button, then I click thru the records using the right arrow in the records field at the top of the screen.  I can get to page 3 but when I click it again I get the error "crw32.exe has encountered a problem and needs to close.  We are sorry for the inconvenience." AppName: crw32.exe      AppVer: 12.2.0.290      ModName: cslibu-3-0.dll
    ModVer: 12.2.0.290      Offset: 000023a7
    Can anyone help me with this?? I have to get a job out today and I cant do anything!!

    What happens if you create a new report that has more than 3 pages of data?
    I suggest you purchase a case and get a support engineer tyo help you debug this:
    http://store.businessobjects.com/store/bobjamer/DisplayProductByTypePage&parentCategoryID=&categoryID=11522300?resid=-Z5tUwoHAiwAAA8@NLgAAAAS&rests=1254701640551
    Thank you
    Don

Maybe you are looking for

  • Problem with Serial Number when I tried to do the UD

    Dear Colleagues, I need your help with the issue below: I have one material that Serial Number profile was not configured. The GR was done for 3 pcs, these material is to do the UD, but before to completed the process (UD) the material was changed an

  • What are the different among "for", "while" and "do-while"?????

    I am no clear when i ues one of them. I mean in what condition I can use each of them? what is each one's advantage? Thank you everyone replying and leave any idea. @_@ <>

  • Adobe Application Manager crashes while installing CS6

    I'm trying to install the trial version of CS6 on my Macbook Pro running OS X 10.8. I open up the disk image to and then click install, and while the Initalizing Installer box is loading the Application Manager quits just before it finishes. I've tri

  • [Solved] DOSbox won't start

    Whenever I try to start dosbox to play Warcraft or the like this is what I get: $ dosbox DOSBox version 0.74 Copyright 2002-2010 DOSBox Team, published under GNU GPL. Inconsistency detected by ld.so: dl-open.c: 666: _dl_open: Assertion `_dl_debug_ini

  • MacBook to media projector

    When I connect my MacBook to an overhead projector for PowerPoint presentations or video presentations I don't get the desktop projected. Instead I get another screen that doesn't display any information. I know there is likely a setting somewhere to