Deprecation error

entry settled through transaction code aiab the amount is Rs.5000/- i notice that ordinary deprecation pass is amount 5001
how is it possible? now i want to reveres that document for wrong deprecation amount 5001/- how can i reveres the entry.
please give the solution

Hi,
Try AFAR to recalculate depreciation.
Assign points if helpful.
Regards,
Saurabh Agarwal

Similar Messages

  • Deprecation errors

    hi
    i still seem to be having trouble with deprecated errors
    lines 4,5 and 6 in this code are giving me deprecated errors
    any idea of how to get rid of this?
    public void run(){
    while (true){
    theDate = new Date();
    hours=theDate.getHours();
    minutes=theDate.getMinutes();
    seconds=theDate.getSeconds();
    if (setAlarm==1){
    rightHours=alarmHours.getText();
           rightMinutes=alarmMinutes.getText();
           riteours=Integer.parseInt(rightHours);
           ritemins=Integer.parseInt(rightMinutes);
           if (riteours==hours){
                               if (ritemins==minutes){
                            dingalingLabel=new Label("DING a LING!!");
                           add(dingalingLabel);
                           dingalingLabel.setBounds(10,360,200,25);}}
    else{alarmHours.setText("hours..");
    alarmMinutes.setText("mins..");
    dingalingLabel.setText("                ");}//end else
                       }//end if setAlarm
    repaint();
    try{Thread.sleep(1000);}
    catch(InterruptedException e){}
    }ThanKs

    So the correct version could be:
    public void run()
        GregorianCalendar calendar;
        int hours;
        int minutes;
        int seconds;
        while(true)
            calendar = new GregorianCalendar();
            hours    = calendar.get(Calendar.HOUR_OF_DAY);
            minutes  = calendar.get(Calendar.MINUTE);
            seconds  = calendar.get(Calendar.SECOND);
            // remaining code...
    }

  • Deprecated error

    Hi,
    I'm using a JavaBean from a JSP with Tomcat 4.0.6, Tomcat can found the three files, but Im getting an error, and I think the code is good, because is an example from a book.
    I have 3 files:
         - beans.html          -->Root
         - beans.jsp     -->Root
              This the first part of the file:
                   <jsp:useBean id="languageBean" scope="page" class="LanguageBean">
                        <jsp:setProperty name="languageBean" property="*"/>
                   </jsp:useBean>
                   <html>
                        <head>
         - LanguageBean.class -->WEB-INF/classes/
    This is the error I'm getting:
    Apache Tomcat/4.0.6 - HTTP Status 500 - Internal Server Error
    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: Unable to compile class for JSPNote: sun.tools.javac.Main has been deprecated.
    An error occurred at line: 1 in the jsp file: /beans.jsp
    Generated servlet error:
    C:\Program Files\Apache Tomcat 4.0\work\Standalone\localhost\_\beans$jsp.java:56: Class org.apache.jsp.LanguageBean not found.
    LanguageBean languageBean = null;
    ^
    An error occurred at line: 1 in the jsp file: /beans.jsp
    Generated servlet error:
    C:\Program Files\Apache Tomcat 4.0\work\Standalone\localhost\_\beans$jsp.java:59: Class org.apache.jsp.LanguageBean not found.
    languageBean= (LanguageBean)
    ^
    An error occurred at line: 1 in the jsp file: /beans.jsp
    Generated servlet error:
    C:\Program Files\Apache Tomcat 4.0\work\Standalone\localhost\_\beans$jsp.java:64: Class org.apache.jsp.LanguageBean not found.
    languageBean = (LanguageBean) java.beans.Beans.instantiate(this.getClass().getClassLoader(), "LanguageBean");
    ^
    An error occurred at line: 12 in the jsp file: /beans.jsp
    Generated servlet error:
    C:\Program Files\Apache Tomcat 4.0\work\Standalone\localhost\_\beans$jsp.java:94: Class org.apache.jsp.LanguageBean not found.
    out.print(JspRuntimeLibrary.toString((((LanguageBean)pageContext.findAttribute("languageBean")).getName())));
    ^
    An error occurred at line: 15 in the jsp file: /beans.jsp
    Generated servlet error:
    C:\Program Files\Apache Tomcat 4.0\work\Standalone\localhost\_\beans$jsp.java:101: Class org.apache.jsp.LanguageBean not found.
    out.print(JspRuntimeLibrary.toString((((LanguageBean)pageContext.findAttribute("languageBean")).getLanguage())));
    ^
    An error occurred at line: 18 in the jsp file: /beans.jsp
    Generated servlet error:
    C:\Program Files\Apache Tomcat 4.0\work\Standalone\localhost\_\beans$jsp.java:108: Class org.apache.jsp.LanguageBean not found.
    out.print(JspRuntimeLibrary.toString((((LanguageBean)pageContext.findAttribute("languageBean")).getLanguageComments())));
    ^
    6 errors, 1 warning
         at org.apache.jasper.compiler.Compiler.compile(Compiler.java:285)
         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.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
         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.valves.AccessLogValve.invoke(AccessLogValve.java:468)
         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.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1027)
         at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1125)
         at java.lang.Thread.run(Thread.java:536)
    Thanks

    Import your bean class:
    <%@ page import="LanguageBean" %>

  • Beginner "Hello Camera" App Sample Errors

    Hello,
    Can anyone help me out. I was trying to recreate the "Hello Camera" app sample but I keep getting these errors. I'm assuming that the instructions follow those necessary for an earlier version, especially because of all the deprecation errors. I thought I fixed the codes to the new ones being used in Xcode 5.0 though. I've tried looking up how to fix these errors and I can't find anything that helps. If anyone can help I'd really appreciate it.
    Thank you!

    Your errors do not match the lines indicated. Try to clean project and rebuilt. Aside from that, your errors look pretty straightforward. Follow the suggestions to fix them.

  • How to ignore JSP errors in JDeveloper 10g IDE?

    How do I ignore errors in JSPs? I forgot it is in server.xml or some other xml configuration file.

    Thanks for your reply. there is 'deprecation warnings' under Project Properties--> Compiler. These errors are not deprecation errors.
    The below code doesn't help either.
    <jsp-config>
    <jsp-property-group>
    <url-pattern>*.jsp</url-pattern>
    <el-ignored>false</el-ignored>
    </jsp-property-group>
    </jsp-config>

  • Tomcat 4.0.4 Internal Server Error with JWSDP 1.0.01 examples

    Hi,
    I am trying to run the JWSDP 1.0.01 tutorial examples with
    Apache Tomcat 4.0.4. I have j2sdk 1.4.0.01 installed on
    Windows 2000.
    I have successfully built and installed the 'date' example
    jwsdp-1_0_01\docs\tutorial\examples\web\date. When I point my browser at http://localhost:8080/date/ I get the following:
    Apache Tomcat/4.0.4 - HTTP Status 500 - Internal Server Error
    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: Unable to compile class for JSPNote: sun.tools.javac.Main has been deprecated.
    error: An error has occurred in the compiler; please file a bug report (http://java.sun.com/cgi-bin/bugreport.cgi).
    1 error, 1 warning
    at org.apache.jasper.compiler.Compiler.compile(Compiler.java:285)
         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.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
         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.valves.AccessLogValve.invoke(AccessLogValve.java:468)
         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.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1027)
         at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1125)
         at java.lang.Thread.run(Thread.java:536)
    Any ideas ?
    Thanks,
    Mike.

    Check if you've the latest servlet.jar file
    -Dieter

  • Converting from JDK 1.0 to JDK 1.1    -deprecated classes.

    as the above topic explains.
    this is my code, i still get the -deprecated error even after i replace the classes. i need major help pls!
    import java.awt.*;
    import java.applet.*;
    import java.awt.event.*;
    public abstract class snake extends Applet implements Runnable,KeyListener,ActionListener
    static int LEFT,RIGHT,UP,DOWN;     
    Image dot[]=new Image[400];
    Image back;
    Image offI;
    Graphics offG;
    int x[]= new int[400];
    int y[]= new int[400];
    int rtemp=1;
    int game=1;
    int level;
    int z;
    int n;
    int count=0;
    int score=0;
    int add=1;
    Button b= new Button("Beginner");
    Button i= new Button("Intermediate");
    Button p= new Button("Professional");
    Button X= new Button("Xtreamest");
    String stemp;
    String s;
    String t;
    boolean go[]=new boolean[400];
    boolean left=false;
    boolean right=false;
    boolean up=false;
    boolean down=false;
    boolean started=false ;
    boolean me=false;
    Thread setTime;
    public void init()
    add(b);
    add(i);
    add(p);
    add(X);
    setBackground(Color.black);
    back = getImage(getCodeBase(), "screan.gif");
    for (z=0 ; z < 400 ; z++){dot[z] = getImage(getCodeBase(), "dot.gif"); }
    public void update(Graphics g)
    Dimension d = this.size();
    if(offI == null)
    offI = createImage(d.width, d.height);
    offG = offI.getGraphics();
    offG.clearRect(0, 0, d.width, d.height);
    paint(offG);
    g.drawImage(offI, 0, 0, null);
    public void paint(Graphics g)
    g.drawImage(back, 0, 0, this);
    g.setColor(Color.white);
    if(started)
    g.setFont(new Font("Verdana", 1, 12));
    t = "Score "+score+"";
    g.drawString(t, 75, 220);
    if(game==1)
    g.setFont(new Font("Verdana", 1, 13));
    s = "Select Mode";
    g.drawString(s, 65, 30);
    b.move(75, 50);
    i.move(68, 90);
    p.move(68, 130);
    X.move(73, 170);
    if((game==2)||(game==3))
    if(!started)
    g.setFont(new Font("Verdana", 1, 11));
    t = "Use the key board arrows to move!";
    g.drawString(t, 5, 215);
    for (z=0 ; z <= n ; z++){  g.drawImage(dot[z],x[z],y[z],this); }
    me=true;
    if(!me)
    g.setFont(new Font("Verdana", 1, 11));
    t = "by Omar Wally, http://crash.to/PLAY";
    g.drawString(t, 5, 215);
    if(game==3)
    g.setFont(new Font("Verdana", 1, 13));
    s="Game Over";
    g.drawString(s, 65, 60);
    public void run()
    for(z=4 ;z <400 ; z++) { go[z]=false;}
    for(z=0 ; z<4 ; z++) { go[z]=true;x[z]=91;y[z]=91;}
    n=3;
    game=2;
    score=0;
    b.move(70, -100);
    i.move(70, -100);
    p.move(70, -100);
    X.move(70, -100);
    left=false;
    right=false;
    up=false;
    down=false;
    locateRandom(4);
    while(true)
    if (game==2)
    if ((x[0]==x[n])&&(y[0]==y[n])){go[n]=true;locateRandom((n+1));score+=add; }
    for(z = 399 ; z > 0 ; z--)
    if (go[z])
    x[z] = x[(z-1)]; y[z] = y[(z-1)];
    if ((z>4)&&(x[0]==x[z])&&(y[0]==y[z])){ game=3; }
    if(left){ x[0]-=10; }
    if(right){ x[0]+=10; }
    if(up){ y[0]-=10; }
    if(down){ y[0]+=10; }
    if(y[0]>191){y[0]=191;game=3;}
    if(y[0]<1){y[0]=1;game=3;}
    if(x[0]>191){x[0]=191;game=3;}
    if(x[0]<1){x[0]=1;game=3;}
    if (game==3)
    if (count <(1500/level)) { count++; } else { count=0;game=1;repaint();setTime.stop(); }
    repaint();
    try{setTime.sleep(level);}
    catch(InterruptedException e){}
    public void locateRandom(int turn)
    rtemp=(int)(Math.random()*20);
    x[turn]=((rtemp*10)+1) ;
    rtemp=(int)(Math.random()*20);
    y[turn]=((rtemp*10)+1);
    n++;
    /*public boolean keyDown(Event e, int key)
    if ((key == Event.LEFT) &&(!right)){left = true; up = false; down = false;if(!started)started=true;}
    if ((key == Event.RIGHT) && (!left)){right = true; up = false; down = false;if(!started)started=true;}
    if ((key == Event.UP) && (!down)){ up = true; right = false; left = false;if(!started)started=true;}
    if ((key == Event.DOWN) && (!up)){down = true; right = false; left = false;if(!started)started=true;}
    return true;
         public void keyReleased(KeyEvent e)
         public void keyTyped(KeyEvent e)
         public void keyPressed(KeyEvent e)
         if ((key == Event.LEFT) &&(!right)){left = true; up = false; down = false;if(!started)started=true;}
         if ((key == Event.RIGHT) && (!left)){right = true; up = false; down = false;if(!started)started=true;}
         if ((key == Event.UP) && (!down)){ up = true; right = false; left = false;if(!started)started=true;}
         if ((key == Event.DOWN) && (!up)){down = true; right = false; left = false;if(!started)started=true;}
         //return true;
    public boolean actionPerformed(ActionEvent event, Object obj)
    stemp = (String) obj;
    if(stemp.equals("Beginner"))
    add=2;
    level=100;
    setTime = new Thread(this);
    setTime.start();
    return true;
    if(stemp.equals("Intermediate"))
    add=5;
    level=70;
    setTime = new Thread(this);
    setTime.start();
    return true;
    if(stemp.equals("Professional"))
    add=10;
    level=40;
    setTime = new Thread(this);
    setTime.start();
    return true;
    if(stemp.equals("Xtreamest"))
    add=20;
    level=20;
    setTime = new Thread(this);
    setTime.start();
    return true;
    return false;
    }

    i still get -deprecated after trying!!! ahh!!!

  • Deprecated something

    I have narrowed it down to the events method and it seems there is a problem with the event. I have it working kinda right and I wanted to clear the buffer.
    http://www.state.nj.us/military/test/testingjava/applet.htm
    try the applet out. type in bob press search then press search again.
    it is repeating the text. but it also seems that it may not be the buffer.
    THE MAIN CONCERN IS THE DEPRECATED ERROR
    the error:
    Note: Z:\applications\JCreator LE\MyProjects\helloworld\test\teststate\Virginia.java uses or overrides a deprecated API. Recompile with "-deprecation" for details.
    1 warning
    the foowing is the code:
    import java.awt.*;
    import java.applet.*;
    import java.lang.*;
    import java.io.*;
    import java.net.URL;
    public class Virginia extends java.applet.Applet
         String results[]=new String[10];
         String resultsString;
         String queryString;
         TextArea lt;
         Label lbQueryString= new Label("Please enter search text:");
         TextField tfQueryString= new TextField(25);
         Button btSearch=new Button("Search");
         Button btClear=new Button("Clear Entry");
         private void getString()
              try{                    
                        URL yahoo = new URL("http://www.nj.gov/military/test/testme.txt");
                        BufferedReader in = new BufferedReader(new InputStreamReader(yahoo.openStream()));
                        String line= in.readLine();
                        System.out.println(" in ");
                        int i=0;
                        while ( line != null )
                             int index = line.indexOf(queryString.trim());
                             if ( index != -1)
                                  results=(line);
                                  i++;
                                  System.out.println(i);
                             line = in.readLine();
                        in.close();
                        }catch (IOException e)
                        {System.out.println("Error -- " + e.toString());}     
              for (int i=0;i<10;i++)
                   if(results[i]!=null)
                        resultsString+=(results[i]+"\n");
         public boolean action(Event evt, Object arg)
              if (evt.target instanceof Button)
                   String label = (String)arg;
                   if (label.equals("Search"))
                        queryString=tfQueryString.getText();
                             this.getString();
                        lt.setText(resultsString);
                   }else
                             queryString="";     
                             lt.setText("");
                        return true;
              }else
                   return false;
         public void init()
              lt = new TextArea(resultsString, 10, 50);
              add(lbQueryString);
              add(tfQueryString);
              add(btClear);
              add(btSearch);
              add(lt);
              this.destroy();

    I tried to compile you program, but it failed. The problem is that you tried to assign String value to String[] in following code.
    results=(line);
    It need to be changed to: results=line;
    Another problem is that your define array size for results as 10. If the file that you got from internet has more than 10 line number, you will get exception.
    By the way, for DEPRECATED ERROR I fixed your codes as shown bellow. It will fix the deprecation problem.
    import java.awt.*;
    import java.applet.*;
    import java.lang.*;
    import java.io.*;
    import java.net.URL;
    public class Virginia extends java.applet.Applet
    String results[]=new String[10];
    String resultsString;
    String queryString;
    TextArea lt;
    Label lbQueryString= new Label("Please enter search text:");
    TextField tfQueryString= new TextField(25);
    Button btSearch=new Button("Search");
    Button btClear=new Button("Clear Entry");
    private void getString()
    try{
    URL yahoo = new URL("http://www.nj.gov/military/test/testme.txt");
    BufferedReader in = new BufferedReader(new InputStreamReader(yahoo.openStream()));
    String line= in.readLine();
    System.out.println(" in ");
    int i=0;
    while ( line != null )
    int index = line.indexOf(queryString.trim());
    if ( index != -1)
    results=(line);
    i++;
    System.out.println(i);
    line = in.readLine();
    in.close();
    }catch (IOException e)
    {System.out.println("Error -- " + e.toString());}
    for (int i=0;i<10;i++)
    if(results!=null)
    resultsString+=(results+"\n");
    /*public boolean action(Event evt, Object arg)
    if (evt.target instanceof Button)
    String label = (String)arg;
    if (label.equals("Search"))
    queryString=tfQueryString.getText();
    this.getString();
    lt.setText(resultsString);
    }else
    queryString="";
    lt.setText("");
    return true;
    }else
    return false;
    public void init()
    btnSearch.addActionListener(new ButtonHandler());
    btClear.addActionListener(new ButtonHandler());
    lt = new TextArea(resultsString, 10, 50);
    add(lbQueryString);
    add(tfQueryString);
    add(btClear);
    add(btSearch);
    add(lt);
    this.destroy();
    class ButtonHandler implements ActionListener{
         public void actionPerformed(ActionEvent e){
              String s=e.getActionCommand();
              if (s.equals("Search"))
                   queryString=tfQueryString.getText();
                   getString();
                   lt.setText(resultsString);
              }else if (s.equals("Clear Entry"))
                   queryString="";
                   lt.setText("");

  • Error 500: Please Help me

    When I try to access this jsp page the page seem like this.
    I can't fix it.
    Please help me
    Thanks in advance
    Error: 500
    Location: /dash/jsp/selection_left.jsp
    Internal Servlet Error:
    org.apache.jasper.JasperException: Unable to compile class for JSPNote: sun.tools.javac.Main has been deprecated.
    error: An error has occurred in the compiler; please file a bug report (http://java.sun.com/cgi-bin/bugreport.cgi).
    1 error, 1 warning
         at org.apache.jasper.compiler.Compiler.compile(Compiler.java:282)
         at org.apache.jasper.servlet.JspServlet.doLoadJSP(JspServlet.java:612)
         at org.apache.jasper.servlet.JasperLoader12.loadJSP(JasperLoader12.java:146)
         at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:542)
         at org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspServlet.java:258)
         at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:268)
         at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:429)
         at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:500)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
         at org.apache.tomcat.core.Handler.service(Handler.java:287)
         at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
         at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:812)
         at org.apache.tomcat.core.ContextManager.service(ContextManager.java:758)
         at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:213)
         at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
         at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501)
         at java.lang.Thread.run(Thread.java:536)

    As the error message suggests: You have an error in your JSP that is causing the compiler to fail.
    If you need more help, it might be a good idea to show us the source code for the page!?
    HTH.

  • Error due to accessing database connection using jsp

    Hi,
    I have an error, during accessing a datbase using jsp:useBean from jsp.Urgent i need this one
    my source code is
    DbBean.java
    package SQLBean;
    import java.sql.*;
    import java.io.*;
    public class DbBean implements java.io.Serializable{
    private String dbDriver = "sun.jdbc.odbc.JdbcOdbcDriver";
    private Connection dbCon;
    public DbBean(){
    super();
    public boolean connect() throws ClassNotFoundException,SQLException{
    Class.forName(dbDriver);
    dbCon = DriverManager.getConnection("jdbc dbc:mybean","","");
    return true;
    public void close() throws SQLException{
    dbCon.close();
    public ResultSet execSQL(String sql) throws SQLException{
    Statement s = dbCon.createStatement();
    ResultSet r = s.executeQuery(sql);
    return (r == null) ? null : r;
    public int updateSQL(String sql) throws SQLException{
    Statement s = dbCon.createStatement();
    int r = s.executeUpdate(sql);
    return (r == 0) ? 0 : r;
    database.jsp
    <HTML>
    <HEAD><TITLE>DataBase Search</TITLE></HEAD>
    <BODY>
    <%@ page language="Java" import="java.sql.*" %>
    <jsp:useBean id="db" scope="application" class="SQLBean.DbBean" />
    <jsp:setProperty name="db" property="*" />
    <center>
    <h2> Results from </h2>
    <hr>
    <br><br>
    <table>
    <%
    db.connect();
    ResultSet rs = db.execSQL("select * from employ");
    int i = db.updateSQL("UPDATE employ set fname = 'hello world' where empno='000010'");
    out.println(i);
    %>
    <%
    while(rs.next()) {
    %>
    <%= rs.getString("empno") %>
    <BR>
    <%
    %>
    <BR>
    <%
    db.close();
    %>
    Done
    </table>
    </body>
    </HTML>
    The error like this
    org.apache.jasper.JasperException: Unable to compile class for JSPNote: sun.tools.javac.Main has been deprecated.
    error: Invalid class file format in C:\Program Files\Apache Tomcat 4.0\webapps\muthu\WEB-INF\classes\SQLBean\DbBean.class. The major.minor version '49.0' is too recent for this tool to understand.
    An error occurred at line: 7 in the jsp file: /database.jsp
    Generated servlet error:
    C:\Program Files\Apache Tomcat 4.0\work\localhost\muthu\database$jsp.java:65: Class SQLBean.DbBean not found.
    SQLBean.DbBean db = null;
    ^
    An error occurred at line: 7 in the jsp file: /database.jsp
    Generated servlet error:
    C:\Program Files\Apache Tomcat 4.0\work\localhost\muthu\database$jsp.java:68: Class SQLBean.DbBean not found.
    db= (SQLBean.DbBean)
    ^
    An error occurred at line: 7 in the jsp file: /database.jsp
    Generated servlet error:
    C:\Program Files\Apache Tomcat 4.0\work\localhost\muthu\database$jsp.java:73: Class SQLBean.DbBean not found.
    db = (SQLBean.DbBean) java.beans.Beans.instantiate(this.getClass().getClassLoader(), "SQLBean.DbBean");
    ^
    4 errors, 1 warning
    Anybody help me?
    Thanx in advance

    Your code is ok . The problem is in java version witch you use to compile the DbBean class . I think you are using java 1.5 try to change to 1.4 compile and run again should help .

  • Deprecated Mouse Event Functions

    While I was tryng to use the Xeon.java program provided by Java in the free applets page, I got deprecation errors for all of the mouse event functions like, mouseEvent(), mouseDown,.. . Is
    there any way that I can get this to work without totally changing my code, or is there an update anywhere to this program that does not have deprecated components.

    No, deprecated code still compiles!
    Deprecation warnings are just that -- only warnings.
    You should update the deprecated classes and methods if you're making changes to the code or deploying it, but you don't need to.

  • ApplicationPool.setUserName deprecated ... so what to use?

    I'm following a tutorial from here and I'm trying to adapt it for 11g.
    I've reached the point
        public SessionCookie createSessionCookie(String name, String value,
                                                 ApplicationPool pool,
                                                 Properties properties) {
            SessionCookie cookie =  super.createSessionCookie(name, value, pool, properties); // line 1
            if (properties != null) {
                //HttpSession session = (HttpSession)properties.get(HTTP_SESSION); // line 2
                HttpSession session = (HttpSession)FacesContext.getCurrentInstance().getExternalContext().getSession(true);
                if (session != null) {
                    Hashtable env = pool.getEnvironment(); // line 3
                    env.remove(Configuration.DB_USERNAME_PROPERTY);
                    env.remove(Configuration.DB_PASSWORD_PROPERTY);
    //                pool.setUserName(null);
    //                pool.setPassword(null);
                    EnvInfoProvider provider =
                        new DynamicJDBCEnvInfoProvider( // line 4
                            (String)session.getAttribute(Configuration.DB_USERNAME_PROPERTY),
                            (String)session.getAttribute(Configuration.DB_PASSWORD_PROPERTY));
                    cookie.setEnvInfoProvider(provider); // line 5
            return cookie;
        } the commented lines give me deprecated errors ... I don't know how to workaround with pool.set* methods
    ps: this started from the need to use the db users and roles
    Any help will be appreciated
    Florin POP
    Edited by: kquizak on Nov 14, 2008 12:13 PM
    Edited by: kquizak on Nov 14, 2008 12:13 PM

    Hi,
    This value should be passed to the pool connection strategy as SessionCookie environment or by implementing an EnvInfoProvider. So in your case
    Hashtable env = pool.getEnvironment();
    env.put(Configuration.DB_USERNAME_PROPERTY, null);
    env.put(Configuration.DB_PASSWORD_PROPERTY, null);
    should do the same
    Frank

  • How to Ignore Insert Errors in LKM.

    Hi,
    I would Like to know how to Ignore insert errors in Oracle Data Integrator (Something like flat file mechanism, where the errors are located into .bad and .error files). If My Step 'insert new records' thrown an error regarding to Wrong Data, Constraint, etc. I would like to redirect the records with error to another location without affect the performance.
    is this possible throws Interface configuration or something like that?
    Thanks in advance.

    Thanks for your reply. there is 'deprecation warnings' under Project Properties--> Compiler. These errors are not deprecation errors.
    The below code doesn't help either.
    <jsp-config>
    <jsp-property-group>
    <url-pattern>*.jsp</url-pattern>
    <el-ignored>false</el-ignored>
    </jsp-property-group>
    </jsp-config>

  • Problems compiling jsp on Tomcat

    I am getting an error message when I try to run jsp files on the Tomcat server. It runs the txt files fine. Using the 8080 port. Any suggestions about what is going wrong? This is my first time to run jsp or Tomcat on this computer. Thank you. Sorry for the long error message.
    Apache Tomcat/4.0.1 - HTTP Status 500 - Internal Server Error
    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: Unable to compile class for JSPNote: sun.tools.javac.Main has been deprecated.
    error: Invalid class file format in C:\Program Files\Java\jre1.5.0_04\lib\rt.jar(java/lang/Object.class).
    The major.minor version '49.0' is too recent for this tool to understand.
    C:\Program Files\Apache Tomcat 4.0\work\localhost\myapp\project3a$jsp.java:0: Class java.lang.
    Object not found in class javax.servlet.GenericServlet.
    package org.apache.jsp;
    ^
    2 errors, 1 warning
         at org.apache.jasper.compiler.Compiler.compile(Compiler.java:284)
         at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:546)
         at org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspServlet.java:177)
         at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:189)
         at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:382)
         at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:474)
         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.doFilter(ApplicationFilterChain.java:193)
         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:201)
         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:2344)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164)
         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.valves.AccessLogValve.invoke(AccessLogValve.java:462)
         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:163)
         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.connector.http.HttpProcessor.process(HttpProcessor.java:1011)
         at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1106)
         at java.lang.Thread.run(Unknown Source)

    It looks like it is running multiple versions of Java.
    It looks like you are trying to run with java 1.5
    Check what your JAVA_HOME variable is set to
    Do you have any other versions of java installed on the machine?

  • DOM Parser Configuration...how to switch off DTD validation?

    Hi all,
    I am developing some implementation code in Java using JBuilder2005, in which DOM3 parser is also being utilised. Now the question is how to switch off DTD validation (seems its default mode is 'on') so that no validation will be carried out at all even DTD declaration statement is presented in an input XML document?
    Many thanks in advance
    Frank

    First of all, thank you so much for responding, DrClap. =)
    setValidating(false) of the DocumentBuilderFactory instance, factory, does not work as expected; it still stubbornly try to seek the external DTD file and fires 'IOException' error in case of no such a DTD.
    To follow up the EntityResolver approach, I searched online for almost the whole afternoon but still could not figure out how to do it exactly. In particular, I found http://www.jdom.org/docs/faq.html#a0350, which tells a way doing it, but I got 'StringBufferInputStream is deprecated' error. Then I changed to
    new InputStream(new ByteArrayInputStream("".getBytes()))adapted from http://forum.java.sun.com/thread.jspa?threadID=572919&messageID=2842185. But another error occurs: 'java.io.InputStream is abstract; cannot be instantiated'. Furthermore, I have looked at many docs(tutorials, APIs...) on parser configuration, usage of EntityResolver/setEntityResolver()...but they turned out not helpful. Could you please give out more details on how to do this using EntityResolver?? Many many thanks...

Maybe you are looking for

  • Unable to open some pdf files

    Hi there. Sorry to bother you guys but i'm really puzzled about something. Recently I've had problems opening some pdf files (they open fine on a pc). When i try to open it, the preview window opens but i am told "For the best experience, open this P

  • Got a new nano, and it synced all music of my daughters music.  can i get them off my nano

    I received a new nano and when I plugged it in, all of my daughter's music synced.  Can I get rid of all that music from my nano?

  • Confirmation process in SRM does not work whenever there is a discrepancy

    Hello, we are on SRM 5.0 version with classic scenario(follow on documents in backed system - ECC 5.0). to procure maintainence service user cretes a shopping cart by selecting describe requirements method and UOM at times in incorrectly asssigned as

  • How Does EJB 2.0 Specification Change the BC4J?

    Hi, I had read the while paper of BC4J thoroughly. The following statement interested me: "As Oracle9iAS, WebLogic, and other J2EE application server vendors begin to rollout complete support for the new EJB 2.0 specification in the first half of 200

  • Transport Error Code 16

    Hi All, I am trying to import one of the requests in our Production system. when I am adjusting the Import Queue of this server, tp is throwing error code as 16 for one of the requests. Upon further investigation, I learnt that one file called DXXXXX