Call2 method not found (ActiveX VI method)

I have the following problem. I have an executable Server ActiveX is enabled.

the code below is a calling VI. the code worked correctly before. When I inserted a new node called on the block diagram, I can't see not all methods.

I think that the image below says a lot.

Help, please!

Thank you

RENN

LV2010Sp1 32-bit

Hi Moritz M.

you don't know. I'm happy to post the solution.

Normally, the ActiveX Server is registered automatically at startup of the executable.

But since the EXE EXE of old and new has the same name, at first, I had to cancel registration of the old activeX Server (see link: http://support.microsoft.com/kb/297279) save the new one manually.

Its NEITHER too well documented on support page.

How can I register type libraries, ActiveX controls and ActiveX servers?

http://digital.NI.com/public.nsf/allkb/4F811A9B23F1D46E862566F700615B7A

I got the diagram broken in appellant VI (that I've posted before) because the activeX Server (in my case the executable file) was not registered.

Thanks for the reply

RENN

Tags: NI Software

Similar Questions

  • The getColdFusionInstances method was not found.

    On a Solaris server, I'm trying to connect a CF11 update 7-8 update instance. Another group of development updated all other instances except for the two that I work on without talking to me first.

    On one of my cases CF page updated, I see the following error message:

    The web site, you access has met an unexpected error.
    Please contact the site administrator.

    The following information is for the creation of Web sites for debugging purposes.
    Error occurred while demand treatment
      

    The getColdFusionInstances method was not found.

    He doesn't are has no method with the method specified name and the arguments types or the getColdFusionInstances method is overloaded with argument types ColdFusion cannot decrypt reliably. ColdFusion found 0 methods that correspond to the provided arguments. If it is a Java object and you verified that the method exists, use the javacast function to reduce ambiguity.

    I tried to delete the server JAR file. This reset the download buttons and I was able to re - download the JAR file. But it still shows the error message CF prevents the installation of the update.

    Seems that this missing method breaks the JavaScript installation feature.

    I'm tempted to delete the {cf_install_home}/{instance_home}/hf_updates/hf-11-00008/updates.xml.} After that I have the rear first.

    I got access to one of the other forums on the CF server that was on a previous version of the fix and used to update it and it broke a. Correction of the problem and removed the error.

  • code xdoxslt:Sum does not not in the RTF model: method not found "sum".

    We get the error when you run a RTF model customized using the application (Oracle HRMS) below and in Office BiPublisher for a particular set of data (1 employees check data). Format RTF model code which seems to be the cause of the error is the cumulative total code which is supposed to sum YTD_HOURS for all elements in the DataSet xml AC_EARNINGS:

    Problem code: <? xdoxslt:sum(YTD_HOURS_[.!_=''])? >

    The error message below it seems to be having trouble with the sum

    HRMS Oracle concurrent Manager error:

    java.lang.reflect.InvocationTargetException
    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 oracle.apps.xdo.common.xml.XSLT10gR1.invokeProcessXSL(XSLT10gR1.java:677)
    at oracle.apps.xdo.common.xml.XSLT10gR1.transform(XSLT10gR1.java:425)
    at oracle.apps.xdo.common.xml.XSLT10gR1.transform(XSLT10gR1.java:244)
    at oracle.apps.xdo.common.xml.XSLTWrapper.transform(XSLTWrapper.java:182)
    at oracle.apps.xdo.template.fo.util.FOUtility.generateFO(FOUtility.java:1044)
    at oracle.apps.xdo.template.fo.util.FOUtility.generateFO(FOUtility.java:997)
    at oracle.apps.xdo.template.fo.util.FOUtility.generateFO(FOUtility.java:212)
    at oracle.apps.xdo.template.FOProcessor.createFO(FOProcessor.java:1665)
    at oracle.apps.xdo.template.FOProcessor.generate(FOProcessor.java:975)
    at oracle.apps.xdo.oa.schema.server.TemplateHelper.runProcessTemplate (TemplateH
    Elper.Java:5936)
    at oracle.apps.xdo.oa.schema.server.TemplateHelper.processTemplate (TemplateHelp
    St. Java:3459)
    at oracle.apps.xdo.oa.schema.server.TemplateHelper.processTemplate (TemplateHelp
    St. Java:3548)
    at oracle.apps.pay.core.documents.DocGenerator.process(DocGenerator.java:521)
    Caused by: oracle.xdo.parser.v2.XPathException: Extension function error: method
    not found 'sum' to the oracle.xdo.parser.v2.XSLStylesheet.flushErrors(XSLStylesheet.java:1534)
    at oracle.xdo.parser.v2.XSLStylesheet.execute(XSLStylesheet.java:521)
    at oracle.xdo.parser.v2.XSLStylesheet.execute(XSLStylesheet.java:489)
    at oracle.xdo.parser.v2.XSLProcessor.processXSL(XSLProcessor.java:271)
    at oracle.xdo.parser.v2.XSLProcessor.processXSL(XSLProcessor.java:155)
    at oracle.xdo.parser.v2.XSLProcessor.processXSL(XSLProcessor.java:192)
    ... more than 17

    HR_6882_HRPROC_ASSERT
    LOCATION pyjavacom:2
    APP-PAY-06882: Assertion failure detected at the location pyjavacom:2.

    Cause: an internal error has occurred at the location pyjavacom:2.

    Action: contact your Oracle customer representative.



    Note: The RTF check model works ok most of the time, but there is a problem with the model of XML data below. In this scenario, there is no YTD_HOURS and only one line of data for this employee, unlike the data second example of another audit below.

    The data that the code does NOT work with:

    -< AC_EARNINGS >
    < DATE_DISP_FLG > N < / DATE_DISP_FLG >
    revenues of < ELEMENT_CLASSIFICATION > < / ELEMENT_CLASSIFICATION >
    < ELEMENT_TYPE_ID > 58423 < / ELEMENT_TYPE_ID >
    < PRIMARY_BALANCE > 10511197 < / PRIMARY_BALANCE >
    < PROCESSING_PRIORITY > 1200 < / PROCESSING_PRIORITY >
    < CURRENT_AMOUNT > 1584.8 < / CURRENT_AMOUNT >
    < YTD_AMOUNT > 25698.88 < / YTD_AMOUNT >
    Normal salary < REPORTING_NAME > < / REPORTING_NAME >
    < CURRENT_HOURS > 80 < / CURRENT_HOURS >
    < YTD_HOURS > 1312 < / YTD_HOURS >
    < RATE / >
    < CURRENT_DAYS / >
    < YTD_DAYS / >
    < ATTRIBUTE_NAME / >
    < ORIGINAL_DATE_EARNED / >
    < EFFECTIVE_START_DATE / >
    < EFFECTIVE_END_DATE / >
    < ELEMENT_CATEGORY / >
    < JURISDICTION_CODE / >
    < RATE_MUL > 19.81 < / RATE_MUL >
    < RATE_RET / >
    < / AC_EARNINGS >

    Data that works with the code:

    -< AC_EARNINGS >
    < DATE_DISP_FLG > N < / DATE_DISP_FLG >
    revenues of < ELEMENT_CLASSIFICATION > < / ELEMENT_CLASSIFICATION >
    < ELEMENT_TYPE_ID > 58423 < / ELEMENT_TYPE_ID >
    < PRIMARY_BALANCE > 10511197 < / PRIMARY_BALANCE >
    < PROCESSING_PRIORITY > 1200 < / PROCESSING_PRIORITY >
    < CURRENT_AMOUNT > 1584.8 < / CURRENT_AMOUNT >
    < YTD_AMOUNT > 25698.88 < / YTD_AMOUNT >
    Normal salary < REPORTING_NAME > < / REPORTING_NAME >
    < CURRENT_HOURS > 80 < / CURRENT_HOURS >
    < YTD_HOURS > 1312 < / YTD_HOURS >
    < RATE / >
    < CURRENT_DAYS / >
    < YTD_DAYS / >
    < ATTRIBUTE_NAME / >
    < ORIGINAL_DATE_EARNED / >
    < EFFECTIVE_START_DATE / >
    < EFFECTIVE_END_DATE / >
    < ELEMENT_CATEGORY / >
    < JURISDICTION_CODE / >
    < RATE_MUL > 19.81 < / RATE_MUL >
    < RATE_RET / >
    < / AC_EARNINGS >
    -< AC_EARNINGS >
    < DATE_DISP_FLG > N < / DATE_DISP_FLG >
    < ELEMENT_CLASSIFICATION > attributed gains < / ELEMENT_CLASSIFICATION >
    < ELEMENT_TYPE_ID > 58444 < / ELEMENT_TYPE_ID >
    < PRIMARY_BALANCE > 10511222 < / PRIMARY_BALANCE >
    < PROCESSING_PRIORITY > 3250 < / PROCESSING_PRIORITY >
    < CURRENT_AMOUNT > 1.46 < / CURRENT_AMOUNT >
    < YTD_AMOUNT > 25,51 < / YTD_AMOUNT >
    Life term for the Group < REPORTING_NAME > < / REPORTING_NAME >
    < CURRENT_HOURS / >
    < YTD_HOURS / >
    < RATE / >
    < CURRENT_DAYS / >
    < YTD_DAYS / >
    < ATTRIBUTE_NAME / >
    < ORIGINAL_DATE_EARNED / >
    < EFFECTIVE_START_DATE / >
    < EFFECTIVE_END_DATE / >
    < ELEMENT_CATEGORY / >
    < JURISDICTION_CODE / >
    < RATE_MUL / >
    < RATE_RET / >
    < / AC_EARNINGS >
    -< AC_EARNINGS >
    < DATE_DISP_FLG > N < / DATE_DISP_FLG >
    Additional gains < ELEMENT_CLASSIFICATION > < / ELEMENT_CLASSIFICATION >
    < ELEMENT_TYPE_ID > 58431 < / ELEMENT_TYPE_ID >
    < PRIMARY_BALANCE > 10511205 < / PRIMARY_BALANCE >
    < PROCESSING_PRIORITY > 2500 < / PROCESSING_PRIORITY >
    < CURRENT_AMOUNT > 9.6 < / CURRENT_AMOUNT >
    < YTD_AMOUNT > 163,2 < / YTD_AMOUNT >
    < REPORTING_NAME > dental CB < / REPORTING_NAME >
    < CURRENT_HOURS > 0 < / CURRENT_HOURS >
    < YTD_HOURS > 0 < / YTD_HOURS >
    < RATE / >
    < CURRENT_DAYS / >
    < YTD_DAYS / >
    < ATTRIBUTE_NAME / >
    < ORIGINAL_DATE_EARNED / >
    < EFFECTIVE_START_DATE / >
    < EFFECTIVE_END_DATE / >
    < ELEMENT_CATEGORY / >
    < JURISDICTION_CODE / >
    < RATE_MUL / >
    < RATE_RET / >
    < / AC_EARNINGS >
    -< AC_EARNINGS >
    < DATE_DISP_FLG > N < / DATE_DISP_FLG >
    revenues of < ELEMENT_CLASSIFICATION > < / ELEMENT_CLASSIFICATION >
    < ELEMENT_TYPE_ID > 64614 < / ELEMENT_TYPE_ID >
    < PRIMARY_BALANCE > 10518109 < / PRIMARY_BALANCE >
    < PROCESSING_PRIORITY > 1526 < / PROCESSING_PRIORITY >
    < CURRENT_AMOUNT > 0 < / CURRENT_AMOUNT >
    < YTD_AMOUNT > 1571.12 < / YTD_AMOUNT >
    < REPORTING_NAME > TOWP < / REPORTING_NAME >
    < CURRENT_HOURS / >
    < YTD_HOURS > 80 < / YTD_HOURS >
    < RATE / >
    < CURRENT_DAYS / >
    < YTD_DAYS / >
    < ATTRIBUTE_NAME / >
    < ORIGINAL_DATE_EARNED / >
    < EFFECTIVE_START_DATE / >
    < EFFECTIVE_END_DATE / >
    < ELEMENT_CATEGORY / >
    < JURISDICTION_CODE / >
    < RATE_MUL / >
    < RATE_RET / >
    < / AC_EARNINGS >
    -< AC_EARNINGS >
    < DATE_DISP_FLG > N < / DATE_DISP_FLG >
    revenues of < ELEMENT_CLASSIFICATION > < / ELEMENT_CLASSIFICATION >
    < ELEMENT_TYPE_ID > 57863 < / ELEMENT_TYPE_ID >
    < PRIMARY_BALANCE > 10510820 < / PRIMARY_BALANCE >
    < PROCESSING_PRIORITY > 1200 < / PROCESSING_PRIORITY >
    < CURRENT_AMOUNT > 0 < / CURRENT_AMOUNT >
    < YTD_AMOUNT > 937,2 < / YTD_AMOUNT >
    Holiday < REPORTING_NAME > < / REPORTING_NAME >
    < CURRENT_HOURS / >
    < YTD_HOURS > 48 < / YTD_HOURS >
    < RATE / >
    < CURRENT_DAYS / >
    < YTD_DAYS / >
    < ATTRIBUTE_NAME / >
    < ORIGINAL_DATE_EARNED / >
    < EFFECTIVE_START_DATE / >
    < EFFECTIVE_END_DATE / >
    < ELEMENT_CATEGORY / >
    < JURISDICTION_CODE / >
    < RATE_MUL / >
    < RATE_RET / >
    < / AC_EARNINGS >
    -< AC_EARNINGS >
    < DATE_DISP_FLG > N < / DATE_DISP_FLG >
    < ELEMENT_CLASSIFICATION > attributed gains < / ELEMENT_CLASSIFICATION >
    < ELEMENT_TYPE_ID > 63592 < / ELEMENT_TYPE_ID >
    < PRIMARY_BALANCE > 10517244 < / PRIMARY_BALANCE >
    < PROCESSING_PRIORITY > 3250 < / PROCESSING_PRIORITY >
    < CURRENT_AMOUNT > 0 < / CURRENT_AMOUNT >
    < YTD_AMOUNT > 285.07 < / YTD_AMOUNT >
    < REPORTING_NAME > F90 SVEU DIST < / REPORTING_NAME >
    < CURRENT_HOURS / >
    < YTD_HOURS / >
    < RATE / >
    < CURRENT_DAYS / >
    < YTD_DAYS / >
    < ATTRIBUTE_NAME / >
    < ORIGINAL_DATE_EARNED / >
    < EFFECTIVE_START_DATE / >
    < EFFECTIVE_END_DATE / >
    < ELEMENT_CATEGORY / >
    < JURISDICTION_CODE / >
    < RATE_MUL / >
    < RATE_RET / >
    < / AC_EARNINGS >
    -< AC_EARNINGS >
    < DATE_DISP_FLG > N < / DATE_DISP_FLG >
    Additional gains < ELEMENT_CLASSIFICATION > < / ELEMENT_CLASSIFICATION >
    < ELEMENT_TYPE_ID > 67074 < / ELEMENT_TYPE_ID >
    < PRIMARY_BALANCE > 10520289 < / PRIMARY_BALANCE >
    < PROCESSING_PRIORITY > 2500 < / PROCESSING_PRIORITY >
    < CURRENT_AMOUNT > 0 < / CURRENT_AMOUNT >
    < YTD_AMOUNT > 85.24 < / YTD_AMOUNT >
    < REPORTING_NAME > other Tx RRs < / REPORTING_NAME >
    < CURRENT_HOURS / >
    < YTD_HOURS / >
    < RATE / >
    < CURRENT_DAYS / >
    < YTD_DAYS / >
    < ATTRIBUTE_NAME / >
    < ORIGINAL_DATE_EARNED / >
    < EFFECTIVE_START_DATE / >
    < EFFECTIVE_END_DATE / >
    < ELEMENT_CATEGORY / >
    < JURISDICTION_CODE / >
    < RATE_MUL / >
    < RATE_RET / >
    < / AC_EARNINGS >


    If anyone has any ideas as to what is necessary to resolve the issue we have in our company can you please let me know? I appreciate your time. If you need more information please let me know and I'll post it.

    Thank you

    Greg

    Published by: gtruta on November 20, 2012 16:20

    Published by: gtruta on November 20, 2012 16:21

    xdoxslt sum allows us to avoid the issue while fields sum with the value null. as you already now the condition with the field u do not need xdoxslt

    is - enough try this

    you are able to get a preview of the template with the code of the sum.

    Send me your model and xml. I can try at my side
    E-mail: [email protected]

  • method not found

    Hello.

    I use jdeveloper 11.1.1.5
    I'm following this link
      http://marianne-horsch-adf.blogspot.com/2011/11/how-to-render-different-pages-for-each.html
    Now I tried to use this code
                HrRegionBean bean = (HrRegionBean) getBeanInstance("#{pageFlowScope.regionBean}");
                if (employeeKey == null) {
                bean.startEmpty();
                } else {
                DepartmentsViewImpl row =
                (DepartmentsViewImpl)getService().getDepartmentsViewView2().getCurrentRow();
                if (row.getManagerId() == null) {
                getService().getLocationsVO1().setb_id(row.getLocationId());   //getting error as setb_id method not found  since b-id is a paramter passed
                getService().getLocationsViewView1().executeQuery();
                getService().getLocationsViewView1().setCurrentRow(getService().getLocationsViewView1().first());
                bean.startLocation();
                } else {
                getService().getManagers1().setb_id(row.getManagerId());
                getService().getManagers1().executeQuery();
                getService().getManagers1().setCurrentRow(getService().getLocationsViewView1().first());
                bean.startManager();
                }
            }
    could someone help me solve this error

    Hello

    expose you a client method "setb_id" on the LocationsVO1? If not, then that is why.

    Frank

    PS: Please note that to access the business service classes impl - as DepartmentsViewImpl - is considered to be bad practice and you should only work with interfaces or through the link layer

    Frank

  • the length error "method not found".

    Using the line of code below and get the error "* function Extension error: caused by: oracle.xdo.parser.v2.XPathException: Extension function error: method not found 'length ' * '.

    <? xdoxslt:set_variable ($_XDOCTX, "LNG", xdoxslt:to_number(xdoxslt:length(LINE_ITEM_DESCRIPTION)))?) >

    I had the same problem before with the substr function. The answer to this problem was to use substring instead. There is another function that returns the length of a string as well? The next page using as reference but really nothing else.


    [http://download.oracle.com/docs/cd/E10415_01/doc/bi.1013/e12187/T421739T481158.htm]

    What Miss me? Thanks for your help.

    What about using the string-length function?

    Thank you!

  • getExpressionObjectReference "method not found".

    Hello! I use the method:
      public void PasesPPR(ValueChangeEvent valueChangeEvent) {
        GenericButton gB = (GenericButton)JsfUtils.getExpressionObjectReference("#{GenericButton}");
        gB.getThirdLevel().setDisabled(true);
        AdfFacesContext.getCurrentInstance().addPartialTarget(gB.getThirdLevel());
        
      }
    And I have error: getExpressionObjectReference method not found

    Where would be the problem?

    Best regards, Debuger!

    Doggone it, OTN.

    Here is the code

    package oracle.fodemo.storefront.jsf.util;
    
    import java.util.Iterator;
    import java.util.Locale;
    import java.util.Map;
    import java.util.MissingResourceException;
    import java.util.ResourceBundle;
    
    import javax.el.ELContext;
    import javax.el.ExpressionFactory;
    
    import javax.el.MethodExpression;
    import javax.el.ValueExpression;
    
    import javax.faces.application.Application;
    import javax.faces.application.FacesMessage;
    import javax.faces.component.UIComponent;
    import javax.faces.component.UIViewRoot;
    import javax.faces.context.ExternalContext;
    import javax.faces.context.FacesContext;
    
    import javax.servlet.http.HttpServletRequest;
    
    /**
     * General useful static utilies for working with JSF.
     * NOTE: Updated to use JSF 1.2 ExpressionFactory.
     *
     * @author Duncan Mills
     * @author Steve Muench
     *
     * $Id: JSFUtils.java 1885 2007-06-26 00:47:41Z ralsmith $
     */
    public class JSFUtils {
    
        private static final String NO_RESOURCE_FOUND = "Missing resource: ";
    
        /**
         * Method for taking a reference to a JSF binding expression and returning
         * the matching object (or creating it).
         * @param expression EL expression
         * @return Managed object
         */
        public static Object resolveExpression(String expression) {
            FacesContext facesContext = getFacesContext();
            Application app = facesContext.getApplication();
            ExpressionFactory elFactory = app.getExpressionFactory();
            ELContext elContext = facesContext.getELContext();
            ValueExpression valueExp =
                elFactory.createValueExpression(elContext, expression,
                                                Object.class);
            return valueExp.getValue(elContext);
        }
    
        /**
         * @return
         */
        public static String resolveRemoteUser() {
            FacesContext facesContext = getFacesContext();
            ExternalContext ectx = facesContext.getExternalContext();
            return ectx.getRemoteUser();
        }
    
        /**
         * @return
         */
        public static String resolveUserPrincipal() {
            FacesContext facesContext = getFacesContext();
            ExternalContext ectx = facesContext.getExternalContext();
            HttpServletRequest request = (HttpServletRequest)ectx.getRequest();
            return request.getUserPrincipal().getName();
        }
    
        /**
         * @param expression
         * @param returnType
         * @param argTypes
         * @param argValues
         * @return
         */
        public static Object resolveMethodExpression(String expression,
                                                     Class returnType,
                                                     Class[] argTypes,
                                                     Object[] argValues) {
            FacesContext facesContext = getFacesContext();
            Application app = facesContext.getApplication();
            ExpressionFactory elFactory = app.getExpressionFactory();
            ELContext elContext = facesContext.getELContext();
            MethodExpression methodExpression =
                elFactory.createMethodExpression(elContext, expression, returnType,
                                                 argTypes);
            return methodExpression.invoke(elContext, argValues);
        }
    
        /**
         * Method for taking a reference to a JSF binding expression and returning
         * the matching Boolean.
         * @param expression EL expression
         * @return Managed object
         */
        public static Boolean resolveExpressionAsBoolean(String expression) {
            return (Boolean)resolveExpression(expression);
        }
    
        /**
         * Method for taking a reference to a JSF binding expression and returning
         * the matching String (or creating it).
         * @param expression EL expression
         * @return Managed object
         */
        public static String resolveExpressionAsString(String expression) {
            return (String)resolveExpression(expression);
        }
    
        /**
         * Convenience method for resolving a reference to a managed bean by name
         * rather than by expression.
         * @param beanName name of managed bean
         * @return Managed object
         */
        public static Object getManagedBeanValue(String beanName) {
            StringBuffer buff = new StringBuffer("#{");
            buff.append(beanName);
            buff.append("}");
            return resolveExpression(buff.toString());
        }
    
        /**
         * Method for setting a new object into a JSF managed bean
         * Note: will fail silently if the supplied object does
         * not match the type of the managed bean.
         * @param expression EL expression
         * @param newValue new value to set
         */
        public static void setExpressionValue(String expression, Object newValue) {
            FacesContext facesContext = getFacesContext();
            Application app = facesContext.getApplication();
            ExpressionFactory elFactory = app.getExpressionFactory();
            ELContext elContext = facesContext.getELContext();
            ValueExpression valueExp =
                elFactory.createValueExpression(elContext, expression,
                                                Object.class);
    
            //Check that the input newValue can be cast to the property type
            //expected by the managed bean.
            //If the managed Bean expects a primitive we rely on Auto-Unboxing
            Class bindClass = valueExp.getType(elContext);
            if (bindClass.isPrimitive() || bindClass.isInstance(newValue)) {
                valueExp.setValue(elContext, newValue);
            }
        }
    
        /**
         * Convenience method for setting the value of a managed bean by name
         * rather than by expression.
         * @param beanName name of managed bean
         * @param newValue new value to set
         */
        public static void setManagedBeanValue(String beanName, Object newValue) {
            StringBuffer buff = new StringBuffer("#{");
            buff.append(beanName);
            buff.append("}");
            setExpressionValue(buff.toString(), newValue);
        }
    
        /**
         * Convenience method for setting Session variables.
         * @param key object key
         * @param object value to store
         */
        public static
    
        void storeOnSession(String key, Object object) {
            FacesContext ctx = getFacesContext();
            Map sessionState = ctx.getExternalContext().getSessionMap();
            sessionState.put(key, object);
        }
    
        /**
         * Convenience method for getting Session variables.
         * @param key object key
         * @return session object for key
         */
        public static Object getFromSession(String key) {
            FacesContext ctx = getFacesContext();
            Map sessionState = ctx.getExternalContext().getSessionMap();
            return sessionState.get(key);
        }
    
        /**
         * @param key
         * @return
         */
        public static String getFromHeader(String key) {
            FacesContext ctx = getFacesContext();
            ExternalContext ectx = ctx.getExternalContext();
            return ectx.getRequestHeaderMap().get(key);
        }
    
        /**
         * Convenience method for getting Request variables.
         * @param key object key
         * @return session object for key
         */
        public static Object getFromRequest(String key) {
            FacesContext ctx = getFacesContext();
            Map sessionState = ctx.getExternalContext().getRequestMap();
            return sessionState.get(key);
        }
    
        /**
         * Pulls a String resource from the property bundle that
         * is defined under the application <message-bundle> element in
         * the faces config. Respects Locale
         * @param key string message key
         * @return Resource value or placeholder error String
         */
        public static String getStringFromBundle(String key) {
            ResourceBundle bundle = getBundle();
            return getStringSafely(bundle, key, null);
        }
    
        /**
         * Convenience method to construct a FacesMesssage
         * from a defined error key and severity
         * This assumes that the error keys follow the convention of
         * using _detail for the detailed part of the
         * message, otherwise the main message is returned for the
         * detail as well.
         * @param key for the error message in the resource bundle
         * @param severity severity of message
         * @return Faces Message object
         */
        public static FacesMessage getMessageFromBundle(String key,
                                                        FacesMessage.Severity severity) {
            ResourceBundle bundle = getBundle();
            String summary = getStringSafely(bundle, key, null);
            String detail = getStringSafely(bundle, key + "_detail", summary);
            FacesMessage message = new FacesMessage(summary, detail);
            message.setSeverity(severity);
            return message;
        }
    
        /**
         * Add JSF info message.
         * @param msg info message string
         */
        public static void addFacesInformationMessage(String msg) {
            FacesContext ctx = getFacesContext();
            FacesMessage fm =
                new FacesMessage(FacesMessage.SEVERITY_INFO, msg, "");
            ctx.addMessage(getRootViewComponentId(), fm);
        }
    
        /**
         * Add JSF error message.
         * @param msg error message string
         */
        public static void addFacesErrorMessage(String msg) {
            FacesContext ctx = getFacesContext();
            FacesMessage fm =
                new FacesMessage(FacesMessage.SEVERITY_ERROR, msg, "");
            ctx.addMessage(getRootViewComponentId(), fm);
        }
    
        /**
         * Add JSF error message for a specific attribute.
         * @param attrName name of attribute
         * @param msg error message string
         */
        public static void addFacesErrorMessage(String attrName, String msg) {
            FacesContext ctx = getFacesContext();
            FacesMessage fm =
                new FacesMessage(FacesMessage.SEVERITY_ERROR, attrName, msg);
            ctx.addMessage(getRootViewComponentId(), fm);
        }
    
        // Informational getters
    
        /**
         * Get view id of the view root.
         * @return view id of the view root
         */
        public static String getRootViewId() {
            return getFacesContext().getViewRoot().getViewId();
        }
    
        /**
         * Get component id of the view root.
         * @return component id of the view root
         */
        public static String getRootViewComponentId() {
            return getFacesContext().getViewRoot().getId();
        }
    
        /**
         * Get FacesContext.
         * @return FacesContext
         */
        public static FacesContext getFacesContext() {
            return FacesContext.getCurrentInstance();
        }
        /*
       * Internal method to pull out the correct local
       * message bundle
       */
    
        private static ResourceBundle getBundle() {
            FacesContext ctx = getFacesContext();
            UIViewRoot uiRoot = ctx.getViewRoot();
            Locale locale = uiRoot.getLocale();
            ClassLoader ldr = Thread.currentThread().getContextClassLoader();
            return ResourceBundle.getBundle(ctx.getApplication().getMessageBundle(),
                                            locale, ldr);
        }
    
        /**
         * Get an HTTP Request attribute.
         * @param name attribute name
         * @return attribute value
         */
        public static Object getRequestAttribute(String name) {
            return getFacesContext().getExternalContext().getRequestMap().get(name);
        }
    
        /**
         * Set an HTTP Request attribute.
         * @param name attribute name
         * @param value attribute value
         */
        public static void setRequestAttribute(String name, Object value) {
            getFacesContext().getExternalContext().getRequestMap().put(name,
                                                                       value);
        }
    
        /*
       * Internal method to proxy for resource keys that don't exist
       */
    
        private static String getStringSafely(ResourceBundle bundle, String key,
                                              String defaultValue) {
            String resource = null;
            try {
                resource = bundle.getString(key);
            } catch (MissingResourceException mrex) {
                if (defaultValue != null) {
                    resource = defaultValue;
                } else {
                    resource = NO_RESOURCE_FOUND + key;
                }
            }
            return resource;
        }
    
        /**
         * Locate an UIComponent in view root with its component id. Use a recursive way to achieve this.
         * @param id UIComponent id
         * @return UIComponent object
         */
        public static UIComponent findComponentInRoot(String id) {
            UIComponent component = null;
            FacesContext facesContext = FacesContext.getCurrentInstance();
            if (facesContext != null) {
                UIComponent root = facesContext.getViewRoot();
                component = findComponent(root, id);
            }
            return component;
        }
    
        /**
         * Locate an UIComponent from its root component.
         * Taken from http://www.jroller.com/page/mert?entry=how_to_find_a_uicomponent
         * @param base root Component (parent)
         * @param id UIComponent id
         * @return UIComponent object
         */
        public static UIComponent findComponent(UIComponent base, String id) {
            if (id.equals(base.getId()))
                return base;
    
            UIComponent children = null;
            UIComponent result = null;
            Iterator childrens = base.getFacetsAndChildren();
            while (childrens.hasNext() && (result == null)) {
                children = (UIComponent)childrens.next();
                if (id.equals(children.getId())) {
                    result = children;
                    break;
                }
                result = findComponent(children, id);
                if (result != null) {
                    break;
                }
            }
            return result;
        }
    
        /**
         * Method to create a redirect URL. The assumption is that the JSF servlet mapping is
         * "faces", which is the default
         *
         * @param view the JSP or JSPX page to redirect to
         * @return a URL to redirect to
         */
        public static String getPageURL(String view) {
            FacesContext facesContext = getFacesContext();
            ExternalContext externalContext = facesContext.getExternalContext();
            String url =
                ((HttpServletRequest)externalContext.getRequest()).getRequestURL().toString();
            StringBuffer newUrlBuffer = new StringBuffer();
            newUrlBuffer.append(url.substring(0, url.lastIndexOf("faces/")));
            newUrlBuffer.append("faces");
            String targetPageUrl = view.startsWith("/") ? view : "/" + view;
            newUrlBuffer.append(targetPageUrl);
            return newUrlBuffer.toString();
        }
    
    }
    
  • ProcessTemplate method not found.

    Hi all

    I'm having a rough with the processTemplate class which I hope one of you can help me with.

    First some facts about the system.

    JDeveloper 9i RUP 7.
    XMLP 6.5.3
    Oracle APPS 11.5.10CU2

    I have the following code:

    ...
    dataTemplate.setOutput("/home/appsdev/kkristoff/KKR_TEST_1.xml");
    dataTemplate.processData ();

    OutputStream outputStream = new FileOutputStream("/home/appsdev/kkristoff/KKR_TEST_1.pdf");
    InputStream inputStream = new FileInputStream("/home/appsdev/kkristoff/KKR_TEST_1.xml");

    Properties prop = new Properties ();

    Process template
    TemplateHelper.processTemplateFile (appsContext, / / AppsContext)
    'BKFND', / / short name of the Application of the model
    "HelloReport", / / model model code
    'fr', / / the model ISO language code
    '00', / / ISO of the model territory code
    inputStream, / / the XML data in the model of
    TemplateHelper.OUTPUT_TYPE_PDF, / / output the procesed document type
    prop, / / properties of the treatment model
    outputStream); OutputStream where goes the transformed document.

    inputStream.close ();
    outputStream.close ();

    When I Isaiah to compile the project, I get the following error:

    method processTemplateFile (oracle.apps.fnd.common.AppsContext,
    java.lang.String,
    java.lang.String,
    java.lang.String,
    java.lang.String,
    java.io.InputStream,
    Byte,
    java.util.Properties,
    java.io.OutputStream) is not found in the oracle.apps.xdo.oa.schema.server.TemplateHelper class

    The javadoc for the API tells me that I can use the following method:

    public static void processTemplate (pContext, oracle.apps.fnd.common.AppsContext,
    java.lang.String pAppName,
    java.lang.String pTemplateCode,
    java.lang.String pLanguage,
    java.lang.String pTerritory,
    java.io.InputStream pData,
    pOutputType bytes,
    java.util.Properties pProp,
    PPerformance java.io.OutputStream)

    I checked the class oracle.apps.xdo.oa.schema.server.TemplateHelper to a method described above and which exists.

    Can someone please tell me why JDeveloper complaints regarding this call to the processTemplate method?

    Thank you in advance.

    Kenneth

    Hello

    Use ProcessTemplate method instead of ProcessTemplateFile.

    Kind regards
    Out Sharma

  • enableThemes method not found in the oracle.lbs.mapclient.MapViewer class

    Hello
    I would ask about the error I recently.
    I don't know what's wrong with my code, but I '_enableThemes_ method not found in the class oracle.lbs.mapclient.MapViewer' when I tried to apply a theme to my card using the API of Java Bean.

    Another method does not recognize mapviewer is '_setAllThemesEnabled_ '.

    I don't know how to apply some themes I did for my card despite the use of the method.
    I have already imported oracle.lbs.mapclient.MapViewer.

    -----
    Here are my codes:

    < % @ page import = "java.util.Enumeration" % > "
    < % @ page import = "java.awt.geom.Point2D" % > "
    < % @ page import = "java.awt.Dimension" % > "
    < % @ page import = "oracle.lbs.mapclient.MapViewer" % > "
    < % @ page import = "oracle.lbs.mapclient.ScaleBarDef" % > "

    String mvURL = request.getParameter ("mvurl");
    mvURL = "http://localhost: 8888/mapviewer/omserver";

    MapViewer mv = session.getAttribute("gvis_mvhandle") (MapViewer);

    Boolean newSession = false;

    if(MV==null)
    {
    create a new ID customer mapviewer
    MV = new MapViewer (mvURL);
    mv.setImageFormat (MapViewer.FORMAT_PNG_URL);
    mv.setMapTitle("");
    session.setAttribute ("gvis_mvhandle", mv); keep the handle of the client in the session
    newSession = true;
    }

    mv.setDataSourceName ("mvdemo");

    String = "#000000" stroke1, fill1 = null, tr1 = null, labelc1 = null, asis1;

    int opacity1 = 128;

    String style1 = "gvis_" + ("NONE".equals (stroke1)? ". (': stroke1) + "_" +.
    ("NONE".equals (fill1)?" (': fill1) +.
    ((opacity1>0)?) » 128" : « ») ;

    String query1_ = "select * from counties;

    mv.addJDBCTheme ("peta", "theme1", query1_, null, null,
    Style1, labelc1, '_gvis_style_text_', true);

    mv.enableThemes ("THEMENAME");

    try {}
    mv.setFullExtent ();
    MV. Run();
    } catch (Exception e) {out.println (e.getMessage ()) ;}}

    String url = mv.getGeneratedMapImageURL ();

    -----


    I really appreciate your help...

    Hello
    Make sure that you type the correct setting. EnableThemes method requires an array of strings. Try the following:

    mv.enableThemes (new String() {"THEMENAME"});

  • method not found Web service?

    Hello

    I try to call a web service method, which when I view directly at the URL, it shows the available method. However, when I try to call the method, I get this error:

    Service operation 'ValidateUser' Web site with
    parameters {password = 12345, username = {type}} is not found.


    I can call the method through an ASP.Net page without problem, but not by a CFM page. Also, other methods not requiring that whatever happened to them work correctly. Its only the methods that are in need of something of spent, as a method of connection.

    When I create the web service object and then throw, it shows the "ValidateUser" method, but has a 'returns void"next to him. Again, the only problem is he calling via CF.

    Here's how I call:

    < cfinvoke
    "WebService =" http://www.xyz.com/RemoteService.asmx?wsdl "
    method = "ValidateUser.
    returnvariable = "myresponse" >
    < cfinvokeargument name = "userName" value = "Guy" >
    < cfinvokeargument name = "password" value = "12345" >
    < / cfinvoke >

    or

    < cfset wsURL = " http://www.xyz.com/RemoteService.asmx?wsdl" >
    < cfscript >
    WS = CreateObject ("webservice","#wsURL #'");
    myResponse = ws. ValidateUser('Guy','12345');
    < / cfscript >

    < cfdump var = "#myresponse #" >


    Both give me the same error. Thanks for any help!

    Your web service validateUser method supports more these two arguments?

    From my experience, you must use for each possible method attribute that describes the WSDL. The error you get generally indicates that you do not provide the correct number of arguments.

    The problem with CF, it is that she will not automatically populate the NULL values for the arguments you specify, as do other platforms. Yes, it sucks a bit, but once you get used to it, you can live with it. This also makes the model CFSCRIPT to invoke a bit pointless, when there is a lot of optional arguments in the method.

    CFMX 7 of a new attribute "omit", which, I guess it just sends a NULL value for this attribute. Leave the empty value attribute when use you it.

    (Edited to complete a missing sentence of paragraph 3 :-)

  • XPathException: Function Extension error: method not found "abs".

    Hello

    I use - XMLP 5.6.3 on EBS 11.5.10.2
    In XML Publisher Admin, see model page, click on 'Sample' I receive a report, but all it contains is a long stack trace containing the following messages:

    java.lang.reflect.InvocationTargetException
    ...
    Caused by: oracle.xdo.parser.v2.XPathException: Extension function error: method not found "abs".


    In my RTF, the offending code is
    <?when:xdoxslt:abs(ACCOUNTED_CR)>xdoxslt:abs(ACCOUNTED_DR)?>
    It works fine on my pc where I have BI Publisher Office 10.1.3.4

    When I look at the documentation to [documentation XML Publisher | http://download.oracle.com/docs/cd/B25284_01/current/acrobat/115xdoug.pdf] in Chapter 7, I don't see the abs function in the game of XDOXSLT.

    The version of [10.1.3.4 | http://download.oracle.com/docs/cd/E12844_01/doc/bip.1013/e12187/T421739T481158.htm] has.

    To be sure, you could do a simple check with a blank report and a field as or something similar. You know for sure, it is not supported in EBS.

    [XPATH 1.0 | http://www.w3.org/TR/xpath#section-Number-Functions] does not have the abs function. So you should fix it yourself for example a widening when or...

  • 404 not found error was encountered while trying to use an ErrorDocument directive to manage demand

    When I try to go to my site, I get a blank screen and this message:

    Method not implemented

    GET to / not supported.

    Additionally, a 404 not found error was encountered while trying to use an ErrorDocument directive to manage demand.

    Can someone help me fix this bug, please? Thank you!

    This problem may be caused by corrupted cookies or cookies that are blocked (check the permissions on the subject: permissions page).

    Clear the cache and cookies only from Web sites that are causing problems.

    "Clear the Cache":

    • Firefox > Preferences > advanced > network > content caching Web: 'clear now '.

    'Delete Cookies' sites causing problems:

    • Firefox > Preferences > privacy > "Use the custom settings for history" > Cookies: "show the Cookies".

    Please upgrade to the current version of Firefox 30.

    • Firefox > topic

    The version of Firefox you are currently running is no longer supported with security updates.

    • It is important to update Firefox and Add-ons to the latest version to get all security patches.

    You can find the full version of the current version of Firefox 30.0 in all languages and for all systems operating here:

  • SSD upgrade failed - not found boot drive

    I need your help guys... I've been everywhere on the net, try different methods to clone my Windows 7 for SSD and failed repeatedly.

    Here is my setup, I have a HP Envy 14 with a 500 GB HARD drive. I bought an SSD to speed things up.  I have 2 OS (dual boot),

    Win7 and win 8, on which Win8 is the default operating system (according to the news of easyBCD).   I just want to clone the Win7 OS part.

    (Win7 - C drive), (Win8 - F drive) and recovery on the D drive.

    I tried these t hings upafter the defragmentation and backup)

    1. While on Win7, I created a copy of the image, but strangely, thought, once the process is complete the copy of the image is Win8

    I've used EaseUs to do backup and clone Drive C

    Swapped with the SSD HARD drive and got a message could not find a boot disk

    2. because I failed on the first try, I formatted the SSD and opt instead for a new installation.

    -J' I downloaded the ISO of Win7, swapped the (empty) SSD newly formatted

    -Started on the Win7 Installer, and have the operating system installed on the SSD.

    -J' thought that I was until I noticed assigned HP keys do not work, the USB drivers do not work, I could not turn on/off wifi. The reason may be the missing drivers (bloatware since the HP recovery disk - given that I didn't copy that one)

    3. after the attempts, I formatted the SSD drive. I read somewhere to use the HP recovery instead.

    -J' cloned the disc to my HDD to the SSD HP recovery

    -Swapped with the SSD HARD drive

    -Started my laptop and not found boot drive... (even after pressing F11)

    can you tell me a better way to do it?   Or if someone could point out what I did wrong, or perhaps missed?  Really appreaciate... This was bugs me for the last days...

    Hello wawipack,

    Welcome to the HP Forums! I hope you enjoy your experience!

    I understand that you're having trouble to locate the boot device. I'll do what I can to help you! To start, make sure that you have tried all the steps in this document from HP: Solve Boot Device Error Message not

    If this does not help, I suggest to do a reinstall of HP standard on the SSD. Once done, do a restore to a previous image in the OS Windows, is not using any bootable media.

    These steps should help get back you on track. Please provide your results. Thanks for choosing the HP Forums. Have a great day!

    Mario

  • 15 - p030nr: Boot Device not found

    Need help on how to fix a problem where it says "boot device not found." He worked to find one day and the next time I turned on the computer, she appeared with this error message. After reading some things, it seems that it is a right of common mistake around the 1 year mark, but I don't know which is correct. Are there methods I could do to fix this problem.

    OK, if it was an old PC, my guess would be that the hard drive is a failure, but on a PC old of a few months, it is unlikely.

    However, it would be interesting to follow these instructions to check the hard drive:

    Presume withdraw OK, what might work is booting from CD or USB and running CHKDSK to see if this helps to repair the file system.

    CHKDSK is the short name of a utility that provides MS that will do a check of the file system and attempt to repair problems.  A damaged file system may prevent your computer to start correctly and get to a Windows desktop.

    Because you can not boot from your PC, then you need to download one of the following options and follow the instructions it contains to make a bootable USB stick or a CD:
    (1) miniTool Partition Wizard
    (2) EASEUS Partition Master
    (3) assistant Partition AOEMI

    Once the media, boot from it and use the option to check the disk.

    Good luck

    I'm a volunteer and I do not work for, or represent, HP.
    ========================================================================
    If you feel that my suggestions helped you, please click on the thumbs-up symbol to say thank you!

    If they helped to solve your problem, please click 'Accept as Solution' to help others find similar information.

  • Adapter not found

    I am running Windows 7 64 bit on my HP Pavilion dv6. I had never had any problems with my wifi, until I used a cable ethernet for a little while. Normally, my wifi works great. I get full signal and about 10 or so other networks bars appear in my area, and I can connect to wifi in public places and homes of others when I go out. Then, I used a cable ethernet home for a few days, to see if this helped a problem that we have with our router (internet cuts in and out sometimes, but that is not related to my concern). After that I restarted my computer once with the ethernet cable, the icon at the bottom right which shows my network has changed. He used to look like bars of signal, and when I clicked it I could see that I was connected to my home network with the internet and excellent signal strength, and I could see a list of other local networks. After reboot with ethernet cable, the icon has changed to a monitor with a cable ethernet beside him, and when I click on it it shows just my network. When I take the ethernet cable, my network disappears and it says that there are no available connections.

    Something was wrong with my wifi. I tried several methods via the control panel to set up a wireless network and internet, and I made sure several times my computer has active wireless. There is a button on my keyboard (f12 key), which shows a little light blue when wifi is on, and it becomes red when the wireless is turned off. I always make sure that the light is blue.

    When I clicked on 'Intel My Wifi Technology' in the Control Panel, a small window pops up which says 'Card network not found.' What does that mean? I lost a driver somehow? What can I do about it? I really need my wireless internet, especially for the school, if can I please get help? Thank you :-)

    Sometimes, when you use the cable ethernet wireless adapter is disabled. Open network and sharing of Center.In the left sidebar, click on "change the map settings. This should show ethernet and wireless adapters. The wireless, the value is disabled? If so, right-click and choose activate.

  • Is it possible to find a list of what iTunes songs not found on my PC? I have a library of more than 4000 songs and do not want to have to try all of them.

    I found by trial and error that iTunes has lost track of some of my songs. I suspect that it might be more, but do not know how to find out other than by "trial and error".

    You can use one of the following methods to delete broken links.

    Lost & found playlists

    Create a playlist named found, select everything in the music and the drag in the playlist found . Create a smart playlist called Lost corresponding to all the rulesthat playlist is music and Playlist not found. Your lost tracks will be in this playlist. They can be deleted with Ctrl + A, and then shift + delete.

    Or use iTunes folder Watch and enable the option to check titles dead at startup.

    If the media files exist somewhere so I can help you to reconnect the media mentions.

    TT2

Maybe you are looking for