Weblogic Classpath setting error

Hi All,
We are using a third party jar and create a java Web service on the top of that jar. This jar file need two configuration file .properties and .xml when we deploy war for the application into weblogic server it will give file not found error. Though this file already exists inside the .war but from the application it is not able to pick the files.
We find that these file need to be put in weblogic domain home and we put it there and application works.
I decompile the jar and found that inside java class they use FileReader("allXXX.xml") path and when I Google it and found that it will pick the file from weblogic domain directory.
The issue is that we need to put properties file in specific weblogic folder like /3party/config by setting the class path inside startWebLogic.cmd. Please let us know solution for same
Thanks in advance
Edited by: sb**** on Mar 19, 2012 9:09 AM

Hi , I am also facing the similer issue. I am deploying war file of my Spring MVC application , but its not picking resource bundle .properties files from one of the configuration file.
<bean id="PropertiesRepository"
          class="LanguageBasedPropertiesRepository">
          <property name="propertiesFiles">
               <map>
                    <entry key="en" value="classpath:/exceptionMessages.properties" />
                    <entry key="es" value="classpath:/exceptionMessages_es.properties" />
                    <entry key="default" value="classpath:/exceptionMessages.properties" />
               </map>
          </property>
     </bean>
Please let me know how we can modify this to make it work.
thanks .

Similar Messages

  • Weblogic Classpath setting error not able to pick the properties file

    Hi All,
    We are using a third party jar and create a java Web service on the top of that jar. This jar file need two configuration file .properties and .xml when we deploy war for the application into weblogic server it will give file not found error. Though this file already exists inside the .war but from the application it is not able to pick the files.
    We find that these file need to be put in weblogic domain home and we put it there and application works.
    I decompile the jar and found that inside java class they use FileReader("allXXX.xml") path and when I Google it and found that it will pick the file from weblogic domain directory.
    The issue is that we need to put properties file in specific weblogic folder like /3party/config by setting the class path inside startWebLogic.cmd. Please let us know solution for same
    Thanks in advance
    Edited by: sb**** on Mar 19, 2012 9:08 AM

    Hi , I am also facing the similer issue. I am deploying war file of my Spring MVC application , but its not picking resource bundle .properties files from one of the configuration file.
    <bean id="PropertiesRepository"
              class="LanguageBasedPropertiesRepository">
              <property name="propertiesFiles">
                   <map>
                        <entry key="en" value="classpath:/exceptionMessages.properties" />
                        <entry key="es" value="classpath:/exceptionMessages_es.properties" />
                        <entry key="default" value="classpath:/exceptionMessages.properties" />
                   </map>
              </property>
         </bean>
    Please let me know how we can modify this to make it work.
    thanks .

  • Weblogic classpath setting

    How to set the classpath for the helper class files in weblogic.
    There is option where I can set the classpath of the servlets , but to set the classpath of other class files(helper) , where should I set the classpath in weblogic.properties files
    Also by default where should I keep my class files

    Hi,
    start weblogic with a script file. There is a sample script file located in the weblogic directory called startWebLogic.cmd (weblogic 5.1). Adjust this file with your (classpath) settings.
    The classpath is not set in the properties file. In the properties file you add your ejb-jar files that are being deployed.
    Bye

  • Log4j classpath setting in weblogic server 8.1

    Hi,
    I placed all my properties files outside ear file in the folder C:\bea\user_projects\domains\xyz\config . I changed classpath setting in startweblogic.cmd as follows
    set CLASSPATH=%WEBLOGIC_CLASSPATH%;%POINTBASE_CLASSPATH%;%JAVA_HOME%\jre\lib\rt.jar;%WL_HOME%\server\lib\webservices.jar;./config;%CLASSPATH%;When i run my application, these properties are getting picked up and logs comming up in the spcified folder I have done this in windows platform.
    When i tried the same in unix box, by keeping properties files in separate folder and including that folder in classpath of startManagedWebLogic.cmd. Here is my classpath settings that i have modified
    $/data/weblogic/app_properties/log4j.properties:$/data/weblogic/app_properties/download.properties:Problem here is i am not able to get the logs updated,even though my application is running fine.
    Can you any one please tell me am i missing anything.
    Thanks,
    Ram

    Hi,
    I placed all my properties files outside ear file in the folder C:\bea\user_projects\domains\xyz\config . I changed classpath setting in startweblogic.cmd as follows
    set CLASSPATH=%WEBLOGIC_CLASSPATH%;%POINTBASE_CLASSPATH%;%JAVA_HOME%\jre\lib\rt.jar;%WL_HOME%\server\lib\webservices.jar;./config;%CLASSPATH%;When i run my application, these properties are getting picked up and logs comming up in the spcified folder I have done this in windows platform.
    When i tried the same in unix box, by keeping properties files in separate folder and including that folder in classpath of startManagedWebLogic.cmd. Here is my classpath settings that i have modified
    $/data/weblogic/app_properties/log4j.properties:$/data/weblogic/app_properties/download.properties:Problem here is i am not able to get the logs updated,even though my application is running fine.
    Can you any one please tell me am i missing anything.
    Thanks,
    Ram

  • Weblogic server shutdown error

    I am using the following script to shutpdown weblogic server
    # Set the server classpath
    WEBLOGICCLASSPATH=/weblogic/lib/weblogic510sp4.jar:/weblogic/license:/weblgi
    c/classes:/weblogic/lib/weblogicaux.jar
    # Java 2
    JAVACLASSPATH=/weblogic/classes/boot
    java -classpath $JAVACLASSPATH -Dweblogic.class.path=$WEBLOGICCLASSPATH
    weblogic.Admin www.kubrick.com SHUTDOWN system 12345678
    It dives class not def found error for weblogic.Admin. Any solution ?

    Since WLS doesn't need to load anything from weblogic classpath, you can put all
    classes in java
    classpath . Try this
    java -classpath $WL_HOME/classes:$WL_HOME/lib/weblogicaux.jar weblogic.Admin
    <url> SHUTDOWN system password.
    Kumar
    Rakesh Gupta wrote:
    I am using the following script to shutpdown weblogic server
    # Set the server classpath
    WEBLOGICCLASSPATH=/weblogic/lib/weblogic510sp4.jar:/weblogic/license:/weblgi
    c/classes:/weblogic/lib/weblogicaux.jar
    # Java 2
    JAVACLASSPATH=/weblogic/classes/boot
    java -classpath $JAVACLASSPATH -Dweblogic.class.path=$WEBLOGICCLASSPATH
    weblogic.Admin www.kubrick.com SHUTDOWN system 12345678
    It dives class not def found error for weblogic.Admin. Any solution ?

  • CLASSPATH setting for IAS installation?

    Hi
    I am trying to install IAS 1.0.2 on Solaris. Everything seemed to be going okay until near the end, when I am informed by the installer that the SSOHash Class has not been loaded into the database.
    I have attempted to follow the advice on metalink about using loadjava to load the classes manually, but it still errors. I believe that I may have the CLASSPATH set incorrectly. The installation guide states it should not refer to an existing Oracle home, but I did not have a CLASSPATH set up with my exisiting DB configuration. It does not advise what it should be set to.
    Please can anyone advice what it should be set to if my directory structure is something like oracle/app/product/ias/ etc
    Thanks in advance
    Tim

    This is the sort of thing I am getting
    internal error: unanticipated exception: java.io.FileNotFoundException: ?resolve
    java.io.FileNotFoundException: ?resolve
    at java.lang.Throwable.<init>(Compiled Code)
    at java.lang.Exception.<init>(Compiled Code)
    at java.io.IOException.<init>(Compiled Code)
    at java.io.FileNotFoundException.<init>(Compiled Code)
    at java.io.FileInputStream.<init>(Compiled Code)
    at java.io.FileInputStream.<init>(Compiled Code)
    at oracle.aurora.server.tools.loadjava.LoadJava.processLoadAndCreate(Compiled Code)
    at oracle.aurora.server.tools.loadjava.LoadJava.process(Compiled Code)
    at oracle.aurora.server.tools.loadjava.LoadJavaMain.run(Compiled Code)
    at oracle.aurora.server.tools.loadjava.LoadJavaMain.main(Compiled Code)
    I tried using this utility after the portal installation failed with 'you cannot login because there is no configuration information stored in the enabler configuration table' . I confirmed this was the case by checking the contents of user_ojects, and found there were no objects of type 'JAVA CLASS'

  • Getting this Error Reason=weblogic.ejb20.InternalException: Error writing f

    I am using a weblogic 8.1 sp4 and is getting the following error
    =====
    java.sql.SQLException: Transaction BEA1-00A0C7390CDF3A289F82 not active anymore. tx status = Marked rollback. [Reason=weblogic.ejb20.InternalException: Error writing from flushModified]
    at weblogic.jdbc.jts.Driver.getTransaction(Driver.java:430)
    at weblogic.jdbc.jts.Driver.connect(Driver.java:127)
    at weblogic.jdbc.common.internal.RmiDataSource.getConnection(RmiDataSource.java:305)
    =====
    Is this a bug in Weblogic ?
    This happens when the the the container managed entity bean has the following element.
    <cache-strategy>read-write</cache-strategy>
    This does not happend if the following value is set
    <cache-strategy>read-only</cache-strategy>
    Any clues on a resolution to this problem ?
    Thanks in advance.

    I have similar problem with my application. I'm using Weblogic 8.1 sp4 and MS SQL 2000 sp 3 and Hibernate 2.8 to connect to DB. Table causing exception is replicated bidirectional with transactional replication. I get trace of SQL transactions made during user logging process and noticed update querry which is rolled back. There are only select querries before. I wonder if synchronizing triggers used by replication could be the problem. Can it somehow reset the session?
    Stack Trace lools like this below:
    30328 [Thread-5] ERROR pl.computerland.snu.repo.remote.external.RemoteRepoFactoryWrapper - operation():
    pl.computerland.snu.repo.remote.RemoteRepoException: java.rmi.RemoteException: SOAP Fault:javax.xml.rpc.soap.SOAPFaultException: EJB Exception: ; nested exception is:
         javax.ejb.TransactionRolledbackLocalException: Exception during remove.; nested exception is: javax.ejb.EJBException: nested exception is: java.lang.Exception: SQLException on insert: java.sql.SQLException: Transaction BEA1-00042F6B457BAFFD2C3E not active anymore. tx status = Marked rollback. [Reason=weblogic.transaction.internal.AppSetRollbackOnlyException]
    Detail:
    <detail>
    EJB Exception: ; nested exception is:
         javax.ejb.TransactionRolledbackLocalException: Exception during remove.; nested exception is: javax.ejb.EJBException: nested exception is: java.lang.Exception: SQLException on insert: java.sql.SQLException: Transaction BEA1-00042F6B457BAFFD2C3E not active anymore. tx status = Marked rollback. [Reason=weblogic.transaction.internal.AppSetRollbackOnlyException] </detail>; nested exception is:
         javax.xml.rpc.soap.SOAPFaultException: EJB Exception: ; nested exception is:
         javax.ejb.TransactionRolledbackLocalException: Exception during remove.; nested exception is: javax.ejb.EJBException: nested exception is: java.lang.Exception: SQLException on insert: java.sql.SQLException: Transaction BEA1-00042F6B457BAFFD2C3E not active anymore. tx status = Marked rollback. [Reason=weblogic.transaction.internal.AppSetRollbackOnlyException]
         at pl.computerland.snu.repo.remote.external.RemoteRepoFactory.login(RemoteRepoFactory.java:116)
         at pl.computerland.snu.repo.remote.external.RemoteRepoFactoryWrapper$ExternConnection.operation(RemoteRepoFactoryWrapper.java:301)
         at pl.computerland.snu.rfi.services.TaskService$1.run(TaskService.java:51)
         at java.lang.Thread.run(Unknown Source)
    Caused by: java.rmi.RemoteException: SOAP Fault:javax.xml.rpc.soap.SOAPFaultException: EJB Exception: ; nested exception is:
         javax.ejb.TransactionRolledbackLocalException: Exception during remove.; nested exception is: javax.ejb.EJBException: nested exception is: java.lang.Exception: SQLException on insert: java.sql.SQLException: Transaction BEA1-00042F6B457BAFFD2C3E not active anymore. tx status = Marked rollback. [Reason=weblogic.transaction.internal.AppSetRollbackOnlyException]
    Detail:
    <detail>
    EJB Exception: ; nested exception is:
         javax.ejb.TransactionRolledbackLocalException: Exception during remove.; nested exception is: javax.ejb.EJBException: nested exception is: java.lang.Exception: SQLException on insert: java.sql.SQLException: Transaction BEA1-00042F6B457BAFFD2C3E not active anymore. tx status = Marked rollback. [Reason=weblogic.transaction.internal.AppSetRollbackOnlyException] </detail>; nested exception is:
         javax.xml.rpc.soap.SOAPFaultException: EJB Exception: ; nested exception is:
         javax.ejb.TransactionRolledbackLocalException: Exception during remove.; nested exception is: javax.ejb.EJBException: nested exception is: java.lang.Exception: SQLException on insert: java.sql.SQLException: Transaction BEA1-00042F6B457BAFFD2C3E not active anymore. tx status = Marked rollback. [Reason=weblogic.transaction.internal.AppSetRollbackOnlyException]
         at pl.computerland.snu.rfi.client.transfer.RepositoryExtSoap_Stub.login(RepositoryExtSoap_Stub.java:241)
         at pl.computerland.snu.rfi.client.transfer.RepositoryExtSoap_Stub.login(RepositoryExtSoap_Stub.java:258)
         at pl.computerland.snu.repo.remote.external.RemoteRepoFactory.login(RemoteRepoFactory.java:114)
         ... 3 more
    Caused by: javax.xml.rpc.soap.SOAPFaultException: EJB Exception: ; nested exception is:
         javax.ejb.TransactionRolledbackLocalException: Exception during remove.; nested exception is: javax.ejb.EJBException: nested exception is: java.lang.Exception: SQLException on insert: java.sql.SQLException: Transaction BEA1-00042F6B457BAFFD2C3E not active anymore. tx status = Marked rollback. [Reason=weblogic.transaction.internal.AppSetRollbackOnlyException]
         at weblogic.webservice.core.ClientDispatcher.receive(ClientDispatcher.java:313)
         at weblogic.webservice.core.ClientDispatcher.dispatch(ClientDispatcher.java:144)
         at weblogic.webservice.core.DefaultOperation.invoke(DefaultOperation.java:457)
         at weblogic.webservice.core.DefaultOperation.invoke(DefaultOperation.java:443)
         at weblogic.webservice.core.rpc.StubImpl._invoke(StubImpl.java:303)
         at pl.computerland.snu.rfi.client.transfer.RepositoryExtSoap_Stub.login(RepositoryExtSoap_Stub.java:236)
         ... 5 more

  • Should deploying a .rar put those classes in the Weblogic Classpath?

    Should deploying a .rar put those classes in the Weblogic Classpath?
              I am deploying an EJB and a RAR, the EJB has no dependencies on the
              RAR b/c the EJB is writing to the Common Client Interface(CCI). The EJB
              client app has
              sends/marshals as parameters classes that are defined in the RAR.
              For some reason the EJB's class loader hierachy cannot find the definition
              of this RAR specific class, even though the RAR is deploying. I receive the
              following error on the EJB client:
              ===========================================================
              java.rmi.UnmarshalException: error unmarshalling arguments; nested exception
              is:
              java.lang.ClassNotFoundException:
              com.myclientcompany.server.eai.InteractionSpecImpl
              java.lang.ClassNotFoundException:
              com.myclientcompany.server.eai.InteractionSpecImpl
              <<no stack trace available>>
              ===========================================================
              Marc T. Calello
              Momentum Software, Inc
              Austin, TX
              [email protected]
              

              When you pass an instance of
              com.myclientcompany.server.eai.InteractionSpecImpl
              as an argument to your EJB, the appServer needs to
              de-serialize(unmarshall)
              the object under the EJB context, and it needs the required class for
              unmarshalling,
              inside the ejb-jar(raTester.jar).
              So if you include the interactionspecimpl class in your ejb-jar file,
              then you dont need
              to include those classes in your server's classpath.
              prasen
              "Marc T. Calello" wrote:
              >
              > Should deploying a .rar put those classes in the Weblogic Classpath?
              > I am deploying an EJB and a RAR, the EJB has no dependencies on the
              > RAR b/c the EJB is writing to the Common Client Interface(CCI). The EJB
              > client app has
              > sends/marshals as parameters classes that are defined in the RAR.
              > For some reason the EJB's class loader hierachy cannot find the definition
              > of this RAR specific class, even though the RAR is deploying. I receive the
              > following error on the EJB client:
              > ===========================================================
              > java.rmi.UnmarshalException: error unmarshalling arguments; nested exception
              > is:
              > java.lang.ClassNotFoundException:
              > com.myclientcompany.server.eai.InteractionSpecImpl
              > java.lang.ClassNotFoundException:
              > com.myclientcompany.server.eai.InteractionSpecImpl
              > <<no stack trace available>>
              > ===========================================================
              >
              > --
              > Marc T. Calello
              > Momentum Software, Inc
              > Austin, TX
              > [email protected]
              

  • How to get rid of the weblogic.kernel.Default errors and warning?

    Hi there,
    When i'm running my application deployed on WLS8.1 SP3 and the application is running fine, but the following error and warnings were thrown.
    2004-08-05 11:26:30,453 [ExecuteThread: '13' for queue: 'weblogic.kernel.Default'] ERROR com.bea.wlw.runtime.core.util.Config - Failed to obtain connection to datasource=cgDataSource, using generic DB properties
    <Aug 5, 2004 11:26:30 AM SGT> <Error> <WLW> <000000> <Failed to obtain connection to datasource=cgDataSource, using generic DB properties>
    2004-08-05 11:27:12,281 [ExecuteThread: '13' for queue: 'weblogic.kernel.Default'] WARN org.apache.jcs.config.OptionConverter - Could not find value for key jcs.default.elementattributes
    2004-08-05 11:27:12,282 [ExecuteThread: '13' for queue: 'weblogic.kernel.Default'] WARN org.apache.jcs.engine.control.CompositeCacheConfigurator - Could not instantiate eAttr named 'jcs.default.elementattributes', using defaults.
    2004-08-05 11:27:12,308 [ExecuteThread: '13' for queue: 'weblogic.kernel.Default'] WARN org.apache.jcs.config.OptionConverter - Could not find value for key jcs.system.groupIdCache.elementattributes
    2004-08-05 11:27:12,308 [ExecuteThread: '13' for queue: 'weblogic.kernel.Default'] WARN org.apache.jcs.engine.control.CompositeCacheConfigurator - Could not instantiate eAttr named 'jcs.system.groupIdCache.elementattributes', using defaults.
    2004-08-05 11:27:12,386 [ExecuteThread: '13' for queue: 'weblogic.kernel.Default'] WARN org.apache.jcs.config.OptionConverter - Could not find value for key jcs.region.CodeTableCache.elementattributes
    2004-08-05 11:27:12,386 [ExecuteThread: '13' for queue: 'weblogic.kernel.Default'] WARN org.apache.jcs.engine.control.CompositeCacheConfigurator - Could not instantiate eAttr named 'jcs.region.CodeTableCache.elementattributes', using defaults.
    2004-08-05 11:27:13,527 [ExecuteThread: '13' for queue: 'weblogic.kernel.Default'] WARN com.bea.wlw.netui.script.el.NetUIReadVariableResolver - Could not create a ContextFactory for type "com.bea.netuix.servlets.script.PortalVariableResolver$PortalContextFactory" because the ContextFactory implementation class could not be found.
    May i know why this is so? How to get rid of these error and warnings?
    Thanks
    Derek
    Message was edited by derekchan at Aug 4, 2004 8:41 PM
    Message was edited by derekchan at Aug 4, 2004 8:42 PM

    you didnt seem to have configured the datasource / connection pool / database control with proper db properties
    you should check your configuration to see if you have done it right and then you should check your application and the properties settings in the controls to ensure they are right.

  • Object variable not set (Error 91) in Input Enabled query

    Hello,
    I'm having the following issue.  I have created an input enabled query and included it in a planning workbook.  Every time I open the workbook or query, and I got to an input enabled cell, I get the error below:
    Object variable not set (Error 91)
    This client has not used planning workbooks before.  The system is on 7.10 SP10 for Bex Analyzer and SAP Gui 7.10 Patch Level 13. 
    I'm not finding any relevant so far in SDN.  Any help anyone can provide is greatly appreciated.
    Thanks,
    Senthil

    Hello,
    Just wanted to let you all know that this issue has been resolved after updating my SAP Gui to 7.2 Patch Level 4 (Patch Level 5 was causing some other issues so I decided to stay at Level 4).
    Thanks,
    Senthil

  • "No payload set" error in CQ5 workflow

    I'm trying to programmatically start a workflow from an OSGi service/servlet. Everything seems to work fine, I checked the WorkflowData and the model to verify they are correct. However, when the startWorkflow method runs, it creates a new instance of the workflow, but doesn't set the payload, and i get this in the error.log file:
         com.day.cq.workflow.impl.jcr.WorkflowManager No payload set
         com.day.cq.workflow.impl.CQWorkflowSession Workflow instance started with model: /etc/workflow/models/skill-request/jcr:content/model and  ID: /etc/workflow/instances/2012-07-17/model_2347856755318064 for payload: skill,Software,barmstrong
    As far as I can tell, it has the right data, but refuses to set it to the workflow. Any thoughts or hints would be much appreciated.
    My code:
    protected void doPost(SlingHttpServletRequest request, SlingHttpServletResponse response) throws IOException
         String skillname = request.getParameter("skillname");
         String skilltype = request.getParameter("skilltype");
         String userid = request.getParameter("userid");
                        // Getting variables ready for a Workflow
                        ResourceResolver resourceResolver = null;
                        Session session = null;
                        try {
                                  SlingHttpServletRequest slingReq = (SlingHttpServletRequest) request;
                                  session = slingReq.getResourceResolver().adaptTo(Session.class);
                                  WorkflowSession wfSession = _workflowService
                                                      .getWorkflowSession(session);
                                  String workflowId = "/etc/workflow/models/skill-request/jcr:content/model";
                                  // Starting a Workflow
                                  WorkflowModel model = wfSession.getModel(workflowId);
                                  WorkflowData wfData = wfSession.newWorkflowData("SKILL_DATA",
                                                      skillname + "," + skilltype + "," + userid);
                                  Workflow wf = wfSession.startWorkflow(model, wfData);
                        } catch (WorkflowException e) {
                                  ps.println(e.getMessage());
                                  e.printStackTrace(ps);
                        } catch (Throwable e){
                                  ps.println(e.getMessage());
                                  e.printStackTrace(ps);

    Thanks for the quick response Scott. I tried setting the Object to the path of a repository node:
         WorkflowData wfData = wfSession.newWorkflowData("SKILL_DATA",  pagepath);
    but it still failed to set as the workflow's payload. I also tried starting the dialog from the Sidekick, which does work.Here are the log messages for the two runs (Sidekick run first, failing run second):
    POST /etc/workflow/instances HTTP/1.1] com.day.cq.workflow.impl.CQWorkflowSession Workflow instance started with model: /etc/workflow/models/skill-request/jcr:content/model and  ID: /etc/workflow/instances/2012-07-17/model_2352496948786228 for payload: /content/icubed_profile_site/index/resources/barmstrong
    POST /apps/icubed/skill_request HTTP/1.1] com.day.cq.workflow.impl.CQWorkflowSession Workflow instance started with model: /etc/workflow/models/skill-request/jcr:content/model and  ID: /etc/workflow/instances/2012-07-17/model_2352486082873661 for payload: /content/icubed_profile_site/index/resources/barmstrong
    Yet the first run sets the payload just fine, while the second sends back the "No payload set" error.
    Brian

  • Trying to download iOS7 and it is saying i have a setting error what does that mean

    trying to download iOS7 and it is saying i have a setting error what does that mean

    Quite probably, or it may just be off and out of range of a network. In order to find a missing iOS device it has to have had the app enabled, and be on, not wiped, and able to connect to a network.

  • "Object Variable or With Block Variable not set" Error on Adobe Presenter 8 Ribbon on PPT 2010/2007

    Returning back from Adobe training at KEDRIYA VIDYALAYA no 1  Jalhalli Bangalore when I started Powerpoint to use Adobe Presenter 8  I am getting : "Object Variable or With Block Variable not set " error on clicking any of the menu features of the Presenter Ribbon. My Config are :
    i)             WINDOWS XP SP 3
    ii)            POWERPOINT 2007 / 2010 ( for both same error is coming)
    iii)           MS XML Library 4.0 installed.
    iv)           Adobe Presenter 8
    I am using all liscenced copies of softwares.
    Hardware specs are also as per Minimum Adobe standards.
    I Have tried a lot removing Data Execution Prevention Mode , but all in vain the problem still exists
    Why is this happening. Please help.
    Kamal K Gupta
    PGT Comp. SC.
    KV No. 2 Srivijaya nagar

    This is not really a "Downloading, Installing, Setting Up" question; you may get better help if you ask in the Presenter forum.

  • Object variable or With block variable not set (Error 91)

    I am not a developer, however i have to help to run a VB program.
    when using a local administrator to run this program there will be error :
    Object variable or With block variable not set (Error 91)
    however using a DOMAIN Administrator to run without problem.
    any idea

    Do you have the source code? The error itself is a nullreference error. It means the code is trying to use some object to access a property of method of that object, but the object is currently null so it fails. The fact that it runs different when you run
    as a domain admin versus local admin could mean that it does something via a network location or resource, and when running as a domain admin, it has access to that resource and succeeds, but the local admin doesn't have access to the needed resource, and
    the code doesn't check to see if the object is null before using it. If you don't have the source code, then it will be difficult to fix, other than giving the local admin the ability to access whatever it is the program is looking to access.
    Matt Kleinwaks - MSMVP MSDN Forums Moderator - www.zerosandtheone.com

  • Object variable or With block variable not set error message

    When processing the Rate application I get a "Object variable or With block variable not set error message" What is causing this error and how do I fix it?

    Hi Brian,
    I'm afraid that in some ways this reply won't be very helpful though it may help you save some time. 
    The error message you describe is a very generic one thrown by Microsoft .NET (the programming platform that SAP is written with, see the link at the bottom of this message) and not being 'handled' by SAP. 
    This means from a SAP perspective that any one of many unrelated things may be causing the error and that it gives you virtually no help in tracking the problem down in SAP.
    We've plagued by this message quite a bit, my advice is to look for clues at to what may be happening elsewhere, e.g. try:
    1. The windows event viewer, if you are in a multi-server environment then check the event log on all machines.
    2. The SQL Server event log (this can be found in Management Studio - Management - SQL Server Logs assuming you're using SQL Server 2005)
    3. IIS logs, usually these are text files in the following location -
    HTTP.SYS Error Log - %windir%\System32\LogFiles\HTTPERR
    IIS Website Log - %windir%\System32\LogFiles\W3SVC#
    It is dull work trawling through all these places looking for error events with a timestamp similar to the time your error was encountered, but by doing this we've been able to troubleshoot some issues that otherwise would have taken us ages to rectify via trial and error.
    Sorry that there is no definitive answer, but if itu2019s of any help there's many more of us out there who this error message causes trouble for.
    Regards,
    Iain
    Microsoft "Object variable or With block variable not set" error message link:
    http://support.microsoft.com/kb/316478

Maybe you are looking for