ADFC-00025: The ADF controller has not been successfully initialized.

I am using JDeveloper 11.1.2.0.0, create a simple ADF face page, which is running fine in Inetgrated Weblogic server, and package it as a War file by using Jdeveloper, I chose Weblogic 10.3 as the target server. I deployed the War file to Weblogic managed server on the Unix box by using its console. The deployment is fine and the web application is active. I get ControllerException when I run the page. Please see the exception log. I don't know what goes wrong. Thank you very much for your help.
[ServletContext@20496013[app:TestDeployServer module:TestDeployServer.war path:/TestDeployServer spec-version:2.5]] Servlet failed with Exception oracle.adf.controller.ControllerException: ADFC-00025: The ADF controller has not been successfully initialized. at oracle.adfinternal.controller.util.Utils.createAndLogControllerException(Utils.java:212) at oracle.adfinternal.controller.application.AdfcAppInitializer.initialize(AdfcAppInitializer.java:110) at oracle.adfinternal.controller.state.AdfcContext.initialize(AdfcContext.java:93) at oracle.adfinternal.controller.state.AdfcContext.initialize(AdfcContext.java:79) at oracle.adfinternal.controller.application.WindowLifecycleLogic.windowOpened(WindowLifecycleLogic.java:60) at oracle.adfinternal.controller.application.AdfcWindowLifecycleListener.windowOpened(AdfcWindowLifecycleListener.java:61) at oracle.adfinternal.controller.application.AdfcWindowLifecycleListener.processWindowLifecylce(AdfcWindowLifecycleListener.java:42) at oracle.adfinternal.view.faces.webapp.rich.RichWindowManagerFactory$ApplicationWindowListeners.processWindowLifecylce(RichWindowManagerFactory.java:246) at oracle.adfinternal.view.faces.webapp.rich.RichWindowManager._fireWindowLifecycleEvent(RichWindowManager.java:496) at oracle.adfinternal.view.faces.webapp.rich.RichWindowManager._handleWindowOpened(RichWindowManager.java:536) at oracle.adfinternal.view.faces.webapp.rich.RichWindowManager.renderLoopbackPage(RichWindowManager.java:907) at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:109) at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:468) at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:60) at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:468) at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:293) at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:199) at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56) at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56) at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3730) at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3696) at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321) at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120) at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2273) at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2179) at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1490) at weblogic.work.ExecuteThread.execute(ExecuteThread.java:256) at weblogic.work.ExecuteThread.run(ExecuteThread.java:221)

You asked this question in a wrong forum. You should have asked it in {forum:id=83} because the question is related to ADF Faces but not to WebLogic.
ADF Faces application cannot be deployed as a WAR. You should deploy the application as EAR because ADF Faces applications need some resources which are deployed as part of EAR (e.g. some OPSS configuration filles, some ADF configuration files, JDBC DataSources, etc.).
Dimitar

Similar Messages

  • Oracle.adfinternal.controller.savepoint.SavePointException: ADFC-08008: The ADF Controller is unable to insert a savepoint record for ID

    I implemented a save point in a task flow by creating a save point in a method action The following is the code from managed bean for creating the save point:
                 ControllerContext cc = ControllerContext.getInstance();
    if (cc != null) {
    SavePointManager mgr = cc.getSavePointManager();
    if (mgr != null) {
    String id = mgr.createSavePoint();
    savePointId = id;
    It worked fine in local (Integrated Weblogic server). It also worked fine initially when I deployed the changes to the DEV weblogic server. But after a couple of days, in DEV server I get the following error everytime when trying to create a save point:
    Caused By: oracle.adfinternal.controller.savepoint.SavePointException: ADFC-08008: The ADF Controller is unable to insert a savepoint record for ID '4d233555-ea0c-4bae-9f17-cc6c
    7124870f'. oracle.adfinternal.controller.savepoint.SavePointUtil.createAndLogSavePointException(SavePointUtil.java:56)
            at oracle.adfinternal.controller.savepoint.SavePointDBPersistManager.insertSavePoint(SavePointDBPersistManager.java:245)
            at oracle.adfinternal.controller.savepoint.DBSavePointManagerImpl.storeSavePoint(DBSavePointManagerImpl.java:127)
            at oracle.adfinternal.controller.savepoint.SavePointManagerImpl.storeSavePoint(SavePointManagerImpl.java:301)
            at oracle.adfinternal.controller.savepoint.SavePointManagerImpl.createAndStoreSavePoint(SavePointManagerImpl.java:257)
            at oracle.adfinternal.controller.savepoint.SavePointManagerImpl.createSavePoint(SavePointManagerImpl.java:187)
            at oracle.adfinternal.controller.savepoint.SavePointManagerImpl.createSavePoint(SavePointManagerImpl.java:116)
            at view.security.errormanagement.ManageErrorsMB.saveTaskFlow(ManageErrorsMB.java:213)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:60)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
            at java.lang.reflect.Method.invoke(Method.java:611)
            at com.sun.el.parser.AstValue.invoke(Unknown Source)
            at com.sun.el.MethodExpressionImpl.invoke(Unknown Source)
            at oracle.adf.controller.internal.util.ELInterfaceImpl.invokeMethod(ELInterfaceImpl.java:173)
            at oracle.adfinternal.controller.activity.MethodCallActivityLogic.execute(MethodCallActivityLogic.java:163)
            at oracle.adfinternal.controller.engine.ControlFlowEngine.executeActivity(ControlFlowEngine.java:1035)
            at oracle.adfinternal.controller.engine.ControlFlowEngine.doRouting(ControlFlowEngine.java:926)
            at oracle.adfinternal.controller.engine.ControlFlowEngine.doRouting(ControlFlowEngine.java:824)
            at oracle.adfinternal.controller.engine.ControlFlowEngine.routeFromActivity(ControlFlowEngine.java:554)
            at oracle.adfinternal.controller.engine.ControlFlowEngine.performControlFlow(ControlFlowEngine.java:158)
            at oracle.adfinternal.controller.application.NavigationHandlerImpl.handleAdfcNavigation(NavigationHandlerImpl.java:115)
            at oracle.adfinternal.controller.application.NavigationHandlerImpl.handleNavigation(NavigationHandlerImpl.java:84)
            at org.apache.myfaces.trinidadinternal.application.NavigationHandlerImpl.handleNavigation(NavigationHandlerImpl.java:50)
            at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:130)
            at org.apache.myfaces.trinidad.component.UIXCommand.broadcast(UIXCommand.java:190)
            at org.apache.myfaces.trinidad.component.UIXCollection.broadcast(UIXCollection.java:157)
            at org.apache.myfaces.trinidad.component.UIXTable.broadcast(UIXTable.java:279)
            at oracle.adf.view.rich.component.UIXTable.broadcast(UIXTable.java:145)
            at oracle.adf.view.rich.component.rich.data.RichTable.broadcast(RichTable.java:479)
            at oracle.adf.view.rich.component.fragment.UIXRegion.broadcast(UIXRegion.java:159)
            at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent$1.run(ContextSwitchingComponent.java:130)
            at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent._processPhase(ContextSwitchingComponent.java:461)
            at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent.broadcast(ContextSwitchingComponent.java:134)
            at oracle.adf.view.rich.component.fragment.UIXInclude.broadcast(UIXInclude.java:112)
            at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent$1.run(ContextSwitchingComponent.java:130)
            at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent._processPhase(ContextSwitchingComponent.java:461)
            at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent.broadcast(ContextSwitchingComponent.java:134)
            at oracle.adf.view.rich.component.fragment.UIXInclude.broadcast(UIXInclude.java:106)
            at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.broadcastEvents(LifecycleImpl.java:1129)
            at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:353)
            at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:204)
            at javax.faces.webapp.FacesServlet.service(FacesServlet.java:312)
            at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
            at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:122)
            at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:468)
            at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:60)
            at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:468)
            at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:293)
            at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:199)
            at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
            at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
            at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:111)
            at java.security.AccessController.doPrivileged(AccessController.java:284)
            at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:313)
            at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:413)
            at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:94)
            at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:161)
            at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71)
            at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
            at oracle.dms.servlet.DMSServletFilter.doFilter(DMSServletFilter.java:136)
            at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
            at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
            at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
            at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3715)
            at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3681)
            at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
            at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
            at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2277)
            at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2183)
            at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1454)
            at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
            at weblogic.work.ExecuteThread.run(ExecuteThread.java:178)
    Caused By: java.sql.SQLException: Connection has already been closed.
            at weblogic.jdbc.wrapper.PoolConnection.checkConnection(PoolConnection.java:58)
            at weblogic.jdbc.wrapper.Connection.preInvocationHandler(Connection.java:94)
            at weblogic.jdbc.wrapper.Connection.prepareCall(Connection.java:543)
            at oracle.adfinternal.controller.savepoint.SavePointDBPersistManager.insertSavePoint(SavePointDBPersistManager.java:221)
            at oracle.adfinternal.controller.savepoint.DBSavePointManagerImpl.storeSavePoint(DBSavePointManagerImpl.java:127)
            at oracle.adfinternal.controller.savepoint.SavePointManagerImpl.storeSavePoint(SavePointManagerImpl.java:301)
            at oracle.adfinternal.controller.savepoint.SavePointManagerImpl.createAndStoreSavePoint(SavePointManagerImpl.java:257)
            at oracle.adfinternal.controller.savepoint.SavePointManagerImpl.createSavePoint(SavePointManagerImpl.java:187)
            at oracle.adfinternal.controller.savepoint.SavePointManagerImpl.createSavePoint(SavePointManagerImpl.java:116)
            at view.security.errormanagement.ManageErrorsMB.saveTaskFlow(ManageErrorsMB.java:213)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:60)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
            at java.lang.reflect.Method.invoke(Method.java:611)
    At the bottom of the stack, this statement "Caused By: java.sql.SQLException: Connection has already been closed." intrigues me, but why this error occurs after a couple of days or after particular number of connections or access to the application.
    This same issue is also happening in all environments including PROD. Please help. JDeveloper version used is 11.1.2.1.0.

    We got the solution from Oracle support. 
    Passivation Fails With Error "Connection has already been closed" in PoolConnection.checkConnection() (Doc ID 1330271.1). Problem is caused by the WebLogic Server Connection Pool feature "Inactive Connection Timeout". When this parameter is set up, WLS will forcibly release reserved connections back into the pool. This is a problem for ADF BC that relies on keeping the JDBC connection associated to its
    Application Module instance.
    Set the "Inactive Timeout Session" to 0 (default), so that the JDBC connection stays active while
    the corresponding Application Module instance is active:
    Thanks....

  • I'm trying to verify my apple id but when i log into icloud to get the email it says 'the apple id has not been verifed.' So how do i verify my account if it wont let me log into to icloud mail?

    I'm trying to verify my apple id but when i log into icloud to get the email it says 'the apple id has not been verifed.' So how do i verify my account if it wont let me log into to icloud mail? stressing me out please help me

    You have to respond to the verification email that Apple should have sent to you by clicking the Verify Now link.  Make sure you check the email address you used to set up your iCloud account.  This would not normally be an @icloud.com email address.  Also make sure you check the spam/junk folder as well as the inbox.  If it isn't there, go to https://appleid.apple.com, click Manage your Apple ID, sign in, click on Name, ID and Email addresses on the left, then to the right click Resend under your Primary Email Address to resend the verification email.

  • The EJB bondmgr has not been tested succesfully

    Hi THere,
    After deployed an EJB jar file, I am using Testing tab from the console, getting the msg "The EJB bondmgr has not been tested succesfully".
    Can any one tell me what is the problem??
    Thanks,
    Vinnie
    Here is the ejb-jar.xml and weblogic-ejb-jar.xml:
    <ejb-jar>
    <enterprise-beans>
    <session>
    <ejb-name>bondmgr</ejb-name>
    <home>bonds.ejb.BondMgrHome</home>
    <remote>bonds.ejb.BondMgrRemote</remote>
    <ejb-class>bonds.ejb.BondMgrEJB</ejb-class>
    <session-type>Stateless</session-type>
    <transaction-type>Container</transaction-type>
    </session>
    </enterprise-beans>
    <assembly-descriptor>
    <container-transaction>
    <method>
    <ejb-name>bondmgr</ejb-name>
    <method-name>*</method-name>
    </method>
    <trans-attribute>NotSupported</trans-attribute>
    </container-transaction>
    </assembly-descriptor>
    </ejb-jar>
    <weblogic-ejb-jar>
    <weblogic-enterprise-bean>
    <ejb-name>bondmgr</ejb-name>
    <stateless-session-descriptor>
    <pool>
    <max-beans-in-free-pool>100</max-beans-in-free-pool>
    <initial-beans-in-free-pool>15</initial-beans-in-free-pool>
    </pool>
    <stateless-clustering>
    <stateless-bean-is-clusterable>True</stateless-bean-is-clusterable>
    <stateless-bean-methods-are-idempotent>True</stateless-bean-methods-are-idempotent>
    </stateless-clustering>
    </stateless-session-descriptor>
    <reference-descriptor>
    <resource-description>
    <res-ref-name>jdbc/demoPool</res-ref-name>
    <jndi-name>DevDataSource</jndi-name>
    </resource-description>
    </reference-descriptor>
    <enable-call-by-reference>True</enable-call-by-reference>
    <jndi-name>bondmgr.BondMgrHome</jndi-name>
    </weblogic-enterprise-bean>
    <weblogic-ejb-jar>

    Is it using a local interface and NOT a remote interface? I found that local interfaces
    were not found even though they appear in the list of EJB jndi names.
    Matthew Summers <[email protected]> wrote:
    I'm using JBuilder9's EJB Designer to create CMP Entity Beans. After
    successful deployment to WLS8.1, I use the mydomain> EJB Deployments>
    myEJB>Testing>Test This EJB tool, I get the following error:
    "The EJB myEJB has not been tested successfully. There was a problem
    determining the JNDI Name of the given bean."
    I didn't have this issue when I was running WLS7.1. I'm not doing
    anything differently in JBuilder9 than when I was running WLS7.1.
    Any Ideas? Help? Please?

  • I bought the game from the iTunes process has not been completed?

    I bought the game from the iTunes process has not been completed?

    If you are getting a message to contact iTunes support to complete it then you can contact them via this page (these are user-to-user forums) : http://www.apple.com/support/itunes/contact/ - click on Contact iTunes Store Support on the right-hand side of the page

  • TS3694 I bought the iphone 5 has not been one week do not understand why the home key of the time activities at stops working, not crash or fall. hope its help, probably due to software, not hardware failure, what do I do now?

    I bought the iphone 5 has not been one week do not understand why the home key of the time activities at stops working, not crash or fall. hope its help, probably due to software, not hardware failure, what do I do now?

    Restore iPhone with current iTunes on computer. See if better. If still problem, make Genius reservation or set up Service and take or send to Apple for resolution. Of if easier for you, take receipt and iPhone, box and everything and return to where you bought it.

  • Over the last few wks, i have lost several important file. Even the support team has not been able to recover them. Pls offer advice. I use microsoft office on my macbook pro, which is less than a year old.ce.

    Over the last few wks, i have lost several important file. Even the support team has not been able to recover them. Pls offer advice. I use microsoft office on my macbook pro, which is less than a year old.

    pklfromarlington wrote:
    Bob, Hate to steal your thunder but am hooked to an external hard drive using Time Machine and er information is where it shoudl be. Yes, I have combed the files, used Finder and any other tools I know.
    You did not steal my thunder. You asked for advice, I provided advice. I assumed that since you nor the "support team" could find your files that you did not have any backup. You should have told us you do regular backups. We have no way to know otherwise unless you tell us.

  • How to tackle the error - " The Lead Selection has not been set in view "?

    Hi Guys,
    I'm getting this error " The Lead Selection has not been set in view " . If any one has faced the same problem , then please guide me . I am new to WD ABAP so finding it difficult to track the reason.
    TIA,
    Vishesh

    Hi Pradeep,
    I have already checked  "Initialisation Lead Selection" property . I have faced the same problem in another view also there it got solved by changing the cardinality.  In this case, I had tried both cardinality and Lead selection property  but nothing  is working.
    Thanx.

  • Getting "The Lead selection has not been set in view"Error during runtime

    Hi Guys,
    I'm getting  this error " The Lead Selection has not been set in view " . If any one has  faced the same problem , then please guide me .  I am new to WD ABAP so finding it difficult to track the reason.
    TIA
    Moderator Message: Please search the forum before posting basic messages. Thread locked
    Edited by: Neil Gardiner on Oct 1, 2010 3:48 PM

    Hi Pradeep,
    I have already checked  "Initialisation Lead Selection" property . I have faced the same problem in another view also there it got solved by changing the cardinality.  In this case, I had tried both cardinality and Lead selection property  but nothing  is working.
    Thanx.

  • The required index has not been created yet in the search engine

    Hi,
    I am trying to change the inspection plan trying to add master insp.characterstics in QP02 the system is giving the following error: "The required index has not been created yet in the search engine".  As per the solution for that error The administration transaction is SES_ADMIN.
    Through the Goto menu, you can enter the relevant customizing directly.
    The index was required for: Business object = QPMK
    Object type = 1
    It is already there. I don't know why still it is showing the error.
    How can i fix this?
    Pl help me. Thanks.
    Madhu

    Hi,
       Not so sure this applies as
    1] The field is using a custom search help which correctly appears for data selection in each case. Its only when we push the go button that the index missing error ishappening for the particular user.
    2] We cloned the user  id for the user having the issue and the clone has no problem at all using the search help.
    Weird huh?
    Ross

  • Unable to start T-sql Debugging . could not connect to computer'.'.the workastaion service hase not been started

    hello
    when i excute code in sql server 2008, this error appear:
    unable to start T-sql Debugging . could not connect to computer'.'.the workastaion service hase not been started.
    what do i do?
    thanks

    hello
    when i excute code in sql server 2008, this error appear:
    unable to start T-sql Debugging . could not connect to computer'.'.the workastaion service hase not been started.
    what do i do?
    thanks
    Hello,
    This forum is to discuss and ask questions about the Debugging tools of
    Visual Studio, Visual Studio Profiler tools, and Visual Studio Ultimate IntelliTrace, it seems like that your issue is out of the support range which is regarding
    Using the Transact-SQL Debugger, if that is the case, I would recommend you post this issue in the following forum like this thread
    Unable to start T-SQL debuging.
    SQL Server>Transact-SQL
    Regards,
    Carl
    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.

  • E Alternative I have locked and I want to change and jealousy, but the mail that has not been added recently activated I want a solution

    E Alternative I have locked and I want to change and jealousy, but the mail that has not been added recently activated I want a solution

    What?????
    No clue what you're talking about. Repost in your native language.

  • HT1848 my ipod will not update.  I have plugged it into itunes and authorizing the computer but, it still says that all of the purchased product has not been transfered.

    my ipod will not update.  I have plugged it into itunes and authorizing the computer but, it still says that all of the purchased product has not been transfered.  It keeps telling me to authorize the computer which I have done.  The purchased items were purchased using an $10 gift card, would that have anything to do with it?
    Thanks,

    We won't know until you try the procedure.   The reset will not affect the content of the iPod.
    Stedman

  • The ConnectionString property has not been initialized random error

    Hi,
    Can someone please help me?
    I randomly get an error when running my website:
    The ConnectionString property has not been initialized.
    First time I run the web page it works. Second time it fails. Is this got anything to do with static methods?
    This is my code in DAL layer:
    ConStrings.cs
    public class ConStrings
    /// </summary>
    public static string PizzaDeliveryConnectionString
    get
    // get from PL web.config
    string myconnectionString = ConfigurationManager.ConnectionStrings["PizzaDeliveryConnectionString"].ConnectionString;
    return myconnectionString;
    public static SqlConnection GetPizzaDeliveryConnection()
    return new SqlConnection(PizzaDeliveryConnectionString);
    DLCustomer.cs
    public class DLCustomer
    static SqlConnection connString = DL.ConStrings.GetPizzaDeliveryConnection();
    public static DataSet GetCustomerByPhoneNumber(string phonenumber)//static is good for returing data from db
    DataSet ds = null;
    ds = new DataSet();
    try
    using (var connection = connString)//using doesn't require connection closed
    connection.Open();
    using (SqlCommand cmd = new SqlCommand("GetCustomerByPhoneNumber", connection))
    cmd.Connection = connection;
    cmd.CommandType = System.Data.CommandType.StoredProcedure;
    cmd.Parameters.AddWithValue("@phonenumber", phonenumber);
    using (SqlDataAdapter da = new SqlDataAdapter(cmd))
    da.Fill(ds, "CustomersTable");
    return ds;
    catch (SqlException ex)
    return ds;
    BUSINESS LAYER
    Customer.cs
    public class Customer
    private string phonenumber;
    private DL.DLCustomer customerData;
    public int CustomerId { get; set; }
    public string CustomerName { get; set; }
    public String PhoneNumber
    get
    return this.phonenumber;
    set
    this.phonenumber = value;
    if (this.PhoneNumber == "")
    throw new Exception("Please provide Tel ...");
    public Customer () // Default Constructor
    //An instance of the Data access layer!
    customerData = new DL.DLCustomer();
    /// Function Find customer. Calls the
    /// function in Data layer.
    /// It returns the details of the customer using
    /// customer ID via a Dataset to GUI tier.
    /// </SUMMARY>
    public static DataSet GetCustomerByPhoneNumber(Customer customer)
    if (customer.phonenumber == "")
    throw new Exception("Please provide phonenumber to search");
    DataSet data = null;
    data = DL.DLCustomer.GetCustomerByPhoneNumber(customer.phonenumber);
    return data;
    Presentation layer
    protected void btnOrder_Click(object sender, EventArgs e)
    Customer customer = new Customer();
    //string dt = Request.Form[txtDate.UniqueID];
    customer.PhoneNumber = txtPhoneNumber.Text;
    // ClassLibrary1.DbFunc1.GetCustomerByPhoneNumber(customer) ;
    rptCustomers.DataSource = Customer.GetCustomerByPhoneNumber(customer);
    rptCustomers.DataBind();
    web.config
    <configuration>
    <connectionStrings>
    <add name="PizzaDeliveryConnectionString" connectionString="Data Source=mycomp;Initial Catalog=PizzaDelivery;Integrated Security=True" providerName="System.Data.SqlClient" />
    </connectionStrings>

    Hi
    collie12,
    Since you develop in web page. Please try to use
    System.Web.Configuration.WebConfigurationManager.ConnectionStrings["YouConnStringName"].ConnectionString;
    This requires references to System.Configuration.dll and System.Web.dll.
    WebConfigurationManager.ConnectionStrings Property gets the Web site's connection strings.
    Please also try to remove your static keyWords, it will have an effect on "using" statement.
    Best regards,
    Kristin
    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.

  • I pre-ordered my iPhone 5 online a week ago but the payment still has not been taking out of my banks.

    I pre-ordered my iPhone 5 online a week ago but the payment still has not been taking out of my banks.
    Please can anyone tell me why?  Also when will the full purchase amount be take from my checking account.
    Thanks for your help with this matter.
    Paul & Alan

    When your phone ships is when you will be charged.

Maybe you are looking for

  • Best Practice to Assign Network

    Hi Experts, I have a question - What is best practice to Assign networks. Is it Header assignment or Activity Assignment. I have a requirement which asks for a WBS Level Cost and Revenue posting while settlement. I followed the standard design of hav

  • Can anyone recommend any carousels for webpages?

    Hi all, I have been trying to get jcarousel to load in content from an outside html page, as oppsed to just loading in a image but I have been unsuccesfull in doing this (you can see my post trying to get this to work at, if you know how to get that

  • Safari search bar searches google russia

    I have just had a problem with safari. When I use the search bar it searches using google russia. I have solved the problem by resetting safari but I wanted to know what causes this and specifically is it a security issue.

  • Reports 6i questions

    1. WHAT IS MINIMUM NO OF GROUPS REQD FOR A MATRIX REPORT 2. What are Lexical parameters 3. WHAT IS ANCHOR IN REPORT.WHAT ARE ITS PROPERTIES

  • After manual brs confuguration over how to strat the testing

    Hi, this is bramha from accenture. my qustion is once configuration is over how to starrt the testing. like to upload the beging balence and ending balence.