Error while using pt:standard.choose tag

Hi,
I am getting error while using the ALUI 6.5 Adaptive tags. The details are given below. Can anyone help?
The code I am using is
<pt:standard.choose>
               <pt:standard.when pt:test="stringToACLGroup('user=13009;').isMember($currentUser)">
                    <div class="ali-portlet-controlone">Adit</div>
                    <pt:logic.value pt:value="$currentUser"/>
                    <pt:logic.value pt:value="checking Tags"/>
               </pt:standard.when>
          </pt:standard.choose>
Also I checked for the variable $currentUser and it was displaying null so I set the variable as
<pt:logic.variable pt:key="currentUser" pt:value="13009"/>
I aslo checked by giving the group id in stringToACLGroup('group=301;') but same result.
The stack trace is ::
<!--Error displaying tag when in library standard. String index out of range: -19: com.plumtree.openfoundation.util.XPIndexOutOfBoundsException: String index out of range: -19
     at com.plumtree.openfoundation.util.XPException.GetInstance(XPException.java:403)
     at com.plumtree.openfoundation.util.XPException.GetInstance(XPException.java:350)
     at com.plumtree.portaluiinfrastructure.tags.displaytree.TagDisplayElement.Display(TagDisplayElement.java:165)
     at com.plumtree.portaluiinfrastructure.tags.displaytree.CompositeDisplayElement.Display(CompositeDisplayElement.java:66)
     at com.plumtree.portaluiinfrastructure.tags.helper.TagHelper.ProcessTagBody(TagHelper.java:124)
     at com.plumtree.portaluiinfrastructure.tags.ATag.ProcessTagBody(ATag.java:401)
     at com.plumtree.taglib.standard.ChooseTag.DisplayTag(ChooseTag.java:110)
     at com.plumtree.portaluiinfrastructure.tags.helper.TagHelper.DisplayTag(TagHelper.java:1231)
     at com.plumtree.portaluiinfrastructure.tags.displaytree.TagDisplayElement.Display(TagDisplayElement.java:145)
     at com.plumtree.portaluiinfrastructure.tags.displaytree.CompositeDisplayElement.Display(CompositeDisplayElement.java:66)
     at com.plumtree.portaluiinfrastructure.tags.helper.TagHelper.ProcessTagBody(TagHelper.java:124)
     at com.plumtree.portaluiinfrastructure.tags.ATag.ProcessTagBody(ATag.java:401)
     at com.plumtree.taglib.logic.IfFalseTag.DisplayTag(IfFalseTag.java:75)
     at com.plumtree.portaluiinfrastructure.tags.helper.TagHelper.DisplayTag(TagHelper.java:1231)
     at com.plumtree.portaluiinfrastructure.tags.displaytree.TagDisplayElement.Display(TagDisplayElement.java:145)
     at com.plumtree.portaluiinfrastructure.tags.displaytree.CompositeDisplayElement.Display(CompositeDisplayElement.java:66)
     at com.plumtree.portaluiinfrastructure.tags.helper.TagHelper.ProcessTagBody(TagHelper.java:124)
     at com.plumtree.portaluiinfrastructure.tags.ATag.ProcessTagBody(ATag.java:401)
     at com.plumtree.taglib.logic.IfTag.DisplayTag(IfTag.java:71)
     at com.plumtree.portaluiinfrastructure.tags.helper.TagHelper.DisplayTag(TagHelper.java:1231)
     at com.plumtree.portaluiinfrastructure.tags.displaytree.TagDisplayElement.Display(TagDisplayElement.java:145)
     at com.plumtree.portaluiinfrastructure.tags.displaytree.CompositeDisplayElement.Display(CompositeDisplayElement.java:66)
     at com.plumtree.portaluiinfrastructure.tags.helper.TagHelper.ProcessTagBody(TagHelper.java:124)
     at com.plumtree.portaluiinfrastructure.tags.ATag.ProcessTagBody(ATag.java:401)
     at com.plumtree.taglib.core.HTMLTag.DisplayTag(HTMLTag.java:78)
     at com.plumtree.portaluiinfrastructure.tags.helper.TagHelper.DisplayTag(TagHelper.java:1231)
     at com.plumtree.portaluiinfrastructure.tags.displaytree.TagDisplayElement.Display(TagDisplayElement.java:145)
     at com.plumtree.portaluiinfrastructure.tags.displaytree.CompositeDisplayElement.Display(CompositeDisplayElement.java:66)
     at com.plumtree.portaluiinfrastructure.tags.helper.TagHelper.ProcessTagBody(TagHelper.java:124)
     at com.plumtree.portaluiinfrastructure.tags.ATag.ProcessTagBody(ATag.java:401)
     at com.plumtree.taglib.core.HTMLTag.DisplayTag(HTMLTag.java:78)
     at com.plumtree.portaluiinfrastructure.tags.helper.TagHelper.DisplayTag(TagHelper.java:1231)
     at com.plumtree.portaluiinfrastructure.tags.displaytree.TagDisplayElement.Display(TagDisplayElement.java:145)
     at com.plumtree.portaluiinfrastructure.tags.displaytree.CompositeDisplayElement.Display(CompositeDisplayElement.java:66)
     at com.plumtree.portaluiinfrastructure.tags.helper.TagHelper.ProcessTagBody(TagHelper.java:124)
     at com.plumtree.portaluiinfrastructure.tags.ATag.ProcessTagBody(ATag.java:401)
     at com.plumtree.taglib.logic.ForEachTag.DisplayTag(ForEachTag.java:162)
     at com.plumtree.portaluiinfrastructure.tags.helper.TagHelper.DisplayTag(TagHelper.java:1231)
     at com.plumtree.portaluiinfrastructure.tags.displaytree.TagDisplayElement.Display(TagDisplayElement.java:145)
     at com.plumtree.portaluiinfrastructure.tags.displaytree.CompositeDisplayElement.Display(CompositeDisplayElement.java:66)
     at com.plumtree.portaluiinfrastructure.tags.helper.TagHelper.ProcessTagBody(TagHelper.java:124)
     at com.plumtree.portaluiinfrastructure.tags.ATag.ProcessTagBody(ATag.java:401)
     at com.bea.alui.taglib.portletpage.PortletRegionDisplayTag.DisplayTag(PortletRegionDisplayTag.java:91)
     at com.plumtree.portaluiinfrastructure.tags.helper.TagHelper.DisplayTag(TagHelper.java:1231)
     at com.plumtree.portaluiinfrastructure.tags.displaytree.TagDisplayElement.Display(TagDisplayElement.java:145)
     at com.plumtree.portaluiinfrastructure.tags.displaytree.CompositeDisplayElement.Display(CompositeDisplayElement.java:66)
     at com.plumtree.portaluiinfrastructure.tags.displaytree.DisplayTree.ExecuteTags(DisplayTree.java:235)
     at com.plumtree.portaluiinfrastructure.tags.displaytree.DisplayTree.ProcessTagMarkup(DisplayTree.java:39)
     at com.plumtree.portaluiinfrastructure.layout.impl.LayoutDisplay.ProcessLayout(LayoutDisplay.java:24)
     at com.plumtree.portalpages.common.uiparts.PlumtreeDP.DisplayLayout(PlumtreeDP.java:243)
     at com.plumtree.portalpages.browsing.myportal.MyPortalDP.PageDisplay(MyPortalDP.java:166)
     at com.bea.alui.taglib.basepage.ContentTag.DisplayTag(ContentTag.java:71)
     at com.plumtree.portaluiinfrastructure.tags.helper.TagHelper.DisplayTag(TagHelper.java:1231)
     at com.plumtree.portaluiinfrastructure.tags.displaytree.TagDisplayElement.Display(TagDisplayElement.java:145)
     at com.plumtree.portaluiinfrastructure.tags.displaytree.CompositeDisplayElement.Display(CompositeDisplayElement.java:66)
     at com.plumtree.portaluiinfrastructure.tags.helper.TagHelper.ProcessTagBody(TagHelper.java:124)
     at com.plumtree.portaluiinfrastructure.tags.ATag.ProcessTagBody(ATag.java:401)
     at com.bea.alui.taglib.basepage.PageBodyTag.DisplayTag(PageBodyTag.java:135)
     at com.plumtree.portaluiinfrastructure.tags.helper.TagHelper.DisplayTag(TagHelper.java:1231)
     at com.plumtree.portaluiinfrastructure.tags.displaytree.TagDisplayElement.Display(TagDisplayElement.java:145)
     at com.plumtree.portaluiinfrastructure.tags.displaytree.CompositeDisplayElement.Display(CompositeDisplayElement.java:66)
     at com.plumtree.portaluiinfrastructure.tags.displaytree.DisplayTree.ExecuteTags(DisplayTree.java:235)
     at com.plumtree.portaluiinfrastructure.tags.displaytree.DisplayTree.ProcessTagMarkup(DisplayTree.java:39)
     at com.plumtree.portaluiinfrastructure.layout.impl.LayoutDisplay.ProcessLayout(LayoutDisplay.java:24)
     at com.plumtree.portaluiinfrastructure.layout.impl.LayoutDisplay.ProcessMainPageLayout(LayoutDisplay.java:44)
     at com.plumtree.portalpages.common.uiparts.PlumtreeDP.DisplayLayout(PlumtreeDP.java:240)
     at com.plumtree.portalpages.common.uiparts.PlumtreeDP.DisplayLayout(PlumtreeDP.java:219)
     at com.plumtree.portalpages.common.uiparts.PlumtreeDP.Display(PlumtreeDP.java:151)
     at com.plumtree.uiinfrastructure.interpreter.Interpreter.HandleDisplayPage(Interpreter.java:2140)
     at com.plumtree.uiinfrastructure.interpreter.Interpreter.HandleRequest(Interpreter.java:657)
     at com.plumtree.uiinfrastructure.interpreter.Interpreter.DoService(Interpreter.java:190)
     at com.plumtree.uiinfrastructure.web.XPPage.service(XPPage.java:300)
     at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
     at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
     at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
     at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:292)
     at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:175)
     at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3495)
     at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
     at weblogic.security.service.SecurityManager.runAs(Unknown Source)
     at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2180)
     at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2086)
     at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1406)
     at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
     at weblogic.work.ExecuteThread.run(ExecuteThread.java:173
Caused by: java.lang.StringIndexOutOfBoundsException: String index out of range: -19
     at java.lang.String.substring(String.java:1938)
     at com.plumtree.taglib.standard.WhenTag.DisplayTag(WhenTag.java:72)
     at com.plumtree.portaluiinfrastructure.tags.helper.TagHelper.DisplayTag(TagHelper.java:1231)
     at com.plumtree.portaluiinfrastructure.tags.displaytree.TagDisplayElement.Display(TagDisplayElement.java:145)
     at com.plumtree.portaluiinfrastructure.tags.displaytree.CompositeDisplayElement.Display(CompositeDisplayElement.java:66)
     at com.plumtree.portaluiinfrastructure.tags.helper.TagHelper.ProcessTagBody(TagHelper.java:124)
     at com.plumtree.portaluiinfrastructure.tags.ATag.ProcessTagBody(ATag.java:401)
     at com.plumtree.taglib.standard.ChooseTag.DisplayTag(ChooseTag.java:110)
     at com.plumtree.portaluiinfrastructure.tags.helper.TagHelper.DisplayTag(TagHelper.java:1231)
     at com.plumtree.portaluiinfrastructure.tags.displaytree.TagDisplayElement.Display(TagDisplayElement.java:145)
     at com.plumtree.portaluiinfrastructure.tags.displaytree.CompositeDisplayElement.Display(CompositeDisplayElement.java:66)
     at com.plumtree.portaluiinfrastructure.tags.helper.TagHelper.ProcessTagBody(TagHelper.java:124)
     at com.plumtree.portaluiinfrastructure.tags.ATag.ProcessTagBody(ATag.java:401)
     at com.plumtree.taglib.logic.IfFalseTag.DisplayTag(IfFalseTag.java:75)
     at com.plumtree.portaluiinfrastructure.tags.helper.TagHelper.DisplayTag(TagHelper.java:1231)
     at com.plumtree.portaluiinfrastructure.tags.displaytree.TagDisplayElement.Display(TagDisplayElement.java:145)
     at com.plumtree.portaluiinfrastructure.tags.displaytree.CompositeDisplayElement.Display(CompositeDisplayElement.java:66)
     at com.plumtree.portaluiinfrastructure.tags.helper.TagHelper.ProcessTagBody(TagHelper.java:124)
     at com.plumtree.portaluiinfrastructure.tags.ATag.ProcessTagBody(ATag.java:401)
     at com.plumtree.taglib.logic.IfTag.DisplayTag(IfTag.java:71)
     at com.plumtree.portaluiinfrastructure.tags.helper.TagHelper.DisplayTag(TagHelper.java:1231)
     at com.plumtree.portaluiinfrastructure.tags.displaytree.TagDisplayElement.Display(TagDisplayElement.java:145)
     at com.plumtree.portaluiinfrastructure.tags.displaytree.CompositeDisplayElement.Display(CompositeDisplayElement.java:66)
     at com.plumtree.portaluiinfrastructure.tags.helper.TagHelper.ProcessTagBody(TagHelper.java:124)
     at com.plumtree.portaluiinfrastructure.tags.ATag.ProcessTagBody(ATag.java:401)
     at com.plumtree.taglib.core.HTMLTag.DisplayTag(HTMLTag.java:78)
     at com.plumtree.portaluiinfrastructure.tags.helper.TagHelper.DisplayTag(TagHelper.java:1231)
     at com.plumtree.portaluiinfrastructure.tags.displaytree.TagDisplayElement.Display(TagDisplayElement.java:145)
     at com.plumtree.portaluiinfrastructure.tags.displaytree.CompositeDisplayElement.Display(CompositeDisplayElement.java:66)
     at com.plumtree.portaluiinfrastructure.tags.helper.TagHelper.ProcessTagBody(TagHelper.java:124)
     at com.plumtree.portaluiinfrastructure.tags.ATag.ProcessTagBody(ATag.java:401)
     at com.plumtree.taglib.core.HTMLTag.DisplayTag(HTMLTag.java:78)
     at com.plumtree.portaluiinfrastructure.tags.helper.TagHelper.DisplayTag(TagHelper.java:1231)
     at com.plumtree.portaluiinfrastructure.tags.displaytree.TagDisplayElement.Display(TagDisplayElement.java:145)
     at com.plumtree.portaluiinfrastructure.tags.displaytree.CompositeDisplayElement.Display(CompositeDisplayElement.java:66)
     at com.plumtree.portaluiinfrastructure.tags.helper.TagHelper.ProcessTagBody(TagHelper.java:124)
     at com.plumtree.portaluiinfrastructure.tags.ATag.ProcessTagBody(ATag.java:401)
     at com.plumtree.taglib.logic.ForEachTag.DisplayTag(ForEachTag.java:162)
     at com.plumtree.portaluiinfrastructure.tags.helper.TagHelper.DisplayTag(TagHelper.java:1231)
     at com.plumtree.portaluiinfrastructure.tags.displaytree.TagDisplayElement.Display(TagDisplayElement.java:145)
     at com.plumtree.portaluiinfrastructure.tags.displaytree.CompositeDisplayElement.Display(CompositeDisplayElement.java:66)
     at com.plumtree.portaluiinfrastructure.tags.helper.TagHelper.ProcessTagBody(TagHelper.java:124)
     at com.plumtree.portaluiinfrastructure.tags.ATag.ProcessTagBody(ATag.java:401)
     at com.bea.alui.taglib.portletpage.PortletRegionDisplayTag.DisplayTag(PortletRegionDisplayTag.java:91)
     at com.plumtree.portaluiinfrastructure.tags.helper.TagHelper.DisplayTag(TagHelper.java:1231)
     at com.plumtree.portaluiinfrastructure.tags.displaytree.TagDisplayElement.Display(TagDisplayElement.java:145)
     at com.plumtree.portaluiinfrastructure.tags.displaytree.CompositeDisplayElement.Display(CompositeDisplayElement.java:66)
     at com.plumtree.portaluiinfrastructure.tags.displaytree.DisplayTree.ExecuteTags(DisplayTree.java:235)
     at com.plumtree.portaluiinfrastructure.tags.displaytree.DisplayTree.ProcessTagMarkup(DisplayTree.java:39)
     at com.plumtree.portaluiinfrastructure.layout.impl.LayoutDisplay.ProcessLayout(LayoutDisplay.java:24)
     at com.plumtree.portalpages.common.uiparts.PlumtreeDP.DisplayLayout(PlumtreeDP.java:243)
     at com.plumtree.portalpages.browsing.myportal.MyPortalDP.PageDisplay(MyPortalDP.java:166)
     at com.bea.alui.taglib.basepage.ContentTag.DisplayTag(ContentTag.java:71)
     at com.plumtree.portaluiinfrastructure.tags.helper.TagHelper.DisplayTag(TagHelper.java:1231)
     at com.plumtree.portaluiinfrastructure.tags.displaytree.TagDisplayElement.Display(TagDisplayElement.java:145)
     at com.plumtree.portaluiinfrastructure.tags.displaytree.CompositeDisplayElement.Display(CompositeDisplayElement.java:66)
     at com.plumtree.portaluiinfrastructure.tags.helper.TagHelper.ProcessTagBody(TagHelper.java:124)
     at com.plumtree.portaluiinfrastructure.tags.ATag.ProcessTagBody(ATag.java:401)
     at com.bea.alui.taglib.basepage.PageBodyTag.DisplayTag(PageBodyTag.java:135)
     at com.plumtree.portaluiinfrastructure.tags.helper.TagHelper.DisplayTag(TagHelper.java:1231)
     at com.plumtree.portaluiinfrastructure.tags.displaytree.TagDisplayElement.Display(TagDisplayElement.java:145)
     at com.plumtree.portaluiinfrastructure.tags.displaytree.CompositeDisplayElement.Display(CompositeDisplayElement.java:66)
     at com.plumtree.portaluiinfrastructure.tags.displaytree.DisplayTree.ExecuteTags(DisplayTree.java:235)
     at com.plumtree.portaluiinfrastructure.tags.displaytree.DisplayTree.ProcessTagMarkup(DisplayTree.java:39)
     at com.plumtree.portaluiinfrastructure.layout.impl.LayoutDisplay.ProcessLayout(LayoutDisplay.java:24)
     at com.plumtree.portaluiinfrastructure.layout.impl.LayoutDisplay.ProcessMainPageLayout(LayoutDisplay.java:44)
     at com.plumtree.portalpages.common.uiparts.PlumtreeDP.DisplayLayout(PlumtreeDP.java:240)
     at com.plumtree.portalpages.common.uiparts.PlumtreeDP.DisplayLayout(PlumtreeDP.java:219)
     at com.plumtree.portalpages.common.uiparts.PlumtreeDP.Display(PlumtreeDP.java:151)
     at com.plumtree.uiinfrastructure.interpreter.Interpreter.HandleDisplayPage(Interpreter.java:2140)
     at com.plumtree.uiinfrastructure.interpreter.Interpreter.HandleRequest(Interpreter.java:657)
     at com.plumtree.uiinfrastructure.interpreter.Interpreter.DoService(Interpreter.java:190)
     at com.plumtree.uiinfrastructure.web.XPPage.service(XPPage.java:300)
     at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
     at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
     at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
     at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:292)
     at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:175)
     at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3495)
     at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
     at weblogic.security.service.SecurityManager.runAs(Unknown Source)
     at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2180)
     at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2086)
     at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1406)
     at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
     at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
Edited by: user590322 on Oct 29, 2009 12:22 AM

Proper usage:
<pt:standard.choose>
<pt:when pt:test="stringToACLGroup('user=1;').isMember($currentuser)">
... secret administrator content ...
</pt:when>
</pt:standard.choose>
Note that it's pt:when and not pt:standard.when. Also, Joel is right -- I think $currentuser is case sensitive.
Chris Bucchere
http://bucchere.com
http://twitter.com/bucchere

Similar Messages

  • Error while using "HTML Standard Editor" item in "Array VPN"

    Hi,
    The "HTML Standard Editor" item is not displayed properly when the person is trying to enter data, when he is logged in using Array VPN. An error appears in the item box "Unable to Process request. The requested URL has an unsupported encoding.". Can this be resolved? This error is appearing in Firefox, and in IE the box appears but is not editable,i.e Nothing can be entered in the box.
    Please assist me in this matter.
    Thanks,
    Vignesh

    Vignesh,
    I've worked with clients in the past that used VPN clients that attempted to cache and compress JavaScript code being sent to the browser. The problem was that the algorithms were terrible and ended up breaking the code.
    Do you know if this is happening? If so, there's probably an option to turn it off. Take a look at the source code for the problematic page using the VPN connection and compare it to the source from a page without using VPN. If the page is really busy you can create a blank test page and add the item that's not working. That should make comparing the changes easier. Consider using a code comparison utility.
    Regards,
    Dan
    http://danielmcghan.us
    http://www.skillbuilders.com

  • Error: Illegal use of when -style tag without choose as its direct paren

    Hi,
    I'm using the Code:
    <c:choose>
    <c:when test="${empty param.usernaseme}" >
    <B>Hello <c:out value="${param.usernaseme}" /></B>
    </c:when>
    <c:otherwise>
    unknown user name.
    </c:otherwise>
    </c:choose>
    and keep geting the Error:
    Illegal use of <when>-style tag without <choose> as its direct parent
    As far as know
    the code is OK.
    Declare Is OK (Other thigs using <c:out /> working)
    thanks for your halp
    Shimon

    Hi,
    I'm using the Code:
    <c:choose>
    <c:when test="${empty param.usernaseme}" >
    <B>Hello <c:out value="${param.usernaseme}" /></B>
    </c:when>
    <c:otherwise>
    unknown user name.
    </c:otherwise>
    </c:choose>
    and keep geting the Error:
    Illegal use of <when>-style tag without <choose> as its direct parent
    As far as know
    the code is OK.
    Declare Is OK (Other thigs using <c:out /> working)
    thanks for your halp
    Shimon

  • Error while using '*'in the NTE (EDI 850) Segment where '*' is also used as Data Element

    Hi All,
    I am facing below mentioned error while using '*'in the NTE (EDI 850) Segment where '*' is also used as Data Element
    Error: 1 (Field level error)
      SegmentID: NTE
      Position in TS: 70
      Data Element ID: NTE02
      Position in Segment: 2
      Data Value:
      3: Too many data elements
    For Eg: NTE*GEN*My Text *goes here
    Here, NTE02 should be My Text *goes here. So, how can I use "*" here without changing anything in the EDI message?
    Can it be done?
    Thanks.

    Sorry, no.
    X12 does not support an escape character so whatever is used for delimiters become reserved characters.
    If you want to allow '*' in the data, you will have to chooser a different Element delimiter.  The receiver should read the from this from the ISA Segment so it's supposed to be dynamic but that's not always the case in practice.

  • Error while using  CALL METHOD

    I am getting a error while using CALL METHOD cl_ssf_xsf_utilities=>get_bds_graphic_as_bmp
    The error is class "CL_SSF_XSF_UTILITIES is unknown. How to correct that?? please help I am new to object oriented programming??
    Edited by: priya singh on Nov 18, 2008 2:14 PM

    This is my code.
    REPORT ZSAVE_FUNCTION .
    D A T A D E C L A R A T I O N S *
    DATA: v_bitmap TYPE xstring, "graphic data
    v_file TYPE string, "file name
    v_length TYPE i. "length of binary file
    DATA: BEGIN OF it_bitmaps OCCURS 0,
    object TYPE tdobjectgr, "object
    name TYPE tdobname, "name
    id TYPE tdidgr, "id
    tdbtype TYPE tdbtype, "graphic type
    END OF it_bitmaps.
    DATA: itab TYPE TABLE OF x.
    *class cl_ssf_xsf_utilities definition.
        public section.
      methods : get_bds_graphic_as_bmp
    DATA: L_GRAPHIC_XSTR TYPE XSTRING.
    *method cl_ssf_xsf_utilities
    S E L E C T I O N - S C R E E N *
    SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME.
    PARAMETERS: p_object TYPE tdobjectgr, "object
    p_btype TYPE tdbtype, "graphic type
    p_name TYPE tdobname, "name
    p_id TYPE tdidgr. "id
    SELECTION-SCREEN END OF BLOCK b1.
    SELECTION-SCREEN BEGIN OF BLOCK b2 WITH FRAME.
    PARAMETERS: p_file TYPE rlgrap-filename. "file name
    SELECTION-SCREEN END OF BLOCK b2.
    *A T S E L E C T I O N - S C R E E N O N V A L U E - R E Q U E S T *
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_name.
    *-- Creating f4 help for the parameters
    PERFORM get_f4_object_name.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_file.
    *-- Getting the current value entered
    PERFORM get_current_value.
    *-- Value Request Functionality For Input File Name
    PERFORM f4_value_request.
    S T A R T O F - S E L E C T I O N *
    START-OF-SELECTION.
    *--Getting the graphic as a BMP file
    PERFORM get_graphic_bmp.
    *--Convert the Xstring format to binary format
    PERFORM convert_to_binary.
    *--Download the graphic
    PERFORM download_graphic.
    *& Form get_current_value
    Get the current file path entered
    FORM get_current_value .
    DATA: BEGIN OF li_dynp_value_tab OCCURS 0.
    INCLUDE STRUCTURE dynpread.
    DATA: END OF li_dynp_value_tab.
    DATA: l_program_name LIKE d020s-prog,
    l_dynpro_number LIKE d020s-dnum.
    l_program_name = sy-cprog.
    l_dynpro_number = sy-dynnr.
    REFRESH li_dynp_value_tab.
    li_dynp_value_tab-fieldname = 'P_FILE'.
    APPEND li_dynp_value_tab.
    CALL FUNCTION 'DYNP_VALUES_READ'
    EXPORTING
    dyname = l_program_name
    dynumb = l_dynpro_number
    TABLES
    dynpfields = li_dynp_value_tab
    EXCEPTIONS
    invalid_abapworkarea = 04
    invalid_dynprofield = 08
    invalid_dynproname = 12
    invalid_dynpronummer = 16
    invalid_request = 20
    no_fielddescription = 24
    undefind_error = 28.
    IF sy-subrc <> 0.
    MESSAGE ID sy-msgid TYPE 'S' NUMBER sy-msgno
    WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    ENDIF.
    READ TABLE li_dynp_value_tab INDEX 1.
    p_file = li_dynp_value_tab-fieldvalue.
    ENDFORM. " get_current_value
    *& Form f4_value_request
    Provinding the f4 for the given path
    FORM f4_value_request .
    *-- if the file is to be downloaded to presentation server
    CALL FUNCTION '/SAPDMC/LSM_F4_FRONTEND_FILE'
    EXPORTING
    pathname = p_file
    CHANGING
    pathfile = p_file
    EXCEPTIONS
    canceled_by_user = 1
    system_error = 2
    OTHERS = 3.
    IF sy-subrc <> 0.
    MESSAGE ID sy-msgid TYPE 'S' NUMBER sy-msgno
    WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    ENDIF.
    ENDFORM. " f4_value_request
    *& Form GET_GRAPHIC_BMP
    Get the graphic as a BMP file
    FORM get_graphic_bmp.
    CALL METHOD cl_ssf_xsf_utilities=>get_bds_graphic_as_bmp
    EXPORTING
    p_object = p_object
    p_name = p_name
    p_id = p_id
    p_btype = p_btype
    RECEIVING
    p_bmp = L_GRAPHIC_XSTR
    EXCEPTIONS
    not_found = 1
    internal_error = 2
    OTHERS = 3.
    IF sy-subrc <> 0.
    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
    WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    ENDIF.
    ENDFORM. " GET_GRAPHIC_BMP
    *& Form CONVERT_TO_BINARY
    Converting the xstring to binary format
    FORM convert_to_binary .
    CALL FUNCTION 'SCMS_XSTRING_TO_BINARY'
    EXPORTING
    buffer = v_bitmap
    IMPORTING
    output_length = v_length
    TABLES
    binary_tab = itab.
    ENDFORM. " CONVERT_TO_BINARY
    *& Form DOWNLOAD_GRAPHIC
    Download the graphic
    FORM download_graphic .
    v_file = p_file.
    CONCATENATE p_file '.BMP' INTO v_file.
    CALL FUNCTION 'GUI_DOWNLOAD'
    EXPORTING
    bin_filesize = v_length
    filename = v_file
    filetype = 'BIN'
    TABLES
    data_tab = itab
    EXCEPTIONS
    file_write_error = 1
    no_batch = 2
    gui_refuse_filetransfer = 3
    invalid_type = 4
    no_authority = 5
    unknown_error = 6
    header_not_allowed = 7
    separator_not_allowed = 8
    filesize_not_allowed = 9
    header_too_long = 10
    dp_error_create = 11
    dp_error_send = 12
    dp_error_write = 13
    unknown_dp_error = 14
    access_denied = 15
    dp_out_of_memory = 16
    disk_full = 17
    dp_timeout = 18
    file_not_found = 19
    dataprovider_exception = 20
    control_flush_error = 21
    OTHERS = 22.
    IF sy-subrc <> 0.
    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
    WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    ENDIF.
    ENDFORM. " DOWNLOAD_GRAPHIC
    *& Form GET_F4_OBJECT_NAME
    Get F4 values for object names
    FORM get_f4_object_name .
    DATA: dynpfld_mapping TYPE STANDARD TABLE OF dselc WITH HEADER LINE,
    return_tab TYPE STANDARD TABLE OF ddshretval WITH HEADER LINE.
    *--Selecting the values to be provided as f4 help
    SELECT tdobject
    tdname
    tdid
    tdbtype
    FROM stxbitmaps
    INTO TABLE it_bitmaps.
    *--To update the values in the remaining fields
    dynpfld_mapping-fldname = 'F0001'.
    dynpfld_mapping-dyfldname = 'P_OBJECT'.
    APPEND dynpfld_mapping.
    dynpfld_mapping-fldname = 'F0002'.
    dynpfld_mapping-dyfldname = 'P_NAME'.
    APPEND dynpfld_mapping.
    dynpfld_mapping-fldname = 'F0003'.
    dynpfld_mapping-dyfldname = 'P_ID'.
    APPEND dynpfld_mapping.
    dynpfld_mapping-fldname = 'F0004'.
    dynpfld_mapping-dyfldname = 'P_BTYPE'.
    APPEND dynpfld_mapping.
    *--Providing f4 help with the selected values
    CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
    EXPORTING
    retfield = 'TDOBNAME'
    dynpprog = sy-repid
    dynpnr = sy-dynnr
    dynprofield = 'P_NAME'
    value_org = 'S'
    TABLES
    value_tab = it_bitmaps
    dynpfld_mapping = dynpfld_mapping
    EXCEPTIONS
    parameter_error = 1
    no_values_found = 2
    OTHERS = 3.
    IF sy-subrc <> 0.
    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
    WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    ENDIF.
    ENDFORM. " GET_F4_OBJECT_NAME

  • BAPI_ALM_ORDER_MAINTAIN - Error while reading the standard sequence

    Hi all,
    I am using BAPI_ALM_ORDER_MAINTAIN to add the task list to the order without deleting the existing operations but BAPI_ALM_ORDER_MAINTAIN is giving the error - Error while reading the standard sequence from the document. Please help asap.
    Thanks,
    Ritu

    I Solved this form.
    Table I_N_METHODS
    REFNUMBER   OBJECTTYPE   METHOD      OBJECTKEY
    000001                                    SAVE          000001000069
    000001           OPERATION     CREATE       0000010000690170
    000002           OPERATION     CREATE       0000010000690180
    000003           OPERATION     CREATE       0000010000690190
    000004           OPERATION     CREATE       0000010000690200
    000005           OPERATION     CREATE       0000010000690210
    Edited by: Yonatan Edgardo Diaz on Apr 16, 2010 4:01 PM

  • Error while using P2V in Oracle VM 2.2 version

    Error while using P2V in Oracle VM 2.2 version
    I tried using this option by using the steps given on one link but it didnt worked...
    Error:
    code 404, message No permission to list directory.
    I ve tried giving full permissions on for /OVS on Server but invain.
    Can U pls help me...
    Thanks in advance.
    Edited by: user10310678 on Sep 16, 2009 3:32 AM

    user10310678 wrote:
    I am using beta version. Oracle VM Manager 2.2.0If you have a beta version of 2.2, then you should be an Oracle employee. Please ask this question on an internal mailing list. If you are not an Oracle employee, please ask the employee that gave you this beta. As this is a beta, some functionality may not be operational yet, so I can't answer why this particular feature seems not to work.

  • OSB: Cannot acquire data source error while using JCA DBAdapter in OSB

    Hi All,
    I've entered 'Cannot acquire data source' error while using JCA DBAdapter in OSB.
    Error infor are as follows:
    The invocation resulted in an error: Invoke JCA outbound service failed with application error, exception: com.bea.wli.sb.transports.jca.JCATransportException: oracle.tip.adapter.sa.api.JCABindingException: oracle.tip.adapter.sa.impl.fw.ext.org.collaxa.thirdparty.apache.wsif.WSIFException: servicebus:/WSDL/DBAdapter1/RetrievePersonService [ RetrievePersonService_ptt::RetrievePersonServiceSelect(RetrievePersonServiceSelect_inputParameters,PersonTCollection) ] - WSIF JCA Execute of operation 'RetrievePersonServiceSelect' failed due to: Could not create/access the TopLink Session.
    This session is used to connect to the datastore.
    Caused by Exception [EclipseLink-7060] (Eclipse Persistence Services - 2.0.2.v20100323-r6872): org.eclipse.persistence.exceptions.ValidationException
    Exception Description: Cannot acquire data source [jdbc/soademoDatabase].
    Internal Exception: javax.naming.NameNotFoundException: Unable to resolve 'jdbc.soademoDatabase'. Resolved 'jdbc'; remaining name 'soademoDatabase'.
    ; nested exception is:
    BINDING.JCA-11622
    Could not create/access the TopLink Session.
    This session is used to connect to the datastore.
    JNDI Name for the Database pool: eis/DB/soademoDatabase
    JNDI Name for the Data source: jdbc/soademoDatabase
    I created a basic DBAdapter in JDeveloper, got the xsd file, wsdl file, .jca file and the topLink mapping file imported them into OSB project.
    Then I used the .jca file to generate a business service, and tested, then the error occurs as described above.
    Login info in RetrievePersonService-or-mappings.xml
    <login xsi:type="database-login">
    <platform-class>org.eclipse.persistence.platform.database.oracle.Oracle9Platform</platform-class>
    <user-name></user-name>
    <connection-url></connection-url>
    </login>
    jca file content are as follows:
    <adapter-config name="RetrievePersonService" adapter="Database Adapter" wsdlLocation="RetrievePersonService.wsdl" xmlns="http://platform.integration.oracle/blocks/adapter/fw/metadata">
    <connection-factory location="eis/DB/soademoDatabase" UIConnectionName="Connection1" adapterRef=""/>
    <endpoint-interaction portType="RetrievePersonService_ptt" operation="RetrievePersonServiceSelect">
    <interaction-spec className="oracle.tip.adapter.db.DBReadInteractionSpec">
    <property name="DescriptorName" value="RetrievePersonService.PersonT"/>
    <property name="QueryName" value="RetrievePersonServiceSelect"/>
    <property name="MappingsMetaDataURL" value="RetrievePersonService-or-mappings.xml"/>
    <property name="ReturnSingleResultSet" value="false"/>
    <property name="GetActiveUnitOfWork" value="false"/>
    </interaction-spec>
    </endpoint-interaction>
    </adapter-config>
    RetrievePersonService_db.wsdl are as follows:
    <?xml version="1.0" encoding="UTF-8"?>
    <WL5G3N0:definitions name="RetrievePersonService-concrete" targetNamespace="http://xmlns.oracle.com/pcbpel/adapter/db/KnowledeMgmtSOAApplication/AdapterJDevProject/RetrievePersonService" xmlns:WL5G3N0="http://schemas.xmlsoap.org/wsdl/" xmlns:WL5G3N1="http://xmlns.oracle.com/pcbpel/adapter/db/KnowledeMgmtSOAApplication/AdapterJDevProject/RetrievePersonService" xmlns:WL5G3N2="http://schemas.xmlsoap.org/wsdl/soap/">
    <WL5G3N0:import location="RetrievePersonService.wsdl" namespace="http://xmlns.oracle.com/pcbpel/adapter/db/KnowledeMgmtSOAApplication/AdapterJDevProject/RetrievePersonService"/>
    <WL5G3N0:binding name="RetrievePersonService_ptt-binding" type="WL5G3N1:RetrievePersonService_ptt">
    <WL5G3N2:binding style="document" transport="http://www.bea.com/transport/2007/05/jca"/>
    <WL5G3N0:operation name="RetrievePersonServiceSelect">
    <WL5G3N2:operation soapAction="RetrievePersonServiceSelect"/>
    <WL5G3N0:input>
    <WL5G3N2:body use="literal"/>
    </WL5G3N0:input>
    <WL5G3N0:output>
    <WL5G3N2:body use="literal"/>
    </WL5G3N0:output>
    </WL5G3N0:operation>
    </WL5G3N0:binding>
    <WL5G3N0:service name="RetrievePersonService_ptt-bindingQSService">
    <WL5G3N0:port binding="WL5G3N1:RetrievePersonService_ptt-binding" name="RetrievePersonService_ptt-bindingQSPort">
    <WL5G3N2:address location="jca://eis/DB/soademoDatabase"/>
    </WL5G3N0:port>
    </WL5G3N0:service>
    </WL5G3N0:definitions>
    Any suggestion is appricated .
    Thanks in advance!
    Edited by: user11262117 on Jan 26, 2011 5:28 PM

    Hi Anuj,
    Thanks for your reply!
    I found that the data source is registered on server soa_server1 as follows:
    Binding Name: jdbc.soademoDatabase
    Class: weblogic.jdbc.common.internal.RmiDataSource_1033_WLStub
    Hash Code: 80328036
    toString Results: ClusterableRemoteRef(8348400613458600489S:10.2.1.143:[8001,8001,-1,-1,-1,-1,-1]:base_domain:soa_server1 [8348400613458600489S:10.2.1.143:[8001,8001,-1,-1,-1,-1,-1]:base_domain:soa_server1/291])/291
    Binding Name: jdbc.SOADataSource
    Class: weblogic.jdbc.common.internal.RmiDataSource_1033_WLStub
    Hash Code: 92966755
    toString Results: ClusterableRemoteRef(8348400613458600489S:10.2.1.143:[8001,8001,-1,-1,-1,-1,-1]:base_domain:soa_server1 [8348400613458600489S:10.2.1.143:[8001,8001,-1,-1,-1,-1,-1]:base_domain:soa_server1/285])/285
    I don't know how to determine which server the DBAdapter is targetted to.
    But I found the following information:
    Under Deoloyment->DBAdapter->Monitoring->Outbound Connection Pools
    Outbound Connection Pool Server State Current Connections Created Connections
    eis/DB/SOADemo AdminServer Running 1 1
    eis/DB/SOADemo soa_server1 Running 1 1
    eis/DB/soademoDatabase AdminServer Running 1 1
    eis/DB/soademoDatabase soa_server1 Running 1 1
    The DbAdapter is related to the following files:
    C:\ Oracle\ Middleware\ home_11gR1\ Oracle_SOA1\ soa\ connectors\ DbAdapter. rar
    C:\ Oracle\ Middleware\ home_11gR1\ Oracle_SOA1\ soa\ DBPlan\ Plan. xml
    I unzipped DbAdapter.rar, opened weblogic-ra.xml and found that there's only one data source is registered:
    <?xml version="1.0"?>
    <weblogic-connector xmlns="http://www.bea.com/ns/weblogic/90">
    <enable-global-access-to-classes>true</enable-global-access-to-classes>
    <outbound-resource-adapter>
    <default-connection-properties>
    <pool-params>
    <initial-capacity>1</initial-capacity>
    <max-capacity>1000</max-capacity>
    </pool-params>
    <properties>
    <property>
    <name>usesNativeSequencing</name>
    <value>true</value>
    </property>
    <property>
    <name>sequencePreallocationSize</name>
    <value>50</value>
    </property>
    <property>
    <name>defaultNChar</name>
    <value>false</value>
    </property>
    <property>
    <name>usesBatchWriting</name>
    <value>true</value>
    </property>
    <property>
    <name>usesSkipLocking</name>
    <value>true</value>
    </property>
    </properties>
              </default-connection-properties>
    <connection-definition-group>
    <connection-factory-interface>javax.resource.cci.ConnectionFactory</connection-factory-interface>
    <connection-instance>
    <jndi-name>eis/DB/SOADemo</jndi-name>
              <connection-properties>
                   <properties>
                   <property>
                   <name>xADataSourceName</name>
                   <value>jdbc/SOADataSource</value>
                   </property>
                   <property>
                   <name>dataSourceName</name>
                   <value></value>
                   </property>
                   <property>
                   <name>platformClassName</name>
                   <value>org.eclipse.persistence.platform.database.Oracle10Platform</value>
                   </property>
                   </properties>
              </connection-properties>
    </connection-instance>
    </connection-definition-group>
    </outbound-resource-adapter>
    </weblogic-connector>
    Then I decided to use eis/DB/SOADemo for testing.
    For JDeveloper project, after I deployed to weblogic server, it works fine.
    But for OSB project referencing wsdl, jca and mapping file from JDeveloper project, still got the same error as follows:
    BEA-380001: Invoke JCA outbound service failed with application error, exception:
    com.bea.wli.sb.transports.jca.JCATransportException: oracle.tip.adapter.sa.api.JCABindingException: oracle.tip.adapter.sa.impl.fw.ext.org.collaxa.thirdparty.apache.wsif.WSIFException: servicebus:/WSDL/DBAdapterTest/DBReader [ DBReader_ptt::DBReaderSelect(DBReaderSelect_inputParameters,PersonTCollection) ] - WSIF JCA Execute of operation 'DBReaderSelect' failed due to: Could not create/access the TopLink Session.
    This session is used to connect to the datastore.
    Caused by Exception [EclipseLink-7060] (Eclipse Persistence Services - 2.0.2.v20100323-r6872): org.eclipse.persistence.exceptions.ValidationException
    Exception Description: Cannot acquire data source [jdbc/SOADataSource].
    Internal Exception: javax.naming.NameNotFoundException: Unable to resolve 'jdbc.SOADataSource'. Resolved 'jdbc'; remaining name 'SOADataSource'.
    ; nested exception is:
    BINDING.JCA-11622
    Could not create/access the TopLink Session.
    This session is used to connect to the datastore.
    Caused by Exception [EclipseLink-7060] (Eclipse Persistence Services - 2.0.2.v20100323-r6872): org.eclipse.persistence.exceptions.ValidationException
    Exception Description: Cannot acquire data source [jdbc/SOADataSource].
    Internal Exception: javax.naming.NameNotFoundException: Unable to resolve 'jdbc.SOADataSource'. Resolved 'jdbc'; remaining name 'SOADataSource'.
    You may need to configure the connection settings in the deployment descriptor (i.e. DbAdapter.rar#META-INF/weblogic-ra.xml) and restart the server. This exception is considered not retriable, likely due to a modelling mistake.
    It almost drive me crazy!!:-(
    What's the purpose of 'weblogic-ra.xml' under the folder of 'C:\Oracle\Middleware\home_11gR1\Oracle_OSB1\lib\external\adapters\META-INF'?
    ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

  • Error while using UTL_FILE

    I am getting the following error while using UTL_FILE procedure while using UTL_FILE.FOPEN procedure
    from system account. I am using Windows XP with NTFS.
    SQL> create or replace directory FILE_DIR as 'C:\'
    2 /
    Directory created.
    SQL> grant read on directory FILE_DIR to public;
    Grant succeeded.
    1 create or replace PROCEDURE file_upload IS
    2 v_file_name VARCHAR2(200);
    3 v_file_type UTL_FILE.FILE_TYPE;
    4 v_line VARCHAR2(1000);
    5 BEGIN
    6 v_file_name := 'customers_'||TO_CHAR(SYSDATE,'dd')||TO_CHAR(SYSDATE,'MON')||TO_CHAR(SYSDATE,'YYYY')||'.txt';
    7 v_file_type := UTL_FILE.FOPEN('FILE_DIR','V_FILE_NAME','r',1000);
    8 UTL_FILE.GET_LINE(v_file_type,V_LINE,1000);
    9 UTL_FILE.FCLOSE(v_file_type);
    10 DBMS_OUTPUT.PUT_LINE(V_LINE);
    11* END;
    SQL> exec file_upload;
    BEGIN file_upload; END;
    ERROR at line 1:
    ORA-29283: invalid file operation
    ORA-06512: at "SYS.UTL_FILE", line 475
    ORA-29283: invalid file operation
    ORA-06512: at "SYSTEM.FILE_UPLOAD", line 7
    ORA-06512: at line 1
    I appreciate if someone can help me in this regard.
    Thanks in Advance.
    Regards
    Muhammad ALi

    Hello,
    What exactly are you trying to do? Here I got 2 examples for you , replace with your directory name and pick right option for 'a' (append) or 'w' (write) or 'R' (read).
    To read from a directory_ . This will read an existing file 'customer.txt" from the directory
    {code}
    CREATE OR REPLACE PROCEDURE .file_upload
    IS
    v_file_name VARCHAR2 (200);
    v_file_type UTL_FILE.file_type;
    v_line VARCHAR2 (1000);
    BEGIN
    v_file_name := 'customers.txt';
    v_file_type := UTL_FILE.fopen ('EXT_TABLES', v_file_name, 'R');
    UTL_FILE.get_line (v_file_type, v_line); -- Error was here
    DBMS_OUTPUT.put_line (v_line);
    UTL_FILE.fclose (v_file_type);
    END;
    {code}
    _*To open a file*_ This will create customer_XXXXX file under the directory
    {code}
    CREATE OR REPLACE PROCEDURE testme.file_upload
    IS
    v_file_name VARCHAR2 (200);
    v_file_type UTL_FILE.file_type;
    v_line VARCHAR2 (1000);
    BEGIN
    v_file_name := 'customers_'
    || TO_CHAR (SYSDATE, 'dd')
    || TO_CHAR (SYSDATE, 'MON')
    || TO_CHAR (SYSDATE, 'YYYY')
    || '.txt';
    v_file_type := UTL_FILE.fopen ('EXT_TABLES', v_file_name, 'a');
    UTL_FILE.put_line (v_file_type, v_line);
    DBMS_OUTPUT.put_line (v_line);
    UTL_FILE.fclose (v_file_type);
    END;
    {code}
    Regards
    Edited by: OrionNet on Jan 29, 2009 12:30 AM

  • Error while using LabVIEW 8.2.1 Dll from Visual C++ 6.0

    I am getting an error while using a LabVIEW 8.2.1 dll from Visual C++ 6.0 application. This is what I am doing:
    1) Created a dll using LabVIEW 8.2.1 (I used a tutorial from NI knowledge base: "Creating DLLs from 6.0i". It is a temperature conversion VI; input DegreeF and get DegreeC out). Instead of LabVIEW 6.0i, I used 8.2.1. It created the dll Convert_Temp.dll successfully.
    2) Then I created a Visual C++ 6.0 application (used a tutorial from NI knowledge base: "Calling a DLL from Microsoft Visual C++ that was Generated by LabVIEW 6i). I could build the project and create an executable application F_To_C.exe.
    3) Then copied the LabVIEW dll Convert_Temp.dll into the folder where F_To_C.exe resides. Using windows explorer, went into that folder, and executed the application.  I got the following error:
    System Error 998 while loading the LabVIEW run-time engine (C:\Program Files\National Instruments\Shared\LabVIEW Run-Time\8.2\lvrt.dll).
    Convert_Temp requires a version 8.2.1 (or compatible) LabVIEW Run-Time Engine. Please contact the vendor of Convert_Temp to correct this problem.
    I checked the folder: C:\Program Files\National Instruments\Shared\LabVIEW Run-Time\8.2\. It has the file lvrt.dll.
    So why am I getting this error?
    GKB

    sounds like you need to install the LabVIEW 8.2.1 runtime. Not the 8.2 runtime engine.
    Paul <--Always Learning!!!
    sense and simplicity.
    Browse my sample VIs?

  • Error while using DB Adapter in BPEL process

    Hi All,
    I am getting error while using DB Adapter in BPEL process
    java.lang.Exception: oracle.sysman.emSDK.webservices.wsdlapi.SoapTestException: Exception occured when binding was invoked. Exception occured during invocation of JCA binding: "JCA Binding execute of Reference operation 'DevDBAdapter' failed due to: JCA Binding Component connection issue. JCA Binding Component is unable to create an outbound JCA (CCI) connection. DBAdapterDemo:DevDBAdapter [ DevDBAdapter_ptt::DevDBAdapter(InputParameters,OutputParameters) ] : The JCA Binding Component was unable to establish an outbound JCA CCI connection due to the following issue: BINDING.JCA-12510 JCA Resource Adapter location error. Unable to locate the JCA Resource Adapter via .jca binding file element <connection-factory/> The JCA Binding Component is unable to startup the Resource Adapter specified in the <connection-factory/> element: location='eis/DB/Dev'. The reason for this is most likely that either 1) the Resource Adapters RAR file has not been deployed successfully to the WebLogic Application server or 2) the '<jndi-name>' element in weblogic-ra.xml has not been set to eis/DB/Dev. In the last case you will have to add a new WebLogic JCA connection factory (deploy a RAR). Please correct this and then restart the Application Server ". The invoked JCA adapter raised a resource exception. Please examine the above error message carefully to determine a resolution. at oracle.sysman.emas.model.wsmgt.WSTestModel.invokeOperation(WSTestModel.java:575) at oracle.sysman.emas.view.wsmgt.WSView.invokeOperation(WSView.java:381) at oracle.sysman.emas.view.wsmgt.WSView.invokeOperation(WSView.java:298) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at com.sun.el.parser.AstValue.invoke(AstValue.java:157) at com.sun.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:283) at org.apache.myfaces.trinidadinternal.taglib.util.MethodExpressionMethodBinding.invoke(MethodExpressionMethodBinding.java:53) at org.apache.myfaces.trinidad.component.UIXComponentBase.broadcastToMethodBinding(UIXComponentBase.java:1259) at org.apache.myfaces.trinidad.component.UIXCommand.broadcast(UIXCommand.java:183) at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent$1.run(ContextSwitchingComponent.java:90) at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent._processPhase(ContextSwitchingComponent.java:309) at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent.broadcast(ContextSwitchingComponent.java:94) at oracle.adf.view.rich.component.fragment.UIXInclude.broadcast(UIXInclude.java:97) at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent$1.run(ContextSwitchingComponent.java:90) at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent._processPhase(ContextSwitchingComponent.java:309) at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent.broadcast(ContextSwitchingComponent.java:94) at oracle.adf.view.rich.component.fragment.UIXInclude.broadcast(UIXInclude.java:91) at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:475) at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:756) at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._invokeApplication(LifecycleImpl.java:698) at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:285) at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:177) at javax.faces.webapp.FacesServlet.service(FacesServlet.java:265) at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227) at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125) at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300) at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56) at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:97) at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:420) at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:60) at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:420) at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:247) at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:157) at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56) at oracle.help.web.rich.OHWFilter.doFilter(Unknown Source) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56) at oracle.sysman.emSDK.license.LicenseFilter.doFilter(LicenseFilter.java:101) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56) at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:191) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56) at oracle.sysman.emas.fwk.MASConnectionFilter.doFilter(MASConnectionFilter.java:41) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56) at oracle.adf.library.webapp.LibraryFilter.doFilter(LibraryFilter.java:159) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56) at oracle.sysman.eml.app.AuditServletFilter.doFilter(AuditServletFilter.java:179) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56) at oracle.sysman.eml.app.EMRepLoginFilter.doFilter(EMRepLoginFilter.java:203) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56) at oracle.sysman.core.app.perf.PerfFilter.doFilter(PerfFilter.java:141) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56) at oracle.sysman.eml.app.ContextInitFilter.doFilter(ContextInitFilter.java:542) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56) at oracle.dms.wls.DMSServletFilter.doFilter(DMSServletFilter.java:330) 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.doIt(WebAppServletContext.java:3684) at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3650) at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321) at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121) at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2268) at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2174) at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1446) at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201) at weblogic.work.ExecuteThread.run(ExecuteThread.java:173) Caused by: oracle.sysman.emSDK.webservices.wsdlapi.SoapTestException: Exception occured when binding was invoked. Exception occured during invocation of JCA binding: "JCA Binding execute of Reference operation 'DevDBAdapter' failed due to: JCA Binding Component connection issue. JCA Binding Component is unable to create an outbound JCA (CCI) connection. DBAdapterDemo:DevDBAdapter [ DevDBAdapter_ptt::DevDBAdapter(InputParameters,OutputParameters) ] : The JCA Binding Component was unable to establish an outbound JCA CCI connection due to the following issue: BINDING.JCA-12510 JCA Resource Adapter location error. Unable to locate the JCA Resource Adapter via .jca binding file element <connection-factory/> The JCA Binding Component is unable to startup the Resource Adapter specified in the <connection-factory/> element: location='eis/DB/Dev'. The reason for this is most likely that either 1) the Resource Adapters RAR file has not been deployed successfully to the WebLogic Application server or 2) the '<jndi-name>' element in weblogic-ra.xml has not been set to eis/DB/Dev. In the last case you will have to add a new WebLogic JCA connection factory (deploy a RAR). Please correct this and then restart the Application Server ". The invoked JCA adapter raised a resource exception. Please examine the above error message carefully to determine a resolution. at oracle.sysman.emSDK.webservices.wsdlapi.dispatch.DispatchUtil.invoke(DispatchUtil.java:260) at oracle.sysman.emSDK.webservices.wsdlparser.OperationInfoImpl.invokeWithDispatch(OperationInfoImpl.java:985) at oracle.sysman.emas.model.wsmgt.PortName.invokeOperation(PortName.java:729) at oracle.sysman.emas.model.wsmgt.WSTestModel.invokeOperation(WSTestModel.java:569) ... 69 more Caused by: javax.xml.ws.soap.SOAPFaultException: Exception occured when binding was invoked. Exception occured during invocation of JCA binding: "JCA Binding execute of Reference operation 'DevDBAdapter' failed due to: JCA Binding Component connection issue. JCA Binding Component is unable to create an outbound JCA (CCI) connection. DBAdapterDemo:DevDBAdapter [ DevDBAdapter_ptt::DevDBAdapter(InputParameters,OutputParameters) ] : The JCA Binding Component was unable to establish an outbound JCA CCI connection due to the following issue: BINDING.JCA-12510 JCA Resource Adapter location error. Unable to locate the JCA Resource Adapter via .jca binding file element <connection-factory/> The JCA Binding Component is unable to startup the Resource Adapter specified in the <connection-factory/> element: location='eis/DB/Dev'. The reason for this is most likely that either 1) the Resource Adapters RAR file has not been deployed successfully to the WebLogic Application server or 2) the '<jndi-name>' element in weblogic-ra.xml has not been set to eis/DB/Dev. In the last case you will have to add a new WebLogic JCA connection factory (deploy a RAR). Please correct this and then restart the Application Server ". The invoked JCA adapter raised a resource exception. Please examine the above error message carefully to determine a resolution. at oracle.j2ee.ws.client.jaxws.DispatchImpl.throwJAXWSSoapFaultException(DispatchImpl.java:955) at oracle.j2ee.ws.client.jaxws.DispatchImpl.invoke(DispatchImpl.java:750) at oracle.j2ee.ws.client.jaxws.OracleDispatchImpl.synchronousInvocationWithRetry(OracleDispatchImpl.java:234) at oracle.j2ee.ws.client.jaxws.OracleDispatchImpl.invoke(OracleDispatchImpl.java:105) at oracle.sysman.emSDK.webservices.wsdlapi.dispatch.DispatchUtil.invoke(DispatchUtil.java:256) ... 72 more
    I have created jndi from console which I have mentioned in DBAdapter and I have provided details of JNDI to DbAdapter in deployment.
    I am not able to solve this.
    Can you please let me know solution for this or provide me link for tutorial of DBAdapter for stored procdure call?

    did u deploy your dbadapter through console to the plan mentioned for deployment?

  • In Oracle 10g Error while using COLLECT

    I getting error while using collect in 10g
    SQL> ed
    Wrote file afiedt.buf
    1 SELECT deptno
    2 , COLLECT(ename) AS emps
    3 FROM emp
    4 GROUP BY
    5* deptno
    SQL> /
    , COLLECT(ename) AS emps
    ERROR at line 2:
    ORA-00932: inconsistent datatypes: expected NUMBER got -
    Please give me the solution.

    you are using old version of SQL*Plus. if you use later version it will give you correct result.
    Edited by: unus on Mar 14, 2010 4:25 AM

  • Error while using XML Iview, please contact your system administrator.

    Hello everybody,
    I have already posted a detailed message for the XML iview problem sometime back but havent got any reply so far. All the replies had come from users who are also facing the same problem. I am trying to use a XML iview for fetching RSS feeds from one of the internet source, i have entered the proper URL and selected the proper RSS to XHTMLB transformer also and have entered the proxy settings in the http service and enabled it and restarted it also, but again when i am previewing the Iview its giving me the error <b>"Error while using XML Iview, please contact your system administrator."</b>. I am using
        Area           Version
        J2EE Engine    6.40 PatchLevel 98256.313
        Portal         6.0.14.0.0
    , can someone tell me whether its a bug in sp14 or i am missing something while creating this XML Iview. Expecting a proper reply.
    Thanks in advance,
    Regards,
    Sarabjeet.

    Hi Sarabjeet,
    The XML iView uses server-side fetching, so if you are having problems with a regular URL iView in server-side fetching mode, so the problem with the XML iVIew probably has to do with the proxy settings.
    And since you got a 407 error, it seems there is an issue with proxy settings or the proxy server, as mentioned in this description of 407 error:
    The HTTP 407 code only applies to users who are accessing the Internet behind a proxy server. This is common in government and corporate workplaces. The 407 code indicates that your computer must first authenticate itself with your company's proxy server. Check with your IT department or computer support group as to the exact reason why you may be getting this error. It may be possible that the proxy server does not allow downloads of specific files (exe, cab, com). You can also verify that your proxy server settings are valid.
    I will check if I can find out any more specific info.
    Daniel

  • Error while using exp utility

    Hi,
    I am getting the following oracle error while using exp,
    can someone please suggest on this,
    About to export specified users ...
    . exporting pre-schema procedural objects and actions
    . exporting foreign function library names for user SIEBEL
    . exporting PUBLIC type synonyms
    . exporting private type synonyms
    . exporting object type definitions for user SIEBEL
    About to export SIEBEL's objects ...
    . exporting database links
    . exporting sequence numbers
    . exporting cluster definitions
    . about to export SIEBEL's tables via Conventional Path ...
    . . exporting table EIM_ACCDTL_TNT
    EXP-00008: ORACLE error 904 encountered
    ORA-00904: "MAXSIZE": invalid identifier
    . . exporting table EIM_ACCNTROUTE
    EXP-00008: ORACLE error 1003 encountered
    ORA-01003: no statement parsed
    . . exporting table EIM_ACCNT_CUT
    EXP-00008: ORACLE error 904 encountered
    ORA-00904: "MAXSIZE": invalid identifier
    . . exporting table EIM_ACCNT_DTL
    EXP-00008: ORACLE error 1003 encountered
    ORA-01003: no statement parsed

    Satish is right, there exists bug for 11.1.0.6.
    Look at metalink note 741984.1.
    Bug number is 5872788 - there exists patch as well.

  • Error while Activating the Standard DSO

    Hi,
    I am getting the below error while Activating the Standard DSO.
    Characteristic 0DPM_DCAS__0CSM_SPRO: DS object 0DPM_DCAS__0CSM_STAT (master data check) does not exist
    I tried searching the forum , but didnt find any answer.
    Any suggestions are welcome.
    Thank you,
    Adhvi.

    Hi,
       Are you getting the error while trying to activate the DSO data after loading or just while trying to activate the DSO itself.
      If it is during the activation of a request,then please check if you have loaded some data in the DSO which doesnt have the corresponding Master Data loaded.For preventing this, you can check in Infopackage/DTP -"No Update without Master Data".
    You can also go into RSRV and perform elementary tests for the DSO and check the SID table consistency.
    Thanks,
    Divya.

Maybe you are looking for