Cannot reference from static content

Ok, so I was working on wrapping the main program and the classes together and I come up with that error...TopSort.java:40: non-static method addVertex(java.lang.String) cannot be referenced from a static context. I know why I am getting the error, I am just not sure what to do about it. When I first wrote the main, I was literally adding in the newVertexs, doing it like this...
Graph theGraph = new Graph();
theGraph.addVertex("A"); // 0
theGraph.addVertex("B"); // 1
and that all worked great. Now I am adding in the text file and have to read the data from the file so I am doing it like this
String toke1 = toke.nextToken();
if (toke1.equals("vertex"))
     newVertex = toke.nextToken();
     Graph.addVertex(newVertex);
but it throws the nonstatic error. How on earth do I go about modifying the class/main in order to circumvent that error?
Main -
[import java.io.*;
import java.util.*;
public class TopSort
public static void main (String args[])
     File sourceFile = new File(args[0]); // access the file
        if (sourceFile.exists() == false)                                          
          System.err.println("Oops: " + sourceFile + ": No such file");
          System.exit(1);
        System.out.println(args[0] + " is the name of the file you chose");
        Graph theGraph = new Graph();
        String newVertex, startEdge, endEdge;
        try //open the file, read the file into a string and then into the list
             FileReader fr = new FileReader(sourceFile);
             BufferedReader br = new BufferedReader(fr);
          String input;
          while ((input = br.readLine()) != null)
             StringTokenizer toke = new StringTokenizer(input);
             while (toke.hasMoreTokens())
                       String toke1 = toke.nextToken();
                       if (toke1.equals("vertex"))
                       newVertex = toke.nextToken();
                       Graph.addVertex(newVertex);
                       else if (toke1.equals("edge"))
                       startEdge = toke.nextToken();
                       endEdge = toke.nextToken();
                       System.out.println(startEdge + endEdge);
               }//close inner while
          }//close outer while
          br.close();
     }//close try
     catch (IOException e)
        System.out.println("Whoops, there's a mistake somewhere.");
}Class
class Vertex
   public String label;        // label (e.g. 'A')
   public Vertex(String newVertex)   // constructor
      { label = newVertex; }
   }  // end class Vertex
class Graph
   private final int MAX_VERTS = 20;
   private Vertex vertexList[]; // list of vertices
   private int adjMat[][];      // adjacency matrix
   private int nVerts;          // current number of vertices
   private String sortedArray[];
   public Graph()               // constructor
      vertexList = new Vertex[MAX_VERTS];
                                          // adjacency matrix
      adjMat = new int[MAX_VERTS][MAX_VERTS];
      nVerts = 0;
      for(int j=0; j<MAX_VERTS; j++)      // set adjacency
         for(int k=0; k<MAX_VERTS; k++)   //    matrix to 0
            adjMat[j][k] = 0;
      sortedArray = new String[MAX_VERTS];  // sorted vert labels
      }  // end constructor
   public void addVertex(String newVertex)
      vertexList[nVerts++] = new Vertex(newVertex);
   public void addEdge(int start, int end)
      adjMat[start][end] = 1;
   public void displayVertex(int v)
      System.out.print(vertexList[v].label);
   public void topo()  // toplogical sort
      int orig_nVerts = nVerts;  // remember how many verts
      while(nVerts > 0)  // while vertices remain,
         // get a vertex with no successors, or -1
         int currentVertex = noSuccessors();
         if(currentVertex == -1)       // must be a cycle
            System.out.println("ERROR: Graph has cycles");
            return;
         // insert vertex label in sorted array (start at end)
         sortedArray[nVerts-1] = vertexList[currentVertex].label;
         deleteVertex(currentVertex);  // delete vertex
         }  // end while
      // vertices all gone; display sortedArray
      System.out.print("Topologically sorted order: \n ");
      for(int j=0; j<orig_nVerts; j++)
         System.out.print( sortedArray[j]);
      System.out.println("");
      }  // end topo
   public int noSuccessors()  // returns vert with no successors
      {                       // (or -1 if no such verts)
      boolean isEdge;  // edge from row to column in adjMat
      for(int row=0; row<nVerts; row++)  // for each vertex,
         isEdge = false;                 // check edges
         for(int col=0; col<nVerts; col++)
            if( adjMat[row][col] > 0 )   // if edge to
               {                         // another,
               isEdge = true;
               break;                    // this vertex
               }                         //    has a successor
            }                            //    try another
         if( !isEdge )                   // if no edges,
            return row;                  //    has no successors
      return -1;                         // no such vertex
      }  // end noSuccessors()
   public void deleteVertex(int delVert)
      if(delVert != nVerts-1)      // if not last vertex,
         {                         // delete from vertexList
         for(int j=delVert; j<nVerts-1; j++)
            vertexList[j] = vertexList[j+1];
                                   // delete row from adjMat
         for(int row=delVert; row<nVerts-1; row++)
            moveRowUp(row, nVerts);
                                   // delete col from adjMat
         for(int col=delVert; col<nVerts-1; col++)
            moveColLeft(col, nVerts-1);
      nVerts--;                    // one less vertex
      }  // end deleteVertex
   private void moveRowUp(int row, int length)
      for(int col=0; col<length; col++)
         adjMat[row][col] = adjMat[row+1][col];
   private void moveColLeft(int col, int length)
      for(int row=0; row<length; row++)
         adjMat[row][col] = adjMat[row][col+1];
   }  // end class Graph
////////////////////////////////////////////////////////////////

I don't think I quite understand what you mean by
that, would you elucidate? Sorry, serious brain
fry...Sure; your addVertex() method isn't declared static. This means that you cannot call it as a class method, which was what you were doing when you wrote "Graph.addVertex()". Class members (as defined by the keyword static) refer to methods and variables that pertain to the overall class as a whole, as opposed to instance members that pertain to individual (instantiated) objects of that class.
For example, look at the java.lang.Integer class. It has static methods like parseInt() and instance methods like intValue(). The instance method (intValue()) requires that you have instantiated an Integer object from which to get the value. You can't just call Integer.intValue(), because there's no value for the overall Integer class!
Likewise, it doesn't make sense to require you to have an actual Integer object to parse a String to an int value. An actual Integer object wouldn't have anything to do with the process. Thus the parseInt() method is static, meaning you can call Integer.parseInt() to get the value of an int from a String.
Hope this helps!
&#167;

Similar Messages

  • How to use Action listener from Static method

    Hello,
    I am begginer in Java. I am trying to add JButton and add ActionListener to it in the Java tutorial example (TopLevelDemo).
    The problem i am facing are:
    1. Since "private static void createAndShowGUI" method is static I cannot reference (this) in the method addActionLisetener when trying to add the JButton
    JButton pr = new JButton("Print Report");
         pr.addActionListener(this);
    2. If I make "private static void createAndShowGUI" a non static method then it does not run from main method giving me the error(cannot reference non-static).
    3. Where do I put actionPerformed method?
    I did not post the errors for all situations. Just asking how I can Add JButton and add ActionListener to it in the following code
    Thanks
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    /* TopLevelDemo.java requires no other files. */
    public class TopLevelDemo {
    * Create the GUI and show it. For thread safety,
    * this method should be invoked from the
    * event-dispatching thread.
    private static void createAndShowGUI() {
    //Make sure we have nice window decorations.
    JFrame.setDefaultLookAndFeelDecorated(true);
    //Create and set up the window.
    JFrame frame = new JFrame("TopLevelDemo");
    frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    //Create the menu bar. Make it have a cyan background.
    JMenuBar cyanMenuBar = new JMenuBar();
    cyanMenuBar.setOpaque(true);
    cyanMenuBar.setBackground(Color.cyan);
    cyanMenuBar.setPreferredSize(new Dimension(200, 20));
    //Create a yellow label to put in the content pane.
    JLabel yellowLabel = new JLabel();
    yellowLabel.setOpaque(true);
    yellowLabel.setBackground(Color.yellow);
    yellowLabel.setPreferredSize(new Dimension(200, 180));
    //Set the menu bar and add the label to the content pane.
    frame.setJMenuBar(cyanMenuBar);
    frame.getContentPane().add(yellowLabel, BorderLayout.CENTER);
    //Display the window.
    frame.pack();
    frame.setVisible(true);
    public static void main(String[] args) {
    //Schedule a job for the event-dispatching thread:
    //creating and showing this application's GUI.
    javax.swing.SwingUtilities.invokeLater(new Runnable() {
    public void run() {
    createAndShowGUI();
    }

    Here is one way of doing it...
    JButton btn = new JButton("Click on Me");
    btn.addActionListener(new ActionListener(){
                              public void actionPerformed(ActionEvent ae){
                                // do something
                                }});here we create an anonymous inner class ActionListener and add it to our button...
    - MaxxDmg...
    - ' I am not me... '

  • Host static content from Weblogic

    I have a need to host static content from my weblogic server in order to mimic the functionality of our old OHS server. In our case we used Apache rewrite rules in our old server that would catch someone trying to access the server directly by URL or trying to come in through HTTP instead of HTTPS and then pull the switch-a-roo on them and direct them directly to our APEX instance over a HTTPS connection. Is there a way to accomplish this same thing with weblogic without an Apache server acting as your front end?
    I found this article here http://blogs.oracle.com/middleware/2010/06/publish_static_content_to_weblogic.html about hosting static content but in my case I need the content actually at the root level (example http://domain.com/index.html) where I can throw in javascript redirect headers.
    The way I set this up was I have two servers on one box. The first server services standard HTTP requests on port 80. It will do nothing but redirect to the corresponding location on the same machine but over HTTPs on port 443.
    The server running on port 443 actually runs the APEX listener. I would like to deploy something similar to the first one that shows its content at https://server.domain.com to redirect to the Apex listener. I thought I might could repackage the apex listener to accomplish this but I would rather do it as a separate deployment rather than risk damaging our modified production copy of the APEX Listener.
    Anyone have any thoughts?

    What about using a virtual host? Create a virtual host and only target your application to that host.
    http://download.oracle.com/docs/cd/E17904_01/apirefs.1111/e13952/taskhelp/virtual_hosts/VirtualHosts.html
    Then within that virtual host, do something like this to force HTTPS:
    http://weblogicserver.blogspot.com/2009/11/force-confidentiality-for-web.html
    Then have an application that catches everything else deployed to the same server for other IP/hostnames and redirects to that virtual host. I haven't tried it, but I think that might do what you're asking about.

  • Error: Cannot make a static reference to the non-static method

    Below is a java code. I attempt to call method1 and method2 and I got this error:
    Cannot make a static reference to the non-static method but If I add the keyword static in front of my method1 and method2 then I would be freely call the methods with no error!
    Anyone has an idea about such error? and I wrote all code in the same one file.
    public class Lab1 {
         public static void main(String[] args) {
              method1(); //error
         public  void method1 ()
         public  void method2 ()
    }

    See the Search Forums at the left of the screen?
    If you had searched with "Cannot make a static reference to the non-static method"
    http://search.sun.com/search/onesearch/index.jsp?qt=Cannot+make+a+static+reference+to+the+non-static+method+&rfsubcat=siteforumid%3Ajava54&col=developer-forums
    you would have the answer. Almost every question you will ask has already been asked and answered.

  • Serving static content from a directory

    Is it possible to configure WebLogic to serve static content (files) from a directory via an HTTP GET?
    What I need is similar to the Apache functionality of publishing a directory by mapping a URL (http://weblogic.server.xx/somePrefix) to a directory on the file-system (e.g. /path/to/some/dir) and allow one to:
    - list the directory content by visiting the URL
    - fetch files by doing an HTTP GET (this would be by clicking on a file in the listing)
    Can one do this without adding a separate HTTP server on the same machine as WebLogic?

    I believe if you created a WEB-INF directory at that location and added a skeleton web.xml file, you could specify that location when you deployed a new application from the admin console. I believe there should be an option to allow listing the directory contents, perhaps somewhere in the server definition tabs.

  • Hide The Content Reference from Portal For specific users.

    Hello Everyone
    I am new to peoplesoft and want to hide the content reference from the main portal for specific users
    Can anyone help me on this?
    Thanks in advance...

    the users should have roles which do not contain the permission lists to which your current component is added.
    This is the way security is maintained!
    Vikas

  • How to reference a static variable before the static initializer runs

    I'm anything but new to Java. Nevertheless, one discovers something new ever' once n a while. (At least I think so; correct me if I'm wrong in this.)
    I've long thought it impossible to reference a static variable on a class without the class' static initializer running first. But I seem to have discovered a way:
    public class Foo  {
      public static final SumClass fooVar;  // by default initialized to null
      static  {
         fooVar = new SumClass();
    public class Bar  {
      public static final SumClass barVar;
      static  {
         barVar = Foo.fooVar;  // <<<--- set to null !
    }Warning: Speculation ahead.
    Normally the initial reference to Foo would cause Foo's class object to instantiate, initializing Foo's static variables, then running static{}. But apparently a static initializer cannot be triggered from within another static initializer. Can anyone confirm?
    How to fix/avoid: Obviously, one could avoid use of the static initializer. The illustration doesn't call for it.
    public class Foo  {
      public static final SumClass fooVar = new SumClass();  // either this ..
    public class Bar  {
      public static final SumClass barVar = Foo.fooVar;  // .. or this would prevent the problem
    }But there are times when you need to use it.
    So what's an elegant way to avoid the problem?

    DMF. wrote:
    jschell wrote:
    But there are times when you need to use it. I seriously doubt that.
    I would suppose that if one did "need" to use it it would only be once in ones entire professional career.Try an initializer that requires several statements. Josh Bloch illustrates one in an early chapter of Effective Java, IIRC.
    Another classic usage is for Singletons. You can make one look like a Monostate and avoid the annoying instance() invocation. Sure, it's not the only way, but it's a good one.
    What? You only encounter those once in a career? We must have very different careers. ;)
    So what's an elegant way to avoid the problem? Redesign. Not because it is elegant but rather to correct the error in the design.<pff> You have no idea what my design looks like; I just drew you a couple of stick figures.If it's dependent on such things as when a static initializer runs, it's poor. That's avoidable. Mentioning a case where such a dependency is used, that's irrelevant. It can be avoided. I know this is the point where you come up with a series of unfortunate coincidences that somehow dictate that you must use such a thing, but the very fact that you're pondering the problem with the design is a design problem. By definition.
    Besides, since what I was supposing to be a problem wasn't a problem, your "solution" isn't a solution. Is it?Well, you did ask the exact question "So what's an elegant way to avoid the problem?". If you didn't want it answered, you should have said so. I'm wondering if there could be any answer to that question that wouldn't cause you to respond in such a snippy manner. Your design is supposedly problematic, as evidenced by your question. I fail to see why the answer "re-design" is unacceptable. Maybe "change the way the Java runtime initializes classes" would have been better?
    This thread is bizarre. Why ask a question to which the only sane answer, you have already ruled out?

  • Cannot cast from SOMETHING to SOMETHING (Error in 1.4) (Works in 1.6)

    Our company have developed an accounting program, and it is already near completion.
    We developed it with JavaBean and Eclipse in Windows Environment with JRE 1.6.0_05
    When we tried to compile and run the program in our linux environment (Server) that runs on 1.4 , the casting error occured..
    we have written a program to generate all casting errors that occurred in our project.
    import java.math.*;
    import java.util.*;
    public class testnow {
         public static void main(String[] args){
              //Declare ALL Primitive!
              int TestINT = 150;
              Boolean TestBOOL = true;
              String TestSTR = "Streng" + "th";
              BigDecimal TestDCM = BigDecimal.valueOf(20);
              Date TestDATE = new Date();
              //Declare ALL Object
              Object TestINTObj = 150;
              Object TestSTRObj = "Strength";
              Object TestDCMObj = BigDecimal.valueOf(20);
              Object TestBOOLObj = true;
              Object TestDATEObj = new Date();
              if(TestINT == (Integer)TestINTObj){
                   System.out.println("TEST Integer PASSED");
              if(TestSTR.equals((String)TestSTRObj)){
                   System.out.println("TEST String PASSED");
              if(TestDCM.equals(TestDCMObj)){
                   System.out.println("TEST Decimal PASSED");
              if(TestBOOL == (Boolean)TestBOOLObj){
                   System.out.println("TEST Boolean PASSED");
              if(TestDATE.equals((Date)TestDATEObj)){
                   System.out.println("TEST Date PASSED");
    }the following is what happened when i run javac testnow.java
    1. ERROR in testnow.java
    (at line 6)
    Integer TestINT = 150;
    ^^^^^^^
    Type mismatch: cannot convert from int to Integer
    2. ERROR in testnow.java
    (at line 7)
    Boolean TestBOOL = (Boolean)true;
    ^^^^^^^^^^^^^
    Cannot cast from boolean to Boolean
    3. ERROR in testnow.java
    (at line 11)
    Object TestINTObj = (Object)150;
    ^^^^^^^^^^^
    Cannot cast from int to Object
    4. ERROR in testnow.java
    (at line 14)
    Object TestBOOLObj = true;
    ^^^^^^^^^^^
    Type mismatch: cannot convert from boolean to Object
    4 problems (4 errors)
    in our windows development JRE 1.6 , it run well and gives the following output :
    TEST Integer PASSED
    TEST String PASSED
    TEST Decimal PASSED
    TEST Boolean PASSED
    TEST Date PASSED
    how do we solve this? i mean we have been using this "convenience" casting all over our code . :(
    please help
    thanks a lot.
    Cheers and God Bless,
    Chowi

    You've got a lot of problems there, and not all of them are due to Java version incompatibilites. I'll take them in the order I see them. public static Object FindDataInTable(ArrayList TargetTable, String TypeColumn,
             String TargetColumn, Object TargetData, String ReturnedColumn)&#x7B; The convention is to give methods and variables names that start with lowercase letters. That makes your code easier to read, which makes it easier for us to help you. Later on, I see you also use a mix of underscores and camelcase. Underscores should be used only in constant names; class, method and variable names should use only camelcase.
    Also, if you don't have a good reason to make that first argument an ArrayList, you should declare it as a List instead. That leaves the calling code the option of using a different List implementation should they need to.
    Next, you assign a primitive value to an Object reference: Object ReturnedObject = 0; That requires autoboxing, as others have pointed out, which didn't exist in JDK 1.4. Even if you could use autoboxing though, that assignment would be a bad idea; a variable of type Object should be assigned a default value of {color:000080}null{color}, not a number. However, you may not need to declare that variable at all, as I explain later.
    Next you use a "foreach" loop, another feature that was added in JDK 1.5; you'll have to switch to the old-style loop if you want this code to work under JDK 1.4. While you're at it, you should declare your "SingleRow" variable inside the loop, since it's not used anywhere else: for (Iterator it = TargetTable.iterator(); it.hasNext(); ) {
        Model_DatabaseQuery SingleRow = (Model_DatabaseQuery)it.next(); Next I see you using matches() to compare String values: if(TypeColumn.matches("String")){
        if(((String)TargetData).matches((String)CheckData))&#x7B; You get away with that because the strings contain only letters, but you need to look up the docs for matches() so you'll understand why you shoudn't be using it here. But this is nothing compared to the next issue: if((Integer)TargetData == (Integer)CheckData)&#x7B; // WRONG WRONG WRONG That can't possibly have worked right, no matter what version of Java you ran it under. You NEVER use == to compare the values objects! You should have been using equals() for all those comparisions, not matches(), and definitely not ==.
    But I don't see why you're doing all those checks on the column type anyway. All you ever do after that is compare the same two values, so just do it: for (Iterator it = targetTable.iterator(); it.hasNext(); ) {
        Model_DatabaseQuery SingleRow = (Model_DatabaseQuery)it.next();
        Object CheckData = SingleRow.Get_object(TargetColumn);
        if (CheckData != null && CheckData.equals(TargetData)) {
            return SingleRow.Get_object(ReturnedColumn);
    } If there are other columns that you're supposed to ignore, you may still need to check the column type, but you could do that in one {color:000080}if{color} statement; you don't have to check them all separately.

  • Removing book from Adobe Content Server

    Hello.
    I would like to remove book from Adobe Content Server. I used answers from that thread http://forums.adobe.com/thread/621994 .I successfully removed book from distributor inventory but can not remove it from operator (built-in distributor) inventory. I got this error:
    data="E_ADEPT_DATABASE http://acs.authorcloudware.com:8080/admin/ManageResourceKey Cannot delete or update a parent row: a foreign key constraint fails (`adept`.`fulfillmentitem`, CONSTRAINT `fulfillmentitem_ibfk_2` FOREIGN KEY (`resourceid`) REFERENCES `resourcekey` (`resourceid`))"
    How can I delete data from 'fulfillmentitem' table from php script?
    Best regards,
    Tamara.

    Finally, I found a way to remove book from adobe content server. This article Public Knowledge Base helped me a lot.
    So, in order to remove book from acs you need to make 4 requests:
    - request to admin/ManageDistributionRights with distributor ID
    - request to admin/ManageDistributionRights built-in distributor ID
    - request to admin/ManageResourceItem
    - request to admin/ManageResourceKey
    This is how my requests look like:
    //Remove book from distributor
    <request action='delete' auth='builtin' xmlns='http://ns.adobe.com/adept'>
         <nonce>Mjc3MjQzMTI=</nonce>
         <expiration>2014-05-26T09:57:37+00:00</expiration>
         <distributionRights>
              <distributor>urn:uuid:3bbdd5ee-c325-4ba9-86d9-8cc428d725ac</distributor>
              <resource>urn:uuid:cd9879ce-7648-49ad-8202-243a54486938</resource>
         </distributionRights>
    </request>
    //Remove book from built-in distributor
    <request action='delete' auth='builtin' xmlns='http://ns.adobe.com/adept'>
         <nonce>MjYzNDA0ODQ=</nonce>
         <expiration>2014-05-26T09:57:38+00:00</expiration>
         <distributionRights>
              <distributor>urn:uuid:00000000-0000-0000-0000-000000000001</distributor>
              <resource>urn:uuid:cd9879ce-7648-49ad-8202-243a54486938</resource>
         </distributionRights>
    </request>
    //Remove Resource Item Info
    <request action='delete' auth='builtin' xmlns='http://ns.adobe.com/adept'>
         <nonce>MjYxMDgxOTI=</nonce>
         <expiration>2014-05-26T09:57:38+00:00</expiration>
         <resourceItemInfo>
              <resource>urn:uuid:cd9879ce-7648-49ad-8202-243a54486938</resource>
              <resourceItem>0</resourceItem>
         </resourceItemInfo>
    </request>
    //Remove the resource key
    <request action='delete' auth='builtin' xmlns='http://ns.adobe.com/adept'>
         <nonce>MjgyNjU2NDI=</nonce>
         <expiration>2014-05-26T09:57:39+00:00</expiration>
         <resourceKey>
              <resource>urn:uuid:cd9879ce-7648-49ad-8202-243a54486938</resource>
              <resourceItem>0</resourceItem>
         </resourceKey>
    </request>
    Value of "resourceItem" tag is important. Actually I didn't find description in documentation what this tag means. I found that this is optional resource item index and that default value is 1. But when I send delete request with 1 in <resourceItem> the last request, which remove resource key, return error. If you know what this tag mean please answer in this thread.

  • Static contents

    A weblogic domain with at least 2 managed servers on it and configured a web
    application to serve
    static contents and it works great.
    When I add more images or htmls or any resources, then only the admin server
    picks it but not the
    managed servers. I have to redeploy the web application for the managed
    servers to see it.
    Does anybody know how setup the web application/managed servers pick up the
    new static resources
    without having to redeploy the web application? I can always use different
    web server for it but it
    increases the complexcity of the configuration for weblogic and apache/iis
    Please provide some idea.
    Thanks
    /selvan

    Selvan,
    Here's the info on how to refresh data files without redeploying. In
    6.1, this functionality is included in the release. For 6.0, I believe
    this tool was added in 6.0 sp2 rp2, but I'm not certain. If the tool
    doesn't exist in the version you have, contact support to get the
    correct service pack.
         -- Jim
    WebAppComponents can be refreshed without having to redeploy the whole
    application. any file that doesn't have classloading implications can be
    refreshed. (also known as static data). Examples of files that can be
    refreshed are: .jsp , .html, .gif, .jpg, .xml, .txt etc. Files that
    cannot be refreshed are class files, like ejb's, or other java classes.
    Data refresh in 6.0:
    In 6.0, there is a separate command line tool:
    weblogic.management.tools.WebAppComponentRefreshTool
    that can be invoked either on the command line, or can be constructed
    from within another java application. For information on how to run the
    tool from the command line, run 'java
    weblogic.management.tools.WebAppComponentRefreshTool' with no arguments.
    public WebAppComponentRefreshTool(String adminServerUrl,
    String username,
    String password,
    String appName,
    String compName,
    String[] jsps)
    username - the authenticated user...typically system
    password - the authenticated user's password
    appName - the name of the application (the mbean name)
    compName - the name of the component (the mbean name)
    jsps - an array of files to refresh.
    the appName, and compName are taken from the entries in config.xml. here
    is an example:
    <Application
         Deployed="true" Name="MyApp"
         Path=".\config\mydomain\myapps\MyApp">
         <WebAppComponent
              Name="MyWebAppComponent"
              Targets="managedServer,myserver"
              URI="MyWebAppComponent"/>
    </Application>
    in this case:
    appName would be MyApp
    compName would be MyWebAppComponent
    Data refresh in 6.1:
    refresh in 6.1 works the same way as it does in 6.0, but it has been
    folded into the weblogic.deploy command. you can still do refresh from
    either the command line, or from within a java application, but you can
    use weblogic.deploy to do it.
    Selvan Ramasamy wrote:
    >
    A weblogic domain with at least 2 managed servers on it and configured a web
    application to serve
    static contents and it works great.
    When I add more images or htmls or any resources, then only the admin server
    picks it but not the
    managed servers. I have to redeploy the web application for the managed
    servers to see it.
    Does anybody know how setup the web application/managed servers pick up the
    new static resources
    without having to redeploy the web application? I can always use different
    web server for it but it
    increases the complexcity of the configuration for weblogic and apache/iis
    Please provide some idea.
    Thanks
    /selvan

  • HT5517 i have apple tv and i could play my dvd on my macbook pro but now i cannot i get a black and white box i have vlc which apple store put on for me but thats no good because the film keeps jumping. i am wondering why i cannot play from dvd to apple t

    i have had apple tv since last april and i could play films from dvd player from mac book  but for some reason this has stopped working from dvd player when i put the dvd player on apple tv i get a black and white screen i can hear the film but i cannot see it, i went to my local store and they but vlc on for me but its terrible the film always jumps every time.
    Can anyone now the reason this has happen as i watch film offern but its driving me crazy why i cannot play from macbook pro to dvd player. i have been told it was a sercuity problem with the films so do i use itunes every time i need to watch a film if so then apple tv is a waste of money thanks please help

    This is supposed to happen, licensing issue mean that Apple can't AirPlay protected content to other devices. You might try VLC instead of Apples built in DVD player.

  • Adpatch Fail WithError Cannot Get Table Of Contents In Library File For Pro

    I install EBS R12.1.1 on windows server 2003 R2 on the vmware station.
    when I upgrade R12.1.3 adpatch the 9239089, it has the error,the log is belowing:
    ===============================================================
    ---ad----------------------------------------
    Extracting object modules for product ad...
    C:/oracle/PROD/apps/apps_st/appl/ad/12.0.0/bin/adlibout.sh: line 332: lib: command not found
    adlibout: error: cannot get table of contents in library file for product ad
    File name is C:/oracle/PROD/apps/apps_st/appl/ad/12.0.0/lib/adst.lib
    Skipping to next product...
    ================================================================
    I check doc[ID 335488.1], the problem is same as I.
    and i do the steps in this document.
    step1:
    i check %JAVA_TOP%=C:\oracle\PROD\apps\apps_st\comn\java\classes,but there is not files loadjava.zip. so i copy it from C:\oracle\PROD\apps\apps_st\comn\java\lib; then i add the classpath on the setting of the environment variables in the system properties.
    step2:
    i check it has the lib.exe adst.lib fndst.lib and work correctly.
    STEP3:
    I don't know how can I do the following information:
    +*<moderator edit - deleted MOS Doc content - pl do not post such content - it is a violation of your Support agreement>*+
    Are there persons can help me?

    C:\Documents and Settings\Administrator>which lib
    C:\mvcs\VC\bin/lib.exe
    C:\Documents and Settings\Administrator>lib /nologo /list C:\oracle\PROD\apps\ap
    ps_st\appl\ad\12.0.0\lib\adst.lib
    adpcdlvl.obj
    adpdrv.obj
    adpvov.obj
    adusnap.obj
    aidrdf.obj
    aidsql.obj
    aifgms.obj
    aiibas.obj
    aijmgr.obj
    aijmtab.obj
    aijwrkr.obj
    aiogfm.obj
    aioora.obj
    aiospawn.obj
    aiuarg.obj
    aiucef.obj
    aiucmd.obj
    aiufil.obj
    aiulog.obj
    aijtim.obj
    ailreg.obj
    aimrdb.obj
    aiofrl.obj
    aiojava.obj
    aiopatch.obj
    aipind.obj
    aipini.obj
    aiuoqg.obj
    aiuora.obj
    dmeef.obj
    dmmcad.obj
    dmmcon.obj
    dmmffk.obj
    dmmmax.obj
    dmmmis.obj
    dmmnew.obj
    dmmobs.obj
    dmmold.obj
    dmmsrc.obj
    dmmtar.obj
    dmud.obj
    adicep.obj
    admfac.obj
    admfrt.obj
    adpact.obj
    adpfil.obj
    adpgbl.obj
    adphist.obj
    adpmisc.obj
    adppmf.obj
    adprdc.obj
    adpver.obj
    adsmisc.obj
    adsugu.obj
    aduattr.obj
    adudbsn.obj
    adufbb.obj
    aduffk.obj
    adufpk.obj
    adufrt.obj
    adufsq.obj
    aduftb.obj
    adufvw.obj
    aiumem.obj
    aiures.obj
    aiusql.obj
    aiustr.obj
    aiustrg.obj
    aiuval.obj
    aiuver.obj
    aiz.obj
    dmecep.obj
    dmesr.obj
    dmmact.obj
    dmmb.obj
    dmmbi.obj
    dmmcep.obj
    dmmef.obj
    aioenv.obj
    aiofcp.obj
    aiofdl.obj
    aiofgg.obj
    aiofgp.obj
    aiofgr.obj
    aiofls.obj
    aiofsp.obj
    aioful.obj
    aiofvf.obj
    aiofxx.obj
    aioini.obj
    aioproc.obj
    aiosdt.obj
    aiotime.obj
    aiounl.obj
    aipclien.obj
    aipfind.obj
    aifrdf.obj
    aifrof.obj
    aifunl.obj
    aifvaf.obj
    aifz.obj
    aiicot.obj
    aiidps.obj
    aiierr.obj
    aiiics.obj
    aiiind.obj
    aiiini.obj
    aiiipb.obj
    aiipdm.obj
    aiispm.obj
    aijcssd.obj
    aijcsssm.obj
    aijctrl.obj
    aijhigh.obj
    aijmjava.obj
    aijmlist.obj
    aiccep.obj
    aicdb.obj
    aicdgrt.obj
    aicdind.obj
    aicdprv.obj
    aicds2.obj
    aicdsyn.obj
    aicdview.obj
    aicfile.obj
    aicintfc.obj
    aicpar.obj
    aicsave.obj
    aictsu.obj
    aidafc.obj
    aidapp.obj
    aidcfk.obj
    aidcrt.obj
    aidenv.obj
    adufea09.obj
    adufeat.obj
    adufix.obj
    adugbl.obj
    aduhsh.obj
    adum.obj
    adumd.obj
    adumef1.obj
    adumef2.obj
    aduoix.obj
    adupln.obj
    adurts.obj
    admpmf.obj
    admpmr.obj
    admprn.obj
    admpst.obj
    adncep.obj
    adpcfv.obj
    adpfndld.obj
    adphena.obj
    adpintfc.obj
    adpparr.obj
    adppdep.obj
    adptask.obj
    adsenv.obj
    adsha1.obj
    admpmd.obj
    admpbf.obj
    admgri.obj
    admd5.obj
    admd.obj
    admatr.obj
    admart.obj
    admamo.obj
    admaln.obj
    admabb.obj
    admaac.obj
    adino.obj
    adifo.obj
    addts.obj
    addbs.obj
    adcptch.obj
    adcosd.obj
    adcintfc.obj
    adcfil2.obj
    adcfil1.obj
    adcds.obj
    adccfl.obj
    adapps.obj
    adufea08.obj
    adufea07.obj
    adufea06.obj
    adufea05.obj
    adufea04.obj
    adufea03.obj
    adufea02.obj
    adufea01.obj
    aduf.obj
    adue.obj
    adudyn.obj
    aducsfs.obj
    aducd.obj
    aduatcfg.obj
    aduabb.obj
    aduaaf.obj
    adsrtr.obj
    adsrpd.obj
    adsrlo.obj
    adsrln.obj
    adxpfpps.obj
    aduxxx.obj
    aduxvw.obj
    aduxtb.obj
    aduxsz.obj
    aduxsq.obj
    aduxsn.obj
    aduxpv.obj
    aduxpm.obj
    aduxpk.obj
    aduxix.obj
    aduxft.obj
    aduxfk.obj
    aduxco.obj
    aduxbb.obj
    adustb.obj
    adussq.obj
    adussf.obj
    adusrt.obj
    adusq2.obj
    aduspk.obj
    adusix.obj
    adusfk.obj
    adusbb.obj
    aifpll.obj
    aiflrv.obj
    aiflnk.obj
    aiflist.obj
    aifif.obj
    aifgov.obj
    aifggd.obj
    aifdrv.obj
    aifcf.obj
    aidz.obj
    aidvao.obj
    aiduic.obj
    aidsws.obj
    aidsiz.obj
    aidora.obj
    aidldf.obj
    aidgrnt.obj
    aidfgs.obj
    aideva.obj
    aiodxx.obj
    aiocset.obj
    aiocef.obj
    aimz.obj
    aimudb.obj
    aimres.obj
    aimras.obj
    aimlld.obj
    aimiup.obj
    aimism.obj
    aimini.obj
    aimact.obj
    ailtrf.obj
    ailmisc.obj
    ailifc.obj
    ailfind.obj
    aijtodo.obj
    aijpkch.obj
    aijpdep.obj
    aijmres.obj
    aiuext.obj
    aitz.obj
    aitwrt.obj
    aitshp.obj
    aitopt.obj
    aitldf.obj
    aitlang.obj
    aitfile.obj
    aitcom.obj
    aitarc.obj
    aipz.obj
    aipvrs.obj
    aipudb.obj
    aiptest.obj
    aiprpf.obj
    aipres.obj
    aiprel.obj
    aippgrp.obj
    aipodf.obj
    aipmsob.obj
    aipmisc.obj
    dmusr.obj
    dmus.obj
    dmumn.obj
    dmuef.obj
    dmucom.obj
    dmmuid.obj
    dmmsr.obj
    dmmp2.obj
    dmmp1.obj
    aijboth.obj
    aiimm.obj
    aiigce.obj
    aiicfg.obj
    aifgrp.obj
    aifgfm.obj
    aidjawk.obj
    aiddua.obj
    aiddgr.obj
    aidafo.obj
    aicdtab.obj
    aicdseq.obj
    aicdora.obj
    aicdcons.obj
    aduovw.obj
    aduotb.obj
    aduort.obj
    aduoprc.obj
    aduopk.obj
    aduofk.obj
    aduobb.obj
    dmutt.obj
    C:\Documents and Settings\Administrator>lib /nologo /list C:\oracle\PROD\apps\ap
    ps_st\appl\fnd\12.0.0\lib\fndst.lib
    fdfwtk.obj
    fdplbr.obj
    fdprep.obj
    fdspwd.obj
    fdssgn.obj
    fdxidk.obj
    fdxidr.obj
    fdxsqk.obj
    fdxsqr.obj
    spnnt.obj
    spnunx.obj
    afdgfn.obj
    afdrdb.obj
    afdrrt.obj
    afdrsc.obj
    afmem.obj
    afpcmn.obj
    afpeim.obj
    afpo.obj
    afppqs.obj
    afpsgc.obj
    ccmsssvc.obj
    fdfapi.obj
    fdfchy.obj
    fdfcom.obj
    fdfdbg.obj
    fdfdds.obj
    fdfdfu.obj
    fdfdtj.obj
    fdfdvu.obj
    fdffbu.obj
    fdffds.obj
    fdfffu.obj
    fdffile.obj
    fdffld.obj
    fdffvs.obj
    fdmenu.obj
    fdparg.obj
    fdpibm.obj
    fdpperl.obj
    fdprrc.obj
    fdpsql.obj
    fdpstp.obj
    fdsecp.obj
    fdsgbl.obj
    afppur.obj
    afpsec.obj
    afpsm.obj
    afpsmc.obj
    afpsmg.obj
    afpsrs.obj
    afscp.obj
    afspwd.obj
    afupi.obj
    afuprt.obj
    ccmsup.obj
    ccmsvc.obj
    fdacv.obj
    fdatat.obj
    fdaupd.obj
    fdfbpl.obj
    fdfbtr.obj
    xitdgmd.obj
    xitdgme.obj
    xitdgmi.obj
    xitdgml.obj
    xitdgmo.obj
    xitdgmp.obj
    xitdgmr.obj
    xitdgms.obj
    xitdgmz.obj
    xitdin.obj
    xitdmf.obj
    xitdmp.obj
    xitdoe.obj
    xitdpa.obj
    xitdpo.obj
    xitdpr.obj
    xitdpy.obj
    xitdra.obj
    xitdrg.obj
    xitdsa.obj
    xitdsp.obj
    xitdus.obj
    xitdwp.obj
    stdafx.obj
    usdccf.obj
    usdfmv.obj
    usdgpa.obj
    usdhtml.obj
    usdins.obj
    usdmac.obj
    usdmpe.obj
    usdnt.obj
    usdoaut.obj
    usdos2.obj
    usdpar.obj
    usdspid.obj
    usdstub.obj
    usdtec.obj
    usdwin.obj
    usdxit.obj
    wfcore.obj
    wfdes.obj
    wfext.obj
    wffile.obj
    wfidx.obj
    wfldr.obj
    wfldrf.obj
    fdwask.obj
    fdxapp.obj
    fdxcls.obj
    fdxdat.obj
    fdxdcf.obj
    fdxdsp.obj
    fdxefv.obj
    fdxext.obj
    fdxfil.obj
    fdxgvl.obj
    fdxkmd.obj
    fdxlcs.obj
    fdxmc.obj
    fdxml.obj
    fdxnls.obj
    fdxpii.obj
    fdxprf.obj
    fdxpst.obj
    fdxqus.obj
    fdxsqf.obj
    fdxsql.obj
    fdpsps.obj
    fdpsqp.obj
    fdpsra.obj
    fdptls.obj
    fdptmx.obj
    fdpurq.obj
    fdpvwr.obj
    fdpwrt.obj
    fdrcmp.obj
    fdrfcmp.obj
    fdrpbf.obj
    fdrutl.obj
    fdsarg.obj
    fdsaud.obj
    fdsctl.obj
    fdsgtk.obj
    fdsnxt.obj
    fdssck.obj
    fdhhlp.obj
    fdidrv.obj
    fdipth.obj
    fdisqf.obj
    fdllov.obj
    fdndbc.obj
    fdndcf.obj
    fdnlng.obj
    fdnwsc.obj
    fdomsg.obj
    fdowln.obj
    fdpblf.obj
    fdpbq.obj
    fdpccr.obj
    fdpcrc.obj
    fdpdbf.obj
    fdpdbg.obj
    fdpdf.obj
    fdpemon.obj
    fdperi.obj
    fdpevt.obj
    fdpfqr.obj
    fdpgcf.obj
    fddxit.obj
    fdefil.obj
    fdfile.obj
    afsxss.obj
    afsys.obj
    aftime.obj
    aftimr.obj
    afttf2t3.obj
    afttflib.obj
    afubtree.obj
    afuddl.obj
    afuepp.obj
    afufld.obj
    afugai.obj
    afugli.obj
    afulzw.obj
    afusc.obj
    afust.obj
    afutim.obj
    afvbt.obj
    afvca.obj
    afvpa.obj
    afwaol.obj
    afwdev.obj
    afwevt.obj
    afwgeo.obj
    afpgpr.obj
    afpgri.obj
    afpgrs.obj
    afpgsr.obj
    afplog.obj
    afpmir.obj
    afpolg.obj
    afpops.obj
    afpoux.obj
    afpoval.obj
    afppio.obj
    afppir.obj
    afprcl.obj
    afgfhdoc.obj
    afgldbs.obj
    afglpw.obj
    afhtmhlp.obj
    afifld.obj
    afixfs.obj
    afixfsb.obj
    afixlh.obj
    afixpic.obj
    afixpm.obj
    afixpmuu.obj
    afixucf.obj
    afixupgn.obj
    afixust.obj
    aflog.obj
    aflutl.obj
    afmath.obj
    afmsg.obj
    afoleaut.obj
    aforg.obj
    afgbox.obj
    affntrep.obj
    affntlst.obj
    affntgen.obj
    affile.obj
    afenv.obj
    afe.obj
    afdwin.obj
    afdtmp.obj
    afdsrw.obj
    afdsil.obj
    afdict.obj
    afdfrm.obj
    afdf.obj
    afdcx.obj
    afdcpm.obj
    afdacc.obj
    afctx.obj
    afcs2uni.obj
    afcore.obj
    afcharrp.obj
    afpgip.obj
    afpfsv.obj
    afpfsc.obj
    afpfs.obj
    afpflx.obj
    afpdwpur.obj
    afpdpo.obj
    afpdon.obj
    afpdlk.obj
    afpdbg.obj
    afpcmt.obj
    afpcc.obj
    afpcbidi.obj
    afpcat.obj
    afpcal.obj
    afstr.obj
    afspc.obj
    afslov.obj
    afshape.obj
    afsfld.obj
    afpvpc.obj
    afpufe.obj
    afpucf.obj
    afptstp.obj
    afptmttp.obj
    afptmi.obj
    afptmc.obj
    afptm.obj
    afpspt.obj
    afpsmf.obj
    afpscg.obj
    afprun.obj
    afprul.obj
    fdcpspn.obj
    fdastr.obj
    fdarux.obj
    fdahmi.obj
    fdacon.obj
    cregkey.obj
    ccmupi.obj
    ccmsvcpg.obj
    ccmsetup.obj
    ccmrkey.obj
    ccmppsht.obj
    ccmoptpg.obj
    ccmmndlg.obj
    alroms.obj
    afwsys.obj
    afwpal.obj
    afwlib.obj
    afwkflw.obj
    afwind.obj
    fdpscm.obj
    fdpsbm.obj
    fdpsar.obj
    fdprst.obj
    fdprpt.obj
    fdprmo.obj
    fdprlk.obj
    fdprhl.obj
    fdpreq.obj
    fdprcp.obj
    fdpprn.obj
    fdppev.obj
    fdppbr.obj
    fdpmst.obj
    fdpmbr.obj
    fdplnk.obj
    fdpldr.obj
    fdpimp.obj
    fdphbe.obj
    fdpgrq.obj
    fduxit.obj
    fduuid.obj
    fdutkn.obj
    fdutim.obj
    fdusql.obj
    fduopr.obj
    fdumod.obj
    fduli.obj
    fdugwi.obj
    fdugii.obj
    fdugci.obj
    fdueds.obj
    fdudat.obj
    fducst.obj
    fducsq.obj
    fdsxit.obj
    fdstkt.obj
    fdssvl.obj
    fdssuq.obj
    fdsssk.obj
    fdssop.obj
    spnvms.obj
    spnos2.obj
    spnmpe.obj
    spnmac.obj
    spndos.obj
    gmalloc.obj
    fpe.obj
    flutil.obj
    flup.obj
    fllog.obj
    flglob.obj
    fldisp.obj
    fldb.obj
    flada.obj
    fdxwrk.obj
    fdxwho.obj
    fdxutl.obj
    fdxuar.obj
    fdxtrc.obj
    fdxtmr.obj
    xitdgma.obj
    xitdgl.obj
    xitdff.obj
    xitdfa.obj
    xitden.obj
    xitddt.obj
    xitdcs.obj
    xitdcp.obj
    xitdbm.obj
    xitdax.obj
    xitdas.obj
    xitdar.obj
    xitdap.obj
    xitdal.obj
    xirnop.obj
    wfrsp.obj
    wfresg.obj
    wfres.obj
    wfomgul.obj
    wfomgucn.obj
    wfntf.obj
    wfmutil.obj
    wfmsiic.obj
    wfms.obj
    wfmlr.obj
    afpprr.obj
    afpprq.obj
    afpprn.obj
    afpprc.obj
    afpperl.obj
    afppcp.obj
    afpiml.obj
    afpi.obj
    afpgrq.obj
    afpgmg.obj
    afpesa.obj
    afperq.obj
    afpeot.obj
    afpejp.obj
    afpcsq.obj
    afpcrs.obj
    afpcra.obj
    afpbwv.obj
    afpatn.obj
    afixube.obj
    afixft.obj
    fdfkbt.obj
    fdfkbr.obj
    fdfkbp.obj
    fdfkbe.obj
    fdfkba.obj
    usdsim.obj
    fpep.obj
    fpeb.obj
    fdxver.obj
    fduprn.obj
    fduhex.obj
    fdugpi.obj
    fdssoa.obj
    fdsrsp.obj
    fdfwrt.obj
    fdfwmsg.obj
    fdfwin.obj
    fdfwfld.obj
    fdfweb.obj
    fdfvsu.obj
    fdfvgn.obj
    fdfval.obj
    fdfutl.obj
    fdfupu.obj
    fdftdu.obj
    fdfstr.obj
    fdfsrw.obj
    fdfsdf.obj
    fdfrfu.obj
    fdfobj.obj
    fdflop.obj
    fdflist.obj
    fdfkva.obj
    fdfksr.obj
    fdfkfu2.obj
    fdfkfu.obj
    fdfkds.obj
    fdfgli.obj
    fdfgcx.obj

  • Access of possibly undefined property number through a reference with static type...

    Hello everyone !
    I run into this problem today ... take a look on the code :
    import com.trick7.effects.TeraFire;
    for (var j:uint=0; j<10; j++) {
        var fire:TeraFire = new TeraFire();
        fire.x = j * 40 + 20;
        fire.y = 100;
        fire.number = j; //This line is causeing the problem
        addChild(fire);
        fire.buttonMode = true;
    TeraFire class creates fire particles. The compiler error is :
    Scene 1, Layer 'Layer 1', Frame 1, Line 7
    1119: Access of possibly undefined property number through a reference with static type com.trick7.effects:TeraFire.
    Anyone can help me to find a solution to this problem.
    I can do that ".number" with a movieclip but not in this case. What can I do ?

    I borrowed that class from the internet.
    I made the changes you suggested: imported flash.Display.MovieClip and also made the class extend MovieClip.
    The error is still throwing in compiler errors. I am not really good enough to edit this class because there are some functions I don't still understand very good. This is the class below:
    package com.trick7.effects{
        import flash.display.BitmapData;
        import flash.display.GradientType;
        import flash.display.MovieClip;
        import flash.events.Event;
        import flash.filters.DisplacementMapFilter;
        import flash.filters.DisplacementMapFilterMode;
        import flash.geom.Matrix;
        import flash.geom.Point;
        import flash.geom.Rectangle;
        public class TeraFire extends MovieClip{
            public var phaseRateX:Number;
            public var phaseRateY:Number;
            private var offsets:Array= [new Point(),new Point()];
            private var seed:Number = Math.random();
            private var fireW:Number;
            private var fireH:Number;
            //火の色
            //private var fireColorIn:uint;
            //private var fireColorOut:uint;
            private var ball:Sprite;
            private var gradientImage:BitmapData;
            private var displaceImage:BitmapData;
            private var focalPointRatio:Number = 0.6;
            private const margin:int = 10;
            private var rdm:Number;
            public function TeraFire(xPos:Number=0, yPos:Number=0, fireWidth:Number=30, fireHeight:Number=90, fireColorIn:uint = 0xFFCC00,fireColorOut:uint = 0xE22D09){
                fireW = fireWidth;
                fireH = fireHeight;
                phaseRateX = 0;
                phaseRateY = 5;
                var matrix:Matrix = new Matrix();
                matrix.createGradientBox(fireW,fireH,Math.PI/2,-fireW/2,-fireH*(focalPointRatio+1)/2);
                var colors:Array = [fireColorIn, fireColorOut, fireColorOut];
                var alphas:Array = [1,1,0];
                var ratios:Array = [30, 100, 220];
                var home:Sprite = new Sprite();
                ball = new Sprite();
                ball.graphics.beginGradientFill(GradientType.RADIAL,colors, alphas, ratios, matrix,"pad","rgb",focalPointRatio);
                ball.graphics.drawEllipse(-fireW/2,-fireH*(focalPointRatio+1)/2,fireW,fireH);
                ball.graphics.endFill();
                //余白確保用透明矩形
                ball.graphics.beginFill(0x000000,0);
                ball.graphics.drawRect(-fireW/2,0,fireW+margin,1);
                ball.graphics.endFill();
                addChild(home);
                home.addChild(ball);
                this.x = xPos;
                this.y = yPos;
                addEventListener(Event.ENTER_FRAME,loop);
                displaceImage = new BitmapData(fireW+margin,fireH,false,0xFFFFFFFF);
                var matrix2:Matrix = new Matrix();
                matrix2.createGradientBox(fireW+margin,fireH,Math.PI/2,0,0);
                var gradient_mc:Sprite = new Sprite;
                gradient_mc.graphics.beginGradientFill(GradientType.LINEAR,[0x666666,0x666666], [0,1], [120,220], matrix2);
                gradient_mc.graphics.drawRect(0,0,fireW+margin,fireH);//drawのターゲットなので生成位置にこだわる必要はない。
                gradient_mc.graphics.endFill();
                gradientImage = new BitmapData(fireW+margin,fireH,true,0x00FFFFFF);
                gradientImage.draw(gradient_mc);//gradient_mcを消す必要は?
                rdm = Math.floor(Math.random()*10);
            private function loop(e:Event):void{
                for(var i:int = 0; i < 2; ++i){
                    offsets[i].x += phaseRateX;
                    offsets[i].y += phaseRateY;
                displaceImage.perlinNoise(30+rdm, 60+rdm, 2, seed, false, false, 7, true, offsets);
                displaceImage.copyPixels(gradientImage,gradientImage.rect,new Point(),null, null, true);
                var dMap:DisplacementMapFilter = new DisplacementMapFilter(displaceImage, new Point(), 1, 1, 20, 10, DisplacementMapFilterMode.CLAMP);
                ball.filters = [dMap];
    I you can clarify a little bit further I would appreciate it a lot because I wasted some good time on this.

  • How do I create a runtime library reference from a J2EE library DC?

    I've created a J2EE library DC that references some classes in an already deployed library.  The referenced jar file has been correctly deployed, as it's successfully used by some other components.  I can build the DC, since I've created created a compile-time reference to the local copy of the target jar file.
    Unfortunately, I can't figure out how to create a runtime reference from my J2EE library to the already deployed library - there just doesn't appear to be any place to put the reference, at least using a gui-based function in NWDS.  Unlike WebDynpro, which has a 'references' configuration option, J2EE lib's don't appear to have anything similar.
    Where/How can I do this?
    BTW, the Visual Administrator function 'ClassLoader Viewer ' is a very handy tool for diagnosing ClassDefNotFoundError errors....

    Hello Ken,
    well it seems to be not a trivial thing.
    1) Build your library DC.
    2) Create folder "server" in root DC folder "_comp".
    3) Extract provider.xml from generated SDA file to "server" folder.
    4) Add references in provider.xml:
        <references>
          <reference type="library" strength="weak">
            sapxmltoolkit
          </reference>
          <reference type="library" strength="weak">
            com.sap.lcr.api.cimclient
          </reference>
          <reference type="service" strength="weak">
            tc~sec~securestorage~service
          </reference>
        </references>
    5) Rebuild DC. Deploy.
    6) Enjoy!
    Useful links:
    http://help.sap.com/saphelp_webas630/helpdata/en/b5/22123b8d92294fac207283f3e8756e/content.htm
    http://help.sap.com/saphelp_webas630/helpdata/en/09/5d963be736904c96cbdfe93793eb42/TEMPLATE_image002.gif
    Best regards, Maksim Rashchynski

  • Post new document by reference from a hundred posted document.

    i want to post new 500 reverse posting documents by reference from the existing 500 documents. but FBR2 can only do like this one by one. i cannot use mass reverse function because almost of them were cleared. is there any standard program or function can do like this?

    many thanks.
    i try to create the batch input session for FBR2 by recording function (SHDB). but i found errors when i release my batch input session, due to each reference document has the diference number of line items. and each item contains profit segment data as well.  system always prompt the coding block screen for each item. but if i use FBR2 directly, system will not show this coding block screen.
    i don't know why both method work not the same.

Maybe you are looking for

  • Redirect of ADF application in WebLogic 10.3.4.0 doesn't work

    Hi, I am using source code developed using Jdev11.1.1.3. I recently installed Jdev 11.1.1.4 and added the application built using Jdev11.1.1.3 and deployed on the local server. Once I login, I get error page. I am not getting any errors on the consol

  • Making a video from jpegs in IMovie 9

    Hi, An animator made me a video for a song I created. He gave individual Jpegs for every frame. I brought the JPegs into IMovie and but when I play the video it is jumping. Is there a way to select each still to be 1 frame and how do I smooth out the

  • IPS monitoring

    Can an IPS module monitor traffic for (2) 6500s working in load balancing mode?

  • Dreamweaver CS6 and CC both very slow page rendering under Mavericks

    Dreamweaver CS6 and CC both very slow page rendering under Mavericks compared to 10.8.5 Any ideas?

  • Missing features on QT X

    Unhappy newbie. Many thousands of Mac users across the nation depend on Quicktime, Real, and Windows Media to playback "legacy files" as well as files that remain in widespread use, especially midi files. From what I have read, these are no longer ac