NPE - $Proxy0.isChallengeQuestionsSetForSelf.  Trying to instantiate tcUtil

Trying to instantiate a tcUtilityFactory and getting a NPE. I thought I had everything setup as var env vars and I can see that it got all the xlconfig.xml props. It's got to be something simple I'm missing here. I'm point to all the jars & dirs from my DC. I know that the username & password is right too. Any help is appreciated.
at Thor.API.Base.SecurityInvocationHandler.invoke(Unknown Source)
     at $Proxy0.isChallengeQuestionsSetForSelf(Unknown Source)
     at Thor.API.tcUtilityFactory.<init>(Unknown Source)

Hi Sonic
Could you please tell me how you have changed it to Weblogic. I am getting the exception of JBOSS.
Please reply to my query.
I have changed the path to weblogic. Now i am getting the exception in the following line
moSignature = tcCryptoUtil.sign(userid, "PrivateKey");
utilFactory = new tcUtilityFactory(env, moSignature);
if i give
moSignature = tcCryptoUtil.sign(userid, password);
utilFactory = new tcUtilityFactory(env, moSignature);
then it shows some other exception that PrivateKey is null etc.
ERROR,08 Apr 2009 11:57:22,024,[XELLERATE.ACCOUNTMANAGEMENT],Class/Method: Authe
nticate/connect User with ID: T_USER99 was not found in Xellerate.
ERROR,08 Apr 2009 11:57:22,054,[XELLERATE.ACCOUNTMANAGEMENT],Class/Method: Xelle
rateLoginModuleImpl/login encounter some problems:
com.thortech.xl.security.tcLoginException:
at com.thortech.xl.security.tcLoginExceptionUtil.createException(Unknown
Source)
at com.thortech.xl.security.tcLoginExceptionUtil.createException(Unknown
Source)
at com.thortech.xl.security.Authenticate.connect(Unknown Source)
at com.thortech.xl.security.Authenticate.connect(Unknown Source)

Similar Messages

  • IllegalAccessError trying to instantiate public class from JSP page

    I have a public class called UrlHolderClient located in both
    WEB-INF/classes/UrlHolderClient.class and
    WEB-INF/lib/urlholder.jar.
    This client class is used as a wrapper class around a simple ejb which holds urls. I have a JSP which tries to create an instance of UrlHolderClient in jspInit(), but the call to the constructor throws a java.lang.IllegalAccessError. I have no idea what the problem is here. I import the classes using the page directive.
    Any suggestions?

    Is this tomcat you are deploying on or some other App Server?
    Also, you reference JspInit(), have you tried instanting in
    Scriplet Code <% UrlHolderClient urlHolderClient = new UrlHolderClient() %>
    Does that not work either?

  • Java.lang.IllegalAccessError when trying to instantiate a model

    Hi all,
    In our java web dynpro project, we are using models of type "adaptative web service model".
    We are using the wsdl reference to build the model.
    The endpoint for each service is different in each environment DEV, QAS or PRD.
    To set the proper endpoint to each service we are using the
    com.sap.tc.webdynpro.model.webservice.gci.WSTypedModelClassExecutable.wdSetInvocationModifier
    method to set a custom implementation of IWDWSInvocationModifier for all those web service based models.
    This implementation is basically done on method
    IWDWSInvocationModifier.doModifyInvocation()
    This method makes a call to a java web service (ServiceSearcher), and this web service searches in UDDI server for the proper endpoint to be set.
    This custom implementation is encapsulated in one specific DC (ServiceSearcherClient), and is working pretty fine.
    The problem is that, sometimes, in another DC (Astec), when trying to execute the custom
    IWDWSInvocationModifier.doModifyInvocation()
    set to a web service based model, we got this error.
    java.lang.IllegalAccessError: tried to access method net.weg.soa.client.servicesearcher.FindUrlResponse.createModelClassFactory()Lcom/sap/tc/webdynpro/model/webservice/gci/IWSTypedModelClassFactory; from class net.weg.soa.client.servicesearcher.ServiceSearcherModel
    Actually we could not isolate the cause of this. This seems to start occurring when we deploy something by CBS (when we activate some component that uses ServiceSearcherClient).
    This problem sometimes does not occur in all projects of DC Astec that uses ServiceSearchClient. Sometimes the Main project has this error, but when executing some other project (Materials, for example), it works on the same execution time. It seems that each project references an individual jar for its used DC's, and one has problem, another doesn't.
    We already found that most of times this problem can be solved going to SDM, proceeding undeploy of all components of DC Astec and CD ServiceSearcherClient, and proceeding a manual deploy (with NWDS).
    This has been a big problem for our team, we already spent two weeks trying to understand what is happening and our tries are ending now. Actually in PRD environment we deployed all those DC's manually with NWDS to put the system working, otherwise it does not work.
    If some of you have any idea, we will appreciate.
    Regards.
    roberti

    Oppened an OSS and found that nor SAP know the cause. Many deploy, undeploy and other changes, and it was corrected.
    regards.
    Waldemar Roberti

  • Exception when trying to instantiate ...

    Hi,
    I'm new using BPEL i'm following the Test Drive of the Oracle Bpel Process Manager 2.0 i'm on page 25, i have build my CreditFlow example, at Bpel Designer this is what i get :
    Buildfile: C:\workspace\CreditFlow\build.xml
    main:
    [bpelc] bpelc> validating "C:\workspace\CreditFlow\CreditFlow.bpel" ...
    [bpelc] bpelc> BPEL suitcase deployed to: c:\orabpel\domains\default\deploy
    BUILD SUCCESSFUL
    Total time: 12 seconds
    Then i go to the Console/ Dashboard click on the creditFlow but i get this exception:
    Exception Description:
    An error has occurred while attempting to instantiate the class "bpel._1_0.CreditFlow__BPEL4WS_BIN$$BPELC_BpAss0" for the node element "BpAss0". The exception reported was: bpel._1_0.CreditFlow__BPEL4WS_BIN$$BPELC_BpAss0
    Please help me so i can finish my process, please let me know if there are some extra documents about exceptions.
    Thanks,
    Vilma

    I moved my application from c:\workspace to c:\orabpel\domains\default\deploy and it worked. Sorry I'm just starting to use this, :(
    Thanks a lot Glenn

  • Internal error raised trying to instantiate web-application

    Hello,
    I have an application recently deployed with success in a dedicated OC4J, if you test everything seems working fine(the root jsp file is shown), however when i set datasource pool connections on data-sources.xml plus restart OC4J i get everytime an html 404 error code, if you restore the default data-sources.xml plus restart of the OC4J the jsp is shown again,
    I tested the pools with the enterprise manager tool and it is working fine, when i get a look to log.xml i can see the error
    Internal error raised tyring to instantiate web-application: xxxxxxxxx-xxxxx-0.0.1-XXXXXXXX defined in web site OC4J 10g (10.1.3) Default Web Site. null
    anyone have some idea?
    thanks in advance

    Ric,
    Top sections are those libs existed in the original project, the bottom part are those new added libs
    //Lib existed in the original project
    JSP Run time
    ADF Faces Databinding Runtime
    ADF Controller Runtime
    MDS Runtime
    JSF 1.2
    JSTL 1.2
    ADF Faces Runtime 11
    ADF Common Runtime
    BC4J Tester
    ADF Page Flow Runtime
    MDS Runtime Dependencies
    DVT Faces Runtime
    DVT Faces Databinding Runtime
    Servlet Runtime
    Commons Beanutils v1.6.1
    Commons logging 1.0.3
    Oracle JEWT
    JSTL 1.2 Tags
    Oracle XML Parser v2
    JDeveloper Runtime
    SQLJ Runtime
    ADF Model Runtime
    BC4J Runtime
    Oracle JDBC
    Connection Manager
    BC4J Oracle Domains
    //Following is new added, whick are not included in original project
    Deploy
    Oracle ADF DataTag library Tag Libraries
    Oracle BC4J DataTag library Tag Libraries
    Trinidad Runtime 11
    OC4J API
    ADF Toplink Runtim
    BC4J HTML
    BC4JBC Runtime
    Obsolete JDeveloper Extension SDK
    BC4J Client
    BC4J Service Client
    BC4J Generic Domains
    BC4J Extension
    BC4J EJB Client
    OJSP Tags
    ADF Portlet Runtime
    Portlet Runtime CLient
    Port Runtime Dependenicis
    Portlet Runtime Client WSRP Stubs
    Customizable Components
    ADF Faces Cache

  • Exception when trying to instantiate Windows.Media.SpeechRecognition.SpeechRecognizer on 10061

    I'm using VS2015CTP5 and the preview of the Windows tools.
    My code was working fine yesterday on 10049.
    Could it be a (Bing Speech) licensing type issue that triggers this?
    System.Exception was unhandled by user code
      Message=Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG))
      Source=Windows
      StackTrace:
           at Windows.Media.SpeechRecognition.SpeechRecognizer..ctor()
           at FirstWindowsApp.MainPage.<InitializeRecognizer>d__7.MoveNext()
      InnerException: 
    Yves Dolce

    On Fri, 24 Apr 2015 16:43:31 +0000, Yves Dolce at Mindspark wrote:
    Last time I did, I was sent twice here where "experts are watching".
    Go figure...
    Those who are sending you here for developer support are plain and simply
    wrong.
    Try here:
    https://social.msdn.microsoft.com/Forums/windowsapps/en-US/home?forum=winappswithcsharp
    Paul Adare - FIM CM MVP
    "The first rule of magic is simple. Don't waste your time waving your
    hands and hoping when a rock or a club will do." -- McCloctnik the Lucid

  • Error trying to instantiate MessageDigest

    I'm developing using JBuilder 7.
    I have installed JCE.
    I've copied the .jar files to the appropriate directories that JBuilder is looking at, and JBuilder does recoginze java.security and javax.crypto API's.
    I've verified the providers in the java.security file.
    But I am getting an error when I do the following...
    MessageDigest md = new MessageDigest.getInstance("MD5");
    The error tells me that getInstance is not a found class in java.security.MessageDigest.
    Any clues as to why this is happening, and what I need to do to correct this? Please give specific instructions. Thanks.
    - Mark Cogan

    Oops, sorry.
    Shouldn't have the 'new' on that line.
    Took it out and fixed the problem.
    Sorry to waste anyone's time.
    - Mark

  • Instantiate a bean from within a Servlet

    I am attempting to instantiate a bean from within a Servlet. Basically, I would like to set my bean properties from within a central controlling servlet, then call a worker class to take care of my database insert. The worker class would get its values from the bean.
    Does this sound reasonable? I'm sure this is quite possible and very easy to pull off, however I can't seem to find a single example. An example would be greatly appreciated.

    Hi,
    I have read what you have done.
    Now in the servlet add something like
    HttpSession ses=request.getSession(true);</stro
    ses.addAttribute("user","your Bean name");*
    in the JSP get this atribute by
    session.getAttribute("user");+
    Anyway, how have you configured your server? I am using a Bean Class and trying to instantiate in a sevlet. An exception is occuring.
    import mypack.User; //it is nicely imported*
    //in the doPOST() method
    User user=new User();+ //trying to instantiate
    it is giving an Exception. Kindly help.

  • Help me pls to resolve the problem: WebService client SOAP exception: SAXException: Could not instantiate bean ...

    Hi all,
    I use Weblogic 6.1 SOAP
    If any body know what does this mean and how this may be resolved please
    help me
    I try to send JavaBean class "A" which includes an array of JavaBean class
    "B" which includes an array of string objects
    from server side to the client.
    class A {
    B[] aBeans
    setABeans(B[] aBeans) {}
    getABeans() {}
    class B {
    String[] props;
    setProps(String[] props) {}
    getProps() {}
    And only half of the method invocation is ok - data is transmitted by soap
    and is displayed
    at the client side in "verbose=true" mode and i see that data is received
    completely but the client side JavaBean class "A"
    was not initialized because the exception was thrown when soap trying to
    instantiate JavaBean class "B":
    SAXException: Could not instantiate bean: B
    I looked at jdk API and the InstantiationException is thrown only if class
    is an interface or an abstract class,
    but class "B" is not abstract or interface, it is simple JavaBean class.
    What is the trouble?
    Help me pls

    Hi, Pieter!
    Thanks in advance, this solve a problem.
    "Pieter Degraeuwe" <[email protected]> wrote in message
    news:3be00299$[email protected]..
    >
    Hi!
    I think I know the problem.
    Does your JavaBean has a default constructor (a parameterlessconstructor).
    >
    Try it!
    greetings
    Pieter
    "Michael T" <[email protected]> wrote:
    Hi all,
    I use Weblogic 6.1 SOAP
    If any body know what does this mean and how this may be resolved please
    help me
    I try to send JavaBean class "A" which includes an array of JavaBean
    class
    "B" which includes an array of string objects
    from server side to the client.
    class A {
    B[] aBeans
    setABeans(B[] aBeans) {}
    getABeans() {}
    class B {
    String[] props;
    setProps(String[] props) {}
    getProps() {}
    And only half of the method invocation is ok - data is transmitted by
    soap
    and is displayed
    at the client side in "verbose=true" mode and i see that data is received
    completely but the client side JavaBean class "A"
    was not initialized because the exception was thrown when soap trying
    to
    instantiate JavaBean class "B":
    SAXException: Could not instantiate bean: B
    I looked at jdk API and the InstantiationException is thrown only if
    class
    is an interface or an abstract class,
    but class "B" is not abstract or interface, it is simple JavaBean class.
    What is the trouble?
    Help me pls

  • Unable to instantiate GP process from CAF application service

    Hi,
    I am trying to instantiate a process from my CAF application service as follows.
    IGPProcess process = GPProcessFactory.getDesigntimeManager().getActiveTemplate("7CE44BF090BF11D99817000D60B211F1",user);
    When the execution reaches this step, I am getting the following exception.
    com.sap.engine.frame.core.load.SAPClassNotFoundException
    I suspect that CAF runtime is not able to load GPProcessFactory class. Is there any settings that need to be done or I have to deploy something on the server?
    Please help.
    Thanks
    Raghav

    Hi Raghavendra,
    It seems you are using SPS7 !
    Check runtime reference for J2ee application in application-j2ee-engine.xml :
    <reference
              reference-type="weak">
              <reference-target
                   provider-name="sap.com"
                   target-type="library">cafeugp~api</reference-target>
         </reference>
    Best regards,
    Aliaksei

  • Cannot instantiate GP Process

    Hello Everybody,
    I have designed simple Google Process in GP. Now, when I am trying to instantiate this process, It gives me error saying: Could not retrieve process instance: contact your system administrator
    When I looked into the Log viewer, I gave me following errors:
    1. Cannot find user when uniqueID is null
    Exception : Cannot find user when uniqueID is null!
    java.lang.Exception
    at com.sap.exception.BaseExceptionInfo.traceAutomatically(BaseExceptionInfo.java:1141)
    at com.sap.exception.BaseExceptionInfo.<init>(BaseExceptionInfo.java:149)
    at com.sap.exception.BaseException.<init>(BaseException.java:89)
    at com.sap.caf.eu.gp.base.exception.GPBaseException.<init>(GPBaseException.java:79)
    at com.sap.caf.eu.gp.base.exception.EngineException.<init>(EngineException.java:66)
    at com.sap.caf.eu.gp.model.context.impl.UserContextFactory.getUser(UserContextFactory.java:270)
    at com.sap.caf.eu.gp.model.pfw.wfc.local.status.StatusReader.recreateProcessInstance(StatusReader.java:163)
    at com.sap.caf.eu.gp.model.pfw.wfc.local.status.StatusReader.getWorkflowInstance(StatusReader.java:118)
    at com.sap.caf.eu.gp.model.pfw.wfc.local.impl.LocalWorkflowConnector.getWorkflowInstance(LocalWorkflowConnector.java:180)
    at com.sap.caf.eu.gp.model.pfw.core.impl.ProcessRuntime.getProcessInstance(ProcessRuntime.java:527)
    at com.sap.caf.eu.gp.ui.rt.CRuntimeMain.setProcessId(CRuntimeMain.java:405)
    at com.sap.caf.eu.gp.ui.rt.wdp.InternalCRuntimeMain.setProcessId(InternalCRuntimeMain.java:213)
    at com.sap.caf.eu.gp.ui.rt.CRuntimeMainInterface.setProcessId(CRuntimeMainInterface.java:145)
    at com.sap.caf.eu.gp.ui.rt.wdp.InternalCRuntimeMainInterface.setProcessId(InternalCRuntimeMainInterface.java:180)
    at com.sap.caf.eu.gp.ui.rt.WRuntimeMainInterfaceView.onPlugDefault(WRuntimeMainInterfaceView.java:85)
    at com.sap.caf.eu.gp.ui.rt.wdp.InternalWRuntimeMainInterfaceView.wdInvokeEventHandler(InternalWRuntimeMainInterfaceView.java:105)
    at com.sap.tc.webdynpro.progmodel.generation.DelegatingInterfaceView.invokeEventHandler(DelegatingInterfaceView.java:85)
    at com.sap.tc.webdynpro.clientserver.cal.ClientApplication.navigate(ClientApplication.java:869)
    at com.sap.tc.webdynpro.clientserver.cal.ClientComponent.navigate(ClientComponent.java:847)
    at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.doNavigation(WindowPhaseModel.java:490)
    at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.processRequest(WindowPhaseModel.java:144)
    at com.sap.tc.webdynpro.clientserver.window.WebDynproWindow.processRequest(WebDynproWindow.java:415)
    at com.sap.tc.webdynpro.clientserver.cal.AbstractClient.executeTasks(AbstractClient.java:101)
    at com.sap.tc.webdynpro.clientserver.cal.ClientManager.doProcessing(ClientManager.java:650)
    at com.sap.tc.webdynpro.clientserver.cal.ClientManager.processRequest(ClientManager.java:155)
    at com.sap.tc.webdynpro.clientserver.session.core.ApplicationHandle.doProcessing(ApplicationHandle.java:105)
    at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doContent(DispatcherServlet.java:63)
    at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doPost(DispatcherServlet.java:50)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:390)
    at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:264)
    at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:347)
    at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:325)
    at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:887)
    at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:241)
    at com.sap.engine.services.httpserver.server.Client.handle(Client.java:92)
    at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:148)
    at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)
    at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
    at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
    at java.security.AccessController.doPrivileged(Native Method)
    at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:95)
    at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:159)
    Caused by: com.sap.security.api.NoSuchUserException: Cannot find user when uniqueID is null! at com.sap.security.core.imp.UserFactory.getReadonlyUser(UserFactory.java:119) at com.sap.security.core.imp.UserFactory.getUser(UserFactory.java:197) at com.sap.security.core.imp.UserFactory.getUser(UserFactory.java:91) at com.sap.caf.eu.gp.model.context.impl.UserContextFactory.getUser(UserContextFactory.java:264) at com.sap.caf.eu.gp.model.pfw.wfc.local.status.StatusReader.recreateProcessInstance(StatusReader.java:163) at
    2. I got error without any message. The Info message just before this blank error is:
    stmt: select do.DO_ID, do.VERSION, do.VERS_GL, do.VERS_LO, DO_TYPE, STATUS, OWNER, CREATION_DATE, LAST_CHANGE_PRIN, LAST_CHANGE_DATE, VALID_UNTIL_DATE, TEXT_TYPE, dotxt.TEXT_ID from CAF_GP_DO do inner join CAF_GP_DOTXT dotxt on dotxt.DO_ID = do.DO_ID and dotxt.VERSION = do.VERSION where PO_NUM=? and DO_TYPE in (?) and TEXT_TYPE=?
    This info message is given for the component: com.sap.caf.eu.gp.ui.comp.valed.CValueEditor
    What should be the problem behind this? There is no problem with my Application, because it gives same error for sample examples given in GP.
    I tried lots of thing but didn't get success. Please help me for the same.
    One more Question. whether Portal is required to execute my GP Process?
    Regards,
    Bhavik

    Hello All,
    I have resolved this issue already. This problem is realated with the GP components version on the server.
    When I installed NW04s, at that time CAF_EU components are not installed. Then I have installed those components seperately on the server. The installed components version may be different and that's why it is giving me the problem.
    I have done new installation on seperate server and on that server it is working properly.
    Thanks,
    Bhavik

  • Instantiate com.waveset.object.Type into Type[]

    I am trying to instantiate com.waveset.object.Type into Type[]. I am trying execute method exportObjects(Type[] types, java.lang.String filename, BulkMonitor monitor). I can write it in java doing something like _wsSess.exportObjects(new Type[]{Type.findType(type)}, out, null); but having trouble doing in xpress or javascript. Please help. Thanks.

    Hi,
    To get all the types, you can use:
    <invoke name='getTypes' class='com.waveset.object.Type'/>
    to get specific ones:
    <block>
    <set name='typeList'>
    <list>
    <invoke name='getType' class='com.waveset.object.Type'>
    <s>Resource</s>
    </invoke>
    <invoke name='getType' class='com.waveset.object.Type'>
    <s>User</s>
    </invoke>
    </list>
    </set>
    <invoke name='toArray'>
    <ref>typeList</ref>
    </invoke>
    </block>
    hope this helps
    Regards
    Arjun

  • How to instantiate javax.sql.rowset.CachedRowSet?

    When trying to instantiate javax.sql.rowset.CachedRowSet, I get the foll error...
    javax.sql.rowset.CachedRowSet is abstract; cannot be instantiated
    Any solutions plz...

    You need to instantiate the standard reference implementation. As follows
    javax.sql.rowset.CachedRowSet crs = new com.sun.rowset.CachedRowSetImpl()
    Take a look at JDBC Technology Homepage and grab a copy of the JDBC RowSet Co-Bundle. You'll find a very useful tutorial in that bundle that will assist you.

  • Once i set classpath to servlet-api.jar, it doesnt Instantiate DbBean.

    I am using notepad editor. I am trying to instantiate a DbBean class inside the servlet's init() method.
    once i set (C:\Program Files\Apache Software Foundation\Tomcat 5.0\common\lib\servlet-api.jar) this path to compile the Controller servlet.
    C:\Program Files\Apache Software Foundation\Tomcat 5.0\webapps\ROOT\WEB-INF\classes>set classpath=C:\Program Files\Apache Software Foundation\Tomcat 5.0\common\lib\servlet-api.jar
    C:\Program Files\Apache Software Foundation\Tomcat 5.0\webapps\ROOT\WEB-INF\classes>javac Controller.java
    Controller.java:5: package bean does not exist
    import bean.DbBean;
    ^
    Controller.java:14: cannot find symbol
    symbol : class DbBean
    location: class Controller
    DbBean dbbean = new DbBean();
    ^
    Controller.java:14: cannot find symbol
    symbol : class DbBean
    location: class Controller
    DbBean dbbean = new DbBean();
    ^
    3 errors
    C:\Program Files\Apache Software Foundation\Tomcat 5.0\webapps\ROOT\WEB-INF\classes>
    this is my servlet
    import java.sql.*;
    import java.io.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    import bean.DbBean;
    public class Controller extends HttpServlet
    public void init(ServletConfig config)throws ServletException
    ServletContext context = config.getServletContext();
    context.setAttribute("base_url",config.getInitParameter("base_url"));
    {color:#ff0000}DbBean dbbean = new DbBean();{color} {color:#0000ff}error showing in this line
    {color}dbbean.setDburl(config.getInitParameter("dburl"));
    dbbean.setUserName(config.getInitParameter("username"));
    dbbean.setPassward(config.getInitParameter("pwd"));
    /// database bean can be access from jsp page
    context.setAttribute("dbbean",dbbean);
    /// Load the data base driver
    try{
    Class.forName(config.getInitParameter("jdbcDriver"));
    catch(ClassNotFoundException e)
    System.out.println(e.toString());
    super.init(config);
    public void doGet(HttpServletRequest req, HttpServletResponse res)throws ServletException,IOException
    doPost(req,res);
    public void doPost(HttpServletRequest req, HttpServletResponse res)throws ServletException,IOException
    String base = "/onlinetest1/";
    String url = base + "login.jsp";
    String action = req.getParameter("action");
    if(action!=null)
    if(action.equals("successlogin.jsp"));
    url = base + "successlogin.jsp";
    RequestDispatcher dispatcher = getServletContext().getRequestDispatcher(url);
    dispatcher.forward(req,res);
    public void destroy()
    System.out.println("Servlet stopped");
    This below class can be put inside bean folder( (ie)sub dir of controller servlet)
    package bean;
    import java.sql.*;
    import java.util.*;
    import java.io.*;
    public class DbBean
    String dburl="";
    String dbuser="";
    String dbpass="";
    public void setDburl(String url)
    dburl = url;
    public void setUserName(String uname)
    dbuser = uname;
    public void setPassward(String pwd)
    dbpass = pwd;
    What to do to rectify this, please help me why this error coming,

    hi,
    Actually i did my ordinary package compilation example below, its run correctly, but after set classpath to %tomcat-home%\common\lib\servlet-api.jar(for same programs its not working) this kinds of error coming.
    F:\shyam\test>javac first.java
    F:\shyam\test>java first
    main class
    DB Set Correctly
    F:\shyam\test>set classpath=C:\Program Files\Apache Software Foundation\Tomcat 5.0\common\lib\servlet-api.jar
    F:\shyam\test>javac first.java
    first.java:1: package bean does not exist
    import bean.DbBean;
    ^
    first.java:10: cannot find symbol
    symbol : class DbBean
    location: class first
    DbBean dbbean = new DbBean();
    ^
    first.java:10: cannot find symbol
    symbol : class DbBean
    location: class first
    DbBean dbbean = new DbBean();
    ^
    3 errors
    F:\shyam\test>
    In compilation it wont take DbBean class, please help me.
    thanks in advance,
    S.Shyam

  • Fail to instantiate InitialContext

    The WebLogic server throws error I tried to instantiate InitialContext. I'm using
    WebLogic 6.1 trial version under Windows 2000 Server.
    Please help.
    Thanks,
    Huale
    -- code--
    Properties prop = new Properties();
    prop.put(Context.INITIAL_CONTEXT_FACTORY, "weblogic.jndi.WLInitialContextFactory");
    prop.put(Context.PROVIDER_URL, "t3://localhost:7001");
    InitialContext ic = new InitialContext(prop);
    error in client--
    javax.naming.CommunicationException [Root exception is java.net.ConnectException:
    t3://localhost:7001: Bootstrap to: 'localhost/127.0.0.1:7001' over: 't3' got an
    error or timed out]
    error in server--
    <Error> <NT Performance Pack> <failure in process
    Sockets() - GetData: 'weblogic.socket.GetData@393cf8 - fd: '2064', numBytes: '12
    25''
    java.util.EmptyStackException
    at weblogic.utils.collections.Stack.pop(Stack.java:72)
    at weblogic.rjvm.InboundMsgAbbrev.getAbbrev(InboundMsgAbbrev.java:85)
    at weblogic.rjvm.MsgAbbrevInputStream.readImmutable(MsgAbbrevInputStream
    .java:172)
    at weblogic.rjvm.MsgAbbrevInputStream.readClassDescriptor(MsgAbbrevInput
    Stream.java:186)
    at weblogic.common.internal.ChunkedObjectInputStream$NestedObjectInputSt
    ream.readClassDescriptor(ChunkedObjectInputStream.java:300)
    at java.io.ObjectInputStream.inputClassDescriptor(ObjectInputStream.java
    :906)
    at java.io.ObjectInputStream.readObject(ObjectInputStream.java:366)
    at java.io.ObjectInputStream.readObject(ObjectInputStream.java:236)
    at java.io.ObjectInputStream.inputObject(ObjectInputStream.java:1186)
    at java.io.ObjectInputStream.readObject(ObjectInputStream.java:386)
    at java.io.ObjectInputStream.readObject(ObjectInputStream.java:236)
    at weblogic.common.internal.ChunkedObjectInputStream.readObject(ChunkedO
    bjectInputStream.java:110)
    at weblogic.common.internal.ChunkedObjectInputStream.readObject(ChunkedO
    bjectInputStream.java:123)
    at weblogic.rjvm.ConnectionManager.readPeerInfo(ConnectionManager.java:6
    83)
    at weblogic.rjvm.ConnectionManagerServer.handleIdentifyRequest(Connectio
    nManagerServer.java:255)
    at weblogic.rjvm.ConnectionManager.dispatch(ConnectionManager.java:617)
    at weblogic.rjvm.t3.T3JVMConnection.dispatch(T3JVMConnection.java:454)
    at weblogic.socket.NTSocketMuxer.processSockets(NTSocketMuxer.java:643)
    at weblogic.socket.SocketReaderRequest.execute(SocketReaderRequest.java:
    24)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
    >

    The WebLogic server throws error I tried to instantiate InitialContext. I'm using
    WebLogic 6.1 trial version under Windows 2000 Server.
    Please help.
    Thanks,
    Huale
    -- code--
    Properties prop = new Properties();
    prop.put(Context.INITIAL_CONTEXT_FACTORY, "weblogic.jndi.WLInitialContextFactory");
    prop.put(Context.PROVIDER_URL, "t3://localhost:7001");
    InitialContext ic = new InitialContext(prop);
    error in client--
    javax.naming.CommunicationException [Root exception is java.net.ConnectException:
    t3://localhost:7001: Bootstrap to: 'localhost/127.0.0.1:7001' over: 't3' got an
    error or timed out]
    error in server--
    <Error> <NT Performance Pack> <failure in process
    Sockets() - GetData: 'weblogic.socket.GetData@393cf8 - fd: '2064', numBytes: '12
    25''
    java.util.EmptyStackException
    at weblogic.utils.collections.Stack.pop(Stack.java:72)
    at weblogic.rjvm.InboundMsgAbbrev.getAbbrev(InboundMsgAbbrev.java:85)
    at weblogic.rjvm.MsgAbbrevInputStream.readImmutable(MsgAbbrevInputStream
    .java:172)
    at weblogic.rjvm.MsgAbbrevInputStream.readClassDescriptor(MsgAbbrevInput
    Stream.java:186)
    at weblogic.common.internal.ChunkedObjectInputStream$NestedObjectInputSt
    ream.readClassDescriptor(ChunkedObjectInputStream.java:300)
    at java.io.ObjectInputStream.inputClassDescriptor(ObjectInputStream.java
    :906)
    at java.io.ObjectInputStream.readObject(ObjectInputStream.java:366)
    at java.io.ObjectInputStream.readObject(ObjectInputStream.java:236)
    at java.io.ObjectInputStream.inputObject(ObjectInputStream.java:1186)
    at java.io.ObjectInputStream.readObject(ObjectInputStream.java:386)
    at java.io.ObjectInputStream.readObject(ObjectInputStream.java:236)
    at weblogic.common.internal.ChunkedObjectInputStream.readObject(ChunkedO
    bjectInputStream.java:110)
    at weblogic.common.internal.ChunkedObjectInputStream.readObject(ChunkedO
    bjectInputStream.java:123)
    at weblogic.rjvm.ConnectionManager.readPeerInfo(ConnectionManager.java:6
    83)
    at weblogic.rjvm.ConnectionManagerServer.handleIdentifyRequest(Connectio
    nManagerServer.java:255)
    at weblogic.rjvm.ConnectionManager.dispatch(ConnectionManager.java:617)
    at weblogic.rjvm.t3.T3JVMConnection.dispatch(T3JVMConnection.java:454)
    at weblogic.socket.NTSocketMuxer.processSockets(NTSocketMuxer.java:643)
    at weblogic.socket.SocketReaderRequest.execute(SocketReaderRequest.java:
    24)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
    >

Maybe you are looking for