Cfobject / cfinvoke problem in my application.cfc

Hello;
I am trying to use cfobject in my onsessionstart function in my application.cfc file. The cfobject is another application.cfc file I have in a sub directory in the web site, it runs the shopping cart. I am not firing this off properly and I was hoping someone could help me fix my code so it will operate properly.This is my invoke statement:
<cfobject name="SESSION.myShoppingCart" component="ShoppingCart">
<cfinvoke component="#SESSION.myShoppingCart#" method="getShoppingCart">
This is my whole argument statement for on session start:
<cffunction name="onSessionStart" returntype="any" output="true">
<cfset SESSION.created = now()> <!--- This sets off another session in the site --->
<cfobject name="SESSION.myShoppingCart" component="ShoppingCart">
<cfinvoke component="#SESSION.myShoppingCart#" method="getShoppingCart">
</cffunction>
this is my error:
Context validation error for tag cffunction.
The end tag </cffunction> encountered on line 80 at column 11 requires a matching start tag.
The error occurred in C:\website\Application.cfc: line 28
26 : <cffunction name="onSessionStart" returntype="any" output="true">
27 : <cfset SESSION.created = now()>
28 : <cfobject name="SESSION.myShoppingCart" component="ShoppingCart">
29 : <cfinvoke component="#SESSION.myShoppingCart#" method="getShoppingCart">
Can anyone help me? What do I need to do to set off my shopping cart functions on the cfc I am trying to invoke?
Thank You
CFmonger

this is what I am supposed to put in the on sessionstart function:
<cfobject name="SESSION.myShoppingCart" component="ShoppingCart">
But this throws the same error. I am reading this off of instructions from a book. Obviously the book is wrong. Is there a way to make that cfobject statement work? I don't want a return variable. I want the ShoppingCart.cfc that resides in the sub directory /donation/ShoppingCart.cfc to go into client memory, I don't need a return value, I need the shoppong cart application portion fired when they hit the web site, creating a "shopping cart" in session / client variables.
How would I do that using this tag? Thanks.
CFmonger

Similar Messages

  • CFLock Challenge with CFObject in Application.cfc

    I occasionally get a cflock error when running an application
    in the morning. I moved several cfobject lines into the
    application.cfc onApplicationStart method. Some of the methods in
    the objects use cflock to read a session variable.
    Here is the error:
    Cannot lock session scope. Cannot use cflock to lock the
    application or session shared scopes without these scopes being
    established through the use of the cfapplication tag. To use the
    session scope you need to enable session management. Application
    and/or Session variables must also be enabled in the ColdFusion
    Administrator. <br>The error occurred on line 5.

    Have you ensured the Application variables and Session
    variables are enabled in the Coldfusion Administrator?.
    If so, try replacing your <cfscript> block with normal
    <cfset> statements and see if it is working..

  • Application.cfc and invoking by url a cfc

    hi all!
    i have to invoke by url a cfc. like this...
    http://domain/cfcByUrl.cfc?method=get
    now, if i add application.cfc to root of my application, my
    cfc invoked by url not works! it return only a white page!
    what happen? where do i wrong?
    cfmx7.0.2 on linux
    thanks
    Rob

    vkr, thanks for your reply
    quote:
    You have to call the CFC's through the URL by passing the
    function and its arguments
    yes, it is.
    quote:
    You have to set your function access type to remote
    yes, it is.
    i make some testing.
    if i remove onRequest method in my application.cfc my cfc
    called by url works perfectly. but, i think, is not a good choice
    remove onRequest... :o) this is mine...
    <cffunction name="onRequest" output="Yes">
    <cfargument name="targetPage" type="string"
    required="yes" />
    <cfinclude template="#arguments.targetPage#" />
    </cffunction>
    i test this situation on linux and windows. i've the same
    problem.
    thank
    Rob

  • Am i supposed to invoke application.cfc?

    My website is always on the index.cfm page, do I just throw a <cfinvoke> tag in there to call the application.cfc?  Am I supposed to name it with an uppercase A (Application.cfc)?

    Am I supposed to name it with an uppercase A (Application.cfc)?
    Yes.
    My website is always on the index.cfm page, do I just throw a <cfinvoke> tag in there to call the application.cfc?
    No. Coldfusion instantiates Application.cfc automatically.

  • Work around for Application.cfc

    I have an Application.cfc file that outputs a header and footer page for every request.  That works wonderful but if I try to open a page that is doing a <cfgrid> using a CFC file than I get an error of "Error invoking CFC /GATS/CFC/purchaseOrder.cfc : Internal Server Error [Enable debugging by adding 'cfdebug' to your URL parameters to see more information]" when opening the page.
    Commenting out the header/footer include in the Application.cfc file lets the <cfgrid> populate with the CFC file.  Is there a fix or work around for this?
    Application.cfc file
    <cfcomponent output="false">
    <cffunction name="onRequestStart" returnType="boolean" output="true">
          <cfargument name="thePage" type="string" required="yes">
         <cfset PageName = GetFileFromPath(thePage)>
        <cfif not IsDefined("session.user.isAuthenticated") or
              session.user.isAuthenticated equal session.no>
          <cfif FindNoCase('index.cfm', PageName) is not 0>
            <cfelse>
              <cfset session.messages[1] = "Authentication required.">
              <cflocation url="#application.WebAddress#" addtoken="no">
          </cfif>
        </cfif>
        <cfif FindNoCase('index.cfm', PageName) is not 0>
          <cfset request.PageNavigation = "">
          <cfset request.Screen = "Login">
        </cfif>
        <cfif FindNoCase('mainMenu.cfm', PageName) is not 0>
          <cfset request.PageNavigation = "Home">
          <cfset request.Screen = "">
        </cfif>
        <cfif FindNoCase('purchaseOrder.cfm', PageName) is not 0>
          <cfset request.PageNavigation = '<a href="mainMenu.cfm">Home</a> &##8226; New Purchase Order'>
          <cfset request.Screen = "">
        </cfif>
        <cfif FindNoCase('logout.cfm', PageName) is not 0>
          <cfelse>
            <cfinclude template="includes/header.cfm">
        </cfif>
        <cfreturn true>
      </cffunction>
    <cffunction name="onRequestEnd" returnType="void" output="true">
          <cfargument name="thePage" type="string" required="yes">
        <cfset PageName = GetFileFromPath(thePage)>
        <cfif FindNoCase('logout.cfm', PageName) is not 0>
          <cfelse>
            <cfinclude template="includes/footer.cfm">
        </cfif>
      </cffunction>
    </cfcomponent>
    purchaseOrder.cfm
    <cfgrid name="AccountGrid" format="html" bind="cfc:GATS.CFC.purchaseOrder.GetQuantities({cfgridpage},{cfgridpagesize}, {cfgridsortcolumn}, {cfgridsortdirection})">
      <cfgridcolumn name="ID" header="ID" display="yes">
      <cfgridcolumn name="vendor_name" header="Name" display="yes">
    </cfgrid>
    I found this on the web:
    That error is due to our application.cfm having a single HTML comment at the
    start of the file. Apparently if your Application.cfm or Application.cfc file
    outputs ANYTHING, binds to CFCs with AJAX (via HTML CFGRID or CFAJAXPROXY, for
    example) do not work. The CFC will be called, but the data from it will never
    "flow" into the CFGRID. Removing the comment from the Application.cfm file took
    care of our CFGRID issue.
    This there a way to have an Application.cfc file that displays a header and footer for every page and have and
    have a page have a <cfgrid> in it?

    BKBK,
    I created the examples you posted and commenting out the header/footer lines in my Application.cfc displayed the cfgrid results (updating the query to a table I had).  Running the same example code with the header/footer included in the Application.cfc would not show the cfgrid results.
    I attached the Application.cfc file for review.
    Couldn't attach the file.
    Application.cfc
    <cfcomponent output="yes">
      <cfset this.name = "GATS">
      <cfset this.clientmanagement = "true">
      <cfset this.applicationtimeout = CreateTimeSpan("0","0","20","0")>
      <cfset this.sessionmanagement = "true">
      <cfset this.sessiontimeout = CreateTimeSpan("0","0","20","0")>
      <cfset this.scriptProtect = "true">
      <cfparam name="session.yes" default="Yes">
      <cfparam name="session.no" default="No">
      <cffunction name="onApplicationStart" returnType="boolean" output="no">
        <cfset application.Directory = "/GATS/">
        <cfset application.Datasource = "IA-webapplications">
        <cfset application.DatasourceGATS = "SBS-GATS">
        <cfreturn true>
      </cffunction>
      <cffunction name="onApplicationEnd" returntype="void" output="no">
        <cfargument name="ApplicationScope" required="yes" />
      </cffunction>
      <cffunction name="onSessionStart" returntype="void" output="no">
        <cflock scope="session" timeout="5" type="exclusive">
          <cfset session.no = "No">
          <cfset session.yes = "Yes">
          <cfset session.new = "New">
          <cfset session.user = StructNew()>
          <cfset session.user.isAuthenticated = session.no>
          <cfset session.user.emplid = ""> 
          <cfset session.user.userSSOId = "">
          <cfset session.user.firstName = "">
          <cfset session.user.lastName = "">
          <cfset session.user.name = "">
          <cfset session.messages = ArrayNew(1)>
          <cfset session.savedInputValues = ArrayNew(1)>
          <cfset session.filesTransferred = "">
        </cflock>
      </cffunction>
      <cffunction name="onSessionEnd" returntype="void" output="no">
        <cfargument name="SessionScope" required="yes">
        <cflock scope="session" timeout="5" type="exclusive">
          <cfset Arguments.SessionScope.user.isAuthenticated = session.no>
          <cfset Arguments.SessionScope.users.emplid = ""> 
          <cfset Arguments.SessionScope.user.userSSOId = "">
          <cfset Arguments.SessionScope.user.firstName = "">
          <cfset Arguments.SessionScope.user.lastName = "">
          <cfset Arguments.SessionScope.user.name = "">
        </cflock>
      </cffunction>
      <cffunction name="onRequestStart" returntype="void" output="yes">
        <cfargument type="String" name="TargetPage" required="yes">
        <cfset PageName = GetFileFromPath(TargetPage)>
        <cfif not IsDefined("session.user.isAuthenticated") or
              session.user.isAuthenticated equal session.no>
          <cfif FindNoCase('index.cfm', PageName) is not 0>
            <cfelse>
              <cfset session.messages[1] = "Authentication required.">
              <cflocation url="#application.WebAddress#" addtoken="no">
          </cfif>
        </cfif>
        <cfif FindNoCase('index.cfm', PageName) is not 0>
          <cfset request.PageNavigation = "">
          <cfset request.Screen = "Login">
        </cfif>
        <cfif FindNoCase('mainMenu.cfm', PageName) is not 0>
          <cfset request.PageNavigation = "Home">
          <cfset request.Screen = "">
        </cfif>
        <cfif FindNoCase('purchaseOrder.cfm', PageName) is not 0>
          <cfset request.PageNavigation = '<a href="mainMenu.cfm">Home</a> &##8226; New Purchase Order'>
          <cfset request.Screen = "">
        </cfif>
        <cfif FindNoCase('logout.cfm', PageName) is not 0>
          <cfelse>
            <cfinclude template="includes/header.cfm">
        </cfif>
      </cffunction>
      <cffunction name="onRequestEnd" returntype="void" output="yes">
        <cfargument type="String" name="TargetPage" required="yes">
        <cfset PageName = GetFileFromPath(TargetPage)>
        <cfif FindNoCase('logout.cfm', PageName) is not 0>
          <cfelse>
            <cfinclude template="includes/footer.cfm">
        </cfif>
        <cfif FindNoCase('sessionTerminated.cfm', PageName) is not 0>
          <cfinvoke method="onSessionEnd">
            <cfinvokeargument name="SessionScope" value="#session#">
          </cfinvoke>
        </cfif>
      </cffunction>
      <cffunction name="onError" returnType="void" output="no">
        <cfargument name="exception" required="true">
        <cfargument name="eventName" type="string" required="true">
        <cfthrow object="#arguments.exception#">       
      </cffunction>
    </cfcomponent>

  • Contribute and Application.cfc

    I'm building out a site that is contribute-ready, and also
    makes use of Coldfusion MX 7's Application.cfc page. The
    application.cfc page has an onRequestStart function that
    <cfincludes> the navigational elements. When I drop into edit
    mode for a page, the navigational elements disappear. This wouldn't
    be a problem, except that the link to the site style sheet is part
    of one of the <cfincludes>. So, my Contribute users can't
    make use of the site stylesheet, and can't see the page they're
    editing in the context of the navigational elements.
    Strangely enough, if I move the navigational elements out of
    the Application.cfc and <cfinclude> them directly on the
    individual pages, Contribute has no problem displaying them when in
    edit mode.
    Why would Contribute exclude Application.cfc when in edit
    mode, and is there a way to fix this?
    Thanks,
    Michael

    Hi Greg,
    No, I never got a response to this from Adobe, and wasn't
    able to get the site to work with Contribute unless I kept the
    <cfincludes> within the individual pages. Sorry I couldn't be
    more help, but let me know if you have better luck.
    Thanks,
    Michael

  • How to get Soap Request xml in application.cfc

    Hi
    if api getting soap request using cfhttp like below:
    <cfxml variable="mydata">
    <soapenv:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
       <soapenv:Header />
       <soapenv:Body>
           <ns:service_soap_call soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
            <login>test</login>
            <password>test</password>
          </ns:service_soap_call>
       </soapenv:Body>
    </soapenv:Envelope>
    </cfxml>
      <cfhttp url="http://sm.iclp-dubai.ae/research/wsdl/MyPointsBank.cfc?wsdl" method="post" charset="utf-8" result="myresult">
           type" value="text/xml">
            <cfhttpparam type="header" name="SOAPAction" value="">
           <cfhttpparam name="soapInput" type="xml" value="#trim(mydata)#"/>
    </cfhttp>
    then how to get Soap Request in application cfc.
    like :
    <cfif IsSOAPRequest() >
      <cfset soapreq = GetSOAPRequest() />
    </cfif>
    I want to validate the soap xml Request before calling targeted CFC.
    Any suggestion!.

    Let me see whether I understand. Are you attempting to achieve something like this:
    test.cfc
    <cfcomponent output="no">
    <cffunction name="testFunction" returntype="any" access="remote">
    <cfargument name="soapInput">
    <cfset var inputXML = arguments.soapInput>
    <cfset var soapBodyText="">
    <cfset var noBodyTextError="">
    <cftry>
        <cfset soapBodyText = xmlSearch(inputXML,"//soapenv:Body/text()")[1].xmlValue>
        <cfsavecontent variable="noBodyTextError"><?xml version="1.0" encoding="utf-8"?><soapenv:Envelope     xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <soapenv:Body> <soapenv:Fault> <faultcode>soapenv:Server.userException</faultcode> <faultstring>java.lang.Exception: Body not found.</faultstring></cfsavecontent>
        <cfif trim(soapBodyText) is "">
        <cfthrow>
        </cfif>
        <cfreturn inputXML>
    <cfcatch type="any">
    <cfreturn noBodyTextError>
    </cfcatch>
    </cftry>
    </cffunction>
    </cfcomponent>
    tester.cfm
    <cfxml variable="mydata">
            <soapenv:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:wor="https://www.worldmilesafrica.com">
       <soapenv:Header/>
       <soapenv:Body>
       </soapenv:Body>
    </soapenv:Envelope>
    </cfxml>
    <cfinvoke webservice = "http://127.0.0.1:8500/workspace/wsTest/test.cfc?wsdl"
              method = "testFunction"
               returnVariable = "result">
           <cfinvokeargument name="soapInput" value="#trim(mydata)#" >
    </cfinvoke>
    <cfdump var="#result#">

  • Application.cfc Form Validation

    Hi all. I posted this question on the
    site I got the
    example from, but they removed my question for whatever reason so
    I'll try here:
    Please click the link for the code:
    Click Here
    I tried this example, and it works, however a couple of
    things I'm trying to figure out:
    1. The validation errors change their
    order each time you re-submit, is there a way to control
    that?
    2. I tried populating the form
    elements with what was posted, but the form isn't posting anything,
    and I'm looking to see if anyone else has this problem
    Thanks.

    Hey.. Not sure what happened to my 2 points above. The
    preview looked fine before I submitted it. Weird!
    Anywho.....
    Thanks for your reply Dan.
    This (amongst other code) is what they put in there:
    <cffunction name="onError" returntype="void">
    <cfargument name="exception" required="true" />
    <cfargument name="eventName" type="String"
    required="true" />
    <cfif isDefined('exception.StackTrace') AND
    isDefined('exception.errors')
    AND exception.StackTrace contains
    'coldfusion.filter.FormValidationException'>
    <cfset session.validationError = exception.errors />
    <cfset session.stFormData = duplicate( form ) />
    <cflocation url="#cgi.HTTP_REFERER#" addtoken="false"
    />
    <cfelse>
    <cfthrow object="#exception#" />
    </cfif>
    </cffunction>
    So,why would this be a bad idea?
    Oh, and if the above code makes it ok to add to
    Application.cfc, then my quesitons 1 and 2 were:
    1. The validation errors return in different orders every
    time the form is posted, and was wondering how to control this.
    2. I couldn't get the form to post any values.

  • Tracking users in the Application.cfc, please help

    Hello;
    I wrote a small tracking system for my web site. I am trying
    to upfrade it to work in CF 8. Here is what I am doing.
    I had this code on the index.cfm page of my site. I am
    attempting to move it to the Application.cfc file. When I do, it
    registers in the DB every time the user hits a page or clicks a
    link. I don't want it to do that. I do want it to tell me when they
    hit the site, and if I can what page they came in on.
    Here is my code:
    <cfquery name="tracking" datasource="my-DB"
    dbtype="ODBC">
    INSERT INTO tracking (REMOTE_ADDR, HTTP_USER_AGENT,
    TRACK_DATE, PageID)
    VALUES('#REMOTE_ADDR#', '#HTTP_USER_AGENT#',
    #CreateOdbcDateTime(now())#)
    </cfquery>
    My pageID is where I want the information on what page the
    user came in on to go.
    I placed teh query inside a session function code, but it
    doesn't work at all right now, I need to limit the hits counted by
    the Application.cfm, if I place it inside the area of the app that
    is for global variables, it adds info to the DB everytime they
    click a link and I don't want that. As for the entry page of the
    user, I am trying to make it so if someone enters the site lets say
    on the about.cfm page, that is added to the db and so on. Is this
    possible? If so how would I do that?
    Here is my application.cfc code so far:
    <cfcomponent output="false">
    <cfset THIS.name = "my-web">
    <cfset this.sessionManagement="yes">
    <cfset this.clientManagement=true>
    <cffunction name="onApplicationStart" returntype="boolean"
    output="false">
    <cfset APPLICATION.appStarted = now()>
    <cfreturn true>
    </cffunction>
    <cffunction name="onApplicationEnd" returntype="void"
    output="false">
    <cfargument name="appScope" required="True">
    <cflog file="#THIS.name#" text="App ended after
    #dateDiff('n' , ARGUMENTS.appscope.appStarted,now())# minutes.">
    </cffunction>
    <cffunction name="onSessionStart" returntype="query"
    output="true">
    <cfquery name="tracking" datasource="creative"
    dbtype="ODBC">
    INSERT INTO tracking (REMOTE_ADDR, HTTP_USER_AGENT,
    TRACK_DATE)
    VALUES('#REMOTE_ADDR#', '#HTTP_USER_AGENT#',
    #CreateOdbcDateTime(now())#)
    </cfquery>
    </cffunction>
    <cffunction name="onRequestStart" returntype="boolean"
    output="true">
    <cfset request.datasource = "my-db">
    <cfset sitePath = "
    http://www.myweb">
    <!--- this is where I was putting the tracking code and it
    added to the DB everytime someone clicked a link. not what I want
    --->
    <!--- Start True Url Variables --->
    <cfloop
    list="#removeChars(cgi.path_info,1,len(cgi.script_name))#"
    delimiters="/" index="variableSet">
    <cfscript>
    variableName = "url." & listGetAt(variableSet,1,'.');
    expression = listGetAt(variableSet,2,'.');
    </cfscript>
    <cfparam name="#variableName#" default="#expression#">
    </cfloop>
    <!--- Finish True Url Variables --->
    <cfreturn true>
    </cffunction>
    </cfcomponent>
    Thank you.
    Phoenix

    I did a dump and got it to error out, so it is recognizing
    the session, but it doesn't add any info to the DB. I also had to
    change it, I had it like this:
    <cffunction name="onSessionStart" returntype="query"
    output="true">
    <cfquery name="tracking" datasource="my-db"
    dbtype="ODBC">
    INSERT INTO tracking (REMOTE_ADDR, HTTP_USER_AGENT,
    TRACK_DATE)
    VALUES('#REMOTE_ADDR#', '#HTTP_USER_AGENT#',
    #CreateOdbcDateTime(now())#)
    </cfquery>
    </cffunction>
    Changed it to this:
    <cffunction name="onSessionStart" returntype="any"
    output="true">
    <cfquery name="tracking" datasource="creative"
    dbtype="ODBC">
    INSERT INTO tracking (REMOTE_ADDR, HTTP_USER_AGENT,
    TRACK_DATE)
    VALUES('#REMOTE_ADDR#', '#HTTP_USER_AGENT#',
    #CreateOdbcDateTime(now())#)
    </cfquery>
    </cffunction>
    it was erroring on the query attribute before in the session
    function. Even that change didn't get it to work properly.

  • Problem in running application(using ADF) on BEA Weblogic Server

    Hi..,
    I am Gunardy Sutanto from Indonesia. Currently, I had a problem in deploying application which is using ADF framework in BEA Weblogic Server(WLS 8.1). I also add all the libraries which were required for running this application. But I found some error when I ran this application. About the error message that I found from log file which is generated by BEA Weblogic Server 8.1, herewith I attach the detail of the error message :
    <Error> <HTTP> <BEA-101020> <[ServletContext(id=27825828,name=bp_presentment,context-path
    =/bp_presentment)] Servlet failed with Exception
    oracle.jbo.PCollException: JBO-28030: Could not insert row into table PS_TXN, collection id 16,408, persistent id 1
    at oracle.jbo.PCollException.throwException(PCollException.java:39)
    at oracle.jbo.pcoll.OraclePersistManager.insert(OraclePersistManager.java:1845)
    at oracle.jbo.pcoll.PCollNode.passivateElem(PCollNode.java:561)
    at oracle.jbo.pcoll.PCollNode.passivate(PCollNode.java:684)
    at oracle.jbo.pcoll.PCollNode.passivateBranch(PCollNode.java:643)
    at oracle.jbo.pcoll.PCollection.passivate(PCollection.java:461)
    at oracle.jbo.server.DBSerializer.passivateRootAM(DBSerializer.java:294)
    at oracle.jbo.server.DBSerializer.passivateRootAM(DBSerializer.java:277)
    at oracle.jbo.server.ApplicationModuleImpl.passivateStateInternal(ApplicationModuleImpl.java:5119)
    at oracle.jbo.server.ApplicationModuleImpl.passivateState(ApplicationModuleImpl.java:5011)
    at oracle.jbo.server.ApplicationModuleImpl.doPoolMessage(ApplicationModuleImpl.java:7741)
    at oracle.jbo.common.ampool.ApplicationPoolImpl.sendPoolMessage(ApplicationPoolImpl.java:3923)
    at oracle.jbo.common.ampool.ApplicationPoolImpl.doManagedCheckin(ApplicationPoolImpl.java:2161)
    at oracle.jbo.common.ampool.ApplicationPoolImpl.releaseApplicationModule(ApplicationPoolImpl.java:1261)
    at oracle.jbo.common.ampool.SessionCookieImpl.releaseApplicationModule(SessionCookieImpl.java:717)
    at oracle.jbo.common.ampool.SessionCookieImpl.releaseApplicationModule(SessionCookieImpl.java:634)
    at oracle.jbo.common.ws.WSApplicationModuleImpl.endRequest(WSApplicationModuleImpl.java:2672)
    at oracle.adf.model.bc4j.DCJboDataControl.endRequest(DCJboDataControl.java:1283)
    at oracle.adf.model.servlet.ADFBindingFilter.invokeEndRequest(ADFBindingFilter.java:300)
    at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:249)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
    at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:6724)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
    at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3764)
    at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2644)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:219)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:178)
    ## Detail 0 ##
    java.lang.ClassCastException
    at oracle.jbo.pcoll.OraclePersistManager.updateBlobs(OraclePersistManager.java:1613)
    at oracle.jbo.pcoll.OraclePersistManager.insert(OraclePersistManager.java:1832)
    at oracle.jbo.pcoll.PCollNode.passivateElem(PCollNode.java:561)
    at oracle.jbo.pcoll.PCollNode.passivate(PCollNode.java:684)
    at oracle.jbo.pcoll.PCollNode.passivateBranch(PCollNode.java:643)
    at oracle.jbo.pcoll.PCollection.passivate(PCollection.java:461)
    at oracle.jbo.server.DBSerializer.passivateRootAM(DBSerializer.java:294)
    at oracle.jbo.server.DBSerializer.passivateRootAM(DBSerializer.java:277)
    at oracle.jbo.server.ApplicationModuleImpl.passivateStateInternal(ApplicationModuleImpl.java:5119)
    at oracle.jbo.server.ApplicationModuleImpl.passivateState(ApplicationModuleImpl.java:5011)
    at oracle.jbo.server.ApplicationModuleImpl.doPoolMessage(ApplicationModuleImpl.java:7741)
    at oracle.jbo.common.ampool.ApplicationPoolImpl.sendPoolMessage(ApplicationPoolImpl.java:3923)
    at oracle.jbo.common.ampool.ApplicationPoolImpl.doManagedCheckin(ApplicationPoolImpl.java:2161)
    at oracle.jbo.common.ampool.ApplicationPoolImpl.releaseApplicationModule(ApplicationPoolImpl.java:1261)
    at oracle.jbo.common.ampool.SessionCookieImpl.releaseApplicationModule(SessionCookieImpl.java:717)
    at oracle.jbo.common.ampool.SessionCookieImpl.releaseApplicationModule(SessionCookieImpl.java:634)
    at oracle.jbo.common.ws.WSApplicationModuleImpl.endRequest(WSApplicationModuleImpl.java:2672)
    at oracle.adf.model.bc4j.DCJboDataControl.endRequest(DCJboDataControl.java:1283)
    at oracle.adf.model.servlet.ADFBindingFilter.invokeEndRequest(ADFBindingFilter.java:300)
    at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:249)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
    at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:6724)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
    at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3764)
    at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2644)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:219)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:178)
    I hope this is enough for somebody for solving this problem. If someone have the solution for this problem, please contact me by e-mail to [email protected].
    Thanks,
    Gunardy

    I already set the value for jbo.server.internal_connection and then deployed to Weblogic Server. When I was tested the application, all the records from table had shown on the screen but I found the application can't insert row to table PS_TXN. I I want to know it always happened?
    Herewith I attach the detail log from log file which was generated by Weblogic Server:
    oracle.jbo.PCollException: JBO-28030: Could not insert row into table PS_TXN, collection id 162, persistent id 1     at oracle.jbo.PCollException.throwException(PCollException.java:39)
         at oracle.jbo.pcoll.OraclePersistManager.insert(OraclePersistManager.java:1845)
         at oracle.jbo.pcoll.PCollNode.passivateElem(PCollNode.java:561)
         at oracle.jbo.pcoll.PCollNode.passivate(PCollNode.java:684)
         at oracle.jbo.pcoll.PCollNode.passivateBranch(PCollNode.java:643)
         at oracle.jbo.pcoll.PCollection.passivate(PCollection.java:461)
         at oracle.jbo.server.DBSerializer.passivateRootAM(DBSerializer.java:294)
         at oracle.jbo.server.DBSerializer.passivateRootAM(DBSerializer.java:277)
         at oracle.jbo.server.ApplicationModuleImpl.passivateStateInternal(ApplicationModuleImpl.java:5119)
         at oracle.jbo.server.ApplicationModuleImpl.passivateState(ApplicationModuleImpl.java:5011)
         at oracle.jbo.server.ApplicationModuleImpl.doPoolMessage(ApplicationModuleImpl.java:7741)
         at oracle.jbo.common.ampool.ApplicationPoolImpl.sendPoolMessage(ApplicationPoolImpl.java:3923)
         at oracle.jbo.common.ampool.ApplicationPoolImpl.doManagedCheckin(ApplicationPoolImpl.java:2161)
         at oracle.jbo.common.ampool.ApplicationPoolImpl.releaseApplicationModule(ApplicationPoolImpl.java:1261)
         at oracle.jbo.common.ampool.SessionCookieImpl.releaseApplicationModule(SessionCookieImpl.java:717)
         at oracle.jbo.common.ampool.SessionCookieImpl.releaseApplicationModule(SessionCookieImpl.java:634)
         at oracle.jbo.common.ws.WSApplicationModuleImpl.endRequest(WSApplicationModuleImpl.java:2672)
         at oracle.adf.model.bc4j.DCJboDataControl.endRequest(DCJboDataControl.java:1283)
         at oracle.adf.model.servlet.ADFBindingFilter.invokeEndRequest(ADFBindingFilter.java:300)
         at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:249)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:6316)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:317)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:118)
         at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3622)
         at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2569)
         at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
         at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)
    ## Detail 0 ##
    java.lang.ClassCastException
         at oracle.jbo.pcoll.OraclePersistManager.updateBlobs(OraclePersistManager.java:1613)
         at oracle.jbo.pcoll.OraclePersistManager.insert(OraclePersistManager.java:1832)
         at oracle.jbo.pcoll.PCollNode.passivateElem(PCollNode.java:561)
         at oracle.jbo.pcoll.PCollNode.passivate(PCollNode.java:684)
         at oracle.jbo.pcoll.PCollNode.passivateBranch(PCollNode.java:643)
         at oracle.jbo.pcoll.PCollection.passivate(PCollection.java:461)
         at oracle.jbo.server.DBSerializer.passivateRootAM(DBSerializer.java:294)
         at oracle.jbo.server.DBSerializer.passivateRootAM(DBSerializer.java:277)
         at oracle.jbo.server.ApplicationModuleImpl.passivateStateInternal(ApplicationModuleImpl.java:5119)
         at oracle.jbo.server.ApplicationModuleImpl.passivateState(ApplicationModuleImpl.java:5011)
         at oracle.jbo.server.ApplicationModuleImpl.doPoolMessage(ApplicationModuleImpl.java:7741)
         at oracle.jbo.common.ampool.ApplicationPoolImpl.sendPoolMessage(ApplicationPoolImpl.java:3923)
         at oracle.jbo.common.ampool.ApplicationPoolImpl.doManagedCheckin(ApplicationPoolImpl.java:2161)
         at oracle.jbo.common.ampool.ApplicationPoolImpl.releaseApplicationModule(ApplicationPoolImpl.java:1261)
         at oracle.jbo.common.ampool.SessionCookieImpl.releaseApplicationModule(SessionCookieImpl.java:717)
         at oracle.jbo.common.ampool.SessionCookieImpl.releaseApplicationModule(SessionCookieImpl.java:634)
         at oracle.jbo.common.ws.WSApplicationModuleImpl.endRequest(WSApplicationModuleImpl.java:2672)
         at oracle.adf.model.bc4j.DCJboDataControl.endRequest(DCJboDataControl.java:1283)
         at oracle.adf.model.servlet.ADFBindingFilter.invokeEndRequest(ADFBindingFilter.java:300)
         at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:249)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:6316)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:317)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:118)
         at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3622)
         at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2569)
         at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
         at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)
    >
    Besides that, I found new error when I was starting Weblogic Server. Herewith, I attach the detail of the error message:
    java.lang.NoClassDefFoundError: org/apache/commons/collections/FastHashMap$KeySet
         at org.apache.commons.collections.FastHashMap.keySet(Unknown Source)
         at org.apache.struts.action.ActionServlet.destroyDataSources(ActionServlet.java:769)
         at org.apache.struts.action.ActionServlet.destroy(ActionServlet.java:431)
         at weblogic.servlet.internal.ServletStubImpl$ServletDestroyAction.run(ServletStubImpl.java:1086)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:317)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:118)
         at weblogic.servlet.internal.ServletStubImpl.destroyServlet(ServletStubImpl.java:569)
         at weblogic.servlet.internal.ServletStubImpl.destroyServlet(ServletStubImpl.java:596)
         at weblogic.servlet.internal.ServletStubImpl.destroyServlet(ServletStubImpl.java:581)
         at weblogic.servlet.internal.WebAppServletContext.destroyServlets(WebAppServletContext.java:5797)
         at weblogic.servlet.internal.WebAppServletContext.destroy(WebAppServletContext.java:5675)
         at weblogic.servlet.internal.ServletContextManager.removeContext(ServletContextManager.java:187)
         at weblogic.servlet.internal.HttpServer.unloadWebApp(HttpServer.java:706)
         at weblogic.servlet.internal.WebAppModule.destroyContexts(WebAppModule.java:764)
         at weblogic.servlet.internal.WebAppModule.rollback(WebAppModule.java:742)
         at weblogic.j2ee.J2EEApplicationContainer.rollbackModule(J2EEApplicationContainer.java:2942)
         at weblogic.j2ee.J2EEApplicationContainer.rectifyClassLoaders(J2EEApplicationContainer.java:1429)
         at weblogic.j2ee.J2EEApplicationContainer.prepare(J2EEApplicationContainer.java:1176)
         at weblogic.j2ee.J2EEApplicationContainer.prepare(J2EEApplicationContainer.java:1031)
         at weblogic.management.deploy.slave.SlaveDeployer$ComponentActivateTask.prepareContainer(SlaveDeployer.java:2634)
         at weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.createContainer(SlaveDeployer.java:2584)
         at weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.prepare(SlaveDeployer.java:2506)
         at weblogic.management.deploy.slave.SlaveDeployer.processPrepareTask(SlaveDeployer.java:833)
         at weblogic.management.deploy.slave.SlaveDeployer.prepareDelta(SlaveDeployer.java:542)
         at weblogic.management.deploy.slave.SlaveDeployer.prepareUpdate(SlaveDeployer.java:500)
         at weblogic.drs.internal.SlaveCallbackHandler$1.execute(SlaveCallbackHandler.java:25)
         at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
         at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)
    >
    So, I need someone to sove this problem. I am looking forward for hearing from you.
    Thanks,
    Gunardy

  • When I try to open contacts from the icloud control panel on my windows 7 PC, I get an error message: can't load contacts. There was a problem loading the application.

    When I try to open contacts from the icloud control panel on my windows 7 PC, I get an error message: can't load contacts. There was a problem loading the application.

  • App Store problem, appear an application update that does not exist applications

    I have an iMac 2.5 Ghz Intel Core I5 and operating system Mac OS X Version 10.7.3
    The problem is an application (Angry Birds) in my app store's update section that doesn't exist my installed applications.
    It has been seen update section for two months and that is created by an account which is not my account
    How can I remove this object from my app store's update section?
    <Edited by Host>

    Hi..
    Unfortunately, it sounds like you are the subject of pirated software.
    Follow Dahveed's help here >  app update available but not an app on...: Apple Support Communities
    You can report this to Apple using the email form here >  Apple - Support - Mac App Store - Contact Support

  • Problem while running application on sun one 8 application server.

    Dear All,
    We have a strange problem in JAS8 application. When ever we access the site from any browser for which the proxy is configured, and when we click on any of the tab ( Link or Web Page) after login, the application is redirecting back to Login page. We seem to be losing the session information at the application and so it continually redirects back to the login page, thinking that a user is not logged in with the current session.
    But when we access the same site with the same login id from browser for which proxy is not configured it is working fine.
    Does anyone has a solution to this problem.
    Message was edited by:
    tiwari1982

    This means your application client component is trying to access an entry within its component environment "java:comp/env/ejb/SimpleDemo" but there is no entry by that name. You'll need to make sure you define an ejb-ref within the application-client.xml and map the remote ejb dependency to the global JNDI name of the target Remote EJB within sun-application-client.xml.

  • Problem while running application on Java Application Server 8

    Dear All,
    We have a strange problem in JAS8 application. When ever we access the site from any browser for which the proxy is configured, and when we click on any of the tab ( Link or Web Page) after login, the application is redirecting back to Login page. We seem to be losing the session information at the application and so it continually redirects back to the login page, thinking that a user is not logged in with the current session.
    But when we access the same site with the same login id from browser for which proxy is not configured it is working fine.
    Message was edited by:
    tiwari1982

    What is the size of the Jpg images???
    Almost all j2me enabled devices have bad compatibility with Images of size greater than a few kbs.
    As of present working with images greater than 50kb is not worth the time spent on development.
    Some others will tell u that SE phones are good but trust me out of experience it can cause a hell lot of problems.
    Thanks
    Pradeep G.

  • Hello, I have this problem on updating applications on my iPhone 4s 5.1.1 i dont know if you can help me with. when ever i want to update an application on apple store i get a different user name then mine(slamdance@cracked.by) this user name is not mine

    Hello,
    I have this problem on updating applications on my iPhone 4s 5.1.1 (jail broken) i dont know if you can help me with.
    when ever i want to update an application on apple store i get a different user name then mine([email protected]) this user name is not mine but its always there only on updating my app's.
    thanking you in advance for your kind help.

    Under the Terms of Use of this forum it is prohibited to discuss jail breaking. By jail breaking your iPhone you void any warranty you may have and forfeit any support from this forum.

Maybe you are looking for

  • Invoice reference on Payment advice

    Hi Gurus', I  am printing payment advice through T-Code F-58 where I am getting the invoice reference (which is a long text from Vendor invoice) but its not coming for one business area. Please inform if any futher settings need to be done. Regards,

  • How to see Summarized Hierarchy for Variances after variance calculation

    Hi, How to see Summarized Hierarchy for Variances after variance calculation. Thanks Sunitha

  • What's the story with Launchpad app location?

    Got a new MBP. Spent an hour setting up pages in Launchpad. Realized the sold computer, straight from the Apple Store, had 10.8 installed. Had to update to 10.8.2 to run some apps. Reboot and the Launchpad pages are FUBARed. What's up with that? It's

  • How can i restore if screen is black?

    i got the black screen on my i phone 5 took it back to store , its about 2 weeks past apples 1 yr warranty but service provider is going to warranty it because i have ins.but i have now backed up my phone to my mac but how can i clear phone to exchan

  • All my camera photos was disappear after update Album app

    After updated Album app version 5.4.A.0.20 from update center, all photos which took by Xperia Z1 was disappear! only left photo which transfer from old phone and edited photo. i had restart my Z1 and still the same. by the way, my camera is directly