XSLT Error using XSQL:

I am getting this error:
Oracle XML Developers Kit 10.1.0.4.2 - Production
XML-25011: Error processing XSLT stylesheet:
file:///C:/Products/jboss-5.0.1.GA/server/default/deploy/ontrack.ear/ontrack.war/reports/manifest/container_lbl.xsl
file:/C:/Products/jboss-5.0.1.GA/server/default/deploy/ontrack.ear/ontrack.war/reports/manifest/container_lbl.xsl:
XML-22043: (Error) Extension function error: Method not found 'generate'
Any ideas ?
Thanks,

After some shuffling of jar files, I now get:
Oracle XML Developers Kit 10.1.0.4.2 - Production
XML-25018: Unexpected Error Occurred processing stylesheet container_lbl.xsl
java.lang.ClassCastException: org.apache.xerces.dom.ElementNSImpl cannot be cast to oracle.xml.parser.v2.XMLNode
at oracle.xml.parser.v2.XSLExprValue.setExtensionValue(XSLExprValue.java:658)
at oracle.xml.parser.v2.XSLExtFunctions.callStaticMethod(XSLExtFunctions.java:122)
at oracle.xml.parser.v2.XPathExtFunction.evaluateMethod(XPathExtFunction.java:298)
at oracle.xml.parser.v2.XPathExtFunction.evaluate(XPathExtFunction.java:225)
at oracle.xml.parser.v2.XSLCopyOf.processAction(XSLCopyOf.java:103)
at oracle.xml.parser.v2.XSLNode.processChildren(XSLNode.java:417)
at oracle.xml.parser.v2.XSLResultElement.processAction(XSLResultElement.java:180)
at oracle.xml.parser.v2.XSLNode.processChildren(XSLNode.java:417)
at oracle.xml.parser.v2.XSLResultElement.processAction(XSLResultElement.java:180)
at oracle.xml.parser.v2.XSLNode.processChildren(XSLNode.java:417)
at oracle.xml.parser.v2.XSLForEach.processAction(XSLForEach.java:142)
at oracle.xml.parser.v2.XSLNode.processChildren(XSLNode.java:417)
at oracle.xml.parser.v2.XSLResultElement.processAction(XSLResultElement.java:180)
at oracle.xml.parser.v2.XSLNode.processChildren(XSLNode.java:417)
at oracle.xml.parser.v2.XSLResultElement.processAction(XSLResultElement.java:180)
at oracle.xml.parser.v2.XSLNode.processChildren(XSLNode.java:417)
at oracle.xml.parser.v2.XSLResultElement.processAction(XSLResultElement.java:180)
at oracle.xml.parser.v2.XSLNode.processChildren(XSLNode.java:417)
at oracle.xml.parser.v2.XSLResultElement.processAction(XSLResultElement.java:180)
at oracle.xml.parser.v2.XSLNode.processChildren(XSLNode.java:417)
etc...
Any help would be most welcome,
Thanks,
Craig.

Similar Messages

  • ParseTDS error using XSQL demos

    I recently installed the Oracle XSQL servlet engine. When I try one of the demos that make use of object views, I get the following error message:
    <?xml version="1.0" encoding="UTF-8" ?>
    <ERROR>oracle.xml.sql.OracleXMLSQLException: Fout bij ontleden typedescriptor: parseTDS</ERROR>
    There is some Dutch in this, which is a bit odd, but the text "Fout bij ontleden typedescriptor" means "Error parsing type descriptor". What could be wrong?

    I am using an Oracle 8.1.6 server. On the machine that runs the XSQL servlet, I have an 8.0.5 Net8 connection, but I assume that this is not important, since this should not be used by the Oracle JDBC driver. All examples work as long as the objecty views are not used.
    I don't know how this parser works internally, but I think it might have something to do with the absence of some of the field names in the query result.
    Here's what I mean: when I try the insurance demo, and select example three, I get the correct result. When I execute the associated query in SQL*Plus, I get the following result:
    SQL> select c.claimpolicy.primaryinsured as Customer
    2 from insurance_claim_view c
    3 where c.claimpolicy.primaryinsured.homeaddress.state = 'CA'
    4 ;
    CUSTOMER(CUSTOMERID, FIRSTNAME, LASTNAME, HOMEADDRESS(STREET, CITY, STATE, ZIP))
    POLICYHOLDER_T(1044, 'Paul', 'Astoria', ADDRESS_T('123 Cherry Lane', 'SF', 'CA', 94132))
    POLICYHOLDER_T(1044, 'Paul', 'Astoria', ADDRESS_T('123 Cherry Lane', 'SF', 'CA', 94132))
    POLICYHOLDER_T(1045, 'Martina', 'Boyle', ADDRESS_T('55 Belden Place', 'SF', 'CA', 94102))
    POLICYHOLDER_T(1045, 'Martina', 'Boyle', ADDRESS_T('55 Belden Place', 'SF', 'CA', 94102))
    As you can see, all field names, which serve as tags in the XML result, are present. From this result, you can derive that there is a sub-object HOME_ADDRESS consisting of the fields STREET, CITY, STATE and ZIP.
    For insurance example four, the result in SQL*Plus looks like this:
    SQL> select v.claimpolicy.primaryinsured.homeaddress as address,
    2 v.settlements
    3 from insurance_claim_view v
    4 ;
    ADDRESS(STREET, CITY, STATE, ZIP)
    SETTLEMENTS(PAYDATE, AMOUNT, APPROVER)
    ADDRESS_T('123 Cherry Lane', 'SF', 'CA', 94132)
    SETTLEMENTS_T(PAYMENT('05-JAN-99', 7600, 'JCOX'))
    ADDRESS_T('123 Cherry Lane', 'SF', 'CA', 94132)
    SETTLEMENTS_T(PAYMENT('15-MAR-98', 1800, 'MFOX'), PAYMENT('23-MAR-98', 7800, 'ULOWE'))
    ADDRESS_T('55 Belden Place', 'SF', 'CA', 94102)
    SETTLEMENTS_T(PAYMENT('01-JUL-97', 1500, 'JCOX'))
    ADDRESS_T('55 Belden Place', 'SF', 'CA', 94102)
    SETTLEMENTS_T(PAYMENT('05-JAN-99', 7600, 'JCOX'))
    The result contains a reference to the object PAYMENT, but the definition of this object cannot be derived from the column names.
    If the parser indeed uses these column names to derive an object structure, this may be the cause, but the question is: what went wrong during the installation that caused this problem?

  • Error using XSQL 10 servlet

    I am using the XSQL servlet from the xdk_nt_10_1_0_2_0_production.zip package. When I run a example I always get the following error (NoSuchMethodError) I am using the xmlparserv2.jar from the xdk\lib dir. What could be wrong?
    java.lang.NoSuchMethodError
    at oracle.xml.util.QxName.<init>(QxName.java:65)
    at oracle.xml.util.QxNameHash.add(QxNameHash.java:116)
    at oracle.xml.util.QxNameHash.create(QxNameHash.java:72)
    at oracle.xml.parser.v2.XMLEntity.<init>(XMLEntity.java:136)
    at oracle.xml.parser.v2.XMLEntity.<init>(XMLEntity.java:156)
    at oracle.xml.parser.v2.DTD.<clinit>(DTD.java:1031)
    at oracle.xml.parser.v2.NonValidatingParser.<init>(NonValidatingParser.j
    ava:155)
    at oracle.xml.parser.v2.XMLParser.<init>(XMLParser.java:150)
    at oracle.xml.parser.v2.DOMParser.<init>(DOMParser.java:84)
    at oracle.xml.xsql.XSQLParserHelper.parse(XSQLParserHelper.java:104)
    at oracle.xml.xsql.XSQLConfigManager.reloadConfigFile(XSQLConfigManager.java:315)

    I am also getting the same error with the following call;
    OracleXMLSave xs2 = new OracleXMLSave(this.dbConnection,
    LimitsWorkflowXDKObjectDAO.LIMITS_WF_O_TABLE);
    if ( xs2 == null ) System.out.println("XML_SAVE IS NULL");
    else
    xs2.setKeyColumnList(pkArray);
    xs2.setIgnoreCase(true);
    xs2.setRowTag(LimitsWorkflowXDKObjectDAO.LIMITS_WF_O_ROW_TAG);
    if (dateFormat != null)
    xs2.setDateFormat(dateFormat);
    rows = xs2.insertXML(xmlDoc);
    javax.xml.namespace.QName.(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V
         at oracle.xml.util.QxName.(QxName.java:65)
         at oracle.xml.util.QxNameHash.add(QxNameHash.java:116)
         at oracle.xml.util.QxNameHash.create(QxNameHash.java:72)
         at oracle.xml.parser.v2.XMLEntity.(XMLEntity.java:136)
         at oracle.xml.parser.v2.XMLEntity.(XMLEntity.java:156)
         at oracle.xml.parser.v2.DTD.(DTD.java:1031)
         at oracle.xml.parser.v2.NonValidatingParser.(NonValidatingParser.java:155)
         at oracle.xml.parser.v2.XMLParser.(XMLParser.java:150)
         at oracle.xml.parser.v2.DOMParser.(DOMParser.java:84)
         at oracle.xml.sql.dml.OracleXMLSave.initParser(OracleXMLSave.java:300)
         at oracle.xml.sql.dml.OracleXMLSave.saveXML(OracleXMLSave.java:2370)
         at oracle.xml.sql.dml.OracleXMLSave.insertXML(OracleXMLSave.java:1352)

  • Error using XSQL to generate RSS feeds on Unix

    I`m using an XSQL file used with a stylesheet to render an RSS 2.0 feed.
    RSS readers can pick the feed up successfully when I used a Windows based Oracle Application server installation but not when it was migrated to a Unix based server.
    Both servers do successfuly render the RSS feed into Internet Explorer as raw XML which looks identical.
    Any ideas?

    Check the content type of the response comming from your Unix server. There may be a different content type value for one of the HTTP header, which have some impact on your RSS reader.
    Using FireFox is another way to see if there are subtille differences in the responses that IE does not detect.
    Hope this helps,
    Eric

  • User defined function using xsql

    Hello,
    We defined the java function in xslt. When we tried to declare the namespace, it is giving the error "http://www.oracle.com/...."
    expected. Is it a bug. If not what is the correct syntax to denfined the userdefined namespace and functions.
    thanks
    nidhi
    null

    Also, Chapter 16 of Building Oracle XML Applications is all about extending XSQL Pages and XSLT Stylesheets using Java. It covers how to debug them, too.
    Steve Muench
    Development Lead, Oracle XSQL Pages Framework
    Lead Product Manager for BC4J and Lead XML Evangelist, Oracle Corp
    Author, Building Oracle XML Applications
    null

  • Reg - XSLT Mapping using stylesheet exception during test

    Hi experts,
    I am new to SAP PI. Currently i am working on PI's XSLT Mapping using Stylusstudio.
    I got error *Transformer Configuration Exception occurred when loading XSLT <name>.xsl; details: Could not compile stylesheet*.
    I tried test by selecting SAP XML TOOLKIT too, then i am facing
    *com.sap.engine.lib.xml.parser.NestedSAXParseException: Fatal Error: com.sap.engine.lib.xml.parser.ParserException: XMLParser: Prefix 'a' is not mapped to a namespace (:main:, row:4, col:15)(:main:, row=4, col=15) -> com.sap.engine.lib.xml.parser.ParserException: XMLParser: Prefix 'a' is not mapped to a namespace (:main:, row:4, col:15)*.
    Kindly help me to overcome this issue.

    Hi,
    Simply your XSLT file is not a well-formed XML. Check your syntax. You could also use the XML Tools plugin to Notepad++ to help you determine where the syntax error is precisely.
    Moreover, this error "Prefix 'a' is not mapped to a namespace" might mean that you are using a tag: <a:something>, but "a" is not properly declared as a namespace, for instance like: xmlns:a="something.sap.com".
    Hope this helps,
    Greg

  • Code Sample: Easy RFC Lookup From XSLT Mappings Using a Java Helper Class

    Hi everyone,
    This is just a shameless plug for my article: <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/05a3d62e-0a01-0010-14bc-adc8efd4ee14">Easy RFC Lookup From XSLT Mappings Using a Java Helper Class</a>. I hope you're interested in reading it, and I welcome your comments in this thread.
    Kind regards,
    Thorsten

    Hi Stefan. Thanks for your post. I have already done that. It still does not work. As a base for my java helper class I have usesd Thorstens code.
    The problem is quite confusing. I will try to ouline both issues here.
    First of all, when try to test from within the Operation Mapping, I always get a java error saying it cannot find the communication channel (it is there and working because I have tested it with the RFCLookup in graphical mapping). I have found a way to work around this, and that is to uncheck the "Use SAP XMLToolkit" checkbox --> switch to test tab, enter my ReceiverService in the parameter tab (header parameter) --> switch back to Definition tab, check the "Use SAP XMLToolkit" checkbox --> switch to Test tab and run the test. Then the XSLT and call to java helper class will work. Of course this is not really something you want to do all the time. Maybe there is a bug.
    Secondly, it never works when I try to do it "live". I am using a file adapter to pick up one file, convert it and a file adapter to drop the converted file. I get the following error code in SXMB_MONI.
    <?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
    <!--  Request Message Mapping   -->
    <SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="">
      <SAP:Category>Application</SAP:Category>
      <SAP:Code area="MAPPING">TRANSFORMER_CONF_EX</SAP:Code>
      <SAP:P1>ATJ_Accounting2XML_Accounting.xsl</SAP:P1>
      <SAP:P2>http://rd.accounting.logica.com</SAP:P2>
      <SAP:P3>fd552c30-bad9-11dd-9761-c21dac1b818c</SAP:P3>
      <SAP:P4>-1</SAP:P4>
      <SAP:AdditionalText />
      <SAP:Stack>TransformerConfigurationException triggered while loading XSLT mapping ATJ_Accounting2XML_Accounting.xsl; http://rd.accounting.logica.comfd552c30-bad9-11dd-9761-c21dac1b818c-1</SAP:Stack>
      <SAP:Retry>M</SAP:Retry>
      </SAP:Error>
    Using an XSLT without a call to a java helper class, works just fine.
    I am totally at a loss here. Any more input would be much appreciated.
    /Patrik

  • Xslt error: the expression does not evaluate to a node-set

    hi guys - i'm really down because i cannot find / understand my xsl error and i have to finish my work very very soon
    the error message (by using xalan to create from the xml file my html output) is the following:
    xslt error: the expression does not evaluate to a node-set
    and the code fragement is:
    <xsl:template name="getNext">
    <xsl:param name="currentKnoten" />
    <xsl:for-each select="$currentKnoten"> //error is in this line
    </xsl:for-each>
    </xsl:template>please... help me....

    ok thanks!!! this saved me some time ;-)
    now i go back to the origin problem... my main idea is the following xsl code... may u can see here the problem with the node site.. but i think u need the xml file or?
    however this is my relevant xsl code:
    <xsl:template match="DATA">
              <xsl:element name="process">
                   <xsl:attribute name="name">
                        <xsl:value-of select="@name" />
                   </xsl:attribute>
                   <xsl:apply-templates select="INSTANCE"/>
              </xsl:element>
         </xsl:template>
    <xsl:template match="INSTANCE[@class='Data']">
              <xsl:element name="node">
                   <xsl:attribute name="name">
                        <xsl:value-of select="@name" />
                   </xsl:attribute>
                   <xsl:attribute name="class">
                        <xsl:value-of select="@class" />
                   </xsl:attribute>
                   <xsl:call-template name="copyAttributes" />
                   <xsl:variable name="nextNodes">
                        <xsl:value-of select="key('keyGetData', key('keyFrom', @name)/../TO/@instance)" />
                   </xsl:variable>
                   <xsl:call-template name="getNext">
                        <xsl:with-param name="currentNode" select="$nextNodes" />
                   </xsl:call-template>
              </xsl:element>
    </xsl:template>     
    <xsl:template name="getNext">
              <xsl:param name="currentNode"/>
              <xsl:for-each select="$currentNode">
                   <xsl:element name="node">
                        <xsl:attribute name="name"><xsl:value-of select="@name"/></xsl:attribute>
                        <xsl:attribute name="class"><xsl:value-of select="@class"/></xsl:attribute>
                        <xsl:variable name="nextNodes">
                             <xsl:value-of select="key('keyGetData', key('keyFrom', @name)/../TO/@instance)"/>
                        </xsl:variable>
                        <xsl:call-template name="copyAttributes"/>
                        <xsl:call-template name="getNext">
                             <xsl:with-param name="currentNode" select="$nextNodes"/>
                        </xsl:call-template>
                   </xsl:element>
              </xsl:for-each>
         </xsl:template>
         <xsl:template name="copyAttributes">
              <xsl:for-each select="descendant::*">
                   <xsl:copy>
                        <xsl:copy-of select="@*|node()"/>
                   </xsl:copy>
              </xsl:for-each>
         </xsl:template>
         <xsl:template match="@*|node()">
              <xsl:apply-templates/>
         </xsl:template>

  • Any way to limit memory which XSLT processor uses?

    Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
    PL/SQL Release 11.2.0.3.0 - Production
    CORE     11.2.0.3.0     Production
    TNS for Linux: Version 11.2.0.3.0 - Production
    NLSRTL Version 11.2.0.3.0 - ProductionWe use the xmltype.transform method to transform XSLT. We got oodles of memory (25Gb assigned to Oracle) but we do use a lot of that......
    Is there a way to limit the amount of memory that the XSLT engine uses so as to avoid out of memory errors?
    Errors in file /ora/oracle/diag/rdbms/prod01/PROD01/trace/PROD01_j001_16149.trc:
    ORA-27102: out of memory
    Linux-x86_64 Error: 12: Cannot allocate memoryThe XML file was just under 20Gb in size. I regularly see 10Gb xslt transformations using around 2Gb ram (via the top command on linux). I have no visibility to what the memory consumption was the time of the failure.

    Probably most of the heavy consumption is PGA related.
    http://docs.oracle.com/cd/B28359_01/server.111/b28274/memory.htm#i49320
    Have a look at the AWR history views concerning memory consumption. ADDM, ASH, AWR etc should give you more insight. See also the awr/addm/ash/-rpt.sql scripts in $ORACLE_HOME/rdbms/admin on the database server. You (officially) would need Diagnostic en Tuning pack licenses though, so be warned (even for "touching" those views). Probably the heavy consumption of memory is or (wrong) storage related or inefficient code...

  • Generating XML from Database using XSQL

    Hi ,
    I have been using Reports as an intermidiate to generate XML (by giving concurrent program o/p type as XML). Now, i want it to be done from SQL or PL/SQL. I am able to achieve this using XSQL functions. I placed the SQL in a .sql file and registered it as a concurrent program. It was giving me XML output.
    I have two problems here.
    1. How can i know whether i have generated valid xml or not?
    2. When i am linking this concurrent program to XML Publisher, publisher is not able to read thie output from the concurrent prograam. It is erroring out. Why?
    Thanks
    sap

    Save the XML file - try to open it with IE and/or Firefox.
    If that doesn't work you know already something is wrong.
    You may try to cut&paste it into notepad and save as UTF-8.
    Then try it out with the Template Builder for Wrod.
    If you can't figure it out and run the report with a SMALL dataset six (ie. 1)
    and post it here.

  • Error message: AgServerMigration ERROR Using store provider as a session is deprecated.

    Hi.  I'm using a MacBook Pro, OS X 10.6.5.  I have been opening files in Lightroom, editing them, and then doing finishing touches in CS5.  When I save the file in CS5 and close it, my Mac returns the above message in Console eight times:
    AgServerMigration ERROR Using store provider as a session is deprecated.
    AgServerMigration ERROR Using store provider as a session is deprecated.
    AgServerMigration ERROR Using store provider as a session is deprecated.
    AgServerMigration ERROR Using store provider as a session is deprecated.
    AgServerMigration ERROR Using store provider as a session is deprecated.
    AgServerMigration ERROR Using store provider as a session is deprecated.
    AgServerMigration ERROR Using store provider as a session is deprecated.
    AgServerMigration ERROR Using store provider as a session is deprecated.
    I have no idea what this means, or whether it is a problem.  Does anyone know what this is?
    Thanks.

    I see the same thing and have done for some time. The actual file is being saved back. etc. So, in that respect both Lr and Ps are working fine. IOW, ignore it.

  • Received HTTP response code 500 : Internal Server Error using connection Fi

    Hi everybody,
    I have configured a file-webservice-file without BPM scenario...as explained by Bhavesh in the following thread:
    File - RFC - File without a BPM - Possible from SP 19.
    I have used a soap adapter (for webservice) instead of rfc .My input file sends the date as request message and gets the sales order details from the webservice and then creates a file at my sender side.
    I monitored the channels in the Runtime work bench and the error is in the sender ftp channel.The other 2 channel status is "not used" in RWB.
    1 sender ftp channel
    1 receiver soap channel
    1 receiver ftp channel.
    2009-12-16 15:02:00 Information Send binary file "b.xml" from ftp server "10.58.201.122:/", size 194 bytes with QoS EO
    2009-12-16 15:02:00 Information MP: entering1
    2009-12-16 15:02:00 Information MP: processing local module localejbs/AF_Modules/RequestResponseBean
    2009-12-16 15:02:00 Information RRB: entering RequestResponseBean
    2009-12-16 15:02:00 Information RRB: suspending the transaction
    2009-12-16 15:02:00 Information RRB: passing through ...
    2009-12-16 15:02:00 Information RRB: leaving RequestResponseBean
    2009-12-16 15:02:00 Information MP: processing local module localejbs/CallSapAdapter
    2009-12-16 15:02:00 Information The application tries to send an XI message synchronously using connection File_http://sap.com/xi/XI/System.
    2009-12-16 15:02:00 Information Trying to put the message into the call queue.
    2009-12-16 15:02:00 Information Message successfully put into the queue.
    2009-12-16 15:02:00 Information The message was successfully retrieved from the call queue.
    2009-12-16 15:02:00 Information The message status was set to DLNG.
    2009-12-16 15:02:02 Error The message was successfully transmitted to endpoint com.sap.engine.interfaces.messaging.api.exception.MessagingException: Received HTTP response code 500 : Internal Server Error using connection File_http://sap.com/xi/XI/System.
    2009-12-16 15:02:02 Error The message status was set to FAIL.
    Please help.
    thanks a lot
    Ramya

    Hi Suraj,
    You are right.The webservice is not invoked.I see the same error in the sender channel and the receiver soap channel status is "never used".
    2009-12-16 15:52:25 Information Send binary file  "b.xml" from ftp server "10.58.201.122:/", size 194 bytes with QoS BE
    2009-12-16 15:52:25 Information MP: entering1
    2009-12-16 15:52:25 Information MP: processing local module localejbs/CallSapAdapter
    2009-12-16 15:52:25 Information The application tries to send an XI message synchronously using connection File_http://sap.com/xi/XI/System.
    2009-12-16 15:52:25 Information Trying to put the message into the call queue.
    2009-12-16 15:52:25 Information Message successfully put into the queue.
    2009-12-16 15:52:25 Information The message was successfully retrieved from the call queue.
    2009-12-16 15:52:25 Information The message status was set to DLNG.
    2009-12-16 15:52:27 Error The message was successfully transmitted to endpoint com.sap.engine.interfaces.messaging.api.exception.MessagingException: Received HTTP response code 500 : Internal Server Error using connection File_http://sap.com/xi/XI/System.
    2009-12-16 15:52:27 Error The message status was set to FAIL.
    what can I do about this?
    thanks,
    Ramya

  • Getting "Method 'sign_in' does not exist" Error (using Charles)

    This may be a bit off the FLEX field, and have to do with Zend Framework's ZEND_AMF class. Unfortunately I haven't been able to dig anything up, and comments posted on Wade Arnolds site have not received any responses, so I thought I'd give it a go here.
    My ServiceController Class:
    public function loginAction()
         $this->_helper->viewRenderer->setNoRender();
         $server = new Zend_Amf_Server();
         $server->setClass('LoginAmfService', 'LoginService');
         $server->setClassMap('CurrentUserVO', 'CurrentUserVO');
         $server->setProduction(false);
         print($server->handle());
    My LoginAmfService class:
    class LoginAmfService
          * Main login function.
          * @param  string        $name
          * @param  string        $password
          * @return CurrentUserVO
         public function sign_in($name, $password)
              $authAdapter     = new Zend_Auth_Adapter_DbTable(Zend_Registry::get('db'), 'users', 'user_name', 'password', 'PASSWORD(?) AND active = 1');
              $returnValue     = new CurrentUserVO();
              $authAdapter->setIdentity(htmlspecialchars($name))
                   ->setCredential(htmlspecialchars($password));
              $authResult = $authAdapter->authenticate();
              if ($authResult->isValid())
                   $userArray                          = $authAdapter->getResultRowObject(array('id', 'first_name', 'last_name', 'title', 'photo'));
                   $returnValue->first_name     = $userArray->first_name;
                   $returnValue->last_name          = $userArray->last_name;
                   $returnValue->title               = $userArray->title;
                   $returnValue->photo               = $userArray->photo;
                   $returnValue->token               = $userArray->id;
              return $returnValue;
          * Function used to log people off.
         public function sign_out()
              $authAdapter = Zend_Auth::getInstance();
              $authAdapter->clearIdentity();
    My SignIn FLEX module (the relevant portions):
         <mx:RemoteObject
              id="LoginRemote"
              destination="login"
              source="SignIn"
              showBusyCursor="true"
              fault="parentDocument.handleFault(event)"
         >
               <mx:method name="sign_in" result="signin_handle(event)" />
               <mx:method name="sign_out" result="signout_handle(event)" />
         </mx:RemoteObject>
         <mx:Script>
              <![CDATA[
                   import mx.rpc.events.FaultEvent;
                   import mx.utils.ArrayUtil;
                   import mx.rpc.events.ResultEvent;
                   import mx.controls.Alert;
                   import com.brassworks.ValueObjects.CurrentUserVO;
                   import mx.events.VideoEvent;
                   [Bindable]
                   private var this_user:CurrentUserVO = new CurrentUserVO();
                   private function mdl_init():void
                        focusManager.setFocus(txt_username);
                   private function signin_handle(event:ResultEvent):void
                             this_user = event.result as CurrentUserVO;
                             if (this_user.token == null) {Alert.show("Supplied login credentials are not valid. Please try again.");}
                             else
                                  this.parentApplication.setUser(this.this_user);
                   private function signout_handle(event:ResultEvent):void
                   private function sign_in(event:Event):void
                        try
                             //Alert.show(txt_name.text + "|" + txt_password.text);
                             LoginRemote.sign_in(txt_username.text, txt_password.text);
                        catch (error:Error)
                             this.parentDocument.handleFault(error);
                   private function sign_out(event:Event):void
                   private function show_error(error:Error, s_function:String):void
                        Alert.show("Method:" + s_function + "\nName: " + error.name + "\nID: " + error.errorID + "\nMessage: " + error.message + "\nStack Trace: " + error.getStackTrace() + "\nError: " + error.toString());
                   private function handleFault(event:FaultEvent):void
                        Alert.show(event.fault.faultDetail, event.fault.faultString);
              ]]>
         </mx:Script>
    Now, all this is great and good, as it works with Zend Framework 1.7.6. However, when I try to upgrade to 1.7.8 (to take advantage of session management and other bug-fixes), I get the following error (using Charles):
    #1 /var/web/htdocs/core/library/Zend/Amf/Server.php(390): Zend_Amf_Server->_handle(Object(Zend_Amf_Request_Http))
    #2 /var/web/htdocs/core/application/default/controllers/ServicesController.php(73): Zend_Amf_Server->handle()
    #3 /var/web/htdocs/core/library/Zend/Controller/Action.php(503): ServicesController->loginAction()
    #4 /var/web/htdocs/core/library/Zend/Controller/Dispatcher/Standard.php(285): Zend_Controller_Action->dispatch('loginAction')
    #5 /var/web/htdocs/core/library/Zend/Controller/Front.php(934): Zend_Controller_Dispatcher_Standard->dispatch(Object(Zend_Controller_Request_Http), Object(Zend_Controller_Response_Http))
    #6 /var/web/htdocs/core/application/bootstrap.php(39): Zend_Controller_Front->dispatch()
    #7 /var/web/htdocs/core/public/index.php(5): Bootstrap->runApp()
    #8 {main} ?Method "sign_in" does not exist
    I have no idea why this would not work anymore. My assumption is that I am not correctly setting up Zend_Amf (but then again, my counter-argument is that it worked before, so ..... ????)
    Thanks for any help!
    -Mike

    For those that are also fighting this issue:
    The problem appears to be that the RemoteObject needs to specify the class containing the methods as a source parameter. According to this bug report (http://framework.zend.com/issues/browse/ZF-5168) it is supposed to have been addressed, but apparently has re-emerged in Zend_Amf since version 1.7.7.
    Using my example above, I would have to specify the RO as:
    <mx:RemoteObject
              id="LoginRemote"
              destination="login"
              source="LoginAmfService"
              showBusyCursor="true"
              fault="parentDocument.handleFault(event)"
         >
               <mx:method name="sign_in" result="signin_handle(event)" />
               <mx:method name="sign_out" result="signout_handle(event)" />
         </mx:RemoteObjecct>

  • Does anyone know how to delete a template created in error using PAGES?

    I created some templates in error using PAGES and cannot figure out how to remove them/delete them.  Anyone know how to do this?  Fran

    Look in the More like this on the right.

  • I´m trying to open an excel file in numbers not being successful. The error msg is unexpectedly error using plugin SFCompatibility can you help me?

    I´m trying to open an excel file in numbers not being successful. The error msg is unexpectedly error using plugin SFCompatibility can you help me? Already changed the extension of the excel document to xlsx an now gives an unknown import error.

    In Excel have you tried saving directly to xls (not xlsx) and opening the xls in Numbers?
    If you have a complicated workbook in Excel that uses lots of Excel's advanced features, Numbers may not be able to handle the import.  It does pretty well on basic things, though.
    If you're just trying to get data into Numbers, then often copy-paste from Excel is easier than trying to open xls files.
    SG

Maybe you are looking for

  • Regarding Planning function

    Hello, I have a scenario to fill the plan values of some quantity key figure back to the  planning cube after manually changing it in the plan query. My plan query displays the data aggregated for 0calmonth. Now when i changes the value of this quant

  • When Ipod touch plugged into computer

    most of my purchased songs have gotten deleted! what should i do.... and how should i get my songs back?

  • Flv video stolen off website

    So, I am stumped. I uploaded a flv video using Dreamweaver onto my website. It seems that someone was able to steal a copy of the video straight from the site. I didn't think this is possible since it was a Flash video. Does anyone know of an added s

  • MAX RT Target Update Error nipal.err file not found

    when trying to run a test on the daq assistant, receive error stsing that drivers don't match on RT target and host. When try to reinstall NI-DAQmx 7.2.0 get error file not found ...\NI-PAL\1.8.2.3.0\nipal.err. I checked, the file is not there.

  • GPO to kill disconnected and idle RDP connections

    Hello I'm looking for a way to Kill RDP connection with idle & disconnected state. the server's owners usually connect to the servers from their PCs to the servers using the Remote Desktop Connection and they forget to disconnect properly. some left