Finding references to methods

Is there a way of finding where methods are used / referenced? e.g. in Websphere you can right-clight on a method & select the option "references to" and you get a list of all the places in your code where that method is used. Is there anything like this in JDeveloper?
Similarly, is there a search facility to find all the classes that implement an interface?
If the answers no, how do I suggext that these features are added in future versions? I've found them invaluable in the past when trying to understand the structure of code.

I suggest you evaluate one of our partner's products, Aqris Software's RefactorIT:
http://otn.oracle.com/products/jdev/htdocs/partners/content.html#aqris
This is a downloadable extension that plugs directly into JDeveloper. It offers the searching capabilities you've asked for in addition to sophisticated refactoring capabilities.
In future releases, we will add a subset of these features directly in JDeveloper. This forum is the best place to make those suggestions!
-- Brian (JDev Team)

Similar Messages

  • Can not find location of method in Flash example

    The issue that I am having is that I have search high and low to find where the method "flashmo_graphic()" is defined in the example that can be found here:
    http://www.flashmo.com/preview/flashmo_158_heart_effect
    I also attached folder.  There is a "caurina.transitions.*;"  folder being imported, it is attached.  Anyways, you will notice that there is only 1  action script frame and in it around midway there is the code:
    function flashmo_create(e:Event):void
        var mc:MovieClip = new flashmo_graphic();
        mc.gotoAndStop( Math.floor( flashmo_group.numChildren % mc.totalFrames ) + 1 );
    The issue that I am having is finding out what flashmo_graphic() is.  Can anyone tell me what this method is and better yet how I would find out for myself?
    Thanks,
    Brian

    var mc:MovieClip = new flashmo_graphic();
    This is the script to add a movieclip to the stage.
    Go to library.Right click on the first symbol(flashmo graphic) and select linkage you see a pop up with some properties of the symbol.
    In the class you can see  flashmo_graphic  which is the linkage name of the symbol.

  • Reporting Against Level Reference Build Method

    All,
    I created a hierarchy in Essbase using the Level Reference build method since the data is in a bottom-up. The data is laid out like so:
    Statement
    --Assets
    ----Calc 1
    ------Calc 2
    --------Major Category 1
    --------Major Category 2
    --------Major Category 3
    ------Major Category 4
    ----Major Category 5
    --Liabilities
    ----Major Category 6
    Originally I had this in a generation reference, but that didn't work since we don't have a consistent number of layers for each item. Next I was thinking a parent-child relationship, but this doesnt work because major categories fall at different levels. Finally, I'm thinking level reference is the way to go since we can have different layers of parents for each lowest level member and the data can be laid out the way we need. (Let me know if you disagree with this approach).
    This works fine in the cube...however, when I import this into the BI Administration tool it only sees generations, not levels. How can I get it to pull in the levels so that I can add individual levels to a report?
    I'm planning on following this method to create the report: http://oraclebizint.wordpress.com/2008/01/10/oracle-bi-ee-101332-achieving-financial-template-layouts-using-pivot-tables/. However, when I do that with generations it has blanks because not all of the major categories are at the same generation. I'm hoping levels will clear this up, but if anyone has a suggestion of a different way to achieve this layout let me know.
    Thanks!

    Hi Corel,
    I am stucking on how and where to call the recursive function for performing Tree-level hierarchy for my above code.!
    in my hierarchy level, one parent has multiple children which in turn so many children and so on... if i am in the least level node , then i need to get the details of its related nodes which has been linked by that node.
    For ex: i have the structure somthing like below:
    Parent
    / | \
    child1 child2 child3
    |
    c5
    |
    c6
    In the above structure, Parent and its children sharing the same address id(56122). Suppose, If i am in c6, then i could get the references for C6->C5->child2->Parent as the hierarchy from ResultSet. child1 and child3 has been ignored ,since there is no implementation for saving their references.
    I am stucking here that i dont know how to save these ref. and get them too in the company hierarchy structure. Remember , i need to refer only the company which is sharing the same address id. there could be other address id assosiated with other children (not included here)
    any suggestion how to save the references by implementing recursive procedure from the resultset.
    thanks in advance

  • Can't make static reference to method while it is static

    Hello, can somebody please help me with my problem. I created a jsp page wich includes a .java file I wrote. In this JSP I called a method in the class I created. It worked but when I made the method static and adjusted the calling of the method it started to complain while i didnt make an instance of the class. the error is:Can't make static reference to method
    here is the code for the class and jsp:
    public class PhoneCheckHelper {
    public static String checkPhoneNumber(String phoneNumber) {
    String newPhoneNumber ="";
    for(int i=0; i<phoneNumber.length(); i++) {
    char ch = phoneNumber.charAt(i);
    if(Character.isDigit(ch)) {
    newPhoneNumber += String.valueOf(ch);
    return newPhoneNumber;
    <html>
    <head>
    <title>phonecheck_handler jsp pagina</title>
    <%@page import="java.util.*,com.twofoldmedia.text.*, java.lang.*" %>
    </head>
    <body>
    <input type="text" value="<%= PhoneCheckHelper.checkPhoneNumber(request.getParameter("phonenumberfield")) %>">
    </body>
    </html>

    Go over to the "New to Java" forum where that message is frequently explained. Do a search if you don't see it in the first page of posts.

  • Can't make static reference to method

    hi all,
    pls help me in the code i'm getting
    " can't make static reference to method....."
    kindly help me
    the following code gives the error:
    import java.rmi.*;
    import java.rmi.Naming;
    import java.rmi.RemoteException;
    import java.io.*;
    import java.io.IOException;
    import java.io.LineNumberReader;
    public class client
    static String vcno;
    static String vpin;
    static String vamt;
    static String vordid;
    static String vptype;
    //static String vreq;
    static String vreq = "1";
    static String vorgid;
    static String vm1;
    static String vs1;
    static String vqty1;
    static String vm2;
    static String vs2;
    static String vqty2;
    static String vm3;
    static String vs3;
    static String vqty3;
    static String vm4;
    static String vs4;
    static String vqty4;
    public static void main(String args[])
    try
    ServerIntf serverintf=(ServerIntf)Naming.lookup("rmi://shafeeq/server");
    int c;
    StringBuffer sb;
    FileReader f1=new FileReader("c:/testin.txt");
    sb=new StringBuffer();
    int line=0;
    while ((c=f1.read())!=-1) {
    sb.append((char)c);
    LineNumberReader inLines = new LineNumberReader(f1);
    String inputline;
    String test;
    while((inputline=inLines.readLine())!=null)
    line=inLines.getLineNumber();
    switch(line)
    case 1: {
    vcno = inLines.readLine();
    System.out.println(vcno);
    case 2: {
    vpin = inLines.readLine();
    System.out.println(vpin);
    case 3: {
    vptype = inLines.readLine();
    System.out.println(vptype);
    case 4: {
    vamt = inLines.readLine();
    System.out.println(vamt);
    case 5: {
    vordid = inLines.readLine();
    System.out.println(vordid);
    case 6: {
    vorgid = inLines.readLine();
    System.out.println(vorgid);
         case 7: {
    vm1 = inLines.readLine();
    System.out.println(vm1);
         case 8: {
    vs1 = inLines.readLine();
    System.out.println(vs1);
         case 9: {
    vqty1 = inLines.readLine();
    System.out.println(vqty1);
         case 10: {
    vm2 = inLines.readLine();
    System.out.println(vm2);
         case 11: {
    vs2 = inLines.readLine();
    System.out.println(vs2);
    case 12: {
    vqty2 = inLines.readLine();
    System.out.println(vqty2);
    case 13: {
    vm3 = inLines.readLine();
    System.out.println(vm3);
         case 14: {
    vs3 = inLines.readLine();
    System.out.println(vs3);
    case 15: {
    vqty3 = inLines.readLine();
    System.out.println(vqty3);
    case 16: {
    vm4 = inLines.readLine();
    System.out.println(vm4);
    case 17: {
    vs4 = inLines.readLine();
    System.out.println(vs4);
    case 18: {
    vqty4 = inLines.readLine();
    System.out.println(vqty4);
    f1.close();
    FileWriter f2=new FileWriter("c:/testout.txt");
    String t;
    t=ServerIntf.add(vcno,vpin,vamt,vordid,vptype,vreq,vorgid,vm1,vs1,vqty1,vm2,vs2, vqty2,vm3,vs3,vqty3,vm4,vs4,vqty4);
    String str1 = " >>";
    str1 = t + str1;
    f2.write(str1);
    System.out.println('\n'+"c:/testout.txt File updated");
    f2.close();
    catch(Exception e)
    System.out.println("Error " +e);

    Yes, ServerIntf is the interface type. The instance serverIntf. You declared it somewhere at the top of the routine.
    So what you must do is call t=serverIntf.add(...)This is probably just a mistype.

  • Why does a find and replace method remove whitespace?

    I have method that searches for a string in a FM document and replaces it with a variable. If for example, there was a string foobar that I wanted to replace with the variable barfoo. Then, I expect this text:
    Lorem ipsum dolor sit amet, foobar consectetur adipiscing elit. Vivamus sed purus urna, ac tristique tortor. Nam auctor tellus non enim pulvinar a vestibulum neque tincidunt.
    To be changed to this text:
    Lorem ipsum dolor sit amet, barfoo consectetur adipiscing elit. Vivamus sed purus urna, ac tristique tortor. Nam auctor tellus non enim pulvinar a vestibulum neque tincidunt.
    However, while the text does do the replace it also removes the whitespace between the variable and the text that appears right after the variable so it actually looks looks like this:
    Lorem ipsum dolor sit amet, barfooconsectetur adipiscing elit. Vivamus sed purus urna, ac tristique tortor. Nam auctor tellus non enim pulvinar a vestibulum neque tincidunt.
    Why is the find and replace method removing the whitespace and how do I prevent that from happening? The method is provided below.
    function FindAndReplaceString(pDoc, findString, replaceVariable)
        if (typeof pDoc != 'undefined'&&typeof findString != 'undefined'&&typeof replaceVariable != 'undefined'&&pDoc.ObjectValid()&&findString.length>0&&replaceVariable.length>0)
            var vVarFmtStatus=checkVarFmStatus (pDoc, replaceVariable);
            if (vVarFmtStatus=='In Doc')
                var tr = new TextRange();
                var findParams = new PropVals();
                var frame = pDoc.MainFlowInDoc.FirstTextFrameInFlow;
                var restoreTR = pDoc.TextSelection;
                tr.beg.obj = tr.end.obj = frame.FirstPgf;
                tr.beg.offset = tr.end.offset = 0;
                findParams = AllocatePropVals(1);
                findParams[0].propIdent.num = Constants.FS_FindText;
                findParams[0].propVal.valType = Constants.FT_String;
                findParams[0].propVal.sval = findString;
                tr = pDoc.Find(tr.beg, findParams);
                var vLoopCounter=0;
                while(FA_errno === Constants.FE_Success&&vLoopCounter++< 1000)
                    pDoc.TextSelection = tr;
                    pDoc.Clear(0);
                    var newVar = pDoc.NewAnchoredFormattedVar(replaceVariable, tr.beg);
                    var varLength = newVar.TextRange.end.offset - newVar.TextRange.beg.offset;
                    tr.beg.offset += varLength;
                    tr = pDoc.Find(tr.beg, findParams);
                if (vLoopCounter>0)
                    Log (vLogFileName, 'In the document \''+pDoc.Name+'\', the string \''+findString+'\' was replaced with the variable \''+replaceVariable+'\' '+vLoopCounter+' times.\n')
                if (vLoopCounter>1000)
                    recordErrors (vErrorLog, 'ERROR: In the document "'+pDoc.Name+'", the find and replace operation was stopped after executing '+vLoopCounter+' times. The term being searched for is "'+findString+'" the replacement variable is "'+ replaceVariable+'".')
                pDoc.TextSelection = restoreTR;
                pDoc.ScrollToText(restoreTR);
                } else {
                    recordErrors (vErrorLog, 'ERROR: The find and replace operation failed because the variable '+replaceVariable+' does not exist in the following doc: '+pDoc.Name)
            } else {
                recordErrors (vErrorLog,'Invalid or unitialized parameter passed to function FindAndReplaceString')

    Hi,
    Not at the moment. Please post in http://forums.adobe.com/community/muse/ideas so other users can vote on the feature request.
    Thanks,
    Abhishek

  • Weird soap issue: Cannot find the dispatch method

    Hi,
    I'm having strange problem with SOAP message.
    I created a simple web service using jax-ws, wsgen, and so on. I deployed it on sun app server 9.0. I wrote client application (i'm using SAAJ 1.3) for testing. The response I'm getting is something like this:
    <soapenv:Envelope xmlns:ns1="http://put/"
       xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
       <soapenv:Body>
          <soapenv:Fault>
             <faultcode>soapenv:Client</faultcode>
             <faultstring>Cannot find the dispatch method</faultstring>
          </soapenv:Fault>
       </soapenv:Body>
    </soapenv:Envelope>First I thought there's a problem with webservice I created. So I downloaded soapui (www.soapui.org) for testing. I provided it with wsdl and endpoint. And web sevice seems to work corectly - response I got back was ok.
    The strange part is: soap messages sent from soapui and from client application written by me seem to be identical. Both look like this:
    <SOAP-ENV:Envelope
       xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:put="http://put">
       <SOAP-ENV:Body>
          <put:sayHello>
             <arg0>test</arg0>
          </put:sayHello>
       </SOAP-ENV:Body>
    </SOAP-ENV:Envelope>I even sniffed packets (WinDump) sent to application server and in both cases soap message is the same. There's only a slight difference in http headers. Here's what server log contains after receiving a soap message from my client application:
    DetailsTimestamp:     2006-09-14 13:28:03.315
    Log Level:      SEVERE
    Logger:     javax.enterprise.resource.webservices.jaxws.server.soapmd
    Name-Value Pairs:     _ThreadID=13;
    Record Number:     443
    Message ID:     Error in decoding SOAP Message Error in decoding SOAP Message at com.sun.xml.ws.encoding.
    soap.server.SOAPXMLDecoder.toInternalMessage(SOAPXMLDecoder.java
    Complete Message
    86)
         at com.sun.xml.ws.protocol.soap.server.SOAPMessageDispatcher.
    toMessageInfo(SOAPMessageDispatcher.java:168)
         at com.sun.xml.ws.protocol.soap.server.SOAPMessageDispatcher$SoapInvoker.
    invoke(SOAPMessageDispatcher.java:533)
         at com.sun.xml.ws.protocol.soap.server.SOAPMessageDispatcher.receive(SOAPMessageDispatcher.java:144)
         at com.sun.xml.ws.server.Tie.handle(Tie.java:88)
         at com.sun.xml.ws.transport.http.servlet.WSServletDelegate.handle(WSServletDelegate.java:279)
         at com.sun.xml.ws.transport.http.servlet.WSServletDelegate.doPost(WSServletDelegate.java:232)
         at com.sun.xml.ws.transport.http.servlet.WSServlet.doPost(WSServlet.java:77)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:767)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:860)
         at sun.reflect.GeneratedMethodAccessor61.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:585)
         at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:249)
         at java.security.AccessController.doPrivileged(Native Method)
         at javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
         at org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:282)
         at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:165)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:257)
         at org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:55)
         at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:161)
         at java.security.AccessController.doPrivileged(Native Method)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:263)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)
         at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:225)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:173)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:170)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:132)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:933)
         at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:189)
         at com.sun.enterprise.web.connector.grizzly.ProcessorTask.doProcess(ProcessorTask.java:604)
         at com.sun.enterprise.web.connector.grizzly.ProcessorTask.process(ProcessorTask.java:475)
         at com.sun.enterprise.web.connector.grizzly.ReadTask.executeProcessorTask(ReadTask.java:371)
         at com.sun.enterprise.web.connector.grizzly.ReadTask.doTask(ReadTask.java:264)
         at com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:281)
         at com.sun.enterprise.web.connector.grizzly.WorkerThread.run(WorkerThread.java:83)
    Caused by: javax.xml.ws.soap.SOAPFaultException: Cannot find the dispatch method
         at com.sun.xml.ws.encoding.soap.SOAPDecoder.raiseFault(SOAPDecoder.java:662)
         at com.sun.xml.ws.encoding.soap.server.SOAPXMLDecoder.decodeDispatchMethod(SOAPXMLDecoder.java:151)
         at com.sun.xml.ws.encoding.soap.SOAPDecoder.decodeBodyContent(SOAPDecoder.java:335)
         at com.sun.xml.ws.encoding.soap.SOAPDecoder.decodeBody(SOAPDecoder.java:325)
         at com.sun.xml.ws.encoding.soap.SOAPDecoder.decodeEnvelope(SOAPDecoder.java:248)
         at com.sun.xml.ws.encoding.soap.server.SOAPXMLDecoder.toInternalMessage(SOAPXMLDecoder.java:78)
         ... 39 moreI'm new to web services and I'm completely out of ideas what is the problem. I googled a lot but I can't find any solution. Any help would be appreciated :)
    null

    Are you saying I can't just write jax-ws based web service using @WebService and @WebMethod and then, on client side, write code like this?
    SOAPConnectionFactory soapConnectionFactory = SOAPConnectionFactory.newInstance();
    SOAPConnection connection = soapConnectionFactory.createConnection();
    MessageFactory factory = MessageFactory.newInstance(SOAPConstants.SOAP_1_1_PROTOCOL);
    SOAPMessage request = factory.createMessage();
    // create proper message elements
    URL endpoint = new URL(endpoint_url);
    SOAPMessage response = connection.call(request, endpoint);
    // process response
    //

  • Problem with find reference and overshooting limits

    I have a two axis system set up (with a 7344 and UMI-7764), axis 2 uses a lead screw and the find center VI works properly, axis 1 however has a much longer travel and uses sprockets and cables to move and is therefore less rigid.  When attempting to find center, unless I run the axis very slowly, when the carriage hits the forward (or reverse) limit it overshoots the limit (inertia) and when the motor jogs to move off the limit it doesn't move far enough to release the switch and identify the location of the limit.
    Is there a way to increase distance that the axis will move to back away from the limit and find its exact location?  I would like to use a fairly high velocity to find center because the travel distance of the axis is up to 10 m and it takes quite a while to located center at the speed I am currently using.
    Thanks

    Good morning David,
    The Offset Move, in counts, is the function or feature that you are looking for.  It is on the Find Reference Settings in MAX, just below the location where the approach velocity is specified.  This is under each specific axis inside of the Default Settings.  The Offset Move specifies the number of counts the system should move to after the Reference Location is found.
    I hope that this information is helpful.  If this is not what you are looking for, please post back and I will do my best to answer your questions!
    Respectfully,
    Jeffrey P.
    LabVIEW Product Management
    National Instruments

  • Mine is an old IPod, 30 GB, Mod:  A1136.  I can´t find reference on the IPod page to download its manual or do an update on it.  Can anyone please help?

    Mine is an old IPod, 30 GB, Mod:  A1136.  I can´t find reference on the IPod page to download its manual or do an update on it.  Can anyone please help?

    Hello Ramirongo,
    If you are trying to update your iPod, then all you need to do is have the latest version of iTunes installed and plug it in. It will check of any updates if they are available and update your iPod. I have also provided the User Guide for your model of iPod as well. 
    iPod Features Guide 
    http://manuals.info.apple.com/MANUALS/0/MA186/en_US/iPod_Late_2006_Features_Guid e.pdf
    Update your iPhone, iPad, or iPod touch iOS software
    http://support.apple.com/kb/ht4623
    Regards,
    -Norm G.  

  • Please help finding pre-exsisting methods

    please help find pre-existing methods
    JavaFirstTime Jan 2, 2005 3:21 PM
    please help clever people :)
    how to output decimals in 2 decimal places only?
    how to output large integers using format: 12,376,452
    I've been told there are pre-existing methods for that, but i just can't find it... ideally i need to know the source code...

    Well, there's many ways to do it ... Here's one:
    class NumberFormatDemo {
    public static void main(String[] args) {
    new NumberFormatDemo().go();
    public void go() {
    double decimal = 123.456;
    System.out.println((int) decimal + "." + (int)
    + (int) (decimal * 100 + 0.5) % 100);
    int largeInteger = 12376452;
    System.out.println(recursive(largeInteger));
    public String recursive(int largeInteger) {
    if (largeInteger > 999) {
    return recursive(largeInteger/1000) + ","
    1000) + "," + largeInteger%1000;
    } else {
    return "" + largeInteger;
    yes, that's exactly wot i need...
    how didn't i think of that myself, using mathematics, i was thinking it would be more complicated like converting decimals to string then count letters and so on.
    Thank you for putting me on the right track :)

  • Soap fault, cannot find the dispatch method

    I deploy the HelloService example from "The Java EE 5 Tutorial
    For Sun Java System Application Server Platform Edition 9, chapter 1" to Sun Java System Application Server Platform Edition 9.0 Beta (build b32g), I tested it and it works find but when I invoked it from Servicemix-3.0 which use org.apache.servicemix.components.saaj.SaajBinding i got the following response:
    <?xml version="1.0" ?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:ns1="http://endpoint.helloservice/"><soapenv:Body><soapenv:Fault xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><faultcode>soapenv:Client</faultcode><faultstring>Cannot find the dispatch method</faultstring></soapenv:Fault></soapenv:Body></soapenv:Envelope>
    Using the Monitor to look at the request message I could not see any significant difference, follows both requests:
    Test:
    <?xml version="1.0" ?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:ns1="http://endpoint.helloservice/"><soapenv:Body><ns1:sayHello><arg0>ffg</arg0></ns1:sayHello></soapenv:Body></soapenv:Envelope>
    servicemix:
    <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"><SOAP-ENV:Header/><SOAP-ENV:Body><SOAP-ENV:Envelope xmlns:ns1="http://endpoint.helloservice/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"> <SOAP-ENV:Body> <ns1:sayHello> <arg0>Leopoldo</arg0> </ns1:sayHello> </SOAP-ENV:Body> </SOAP-ENV:Envelope></SOAP-ENV:Body></SOAP-ENV:Envelope>
    The log entry detail asociate is:
    Message ID: Error in decoding SOAP Message Error in decoding SOAP Message at com.sun.xml.ws.encoding.soap.server.SOAPXMLDecoder.toInternalMessage(SOAPXMLDecoder.java
    Complete Message
    86)     at com.sun.xml.ws.protocol.soap.server.SOAPMessageDispatcher.toMessageInfo(SOAPMessageDispatcher.java:168)     at com.sun.xml.ws.protocol.soap.server.SOAPMessageDispatcher$SoapInvoker.invoke(SOAPMessageDispatcher.java:533)     at com.sun.xml.ws.protocol.soap.server.SOAPMessageDispatcher.receive(SOAPMessageDispatcher.java:144)     at com.sun.xml.ws.server.Tie.handle(Tie.java:88)     at com.sun.enterprise.webservice.JAXWSServlet.doPost(JAXWSServlet.java:174)     at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)     at javax.servlet.http.HttpServlet.service(HttpServlet.java:822)     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:585)     at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:262)     at java.security.AccessController.doPrivileged(Native Method)     at javax.security.auth.Subject.doAsPrivileged(Subject.java:517)     at org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:295)     at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:178)     at org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilterChain.java:390)     at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:279)     at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566)     at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:536)     at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:240)     at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:179)     at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566)     at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:73)     at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:174)     at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566)     at com.sun.enterprise.web.VirtualServerPipeline.invoke(VirtualServerPipeline.java:120)     at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:939)     at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:137)     at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566)     at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:536)     at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:939)     at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:223)     at com.sun.enterprise.web.connector.grizzly.ProcessorTask.invokeAdapter(ProcessorTask.java:664)     at com.sun.enterprise.web.connector.grizzly.ProcessorTask.processNonBlocked(ProcessorTask.java:571)     at com.sun.enterprise.web.connector.grizzly.ProcessorTask.process(ProcessorTask.java:846)     at com.sun.enterprise.web.connector.grizzly.ReadTask.executeProcessorTask(ReadTask.java:345)     at com.sun.enterprise.web.connector.grizzly.ReadTask.doTask(ReadTask.java:237)     at com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:240)     at com.sun.enterprise.web.connector.grizzly.WorkerThread.run(WorkerThread.java:75)Caused by: javax.xml.ws.soap.SOAPFaultException: Cannot find the dispatch method     at com.sun.xml.ws.encoding.soap.SOAPDecoder.raiseFault(SOAPDecoder.java:662)     at com.sun.xml.ws.encoding.soap.server.SOAPXMLDecoder.decodeDispatchMethod(SOAPXMLDecoder.java:151)     at com.sun.xml.ws.encoding.soap.SOAPDecoder.decodeBodyContent(SOAPDecoder.java:335)     at com.sun.xml.ws.encoding.soap.SOAPDecoder.decodeBody(SOAPDecoder.java:325)     at com.sun.xml.ws.encoding.soap.SOAPDecoder.decodeEnvelope(SOAPDecoder.java:248)     at com.sun.xml.ws.encoding.soap.server.SOAPXMLDecoder.toInternalMessage(SOAPXMLDecoder.java:78)     ... 40 more
    I shall appreciate any help on this issue

    Any luck? I'm having the same problem with the HelloService deployed on AS9. The service tests ok and the client code in the jwsdk2.0 runs ok. When I attempt to access the service using axis 1.4, the same error occurs. I'll keep working on it, and post a solution if/when this is resolved.
    Client code:
    * Copyright 2001-2004 The Apache Software Foundation.
    * Licensed under the Apache License, Version 2.0 (the "License");
    * you may not use this file except in compliance with the License.
    * You may obtain a copy of the License at
    *      http://www.apache.org/licenses/LICENSE-2.0
    * Unless required by applicable law or agreed to in writing, software
    * distributed under the License is distributed on an "AS IS" BASIS,
    * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    * See the License for the specific language governing permissions and
    * limitations under the License.
    import org.apache.axis.client.Call;
    import org.apache.axis.client.Service;
    import javax.xml.namespace.QName;
    public class TestClient
       public static void main(String [] args) {
           try {
               String endpoint =
                        "http://localhost:9090/helloservice/HelloService";
               Service  service = new Service();
               Call     call    = (Call) service.createCall();
               call.setTargetEndpointAddress( new java.net.URL(endpoint) );
               call.setOperationName(new QName("http://soapinterop.org/", "sayHello") );
               // Call to addParameter/setReturnType as described in user-guide.html
               //call.addParameter("testParam",
               //                  org.apache.axis.Constants.XSD_STRING,
               //                  javax.xml.rpc.ParameterMode.IN);
               //call.setReturnType(org.apache.axis.Constants.XSD_STRING);
               String ret = (String) call.invoke( new Object[] { "Hello!" } );
               System.out.println("Sent 'Hello!', got '" + ret + "'");
           } catch (Exception e) {
               e.printStackTrace();
    }Error in decoding SOAP Message Error in decoding SOAP Message at com.sun.xml.ws.encoding.soap.server.SOAPXMLDecoder.toInternalMessage(SOAPXMLDecoder.java
    89)
         at com.sun.xml.ws.protocol.soap.server.SOAPMessageDispatcher.toMessageInfo(SOAPMessageDispatcher.java:187)
         at com.sun.xml.ws.protocol.soap.server.SOAPMessageDispatcher$SoapInvoker.invoke(SOAPMessageDispatcher.java:571)
         at com.sun.xml.ws.protocol.soap.server.SOAPMessageDispatcher.receive(SOAPMessageDispatcher.java:145)
         at com.sun.xml.ws.server.Tie.handle(Tie.java:88)
         at com.sun.enterprise.webservice.JAXWSServlet.doPost(JAXWSServlet.java:191)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
         at org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilterChain.java:397)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:278)
         at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:536)
         at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:240)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:179)
         at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566)
         at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:73)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:182)
         at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566)
         at com.sun.enterprise.web.VirtualServerPipeline.invoke(VirtualServerPipeline.java:120)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:939)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:137)
         at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:536)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:939)
         at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:231)
         at com.sun.enterprise.web.connector.grizzly.ProcessorTask.invokeAdapter(ProcessorTask.java:667)
         at com.sun.enterprise.web.connector.grizzly.ProcessorTask.processNonBlocked(ProcessorTask.java:574)
         at com.sun.enterprise.web.connector.grizzly.ProcessorTask.process(ProcessorTask.java:844)
         at com.sun.enterprise.web.connector.grizzly.ReadTask.executeProcessorTask(ReadTask.java:287)
         at com.sun.enterprise.web.connector.grizzly.ReadTask.doTask(ReadTask.java:212)
         at com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:252)
         at com.sun.enterprise.web.connector.grizzly.WorkerThread.run(WorkerThread.java:75)
    Caused by: javax.xml.ws.soap.SOAPFaultException: Cannot find the dispatch method
         at com.sun.xml.ws.encoding.soap.SOAPDecoder.raiseFault(SOAPDecoder.java:674)
         at com.sun.xml.ws.encoding.soap.server.SOAPXMLDecoder.decodeDispatchMethod(SOAPXMLDecoder.java:152)
         at com.sun.xml.ws.encoding.soap.SOAPDecoder.decodeBodyContent(SOAPDecoder.java:337)
         at com.sun.xml.ws.encoding.soap.SOAPDecoder.decodeBody(SOAPDecoder.java:327)
         at com.sun.xml.ws.encoding.soap.SOAPDecoder.decodeEnvelope(SOAPDecoder.java:250)
         at com.sun.xml.ws.encoding.soap.server.SOAPXMLDecoder.toInternalMessage(SOAPXMLDecoder.java:81)
         ... 31 more
    Mesage:
    <?xml version="1.0" encoding="UTF-8"?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><soapenv:Body><ns1:sayHello soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:ns1="http://soapinterop.org/"><ns1:arg0 xsi:type="soapenc:string" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">Hello!</ns1:arg0></ns1:sayHello></soapenv:Body></soapenv:Envelope>

  • Reference.clear method

    I think that I do not understand the Reference.clear method. I am trying to use SoftReferences to store objects (actually Sets) that can be retrieved from filesystem files. And I am trying to use (override) the Reference.clear method to handle writing said file when one of them is about to go "byebye"...
    But what is happening is that my clear method never gets called AND the SoftReference.get method returns null. (Which means that the referent is gone without clear having been called...which means I don't understand the clear method!)
    SOOOOOO, can someone please either explain how I can be alerted to handle something just before something gets gc-ed, or else enlighten me to a better way to implement this?
    Here's the longer story:
    I have many "records", far too many to even consider keeping them all in memory at once. So I started storing them in "minisets" which I can serialize to files and retrieve as needed. The "minisets" are values in a HashMap with string keys.
    When one of these Sets gets "big enough", I start storing a SoftReference to it instead of "it". Then when I need a particular set, I do a hashmap.get(key), then either (a) I get the Set, or (b) I get the the softref from which I can get the Set, or (c) I get the softref from which I cannot get the Set, in which case I go reconstruct the Set by reading a file.
    The problem is writing the file... if I write a file every time I edit a (potentially large) Set then this program will take 5 days to run. So I think I want to write the file only when absolutely necessary....right before the gc eats it.
    Thank you for help,
    /Mel

    Okay, here it is.
    MyRef: My extension of PhRef. Also holds referent data that we need for cleanup, since we can't get to referent once Ref is enQ'ed.
    Dummy: thie is the class that you're storing in the Sets or whatever, and that gets put in a reference.
    Dummy's id_ member: This holds the place of whatever data you need for pre-bye-bye cleanup, e.g. a filename and the internal data of Dummy. MyRef grabs this when it's created.
    (Note: what you may want to create a new class, say DummyWrapper that holds a Dummy and provides the only strongly reachable path to it, pass DummyWrapper to the Ref's constructor, and then have the Ref store the wrapped Dummy (e.g. wrapper.getDummy()) as its member var in place of the id_ that I'm storing--that is, in place of storing a bunch of internal data individually. Like I said, this approach seems overly complex, but I've not found a simpler way that works. I originally tried having the Ref store the Dummy directly as a member var, but then the Dummy was always strongly reachable.)
    Poller: Thread that removes Refs from queue. You can probably just do this at the point in your code where you decide the set is "big enough", rather than in a separate thread.
    dummies_: List that holds Dummies and keeps them strongly reachable until cleanup time. I think you said your stuff was in a Set or Sets. This is the parallel to your Set(s).
    refs_: List of PhRefs to keep them reachable until they get enqueued.
    When I don't use Refs properly to clean things up, I get OutOfMemoryError after about 60 or 120 iterations. (I tried a couple different sizes for Dummy, so I forget where I am now.) With the Refs in place, I'm well over 100,000 iterations and still going.
    import java.lang.ref.*;
    import java.util.*;
    public class Ref {
        public static ReferenceQueue rq_ = new ReferenceQueue();
        // one of these lists was giving ConcurrentModificationException
        // so I sync'ed both cuz I'm lazy
        public static List dummies_ = Collections.synchronizedList(new ArrayList());
        public static List refs_ = Collections.synchronizedList(new ArrayList());
        public static Poller po_ = new Poller();
        public static void main(String[] args) {
            new Thread(po_).start();
            new Thread(new Creator()).start();
        public static class Poller implements Runnable {
            public void run() {
                // block until something can be removed, then remove
                // until nothing left, at which point we block again
                while (true) {
                    try {
                        MyRef ref = ((MyRef)rq_.remove());
                        // This println is your file write.
                        // id_ is your wrapped Dummy or the data you need to write.
                        // You probably want a getter instead of a public field.
                        System.err.println("==================== removed "
                                + ref.id_  + "             ======  ===  ==");
                        ref.clear();  // PhRefs aren't cleared automatically
                        refs_.remove(ref); // need to make Ref unreachable, or referent won't get gc'ed
                    catch (InterruptedException exc) {
                        exc.printStackTrace();
        public static class Creator implements Runnable {
            public void run() {
                int count = 0;
                while (true) {
                    // every so often, clear list, making Dummies reachable only thru Ref
                    if (count++ % 50 == 0) {
                        System.err.println("                 :::: CLEAR");
                        dummies_.clear();
                    // give Poller enough chances to run  
                    if (count % 16 == 0) {
                        System.gc();
                        Thread.yield();
                    // Create a Dummy, add to the List
                    Dummy dd = new Dummy();
                    System.err.println("++ created " + dd.id_);
                    dummies_.add(dd);
                    // Create Ref, add it to List of Refs so it stays
                    // reachable and gets enqueued
                    Reference ref = new MyRef(dd, rq_);
                    refs_.add(ref);
        public static class MyRef extends PhantomReference {
            private long id_;  // data you need to write to file
            public MyRef(Dummy referent, ReferenceQueue queue) {
                super(referent, queue);
                id_ = referent.id_;
            public void clear() {
                System.err.println("-------CLEARED " + get());
            public String toString() {
                return "" + id_;
        public static class Dummy {
            // just a dummy byte array that takes up a bunch of mem,
            // so I can see OutOfMemoryError quickly when not using
            // Refs properly
            private final byte[] bb = new byte[1024 * 512];
            private static long nextId_;
            public final long id_ = nextId_++;
            public String toString() {
                return String.valueOf(id_);
    }

  • Modal error with motion controller PCI-7344 during find reference sequence

    I get the following error code when I start a find reference sequence (find encoder index) programmatically:
    Error # -70125 occured at FindReference on Axis 1
    Possible reasons:
    Motion: -70125 (NIMC_wrongModeError)
    The function was not executed because it was attempted at an illegal time.
    When I do the find reference sequence in MAX, it works fine. But I need I programmatically after the initialization sequence. Does anyone had the same problem?

    Hi,
    Could you please post a little bit more informations regarding the board you are using, lv version, ni-motion version and perhaps the code, you have programmed and which is generating the error message?
    Thanks.
    Evrem

  • Cannot find the ''Positioning Methods'' option on ...

    Hello....I have recently bought the C7-00 and I wanted to test my GPS but I could not find the "Positioning Methods'' option to select the A-GPS, so can anyone help on this.
    Thank you.

    Do you not have a Location app in your Applications Folder ? As CJ mentioned , that is where you set your location methods to on/off. Inside Location you should have 3 sub folders, Landmarks,GPS data and Positioning. Open Positioning and you should be able to change the settings !
    If I have helped at all, a click on the White Star is always appreciated :
    you can also help others by marking 'accept as solution' 

  • Will JDeveloper support INTERVAL and REFERENCES partitioning methods soon?

    JDeveloper is a fantastic tool, and I'm very impressed with its data modeling capabilities as they are quite robust. However, currently its support for Table Partitioning is limited to the feature level of Oracle 10g, as it does not support 11g INTERVAL or REFERENCES partitioning methods, nor the Composite List partitioning methods List-Range, List-Hash, and List-List.
    Any idea when JDeveloper will support these Partitioning enhancements available in Oracle Database 11g? If it's in the works, I'd be happy to help beta test it!
    Best regards,
    Terry

    Hi Terry
    I love it that you are working with the data modeling and would love to hear how you are using it. Please email me direct with more info
    We are working to get composite partitions (11g) into a future release but I don't have any timeframe for you at the moment.
    rgds
    Susan Duncan
    Product Manager
    susan.duncan@oracle

Maybe you are looking for