Cfinvoke component argument question

cfnewbie here...
I want to invoke a method in a CFC file - I am not clear from
the docs. how to construct the component argument. If using the
filepath structure below, for example, where am I supposed to
start? what should "directory" be? the root folder of the server?
<cfinvoke
component="directory.subdirectory.subdirectory2.cfc_filename"
method="method_name"
returnvariable="whatever">
</cfinvoke>
Thanks!

Thanks Ted. I am looking at the " Registered CFX Tags" area
in CFAdmin MX6.1 and I do not see it, should it be there?
Again thanks for answering such dumb questions... the person
who supported CF is no longer with our company so I'm stuck with
it.

Similar Messages

  • NullPointerException: component argument pData

    I keep getting this error message.
    I am creating a screenManager, which sets a fullscreen displaymode based on the
    available and compatible displaymodes on the system, and restores the original
    displaymode upon exit. This is some new territory for me, and I have no idea where
    and why this error appears. I'll post code if none can instantly tell what makes this
    nullpointer exception appear.
    Thanks,
    Terje
    java.lang.NullPointerException: component argument pData
    at sun.awt.windows.Win32BackBufferSurfaceData.initSurface(Native Method)
    at sun.awt.windows.Win32BackBufferSurfaceData.createData(Win32BackBuffer
    SurfaceData.java:49)
    at sun.awt.windows.Win32BackBuffer.createHWData(Win32BackBuffer.java:28)
    at sun.awt.windows.WVolatileImage.initAcceleratedBackground(WVolatileIma
    ge.java:100)
    at sun.awt.windows.Win32BackBuffer.displayChanged(Win32BackBuffer.java:3
    5)
    at sun.awt.SunDisplayChanger.notifyListeners(SunDisplayChanger.java:102)
    at sun.awt.Win32GraphicsEnvironment.displayChanged(Win32GraphicsEnvironm
    ent.java:98)
    at sun.awt.windows.WToolkit$4.run(WToolkit.java:734)
    at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:178)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:454)
    at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchTh
    read.java:201)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThre
    ad.java:151)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:145)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:137)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:100)
    Press any key to continue . . .

    Well, I understand that much... The funny thing is the trace seems to be outside my code, and after running the application some more times, I occationally end up with the following message:
    An unexpected exception has been detected in native code outside the VM.
    Unexpected Signal : EXCEPTION_ACCESS_VIOLATION (0xc0000005) occurred at PC=0x2E57E76
    Function=Java_sun_print_Win32PrintJob_endPrintRawData+0x1D42
    Library=E:\j2sdk_nb\j2sdk1.4.2\jre\bin\awt.dll
    followed by a list of all dynamic link libraries running.
    This log is additionally written to a file.
    Here is the code:
    import java.awt.*;
    import java.awt.image.*;
    import javax.swing.JFrame;
    public class MonsunScreenManager
         private GraphicsDevice gDevice = null;
         /** change this if you want a different bufferstrategy **/
         private static final int NUM_DISPLAY_BUFFERS = 2;
         private static MonsunScreenManager screenManager = new MonsunScreenManager();
         private MonsunScreenManager()
              GraphicsEnvironment env =
                   GraphicsEnvironment.getLocalGraphicsEnvironment();
              gDevice = env.getDefaultScreenDevice();
         public static MonsunScreenManager getScreenManager()
              return screenManager;
         /** get compatible displaymodes of system **/
         public DisplayMode[] getCompatibleDisplayModes()
              return gDevice.getDisplayModes();
         /** get first compatible mode, or null if none are **/
         public DisplayMode getFirstCompatibleMode( DisplayMode modes[] )
              DisplayMode goodModes[] = gDevice.getDisplayModes();
              for(int i=0;i<modes.length;i++)
                   for(int j=0;j<goodModes.length;j++)
                        if(displayModesMatch(modes,goodModes[j]))
                             return modes[i];
              return null;
         /** get current display mode **/
         public DisplayMode getCurrentDisplayMode()
              return gDevice.getDisplayMode();
         /* check if 2 display modes match. (same resolution, bit depth, and refresh
         * rate). if refresh rate is unknown, only the other two have to match. if bit
         * depth is multi, only the other two have to match.
         public boolean displayModesMatch( DisplayMode mode1, DisplayMode mode2 )
              if(     mode1.getWidth()      != mode2.getWidth()     ||
                   mode1.getHeight()     != mode2.getHeight())
                   return false;
              if(     mode1.getBitDepth()     !=     DisplayMode.BIT_DEPTH_MULTI     &&
                   mode2.getBitDepth()     !=     DisplayMode.BIT_DEPTH_MULTI     &&
                   mode1.getBitDepth()     !=     mode2.getBitDepth())
                   return false;
              if(     mode1.getRefreshRate()     !=     DisplayMode.REFRESH_RATE_UNKNOWN     &&
                   mode2.getRefreshRate()     !=     DisplayMode.REFRESH_RATE_UNKNOWN     &&
                   mode1.getRefreshRate()     !=     mode2.getRefreshRate())
                   return false;
              return true;
         /** changes to fullscreen mode. **/
         public void setFullScreen(DisplayMode displayMode)
              JFrame myDisplay = new JFrame();
              myDisplay.setUndecorated(true);
              myDisplay.setIgnoreRepaint(true);
              myDisplay.setResizable(false);
              gDevice.setFullScreenWindow(myDisplay);
              if(displayMode!=null && gDevice.isDisplayChangeSupported())
                   try
                        gDevice.setDisplayMode(displayMode);
                   catch(IllegalArgumentException e)
                        System.out.println("Boo?");
              myDisplay.createBufferStrategy(NUM_DISPLAY_BUFFERS);
         /** get the graphical context for the display **/
         public Graphics2D getGraphics()
              Window myWindow = gDevice.getFullScreenWindow();
              if(myWindow!=null)
                   BufferStrategy bufferStrat = myWindow.getBufferStrategy();
                   return (Graphics2D)bufferStrat.getDrawGraphics();
              return null;
         /** updates the display **/
         public void updateScreen()
              Window myWindow = gDevice.getFullScreenWindow();
              if(myWindow!=null)
                   BufferStrategy bufferStrat = myWindow.getBufferStrategy();
                   if(bufferStrat.contentsLost())
                        bufferStrat.show();
              // sync display! should be an "option", since it takes time??
              Toolkit.getDefaultToolkit().sync();
         /** returns the window used in fullscreen, or null if not in fullscreen! **/
         public Window getFullScreenWindow()
              return gDevice.getFullScreenWindow();
         /** returns width of window, or 0 if not in fullscreen mode **/
         public int getWidth()
              Window myWindow = getFullScreenWindow();
              if(myWindow!=null)
                   return myWindow.getWidth();
              return 0;
         /** returns height of window, or 0 if not in fullscreen mode **/
         public int getHeight()
              Window myWindow = getFullScreenWindow();
              if(myWindow!=null)
                   return myWindow.getHeight();
              return 0;
         /** restores the screen's display mode **/
         public void restoreScreen()
              Window myWindow = getFullScreenWindow();
              if(myWindow!=null)
                   myWindow.dispose();
              gDevice.setFullScreenWindow(null);
         /** creates an image compatible with the current displaymode **/
         public BufferedImage createCompatibleImage(int dWidth,int dHeight, int dTrans)
              Window myWindow = getFullScreenWindow();
              if(myWindow!=null)
                   GraphicsConfiguration gC = myWindow.getGraphicsConfiguration();
                   return gC.createCompatibleImage(dWidth,dHeight,dTrans);
              return null;

  • Business component representation - question

    Hello, I'm trying to create objects in ID for a scenario where in we receive EDI documents from external customers and we convert few of them in to files and ftp it to a location. (location is internal to the company).
    I already have two parties one representing the EDI customers and the other representing my company... can I create a business component(service) underneath the party of my company representing the file processor (instead of  creating it separately without party)?
    If so, how can I model this in the integration scenario to create objects in the ID.
    If I represent the EDI(sender) party as third party(external party with B2B communication)...I can assign the party and service to it..
    On the received side I'm not able to select the business component I created to represent(couldn't assign) the receiver..the system always expects a business system..
    how this could be handled?
    Please advise. Let me know if you have any further questions.
    Larry.

    Hi Harish,
    Technically I do not get an error but I'm not even allowed to select a business component while implementing my model in ID. I selected a party and service to assign it to the sender application component(Third party EDI) ..but for the receiver(file service) I got an option only to identify it as business system and business components are not even available for selection (this is while applying my model in ID)..Also I'm not sure if it fits a perfect B2B or A2A scenario as it involves a third party EDI(external) and an internal file service location different to be identified as my own company(party)..I just can use it as service without party and forget about modelling as it's not mandatory...but just wanted to see the usual way of handling this scenario..
    Thank you.
    Please advise.
    Larry.

  • Component newbie question

    I'm trying to create a function that willa automatically
    increment a number for tabindex on form fields this is what I did
    for now to this it.
    <cfcomponent>
    <cffunction name="myFunction" access="public"
    returntype="numeric">
    <cfargument name="myArgument" type="numeric"
    required="true">
    <cfset myResult= arguments.myArgument>
    <cfreturn myResult>
    </cffunction>
    </cfcomponent>
    Saved as default.cfc
    then in the form i do this
    <cfparam default="0" name="myResult" />
    <cfscript>
    getTabIndex=createObject("component","cfc.default");
    </cfscript>
    Then this:
    <cfoutput>#getTabIndex.myFunction(myResult)#</cfoutput>
    <cfoutput>#getTabIndex.myFunction(myResult)#</cfoutput>
    <cfoutput>#getTabIndex.myFunction(myResult)#</cfoutput>
    <cfoutput>#getTabIndex.myFunction(myResult)#</cfoutput>
    which give me 0 0 0 0 . I want 1,2,3,4 ect. Any idea on how
    to do this? Seems simple but I can't seem to figure it out.

    Sorry I cut-n-pasted the wrong function. This is what I have
    and I still get 11111. The output does not accept the updated
    myResult Variable.
    <cfcomponent>
    <cffunction name="myFunction" access="public"
    returntype="numeric">
    <cfargument name="myArgument" type="numeric"
    required="true">
    <cfset myResult= incrementValue(arguments.myArgument)>
    <cfreturn myResult>
    </cffunction>
    </cfcomponent>

  • Migrate from XI 3.0 to PI 7.11 software component version question

    Hi,
    We are migrating from XI 3.0 to PI 7.11. there are about 2000 receiver determination, etc.
    We have to assign for every receiver determination, interface determination etc a new software component version.
    does anyone know how to do this automaticly.
    regards meinhart

    The SWVC in receiver determination is not relevant for service interfaces of type "XI 3.0 compatible".
    So you can leave the fields emtpy.
    The technical background for this SWVC in receiver determination is finding the correct operation for a message.
    But XI 3.0 compatible service interfaces have only one operation with same name as the interface.

  • Dynamic Component Creation Question

    I have a process that looks up fields names from a database. I then loop through and create HtmlInputText components dynamically. The question I have is how do I create a value binding to these components? I have been trying to think of a way to create a separate class that can be applied to each field name I retrieve from the database. But I just can't think of a good solution for this. I assume people have had to do this before.
    Thanks

    Let it bind to a List<String> or Map<String, String>. To get/set elements in a List you can use the brace notation, e.g. #{list[0]} for the 1st element (list.get(0)). For map you can use the key name as propertyname, e.g. #{map.key} for the entry associated with key "key" (map.get("key")).

  • Generic problem in passing arguments  ( question )

    I wrote some generic class that hold some generic map.
    When i looking some key in this map - i want to have the value of the key and set this value to some argument that i pass to the function that look for it.
    I dont want to return the value as return value of the function. ( i must have return value as Boolean )
    My paroblem is that when ever i call this function - i get back the "value" as null - and i dont know why and how to solve this problem.
    public abstract class SomeTable<T, U> extends Table{
          protected Map<T, U> currentTable = new HashMap<T, U>();
         public Boolean findItem(T itemToFind , U value){
                value = currentTable.get(itemToFind);
                return ( value == null );
    }Edited by: Yanshof on Dec 3, 2008 6:02 AM
    Edited by: Yanshof on Dec 3, 2008 6:11 AM

    You don't want to get the value from the key, you want to set it. Something more like:
           public Boolean findItem(T itemToFind , U value){
               currentTable.put(itemToFind, value);
               return (value == null);
            }Maybe you should review the functionality of a HashMap and variable assignment..
    Edit: Unless of course I'm misunderstanding your goal (ejp's post makes me think I am :) )
    Edited by: Pheer on Dec 2, 2008 10:15 PM

  • MXML Component State Question

    Hey guys,
    I am trying to simplify my code and break out different parts of the app into different MXML Component files.  I have taken my login info and created the LoginScreen.mxml file which calls the doLogin function in its (parent) mxml file FlexCMS.  It properly sets the state to 'LoggedIn' but then the LoginScreen.mxml file doesnt hide...
    Any ideas?
    <!-- FlexCMS.mxml file -->
    <s:states>
              <s:State name="Login" />
              <s:State name="LoggedIn" />
         </s:states>
    <fx:Script>
              <![CDATA[
    public function doLogin($username:String, $password:String):void {
                        loginResult.token = customUserClass.login($username, $password);
                   protected function loginResultEvent(event:ResultEvent):void {
                        //Alert.show(event.result.toString(), 'loginResult');
                        trace(event.result.toString());
                        if (event.result == true) {
                             currentState = 'LoggedIn';
                        trace('currentState: ' + currentState);
         ]]>
         </fx:Script>
    <components:LoginScreen includeIn="Login" />
    ... More code for rest of app that hasnt been broken out to other mxml files yet
    <!-- LoginScreen.mxml -->
    <?xml version="1.0" encoding="utf-8"?>
    <s:Group xmlns:fx="http://ns.adobe.com/mxml/2009"
               xmlns:s="library://ns.adobe.com/flex/spark"
               xmlns:mx="library://ns.adobe.com/flex/mx" xmlns:local="*">
         <s:layout>
              <s:BasicLayout/>
         </s:layout>
         <s:states>
              <s:State name="Login" />
              <s:State name="LoggedIn" />
         </s:states>
         <fx:Declarations>
              <!-- Place non-visual elements (e.g., services, value objects) here -->
         </fx:Declarations>
         <fx:Script>
              <![CDATA[
                   private var flexCMS:FlexCMS = new FlexCMS(); //get reference to main class
                   protected function loginClick(event:MouseEvent):void {
                        flexCMS.doLogin(username_txt.text, password_txt.text);
              ]]>
         </fx:Script>
         <s:Panel height="140"
                    horizontalCenter="0"
                    title="Login"
                    includeIn="Login"
                    verticalCenter="0"
                    width="250">
              <s:TextInput id="username_txt" text="testuser" width="151" x="87" y="10" />
              <s:TextInput id="password_txt" text="test" width="151" x="87" y="40" />
              <s:Label fontSize="14" text="Username:" x="10" y="10" />
              <s:Label fontSize="14" text="Password:" x="10" y="44" />
              <s:CheckBox label="Remember Me" x="10" y="68" />
              <s:Button click="loginClick(event)" id="login" label="Login" x="168" y="69" />
              <!-- <local:FlexCMS -->
         </s:Panel>
    </s:Group>

    I did something similar in the past for a few of my apps.
    The login screen was a custom TitleWindow component that contained the normal username field, password field and login button and could communicate with the server for authentication purposes. If the authentication was successful then I'd call the PopUpManager's removePopUp method on the login window and change the current state to the authenticated state.

  • Component requestFocus question?

    Hello,
    I have components arranged in different panels and panels arranged in
    tab pane.I have framework for validating component values after confirming the changes and if an invalid value is found i popup error message and then call the invalid component's method requestFocus()I want to know how to make JTabPane to select the invalid component's panel when I call requestFocus method if it is not current panel?
    Is this possible?
    Thanks in advance.

    1. Add a FocusListener to the component
    2. Inside focusGained(), check to see if the Component isShowing()
    3. If isShowing() returns false, instruct the JTabbedPane to select the appropriate panel.
    If you don't have access to the JTabbedPane, you can recursively find the Component's parent until you get to it.
    There are probably better ways, but I think this should work.
    HTHs,
    Jamie

  • Component interface question

    Is the concept "component interface" related to the business methods of the bean or to the callback methods (that inform the bean about state events) of SessionBean/EntityBean interface?
    if "component interface" related to the callBack methods then how the interface with the business methods is called (in 3.0 i know it's "business interface" but what about 2.1)?
    thanks in advanced

    The component interface refers to a particular client view exposed from the bean. It contains the business methods available to the callers.
    The callback methods are a separate contract between the bean class and the container. In EJB 2.x, they are expressed via strongly-typed javax.ejb interfaces that the bean class was required to implement.
    In EJB 3.0, all callbacks are optional and the bean class uses annotations such as @PostConstruct to annotate the methods it wants to be called back. These methods are typically not exposed through the client (component interface) view.
    --ken                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Skip validation - component design question

    i've made my own component.
    in renderer.encode it outputs link, like:
    <A onclick="document.forms['_id0']['_id0:_id27'].value='field2'; document.forms['_id0'].submit(); "
    href="#">
    it handles this action on it's own, in renderer.decode.
    my problem is, that the link causes form to be validated. i want to skip validation in this case, something like with immediate=true in commandButton. what exactly should i do in component/renderer? i've tried to investigate commandButton implementation but i haven't manage do get the solution... i don't need any events to be queued, any listeners invoked etc. all to logic of the action is executed in renderers decode method...

    No, you should not ever call the default ActionListener unless you're actually firing an action that should trigger navigation.
    All you need to do is call FacesContext.renderResponse() at some point during Apply Request Values (decode()).
    -- Adam Winer (JSF EG member)

  • TcL Initialize Arguments Question

    I'm reading through the book & it's unclear to me how to do an argument for running a script.  What I'm trying to do is something like this:
    tclsh flash:/test.tcl username password ip_address
    Where username & password would be an scp username & password & ip_address would be scp ip address.  I'm thinking this is related to the argv arg0, but I don't see a specific example.
    Thanks,
    Cory Anderson

    Thanks Joseph,
    I was hoping it was that easy.  Is there a limit to the amount of arguments that I can have for initialization?

  • About change the component UI question?

    Such as a jcolorchooser, can i suddenly change the UI of jcolorchooser to other UI such as JButton, but all the property of of jcolorchooser no change. That mean can i just change the jColorChooser UI to other UI or image?
    Can i use paint method in component to paint the component UI to other image?
    Please help me! thx to read~

    You mean something like this?JColorChooser jcc = new JColorChooser();
    jcc = new JButton("Click Me");You will get an error indicating that they are
    incompatible types.
    Mark

  • JSF Component Tree questions

    In JSF, the components in the jsp page are converted in to a tree accessible by the Controller, is that correct?
    Can I manipulate that tree on the fly and will the tree be rendered properly when displayed?
    Even more important, will the tree be recreated when I submit the form?
    Simple example, say I want to add an extra text input field on my form on the fly, based on a DB table perhaps.
    Can I do that? And will the tree be there when I post back, or is that based solely upon what's hard coded in the JSP page?

    Read about binding. I think it's what you need.
    Open faces.getViewRoot() to get the root.
    Regards,
    Stas

  • Component Palette question

    I want to create a folder to put all of my .gif files in under my WEB CONTENT folder, does anyone have any suggestions

    Go into the file sytstem and create an images directory under your project's public_html directory.
    Then in JDeveloper go into project properties->Content->Resources and add this directory.

Maybe you are looking for