ArrayIndexOutofBound exception, PLEASE HELP

I am trying to validate my xsd file but when it tries to execute the following line:
org.apache.xerces.parsers.SAXParser p = new org.apache.xerces.parsers.SAXParser();
it throws the ArrayIndexOutOfBound exception.
Anyone has any idea on it?
thanks in advance...
faisalk

Are you sure that's the line that's throwing the error?
I just compiled and ran the following:
public class TestMain{
     public static void main(String args[]){
          org.apache.xerces.parsers.SAXParser p = new org.apache.xerces.parsers.SAXParser();
          System.out.println(p.toString());
     }     //end main()
}     //end class TestMain

Similar Messages

  • JCO exception please help

    Hi
          while executing the application i am getting exception.
    Could not create JCOClientConnection for logical System: WD_Test_MODELDATA_DEST - Model: class com.ltil.model.GetPdfmodel. Please assure that you have configured the RFC connections and/or logical system name properly for this model!
           While testing the JCO connection in Content Admin ,its giving the exception
    com.sap.mw.jco.JCO$Exception: (102) RFC_ERROR_COMMUNICATION: Connect to SAP gateway failed Connect_PM  TYPE=B MSHOST=sapdev GROUP=PUBLIC R3NAME=LC1 MSSERV=sapmsLC1 PCS=1 LOCATION    CPIC (TCP/IP) on local host with Unicode ERROR       partner '127.0.0.1:3300' not reached TIME        Fri Oct 26 09:33:25 2007 RELEASE     700 COMPONENT   NI (network interface) VERSION     38 RC          -10 MODULE      nixxi.cpp LINE        2764 DETAIL      NiPConnect2 SYSTEM CALL connect ERRNO       10061 ERRNO TEXT  WSAECONNREFUSED: Connection refused COUNTER     16
         I searched,the backend server is up and j2ee server is also up.
    i am not getting the source of this error.
    please help
    its urgent
    thanks
    Gobinath R.

    Hi Gobinath,
          Check your SLD configuration. Looks like there is some problem with the parameters specified for your logical system..
         The exception says it is not able to locate the host.
    Thanks
    Best regards,
    Mohan.

  • ***lapi   getLocation Exception **please helpe***I am getting crazy*****

    Hi frnd
    Recently I am working on a location based project on mobile.I have search the net and found many source code for get BTS CELL ID and coordinates and all the source code have the same code.
    but when I install on mobile I get *{color:#ff0000}location Exception{color}*{color:#ff0000}...
    {color}I have search the net and every where and yet not found the solution, even i am using Nokia N71 which supports location based api.
    guys Really i am getting crazy, there should be a solution .... please help me
    there is a program in simbian "celltrack", It easily shows the BTS information,
    if any body has Idea please help me... thankssssssssss
    ...piece of code ....
    LocationProvider lp=*null*;
    Location location=*null*;
    try
    Criteria cr = new Criteria();
    //cr.setHorizontalAccuracy(1000);
    //cr.setVerticalAccuracy(1000);
    //cr.setPreferredPowerConsumption(Criteria.POWER_USAGE_LOW);
    lp = LocationProvider.getInstance(cr);
    if(lp.getState()==1)
    message="provider! is valid" + "\n";
    //timeout
    {color:#ff0000}location = lp.getLocation(60); // Exception happens here
    ....{color}
    catch(LocationException e)
    btsInfo +="1:"+e.toString()+ "\n";

    Konapalli.Gopi wrote:
    i am using websphere application server to deploy the web application.
    javax.mail.SendFailedException: Sending failed;
    nested exception is:
         class javax.mail.MessagingException: Could not connect to SMTP host: smtp.gmail.com, port: 465;
    nested exception is:
         java.net.SocketException: Cannot find the specified class java.security.PrivilegedActionException: java.lang.ClassNotFoundException: com.ibm.websphere.ssl.protocol.SSLSocketFactory
    I would guess
    com.ibm.websphere.ssl.protocol.SSLSocketFactoryis not on your classpath.

  • Connection Exception Please help middle of a program

    my server is remote and when the client call the method connection Exception is thrown .
    and please clarify this?
    does the client side need to have the servers stub in the same folder where the client is and also the .class file of the Remote interface
    do we have to copy this file manually?
    please help i have to complete this Rmi program within 30 minutes.

    What you are seeing here has several reasons. The people you call mob are the very same ones that used to handle it greatly.
    But there was a huge increase in posts like
    - "do my homework"
    - "URGENT!!!!!!!!!!!!!!!!!!!!!!!!!! HELP ME ASAP"
    - "I need to know something almost everyone knows but I can't be bothered to use Google or to read the API"
    - "I won't tell you my problem, but fix it at once"
    which most regulars are sick and tired of. How often do you think you can stand someone asking you "why is 3.3 - 0.3 = 3.00000000001"?
    A second reason are jerks like Goldie and Richard West who simply abuse these forums.
    And you're been here for only a month, you don't really remember "how it used to be". It's been like this for a long time now.

  • Mail api exception please help

    Well i have tried many times to send email .But the exception arise can any body please tell where i am wrong.
    Here is the code
    import java.util.Properties;
    import javax.mail.*;
    import javax.mail.internet.*;
    public class MailExample {
    public static void main (String args[]) throws Exception {
    // Get system properties
    Properties props = System.getProperties();
    // Setup mail server
    props.put("mail.smtp.host","mail.yahoo.com");
    // Get session
    Session session = Session.getDefaultInstance(props, null);
    // Define message
    MimeMessage message = new MimeMessage(session);
    // Set the from address
    message.setFrom(new InternetAddress
    "[email protected]"));
    // Set the to address
    message.addRecipient(Message.RecipientType.TO,
    new InternetAddress("[email protected]"));
    // Set the subject
    message.setSubject("Hello JavaMail");
    // Set the content
    message.setText("Welcome to JavaMail i got it");
    // Send message
    Transport.send(message);
    <b>Exception in thread "main" javax.mail.SendFailedException: Sending failed;
    nested exception is:
    javax.mail.MessagingException: Could not connect to SMTP host: mail.yaho
    o.com, port: 25;
    nested exception is:
    java.net.NoRouteToHostException: Operation timed out: no further informa
    tion
    at javax.mail.Transport.send0(Transport.java:219)
    at javax.mail.Transport.send(Transport.java:81)
    at MailExample.main(MailExample.java:35)<b>
    Thanks
    Jawwad Ahmed

    Yahoo will probably give u errors becoz i think they have recently changed to "NO RELAY" mode for their Mail Server....why don't u setup ur own mail server.....IMAIL server or 1st Class server are typical Servers,
    Cheers,
    Manja

  • Unexpected exception:please help

    hello there..
    i want to make a communication between an applet(embedded in myjsp.jsp) and a jsp page(another.jsp)
    for that i m using the following code
    try{
            URL appletURL = getCodeBase();
            String strHost = appletURL.getHost();
            String strPort = String.valueOf(appletURL.getPort());
            String strProtocol = appletURL.getProtocol();
            int portNumber = Integer.parseInt(strPort);
            String strwp ="/UASProject/Registrationform.jsp";       
            URL jspURL = new URL(strProtocol,strHost,portNumber,strwp);
            URLConnection jspCon = jspURL.openConnection();
            jspCon.setUseCaches(false);
            jspCon.setDoOutput(true);
            jspCon.setDoInput(true);
            OutputStream outstream= jspCon.getOutputStream();
            ObjectOutputStream oboutStream = new ObjectOutputStream(outstream);
            PrintWriter out = new PrintWriter(oboutStream,true);
           // String postData= "?xmlText=" + URLEncoder.encode(genXml(),"UTF-8");      
           // out.flush();
            String strLength = String.valueOf(oboutStream);
            jspCon.setRequestProperty("Content-Length",strLength);
            jspCon.setRequestProperty("Content-Type","application/x-www-form-urlencoded");
            oboutStream.writeObject(std_details);   
            oboutStream.flush();
            oboutStream.close();
            URL tempURL = new URL(String.valueOf(jspURL));
            //System.out.println(String.valueOf(jspURL)+" "+String.valueOf(tempURL));
            getAppletContext().showDocument(tempURL,"_blank");    
         }catch(Exception e) 
           {System.out.println(e+" "+e.getCause());}but at sun java console in IE7.0 i got the following exception
    java.lang.IllegalStateException: Already connected
    i looked around this but couldn't able to solve.
    guide me to make a successful connection be

    thanks for ur quick reply..
    actually i copied this code from one of the post around this forum.
    what u meant to say as i understand..i haven't written any code in target jsp ,in fact i will do it later.
    just now i want to check whether i m going into the righ way or not by running the jsp from withing the applet(embedded in a jsp) and moreover post few datas to that jsp.
    please guide me where to reformat the code?

  • Java.util.zip Exception - please HELP!

    I have a java program which updates some zip-jar files (in fact OpenOffice files).
    It works fine on Window 2000 jdk 1.4.2,
    but on Netware with jdk 1.4.2 at receive the exception like this:
    java.util.zip.ZipException: invalid entry crc-32
    ( expected 0xffffffff543978 but got 0xec543978 )
    What can be the problem? Any idea is mutch appreciated.
    It makes me crazzy.

    any idea? Thanks.

  • Unkown Exception. please help!!!!!

    Result appearing in my html file-->
    CreateException: java.rmi.UnexpectedException: java.io.IOException: Serializable readObject method failed internally
    Found inside j2ee -verbose DOS session-->
    Application TestReturnItem deployed.
    setEntityContext method
    Find by CustID
    Exception in thread "HttpProcessor[8000][4]" org.omg.CORBA.BAD_PARAM: com.DESApp.ejb.entity.RequestBeanEB_EJBLocalObjectImpl vmcid: OMG minor code: 6 completed: Maybe
    at com.sun.corba.ee.internal.orbutil.ORBUtility.throwNotSerializableForCorba(ORBUtility.java:660)
    at com.sun.corba.ee.internal.iiop.CDROutputStream_1_0.write_abstract_interface(CDROutputStream_1_0.java:631)
    at com.sun.corba.ee.internal.iiop.CDROutputStream.write_abstract_interface(CDROutputStream.java:281)
    at com.sun.corba.ee.internal.javax.rmi.CORBA.Util.writeAbstractObject(Util.java:145)
    at javax.rmi.CORBA.Util.writeAbstractObject(Util.java:129)
    at com.sun.corba.se.internal.io.IIOPOutputStream.writeObjectDelegate(IIOPOutputStream.java:96)
    at com.sun.corba.se.internal.io.IIOPOutputStream.writeObjectOverride(IIOPOutputStream.java:103)
    at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:274)
    at java.util.ArrayList.writeObject(ArrayList.java:530)
    at com.sun.corba.se.internal.io.IIOPOutputStream.writeObject(Native Method)
    at com.sun.corba.se.internal.io.IIOPOutputStream.invokeObjectWriter(IIOPOutputStream.java:526)
    at com.sun.corba.se.internal.io.IIOPOutputStream.outputObject(IIOPOutputStream.java:493)
    at com.sun.corba.se.internal.io.IIOPOutputStream.simpleWriteObject(IIOPOutputStream.java:122)
    at com.sun.corba.se.internal.io.ValueHandlerImpl.writeValueInternal(ValueHandlerImpl.java:136)
    at com.sun.corba.se.internal.io.ValueHandlerImpl.writeValue(ValueHandlerImpl.java:116)
    at com.sun.corba.ee.internal.iiop.CDROutputStream_1_0.write_value(CDROutputStream_1_0.java:1049)
    at com.sun.corba.ee.internal.iiop.CDROutputStream.write_value(CDROutputStream.java:264)
    at com.sun.corba.ee.internal.javax.rmi.CORBA.Util.copyObject(Util.java:567)
    at javax.rmi.CORBA.Util.copyObject(Util.java:314)
    at com.DESApp.ejb.session._ReturnItemSR_Stub.searchCustomerID(Unknown Source)
    at com.DESApp.servlet.JunYongServlet.returnItem(JunYongServlet.java:80)
    at com.DESApp.servlet.JunYongServlet.doPost(JunYongServlet.java:42)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
    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$0(ApplicationFilterChain.java:197)
    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: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:2343)
    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.authenticator.SingleSignOn.invoke(SingleSignOn.java:368)
    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:1012)
    at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1107)
    at java.lang.Thread.run(Thread.java:536)
    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:1012)
    at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1107)
    at java.lang.Thread.run(Thread.java:536)

    That BAD_PARAM exception indicates that somewhere you are passing an invalid parameter to a method. You should check this.

  • Getting null pointer exception(please help me...its urgent)

    hi,
    I have cretaed ajar file on desk top which also includes a .jpg file and .txt.When i run my jar in the desktop it is runninig fine.But when i have placed this jar on my pocket pc and tried to run it ,nullpointerexception is raised at the place where iam accessing jpg and txt files...
    eg:
    Image img=Toolkit.getDefaultToolkit.createImage("home.jpg");
    could anyone can solve my problem.
    Thanks and Regards

    Image
    img=Toolkit.getDefaultToolkit.createImage("home.jpg");On pocketpc/java the current directory is set to "\". So if you have "home.jpg" this file is searched in "\home.jpg", not in the directory from which the apps was started.
    prusak

  • Problem in connecting to mail store - please help me

    i have developed a mail user agent using javamail api.
    im having some problem in connecting to mail store
    it is giving MessagingException.
    the snippet is :
    store=session.getStore(url);
    try
    if(store.isConnected())
    store.close();
    store.connect();
    catch(MessagingException mexception)
    System.out.println("messaging exception store state -
    "+store.isConnected());
    //exception is raised and isConnected is false.
    --================--
    thanQ in advance
    prabhakar

    Dear tus,
    thanQ for ur suggession. i have printed stacktrace and im getting the following the exception
    please help me
    javax.mail.MessagingException: null;
    nested exception is:
    java.io.IOException
    at com.sun.mail.imap.IMAPStore.protocolConnect(IMAPStore.java:298)
    at javax.mail.Service.connect(Service.java:234)
    at javax.mail.Service.connect(Service.java:135)
    at javax.mail.Service.connect(Service.java:87)
    at sark.mail.MailStoreImpl.createSession(MailStoreImpl.java:356)
    at sark.mail.MailStoreImpl.fetchMails(MailStoreImpl.java:210)
    at org.apache.jsp.checkLogin$jsp._jspService(checkLogin$jsp.java:121)
    at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at org.netbeans.modules.tomcat.tomcat40.runtime.IDEJspServlet$JspServlet
    Wrapper.service(IDEJspServlet.java:174)
    at org.netbeans.modules.tomcat.tomcat40.runtime.IDEJspServlet.serviceJsp
    File(IDEJspServlet.java:247)
    at org.netbeans.modules.tomcat.tomcat40.runtime.IDEJspServlet.service(ID
    EJspServlet.java:339)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDisp
    atcher.java:679)
    at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationD
    ispatcher.java:431)
    at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDis
    patcher.java:355)
    at mailController.service(mailController.java:66)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
    icationFilterChain.java:247)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
    ilterChain.java:193)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV
    alve.java:243)
    at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline
    .java:566)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav
    a:472)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextV
    alve.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.jav
    a: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.j
    ava:164)
    at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline
    .java:566)
    at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatche
    rValve.java:170)
    at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline
    .java:564)
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j
    ava: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.jav a:472)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal ve.java:163)
    at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline .java:566)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav a:472)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
    at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcesso r.java:1011)
    at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.ja va:1106)
    at java.lang.Thread.run(Thread.java:536)
    thanks in advance
    prabhakar

  • BeanUtils.populate exception (Need Help)

    Dear All,
    Am getting a strange exception when try to do a action in struts, below is my exception, please help me in solving this issue.
    HTTP Status 500 -
    type Exception report
    message
    description The server encountered an internal error () that prevented it from fulfilling this request.
    exception
    javax.servlet.ServletException: BeanUtils.populate
         org.apache.struts.util.RequestUtils.populate(RequestUtils.java:1190)
         org.apache.struts.action.RequestProcessor.processPopulate(RequestProcessor.java:821)
         org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:254)
         org.apache.struts.action.ActionServlet.process(ActionServlet.java:1480)
         org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:524)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
         sun.reflect.GeneratedMethodAccessor67.invoke(Unknown Source)
         sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         java.lang.reflect.Method.invoke(Method.java:585)
         org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:239)
         java.security.AccessController.doPrivileged(Native Method)
         javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
         org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:266)
         org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:157)
         java.security.AccessController.doPrivileged(Native Method)
         java.security.AccessController.doPrivileged(Native Method)
         org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1069)
         org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProcessor.java:455)
         org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:279)
         org.apache.struts.action.ActionServlet.process(ActionServlet.java:1480)
         org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:524)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
         sun.reflect.GeneratedMethodAccessor67.invoke(Unknown Source)
         sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         java.lang.reflect.Method.invoke(Method.java:585)
         org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:239)
         java.security.AccessController.doPrivileged(Native Method)
         javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
         org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:266)
         org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:157)
    root cause
    java.security.AccessControlException: access denied (java.lang.RuntimePermission accessDeclaredMembers)
         java.security.AccessControlContext.checkPermission(AccessControlContext.java:264)
         java.security.AccessController.checkPermission(AccessController.java:427)
         java.lang.SecurityManager.checkPermission(SecurityManager.java:532)
         java.lang.SecurityManager.checkMemberAccess(SecurityManager.java:1662)
         java.lang.Class.checkMemberAccess(Class.java:2125)
         java.lang.Class.getDeclaredMethods(Class.java:1762)
         org.apache.commons.beanutils.MappedPropertyDescriptor$1.run(MappedPropertyDescriptor.java:386)
         java.security.AccessController.doPrivileged(Native Method)
         org.apache.commons.beanutils.MappedPropertyDescriptor.getPublicDeclaredMethods(MappedPropertyDescriptor.java:383)
         org.apache.commons.beanutils.MappedPropertyDescriptor.internalFindMethod(MappedPropertyDescriptor.java:453)
         org.apache.commons.beanutils.MappedPropertyDescriptor.findMethod(MappedPropertyDescriptor.java:527)
         org.apache.commons.beanutils.MappedPropertyDescriptor.<init>(MappedPropertyDescriptor.java:149)
         org.apache.commons.beanutils.PropertyUtilsBean.getPropertyDescriptor(PropertyUtilsBean.java:865)
         org.apache.commons.beanutils.BeanUtilsBean.setProperty(BeanUtilsBean.java:991)
         org.apache.commons.beanutils.BeanUtilsBean.populate(BeanUtilsBean.java:865)
         org.apache.commons.beanutils.BeanUtils.populate(BeanUtils.java:343)
         org.apache.struts.util.RequestUtils.populate(RequestUtils.java:1188)
         org.apache.struts.action.RequestProcessor.processPopulate(RequestProcessor.java:821)
         org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:254)
         org.apache.struts.action.ActionServlet.process(ActionServlet.java:1480)
         org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:524)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
         sun.reflect.GeneratedMethodAccessor67.invoke(Unknown Source)
         sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         java.lang.reflect.Method.invoke(Method.java:585)
         org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:239)
         java.security.AccessController.doPrivileged(Native Method)
         javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
         org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:266)
         org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:157)
         java.security.AccessController.doPrivileged(Native Method)
         java.security.AccessController.doPrivileged(Native Method)
         org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1069)
         org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProcessor.java:455)
         org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:279)
         org.apache.struts.action.ActionServlet.process(ActionServlet.java:1480)
         org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:524)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
         sun.reflect.GeneratedMethodAccessor67.invoke(Unknown Source)
         sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         java.lang.reflect.Method.invoke(Method.java:585)
         org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:239)
         java.security.AccessController.doPrivileged(Native Method)
         javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
         org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:266)
         org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:157)
    note The full stack trace of the root cause is available in the Apache Tomcat/5.0.27 logs.Thanks in advance,
    vyrav.

    Thanks for ur reply Ganesh.
    This is my JSP
    <%@ page contentType="text/html; charset=iso-8859-1" language="java" import="java.sql.*" errorPage="" %>
    <%@ taglib uri="/WEB-INF/tld/struts-html.tld" prefix="html" %>
    <%@ taglib uri="/WEB-INF/tld/struts-bean.tld" prefix="bean" %>
    <%@ taglib uri="/WEB-INF/tld/struts-logic.tld" prefix="logic" %>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html:html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    <title>Uploaded File Details</title>
         <script>
              function logOut()
                        document.adminForm.action="upload.do?parameter=logout";
                        document.adminForm.submit();
              function download(temp)
                        document.adminForm.fileId.value = temp;
                        document.adminForm.action="download.do";
                        document.adminForm.submit();
         </script>
    <link rel="stylesheet" type="text/css" href="style.css" />
    </head>
    <body>
         <table align="right">
                        <tr>
                             <td>
                                  <a href="javascript:logOut();">Logout</a>
                             </td>
                        </tr>
         </table>
         <%
                        if(session.getAttribute("name")!=null)
                                    String userName= (String) session.getAttribute("name");
         %>
                   <br /><br /><b>Welcome <%=userName%></b><br />
         <%
         %>
         <center>
              <html:form action="/download.do" name="adminForm" type="com.roots.AdminForm">
                   <br /><br />
                   <html:hidden property="fileId"/>
                   <table align="center" border="1">
                        <tr bgcolor="#FFCC66">
                             <td align="center">
                                  No
                             </td>
                             <td align="center">
                                  Name
                             </td>
                             <td align="center">
                                  Uploaded Date
                             </td>
                             <td align="center">
                                  File Name
                             </td>
                        </tr>
                        <logic:iterate name="adminForm" property="displayList" id="displayDto">
                             <tr>
                                  <td align="center">
                                       <bean:write name="displayDto" property="serialNo"/>
                                  </td>
                                  <td align="left">
                                       <bean:write name="displayDto" property="empName"/>
                                  </td>
                                  <td align="left">
                                       <bean:write name="displayDto" property="uploadedDate"/>
                                  </td>
                                  <td align="left">
                                       <a href="javascript:download('<bean:write name="displayDto" property="serialNo"/>');"><bean:write name="displayDto" property="fileName"/></a>
                                  </td>
                             </tr>
                        </logic:iterate>
                   </table>
              </html:form>          
         </center>
    </body>
    </html:html>This is my struts config
    <?xml version="1.0" encoding="ISO-8859-1" ?>
    <!DOCTYPE struts-config PUBLIC
             "-//Apache Software Foundation//DTD Struts Configuration 1.1//EN"
             "http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd">
         <struts-config>
               <data-sources>
               </data-sources>
              <form-beans>
                   <form-bean name="loginForm" type="com.roots.LoginForm" />
                   <form-bean name="uploadForm" type="com.roots.UploadForm" />
                   <form-bean name="adminForm" type="com.roots.AdminForm" />
              </form-beans>
              <global-forwards></global-forwards>
              <action-mappings>
                   <action path="/login"
                        name="loginForm"
                        scope="request"
                        validate="true"
                        input="/login.jsp"
                        type="com.roots.LoginAction" >
                             <forward name="SUCCESS" path="/upload.jsp" />
                             <forward name="FAILURE" path="/login.jsp" />
                             <forward name="ADMIN" path="/admin.do" />
                   </action>
                   <action path="/upload"
                        name="uploadForm"
                        scope="request"
                        parameter="parameter"
                        input="/upload.jsp"
                        type="com.roots.UploadAction" >
                             <forward name="SUCCESS" path="/upload.jsp" />
                             <forward name="FAILURE" path="/login.jsp" />
                   </action>
                   <action path="/download"
                             type="com.roots.FileDownloadAction">
                   </action>
                   <action path="/admin"
                        name="adminForm"
                        scope="request"
                        validate="false"
                        type="com.roots.AdminAction" >
                        <forward name="DISPLAY" path="/admin.jsp" />
                        <forward name="FAILURE" path="/login.jsp" />
                   </action>
              </action-mappings>
              <message-resources parameter="application_fr"/>
            <message-resources parameter="application_es"/>
            <message-resources parameter="application_en"/>
            <message-resources parameter="application_de"/>
            <message-resources parameter="application" />
         </struts-config>this is my form package com.roots;
    import java.util.List;
    import org.apache.struts.action.ActionForm;
    public class AdminForm extends ActionForm {
         private List displayList = null;
         public String fileId;
         public String getFileId() {
              return fileId;
         public void setFileId(String fileId) {
              this.fileId = fileId;
         public List getDisplayList() {
              return displayList;
         public void setDisplayList(List displayList) {
              this.displayList = displayList;
    }Please let me know wat am doing wrong, this is killing me for the last two days.
    Thanks,
    vyrav.

  • What is wrong with this!! please help

    Hello friends,
    I'm a learner and I have done lot of JDBC connectivity with Acess database, and now I want to connect java program with oracle database, but the problem is I have downloaded the oracle driver, set the classpath, and I have created the DataSource Name with MS-ODBC, I could able to compile but I'm getting run time exception, please help me with this. regards, shabeer.
    the program is
    import java.sql.*;
    public class ShabeerJdbc {
    public static void main(String args[]) {
    // String url = "jdbc:oracle:thin:@imran:3339:shabeerjdbc";
    Connection con;
    String createString;
    createString = "create table COFFEES " +
    "(COF_NAME VARCHAR(32), " +
    "SUP_ID INTEGER, " +
    "PRICE FLOAT, " +
    "SALES INTEGER, " +
    "TOTAL INTEGER)";
    Statement stmt;
    try {
    System.out.println("shabeer1");
    Class.forName("oracle.jdbc.driver.OracleDriver").newInstance();
    System.out.println("shabeer2");
    } catch(java.lang.Exception e) {
    System.out.println("shabeer3");
    System.err.print("ClassNotFoundException: ");
    System.out.println("shabeer4");
    System.err.println(e.getMessage());
    try {
    System.out.println("shabeer55");
    con = DriverManager.getConnection("jdbc:oracle:thin:@localhost:1521:shabeerjdbc", "system", "mehar");
    System.out.println("shabeer6");
    stmt = con.createStatement();
    System.out.println("shabeer7");
    stmt.executeUpdate(createString);
    stmt.close();
    con.close();
    } catch(SQLException ex) {
    System.err.println("SQLException: " + ex.getMessage());
    the run time error is ......
    C:\JavaPractice>java ShabeerJdbc
    shabeer1
    shabeer2
    shabeer55
    Exception in thread "main" java.lang.NoClassDefFoundError: java/sql/Savepoint
    at java.lang.ClassLoader.defineClass0(Native Method)
    at java.lang.ClassLoader.defineClass(Unknown Source)
    at java.security.SecureClassLoader.defineClass(Unknown Source)
    at java.net.URLClassLoader.defineClass(Unknown Source)
    at java.net.URLClassLoader.access$100(Unknown Source)
    at java.net.URLClassLoader$1.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClassInternal(Unknown Source)
    at oracle.jdbc.driver.OracleDriver.getConnectionInstance(OracleDriver.ja
    va:468)
    at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:314)
    at java.sql.DriverManager.getConnection(Unknown Source)
    at java.sql.DriverManager.getConnection(Unknown Source)
    at ShabeerJdbc.main(ShabeerJdbc.java:38)
    ****************************************

    HI Deriderj, thanks for your response, well I have changed the Datasourse name to SID which is "Imran" and still it is not working....do I need to download anymore driver or whether they be bundled with the ojdbc.jar, please advice me. What if I want to use another driver as you mentioned...not to use thin: what other drivers will be available for the Oracle9.2.0.1.0 please advice me, thanks a lot
    My SID name is "Imran"
    listening port is is 1521
    odbc datasource name is "shabeerjdbc"
    I'm a very biginner and I'm facing too much problem, please help me. Well I have got Oracle9.2.0.1.0 loaded as the database and soon after I intstalled it I have copied ojdbc14.jar into my java classpath and I'm trying to connect to this data base. I dont know what driver I should use, neither I downloaded any. I'm just mentioning thin: in my URL. But It is giving error, can u please tell me what driver should I mention in the URL, and why I'm getting this error, Here is the code that is compiling without errors.
    import java.sql.*;
    public class ShabeerJdbc {
    public static void main(String args[]) {
    Connection con;
    String createString;
    createString = "create table COFFEES " +
    "(COF_NAME VARCHAR(32), " +
    "SUP_ID INTEGER, " +
    "PRICE FLOAT, " +
    "SALES INTEGER, " +
    "TOTAL INTEGER)";
    Statement stmt;
    try {
         System.out.println("shabeer1");
    Class.forName("oracle.jdbc.driver.OracleDriver").newInstance();
         System.out.println("shabeer2");
    } catch(java.lang.Exception e) {
         System.out.println("shabeer3");
    System.err.print("ClassNotFoundException: ");
         System.out.println("shabeer4");
    System.err.println(e.getMessage());
    try {
         System.out.println("shabeer55");
    con = DriverManager.getConnection("jdbc:oracle:thin:@localhost:1521:Imran", "system", "mehar");
         System.out.println("shabeer6");
         stmt = con.createStatement();
         System.out.println("shabeer7");
         stmt.executeUpdate(createString);
    stmt.close();
    con.close();
    } catch(SQLException ex) {
    System.err.println("Sql Exception" + ex.getMessage());
    ************The runtime Error it is giving is *********************
    C:\JavaPractice>java ShabeerJdbc
    shabeer1
    shabeer2
    shabeer55
    Exception in thread "main" java.lang.NoClassDefFoundError: java/sql/Savepoint
    at oracle.jdbc.driver.OracleDriver.getConnectionInstance(OracleDriver.ja
    va:468)
    at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:314)
    at java.sql.DriverManager.getConnection(Unknown Source)
    at java.sql.DriverManager.getConnection(Unknown Source)
    at ShabeerJdbc.main(ShabeerJdbc.java:38)
    ***************************** please help me....

  • TS3988 Can someone please help me?   I have an Iphone 5 and Love it except for one thing. I changed  email address from yahoo to Gmail and updated it on my Apple ID at Apple.  Apple recognizes and accepts this change but Icloud won't update the new email

    I have an Iphone 5 and Love it.  Except for one thing;  I recently changed from ymail email account to a gmail account. I updated it on the
    Apple/ Itunes site and it does accept the change.  I can still access the APP store and Itunes. 
    However, sometimes I get a pop up box from Apple showing the old email address and asking me to sign in..... I hit cancel and move on.   But, now Icloud keeps popping up promting me to sign in and it shows the old email which I don't have anymore.... I tried signing in with the old info to clear it off screen of my phone but, it doesn't allow and I hit cancel and it goes away. only to appear later again....  This is so frustrating and annoying.    Is there any way to get the Icloud to update the email address with my Apple ID log in info--without having to delete stuff or lose things on my phone? 
    Please help?  
    Dia

    Thank you for replying.    Yes I deleted the old email address..   

  • Please Help !  Exception in closing resultset,statement.

    In an application developed on , i am closing the resultsets and statements in finally block as
    finally {
         if (resultset != null) resultset .close();
         if (statement != null) statement.close();
    the above block does not take care of exceptions that might arise while closing resultset/statement. Please help with this:
    what the conditions exceptions may arise in closing resultset/statements.
    when does the garbage collector free such resources and what are the implications of not catching exception while closing - can this cause database handle leaks.
    Please help!

    I don't know what exceptions might occur, but since the close() method can throw SQLException, your program has to catch it. Maybe if you close twice, the second time will throw an exception? Anyway, it doesn't really matter, you still have to write a try-catch around it. What you do there is up to you -- you could ignore it (which is what I do) or you could end the program with a message.
    When does the garbage collector free those resources? The garbage collector only frees memory. Nothing else. And the garbage collector will free a ResultSet object only when there are no references to it anywhere in your program. That doesn't mean just in code that you wrote, but anywhere in code that's running in your program. For example, the Statement object that produced the ResultSet might hold a reference to it. However, the API documentation for ResultSet does say that when the garbage collector does free a ResultSet object, it will automatically close it.
    However, the best practice is to close ResultSet and Statement objects when you are finished with them, and not rely on garbage collection to clean up after you.

  • I bought new Macbook Pro 13" around two months before .My Apple ID is working on all other things except app store . It is buffering for a lot of time and lastly coming on screen " can not connect to app store " Please help me

    I bought new Macbook Pro 13" around two months before .My Apple ID is working on all other things except app store . It is buffering for a lot of time and lastly coming on screen " can not connect to app store " Please help me

    Have you tried repairing disk permissions : iTunes download error -45054

Maybe you are looking for