Accessing the bean in JSPDynPage of PAI event

Hi friends,
   In the PAI event of JSPDynpage component iam accessing the bean thru the following stmt.
  dynpagebean myNameContainer=(dynpagebean)myProfile.getValue("MyNameBean");
What string have to pass in the getValue() method?
Iam giving the input in the first page.and storing this value in bean.accessing the value stored in bean to display it in the second page.but its giving error while requesting the second page.can anybody please help me?
with regards
sireesha.

Hi
dynpagebean myNameContainer=(dynpagebean)myProfile.getValue("MyNameBean");
Here the string to be passed in getValue method shoild be the id of the bean that you see in jsp:useBean tag.
you can set the attributes of the bean using its setter methods:
e.g.I have a setter method which sets the attribute Name in my bean with type as string.
myNameContainer.setName("ABC");
now I put the bean in profile as follows:
myProfile.putValue("myBean",myNameContainer);
Now you can access the bean in both the JSPs by using jsp:useBean tag.
Here you will have to remove
<property name="ComponentType" value="jspnative"/>
<property name="JSP" value="pagelet/<jspname>.jsp"/>
properties in component config in order to be able to access both the JSPs.
You can also use IPortalComponentContext instead of IPortalComponentProfile since the getValue and putValue methods of IPortalComponentProfile are depricated.
Regards,
Ajay

Similar Messages

  • To Create a EJB Client program to access the Bean deployed in the Sun app

    Hi
    I am new to the EJB.I need to write a Client ,to access the bean deployed in the Sun application Server 9.0. The Client Program will be running in a Different machine on the Network.
    1)What all things i need to consider along with writing the client program?
    2)Is there any link which provides the Sample client programs/Documents for the Sun Application Server.
    Please help me
    Regards
    Raju

    Probably the simplest way is to replace the MessageServerThread with a synchronized method. The method should be in the MessageServer class.

  • How to access the controller method from javascript onclick event?

    Hi All,
       I am totally new to development. And I got struck in calling a controller method from javascript function.
       I have no idea about ajax and all those things. Please can anyone help me to solve this issue!
    Thanks in advance.

    Hi,
    As I know, you can use jQuery to do this, here is an example.
    Example of your Controller Method.
    [HttpPost] // can be HttpGet
    public ActionResult Test(string id)
    bool isValid = yourcheckmethod(); //.. check
    var obj = new {
    valid = isValid
    return Json(obj);
    and this would be your javascript function.
    function checkValidId(checkId)
    $.ajax({
    url: 'controllerName/Test',
    type: 'POST',
    contentType: 'application/json;',
    data: JSON.stringify({ id: checkId }),
    success: function (valid)
    if(valid) { //show that id is valid }
    else { //show that id is not valid }
    If you have further issues, I would suggest you move to MVC forum, it is appropriate and more experts will assist you.
    Best Regards,
    Jambor
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Accessing the same stateful session bean from multiple clients in a clustered environment

    I am trying to access the same stateful session bean from multiple
              clients. I also want this bean to have failover support so we want to
              deploy it in a cluster. The following description is how we have tried
              to solve this problem, but it does not seem to be working. Any
              insight would be greatly appreciated!
              I have set up a cluster of three servers. I deployed a stateful
              session bean with in memory replication across the cluster. A client
              obtains a reference to an instance of one of these beans to handle a
              request. Subsequent requests will have to use the same bean and could
              come from various clients. So after using the bean the first client
              stores the handle to the bean (actually the replica aware stub) to be
              used by other clients to be able to obtain the bean. When another
              client retrieves the handle gets the replica aware stub and makes a
              call to the bean the request seems to unpredictably go to any of the
              three servers rather than the primary server hosting that bean. If the
              call goes to the primary server everything seems to work fine the
              session data is available and it gets backed up on the secondary
              server. If it happens to go to the secondary server a bean that has
              the correct session data services the request but gives the error
              <Failed to update the secondary copy of a stateful session bean from
              home:ejb20-statefulSession-TraderHome>. Then any subsequent requests
              to the primary server will not reflect changes made on the secondary
              and vice versa. If the request happens to go to the third server that
              is not hosting an instance of that bean then the client receives an
              error that the bean was not available. From my understanding I thought
              the replica aware stub would know which server is the primary host for
              that bean and send the request there.
              Thanks in advance,
              Justin
              

              If 'allow-concurrent-call' does exactly what you need, then you don't have a problem,
              do you?
              Except of course if you switch ejb containers. Oh well.
              Mike
              "FBenvadi" <[email protected]> wrote:
              >I've got the same problem.
              >I understand from you that concurrent access to a stateful session bean
              >is
              >not allowed but there is a
              >token is weblogic-ejb-jar.xml that is called 'allow-concurrent-call'
              >that
              >does exactly what I need.
              >What you mean 'you'll get a surprise when you go to production' ?
              >I need to understand becouse I can still change the design.
              >Thanks Francesco
              >[email protected]
              >
              >"Mike Reiche" <[email protected]> wrote in message
              >news:[email protected]...
              >>
              >> Get the fix immediately from BEA and test it. It would be a shame to
              >wait
              >until
              >> December only to get a fix - that doesn't work.
              >>
              >> As for stateful session bean use - just remember that concurrent access
              >to
              >a stateful
              >> session bean is not allowed. Things will work fine until you go to
              >production
              >> and encounter some real load - then you will get a surprise.
              >>
              >> Mike
              >>
              >> [email protected] (Justin Meyer) wrote:
              >> >I just heard back from WebLogic Tech Support and they have confirmed
              >> >that this is a bug. Here is their reply:
              >> >
              >> >There is some problem in failover of stateful session beans when its
              >> >run from a java client.However, it is fixed now.
              >> >
              >> >The fix will be in SP2 which will be out by december.
              >> >
              >> >
              >> >Mike,
              >> >Thanks for your reply. I do infact believe we are correctly using
              >a
              >> >stateful session bean however it may have been misleading from my
              >> >description of the problem. We are not accessing the bean
              >> >concurrently from 2 different clients. The second client will only
              >> >come into play if the first client fails. In this case we want to
              >be
              >> >able to reacquire the handle to our stateful session bean and call
              >it
              >> >from the secondary client.
              >> >
              >> >
              >> >Justin
              >> >
              >> >"Mike Reiche" <[email protected]> wrote in message
              >news:<[email protected]>...
              >> >> You should be using an entity bean, not a stateful session bean
              >for
              >> >this application.
              >> >>
              >> >> A stateful session bean is intended to be keep state (stateful)
              >for
              >> >the duration
              >> >> of a client's session (session).
              >> >>
              >> >> It is not meant to be shared by different clients - in fact, if
              >you
              >> >attempt to
              >> >> access the same stateful session bean concurrently - it will throw
              >> >an exception.
              >> >>
              >> >> We did your little trick (storing/retrieving handle) with a stateful
              >> >session bean
              >> >> on WLS 5.1 - and it did work properly - not as you describe. Our
              >sfsb's
              >> >were not
              >> >> replicated as yours are.
              >> >>
              >> >> Mike
              >> >>
              >> >> [email protected] (Justin Meyer) wrote:
              >> >> >I am trying to access the same stateful session bean from multiple
              >> >> >clients. I also want this bean to have failover support so we want
              >> >to
              >> >> >deploy it in a cluster. The following description is how we have
              >tried
              >> >> >to solve this problem, but it does not seem to be working. Any
              >> >> >insight would be greatly appreciated!
              >> >> >
              >> >> >I have set up a cluster of three servers. I deployed a stateful
              >> >> >session bean with in memory replication across the cluster. A client
              >> >> >obtains a reference to an instance of one of these beans to handle
              >> >a
              >> >> >request. Subsequent requests will have to use the same bean and
              >could
              >> >> >come from various clients. So after using the bean the first client
              >> >> >stores the handle to the bean (actually the replica aware stub)
              >to
              >> >be
              >> >> >used by other clients to be able to obtain the bean. When another
              >> >> >client retrieves the handle gets the replica aware stub and makes
              >> >a
              >> >> >call to the bean the request seems to unpredictably go to any of
              >the
              >> >> >three servers rather than the primary server hosting that bean.
              >If
              >> >the
              >> >> >call goes to the primary server everything seems to work fine the
              >> >> >session data is available and it gets backed up on the secondary
              >> >> >server. If it happens to go to the secondary server a bean that
              >has
              >> >> >the correct session data services the request but gives the error
              >> >> ><Failed to update the secondary copy of a stateful session bean
              >from
              >> >> >home:ejb20-statefulSession-TraderHome>. Then any subsequent requests
              >> >> >to the primary server will not reflect changes made on the secondary
              >> >> >and vice versa. If the request happens to go to the third server
              >that
              >> >> >is not hosting an instance of that bean then the client receives
              >an
              >> >> >error that the bean was not available. From my understanding I
              >thought
              >> >> >the replica aware stub would know which server is the primary host
              >> >for
              >> >> >that bean and send the request there.
              >> >> >
              >> >> >Thanks in advance,
              >> >> >Justin
              >>
              >
              >
              

  • Hi, I have quick question about use of USEBEAN tag in SP2. When I specify a scope of SESSION for the java bean, it does not keep the values that I set for variable in the bean persistent.Thanks,Sonny

     

    Make sure that your bean is implementing the serializable interface and that
    you are accessing the bean from the session with the same name.
    Bryan
    "Sandeep Suri" <[email protected]> wrote in message
    news:[email protected]..
    Hi, I have quick question about use of USEBEAN tag in SP2. When I
    specify a scope of SESSION for the java bean, it does not keep the
    values that I set for variable in the bean persistent.Thanks,Sonny
    Try our New Web Based Forum at http://softwareforum.sun.com
    Includes Access to our Product Knowledge Base!

  • Retriving the bean into Abstract portal component

    Hello All,
    I need the bean value(Array Value) to display through Abstarct portal Component.
    How can i get the value in AP Component?
    Regards,
    Art Tech

    Hi
    Please look up the following link for extracting a bean value
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/cefed690-0201-0010-8480-9c5c6504b89e
    For setting the array:
    public void setValue(String[] arrValue1){
              arrValue = arrValue1;
    For retrieving array use in the following way:
    public  String[] getValue(){
    return arrValue;
    You need to add the following line in your java/jsp/component to access the bean
    <jsp:useBean id="myBean" scope="application/session" class="package.classname" />
    And then you can the required method of the bean using
    beanName.methodName();
    Regards
    Hope it helps

  • Java.lang.ClassCastException in jsp trying to access session bean

    Ok I'm totally stuck on this. I've been able to deploy my session bean facade to a bunch of entities bean with no problem. Now I'm trying to access the bean from a JSP. I can do a lookup ok, I can even do a PortableRemoteObject.narrow() ok, but when I try to actually cast the object I get an error. I can't understand why narrow works if the object is not of the correct type, when I do reflection I can verify that the object implements the interface I am trying to cast to. But when I do an instanceof the object from narrow is not the right type. I'm totally confused by this.
    Here's my jsp,
    <%@taglib uri="/com/sct/socrates/web/jsp/tld/UserAdmin.tld" prefix="UserAdmin" %>
    <%@ page import="java.sql.*" %>
    <%@ page import="javax.naming.*" %>
    <%@ page import="com.sct.socrates.useradmin.model.UserAdminHome" %>
    <%@page import="javax.rmi.PortableRemoteObject"%>
    <html>
    <body>
    <pre>
    <%
    try {
    InitialContext context = new InitialContext();
    Object object1 = context.lookup("com.sct.socrates.useradmin.model.UserAdminHome");
    out.println(object1.getClass().getName());
    Object object2 = PortableRemoteObject.narrow(object1, UserAdminHome.class);
    out.println(object2.getClass().getName());
    if (object2 instanceof UserAdminHome) out.println("is instance");
    Class[] list = object2.getClass().getInterfaces();
    for(int i=0;i<list.length;i++)
    out.println(list.getName());
    UserAdminHome home = (UserAdminHome) object2;
    } catch (Exception e){
    e.printStackTrace();
    %>
    </pre>
    </body>
    </html>
    Here's the output from the JSP,
    com.sct.socrates.useradmin.model._UserAdminHome_Stub
    com.sct.socrates.useradmin.model._UserAdminHome_Stub
    com.sct.socrates.useradmin.model.UserAdminHome
    Here's the server output,
    FINE: for host 127.0.0.1 trying to GET /socrates/jsp/guest/test.jsp, ntrans-j2ee reports: mapped uri "/jsp/guest/test.jsp" in context "/socrates" to resource
    FINE: context = StandardEngine[null].StandardHost[server1].StandardContext[socrates]
    FINE: contextPath = /socrates
    FINE: wrapper = StandardEngine[null].StandardHost[server1].StandardContext[socrates].StandardWrapper[jsp]
    FINE: servletPath = /jsp/guest/test.jsp
    FINE: pathInfo = null
    FINE: SingleSignOn[server1]: Process request for '/socrates/jsp/guest/test.jsp'
    FINE: SingleSignOn[server1]: Checking for SSO cookie
    FINE: SingleSignOn[server1]: SSO cookie is not present
    FINE: Authenticator[socrates]: Security checking request GET /socrates/jsp/guest/test.jsp
    FINE: Authenticator[socrates]: Checking constraint 'SecurityConstraint[community]' against GET /jsp/guest/test.jsp --> false
    FINE: Authenticator[socrates]: Checking constraint 'SecurityConstraint[user]' against GET /jsp/guest/test.jsp --> false
    FINE: Authenticator[socrates]: Checking constraint 'SecurityConstraint[community]' against GET /jsp/guest/test.jsp --> false
    FINE: Authenticator[socrates]: Checking constraint 'SecurityConstraint[moderator]' against GET /jsp/guest/test.jsp --> false
    FINE: Authenticator[socrates]: Checking constraint 'SecurityConstraint[admin]' against GET /jsp/guest/test.jsp --> false
    FINE: Authenticator[socrates]: No applicable constraint located
    FINE: Authenticator[socrates]: Not subject to any constraint
    FINE: JspEngine --> /jsp/guest/test.jsp
    FINE: ServletPath: /jsp/guest/test.jsp
    FINE: PathInfo: null
    FINE: RealPath: E:\dev\app_server\sun\appserv\domains\domain1\server1\applications\j2ee-apps\socrates_3\socrates_war\jsp\guest\test.jsp
    FINE: RequestURI: /socrates/jsp/guest/test.jsp
    FINE: QueryString: null
    FINE: ++++ Entered SecClientRequestInterceptor::send_request()
    FINE: Security context is null (nothing to add to service context)
    FINE: No SAS context element found in service context list
    FINE: ++++ Entered SecClientRequestInterceptor::receive_reply
    FINE: No SAS context element found in service context list
    FINE: Status to be set : 0
    FINE: Invoked receivedReply()
    FINE: ++++ Entered SecClientRequestInterceptor::send_request()
    FINE: Security context is null (nothing to add to service context)
    FINE: No SAS context element found in service context list
    FINE: ++++ Entered SecClientRequestInterceptor::receive_reply
    FINE: No SAS context element found in service context list
    FINE: Status to be set : 0
    FINE: Invoked receivedReply()
    FINE: service-j2ee: name = "com.sct.socrates.useradmin.model._UserAdminHome_Stub", codebase = ""
    FINER: service-j2ee: (thread context class loader: WebappClassLoader
    available:
    delegate: false
    repositories:
    /WEB-INF/classes/
    required:
    ----------> Parent Classloader:
    EJB CL:
    [com.iplanet.ias.loader.EJBClassLoader$URLEntry@e1df6e, com.iplanet.ias.loader.EJBClassLoader$URLEntry@13b9fb]
    FINER: service-j2ee: class "com.sct.socrates.useradmin.model._UserAdminHome_Stub" found via codebase, defined by EJB CL:
    [com.iplanet.ias.loader.EJBClassLoader$URLEntry@e1df6e, com.iplanet.ias.loader.EJBClassLoader$URLEntry@13b9fb]
    FINE: ++++ Entered SecClientRequestInterceptor::send_request()
    FINE: Security context is null (nothing to add to service context)
    FINE: No SAS context element found in service context list
    FINE: ++++ Entered SecClientRequestInterceptor::receive_reply
    FINE: No SAS context element found in service context list
    FINE: Status to be set : 0
    FINE: Invoked receivedReply()
    FINE: service-j2ee: name = "com.sct.socrates.useradmin.model._UserAdminHome_Stub", codebase = ""
    FINER: service-j2ee: (thread context class loader: WebappClassLoader
    available:
    delegate: false
    repositories:
    /WEB-INF/classes/
    required:
    ----------> Parent Classloader:
    EJB CL:
    [com.iplanet.ias.loader.EJBClassLoader$URLEntry@e1df6e, com.iplanet.ias.loader.EJBClassLoader$URLEntry@13b9fb]
    FINER: service-j2ee: class "com.sct.socrates.useradmin.model._UserAdminHome_Stub" found via codebase, defined by EJB CL:
    [com.iplanet.ias.loader.EJBClassLoader$URLEntry@e1df6e, com.iplanet.ias.loader.EJBClassLoader$URLEntry@13b9fb]
    WARNING: CORE3283: stderr: java.lang.ClassCastException: com.sct.socrates.useradmin.model._UserAdminHome_Stub
    WARNING: CORE3283: stderr: at jasper.jsp._guest._test_jsp._jspService(_test_jsp.java:89)
    WARNING: CORE3283: stderr: at org.apache.jasper.runtime.HttpJspBase.service(Unknown Source)
    WARNING: CORE3283: stderr: at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    WARNING: CORE3283: stderr: at com.iplanet.ias.web.jsp.JspServlet$JspServletWrapper.service(Unknown Source)
    WARNING: CORE3283: stderr: at com.iplanet.ias.web.jsp.JspServlet.serviceJspFile(Unknown Source)
    WARNING: CORE3283: stderr: at com.iplanet.ias.web.jsp.JspServlet.service(Unknown Source)
    WARNING: CORE3283: stderr: at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    WARNING: CORE3283: stderr: at org.apache.catalina.core.StandardWrapperValve.invokeServletService(Unknown Source)
    WARNING: CORE3283: stderr: at org.apache.catalina.core.StandardWrapperValve.access$000(Unknown Source)
    WARNING: CORE3283: stderr: at org.apache.catalina.core.StandardWrapperValve$1.run(Unknown Source)
    WARNING: CORE3283: stderr: at java.security.AccessController.doPrivileged(Native Method)
    WARNING: CORE3283: stderr: at org.apache.catalina.core.StandardWrapperValve.invoke(Unknown Source)
    WARNING: CORE3283: stderr: at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source)
    WARNING: CORE3283: stderr: at org.apache.catalina.core.StandardContextValve.invoke(Unknown Source)
    WARNING: CORE3283: stderr: at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source)
    WARNING: CORE3283: stderr: at org.apache.catalina.core.StandardHostValve.invoke(Unknown Source)
    WARNING: CORE3283: stderr: at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source)
    WARNING: CORE3283: stderr: at com.iplanet.ias.web.connector.nsapi.NSAPIProcessor.process(Unknown Source)
    WARNING: CORE3283: stderr: at com.iplanet.ias.web.WebContainer.service(Unknown Source)

    Please configure the classloader to delegate to the parent loader by specifying the following in WEB-INF/sun-web.xml (the Sun ONE Application Server specific deployment descriptor for web applications)
    <class-loader delegate="true"/>
    More information on this can be found at
    http://docs.sun.com/source/816-7150-10/dwdeploy.html#48102
    Thanks,
    Arvind

  • Can servlet access Serializable Bean ?

    This is my bean below.. My jsp pages can access this bean but my servlet cannot... Do I need to make remove the Serializable interface that I am implementing right now so servlet can access ? Can serlvet access beans ?
    import java.io.*;
    import java.sql.*;
    import javax.sql.*;
    import java.util.*;
    * Re-usable database connection class
    public class ConnectDB implements Serializable{
    // setup connection values to the database
    static final String DB_DRIVER = "";
    static final String myURL = "";
    static final String USERNAME = "";
    static final String PASSWORD = "";
    static Connection con = null;
         public ConnectDB(){}
         /* Returns a connection the file that calls the method*/
         public static Connection getConnection()
              try
                   Class.forName("oracle.jdbc.driver.OracleDriver");
                   con = DriverManager.getConnection("......");
              catch (Exception e)
                   e.printStackTrace();
              finally
              return con;
         /*Closes Connections*/     
         public static void closeConnection(Connection con)
              try
                   if (con != null)
                   con.commit();     
                   con.close();
              catch (Exception e)
                   e.printStackTrace();
    }

    A Servlet is just a Java class and so can access beans. Also, a JSP is translated to a servlet before execution so you already have a servlet accessing the bean.
    Can you post relevant code and error message?

  • Access managed beans in action methods

    Hi,
    I am a newbie in JSF. In my first page, I am getting input from the user and pass it to my business object for processing. My Business Object returns some results and i want to show it in page 2 which has a different backing bean. So I am accessing the bean as follows:
    FacesContext Ctx = FacesContext.getCurrentInstance();
    Map Params = Ctx.getExternalContext().getSessionMap();
    ResultBean rbean = Params.get("MyResultBean");MyResultBean is registered to have session scope in my faces-config file and is the backing-bean for my page 2.
    Then i set the results in rbean and forward to the page 2.
    Is this the right way of doing? Or are there any other way of doing it?
    Need your valuable suggestions.
    - Mani

    This article might be useful: http://balusc.xs4all.nl/srv/dev-jep-com.html
    By the way, why are you using capitalized variabe names? It makes them unreadable .. I am referring to Ctx and Params.
    This is Java, not C# or so ;)

  • Itunes 11.1.3.8 crashes when i access the store.

    I get this message when I try to access the store.
    Problem signature:
      Problem Event Name:          APPCRASH
      Application Name:          iTunes.exe
      Application Version:          11.1.3.8
      Application Timestamp:          5274a87d
      Fault Module Name:          KERNELBASE.dll
      Fault Module Version:          6.3.9600.16408
      Fault Module Timestamp:          523d4548
      Exception Code:          c06d007e
      Exception Offset:          00012eec
      OS Version:          6.3.9600.2.0.0.768.101
      Locale ID:          2057
      Additional Information 1:          5861
      Additional Information 2:          5861822e1919d7c014bbb064c64908b2
      Additional Information 3:          01d7
      Additional Information 4:          01d7340064827245f2249cd1f1a7c264
    I have tried reinstalling itunes and every other suggestion I could find. I am running windows 8.1 and this problem only started today. I have been successfully accessing the store for weeks now.
    Anyone have any ideas?

    I found this and it worked!!!
    kcp123456789
    Re: iTunes keeps crashing when I select iTunes store (Win 8) iTunes 11 
    Sep 26, 2013 5:43 AM (in response to Bristol1981a)
    I had this exact same problem.  I found a fix on another support post that worked perfectly for me.  Browse to C:\Program Files (x86)\Common Files\Apple\Apple Application Support and copy the filen named QTMovieWin.dll.  Then browse and past that file into C:\Program Files (x86)\iTunes.
    Hope this helps you.  My iTunes store is working fine now.
    God bless!!

  • Where to put the Bean class in a html- Bean- JSP setup

    Hi,
    The setup is simple, the front end is a html form, there is a Java Bean with set/get methods and finally a jsp which accesses the bean and prints the result.
    The problem is that it cannot locate the Bean class. I have compiled the bean class and stored the .class file in webapps/ROOT/WEB-INF/classes dir. The jsp and html files are located in the webapps/ROOT dir. Iam using tomcat 5.0.28, with ROOT context enabled. Is this because I need to set the CLASSPATH for Tomcat? Any pointers?
    Thanks

    No you don't need to set CLASSPATH.
    You need to put your bean in a package.
    As of java1.4, JSPs can not access beans that are in the default/unnamed pacakge.
    package mypackage
    public class MyClass
    and then the class would compile to
    WEB-INF/classes/mypackage/MyClass.class

  • How to access screen field in pai event

    Hi All,
    I have created a custom screen it has the field say matnr selected from the dictionay.NOw  how will I should access this field in PAI event module?
    Thanks in advance
    Mahesh

    just declare the same variable in your abap editor as per your layout field name.
    suppose in your layout input field name is matnr just declare
    data : matnr like mara-matnr.
    in pai module if you are using matnr it will give you the screen data.
    like
    module pai input.
    if matnr ne '1000'.
    message 'Error matnr is not 1000' type 'E'.
    endif.
    endmodule.
    reagards
    shiba dutta

  • Error on load: System.IO.IOException: The process cannot access the file : error in event viewer when users want to view documents from this third party deployed scan solution

    Error on load: System.IO.IOException: The process cannot access the file
    '\\server1\SCANSHARED\.pdf' because it is being used by another process.
       at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
       at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy)
       at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy)
       at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share)
       at System.IO.File.WriteAllBytes(String path, Byte[] bytes)
       at abc.Scan.Layouts.ICC.Scan.View.Page_Load(Object sender, EventArgs e)
    I faced this  error in event viewer  when users want to view documents from this third party deployed scan solution
    here I have two WFS servers  and they configured with load balancing in F5 .
    when I enable both servers in F5 I receive this error messages in 2nd server,
    when users want to view documents
    adil

    Do you have antiVirus installed on the sharepoint servers?
    These folders may have to be excluded from antivirus scanning when you use file-level antivirus software in SharePoint. If these folders are not excluded, you may see unexpected behavior. For example, you may receive "access denied" error messages when files
    are uploaded.
    Please follow this KB and exclude the folders from Scanning.
    http://support.microsoft.com/kb/952167
    Please remember to mark your question as answered &Vote helpful,if this solves/helps your problem. ****************************************************************************************** Thanks -WS MCITP(SharePoint 2010, 2013) Blog: http://wscheema.com/blog

  • "Event code: 3008 Event message: A configuration error has occurred" while accessing the sharepoint site.

    Hello All,
    Wish You Happy New Year to All in advance.
    while accessing the share point site i got the error message
    Server Error in '/' Application.
    Configuration Error
    Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.
    Parser Error Message: The element <forms> may only appear once in this section.
    Source Error:
    Line 104: <!--<forms loginUrl="/_layouts/log-in.aspx" />-->
    Line 105: <forms loginUrl="/_layouts/log-in.aspx" />
    Line 106: <forms loginUrl="/_layouts/log-in.aspx" />
    Line 107: <forms loginUrl="/_layouts/log-in.aspx" />
    Line 108: </authentication>
    Source File: C:\Inetpub\wwwroot\wss\VirtualDirectories\4545\web.config    Line:
    106
    Version Information: Microsoft .NET Framework Version:2.0.50727.3662; ASP.NET Version:2.0.50727.3658
    i have found event message in the event log
    Event code: 3008
    Event message: A configuration error has occurred.
    Event ID: 523cefee6a0943948cf01b4e9f476fff
    Event sequence: 77
    Event occurrence: 76
    Event detail code: 0
    Exception information:
        Exception type: ConfigurationErrorsException
        Exception message: The element <forms> may only appear once in this section. (C:\Inetpub\wwwroot\wss\VirtualDirectories\4545\web.config line 106)
    Request information:
        Request URL: http://beesppesxapp70:4545/_vti_bin/sitedata.asmx
        Request path: /_vti_bin/sitedata.asmx
        User host address: 172.16.20.80
        User:  
        Is authenticated: False
        Authentication Type:  
        Thread account name: abc\wss_setup
    Thread information:
        Thread ID: 1
        Thread account name: abc\wss_setup
        Is impersonating: False
        Stack trace:    at System.Configuration.BaseConfigurationRecord.EvaluateOne(String[] keys, SectionInput input, Boolean isTrusted, FactoryRecord factoryRecord, SectionRecord sectionRecord, Object parentResult)
       at System.Configuration.BaseConfigurationRecord.Evaluate(FactoryRecord factoryRecord, SectionRecord sectionRecord, Object parentResult, Boolean getLkg, Boolean getRuntimeObject, Object& result, Object& resultRuntimeObject)
       at System.Configuration.BaseConfigurationRecord.GetSectionRecursive(String configKey, Boolean getLkg, Boolean checkPermission, Boolean getRuntimeObject, Boolean requestIsHere, Object& result, Object& resultRuntimeObject)
       at System.Configuration.BaseConfigurationRecord.GetSection(String configKey)
       at System.Web.Configuration.RuntimeConfig.GetSectionObject(String sectionName)
       at System.Web.Configuration.RuntimeConfig.GetSection(String sectionName, Type type, ResultsIndex index)
       at System.Web.Configuration.RuntimeConfig.get_Authentication()
       at System.Web.Security.FormsAuthenticationModule.Init(HttpApplication app)
       at System.Web.HttpApplication.InitModulesCommon()
       at System.Web.HttpApplication.InitInternal(HttpContext context, HttpApplicationState state, MethodInfo[] handlers)
       at System.Web.HttpApplicationFactory.GetNormalApplicationInstance(HttpContext context)
       at System.Web.HttpApplicationFactory.GetApplicationInstance(HttpContext context)
       at System.Web.HttpRuntime.ProcessRequestInternal(HttpWorkerRequest wr)
     kindly advise me
    Thank a lot in advance

    Hi,
    As per the error logs it seems you have the Form element twice in your web config file.  Just take one or the other one out. if you did any changes in web. config file please share and elaborate little more about the changes if you have made recently before
    the error.
    Krishana Kumar http://www.mosstechnet-kk.com
    Please mark the replies and Proposed as answer if they help and solve your issue

  • Operations Manager Failed to Access the Windows Event Log and management server is showing warning state

    Hi,
    I am monitoring AD server from SCOM 2012 R2. My management server goes into waning state. When i run Health explorer then it come back in the healthy state but after some time it again goes into warning state. After seeing alert i found that a alert is coming
    again and again i.e.  Operations Manager Failed to Access the Windows Event Log.The description of alert is mention below
    The Windows Event Log Provider is still unable to open the DhcpAdminEvents event log on computer 'nc2vws12ad5.corp.nathcorp.com'.
    The Provider has been unable to open the DhcpAdminEvents event log for 64080 seconds.
    Most recent error details: The RPC server is unavailable.
    Please suggest me how to resolve this so that my management server will again come back in healthy state.
    Thanks
    Abhishek

    Hi Abhishek,
    As i mentioned earlier the Alert resolution says the same points.
    Can you give details on the below ?
    Is there really a log named "Dhcpadminevents" in the MS's Event viewer ?
    Did you recently configure any new alert where you mentioned "Dhcpadminevents"
    as a event log location ?
    If yes then what is the target you selected for the rule / monitor there ?
    Can you post the results for analysis ?
    Gautam.75801

Maybe you are looking for