Static errors

i dont fully understand this from what i understand though i need my
public static void main( String args[] )
to run my main method, but i keep getting errors saying i cannot use a non static variable in a static method. But i cant change my variable to static and i keep getting errors with my array of type String named board. please check out my code for the first few lines where the problem is and if anyoen can help.
public class TicTacToeTest
     // create a two demensional array and initialize it with default values
     private String[][] board = {{"_","_","_"},{"_","_","_"},{"_","_","_"}};
     // create a String variable for the name of the players
     private String name;
     public static void main( String args[], String board[][] )
     // create two objects for player x and player o
     TicTacToeTest x = new TicTacToeTest( "x" );
     TicTacToeTest o = new TicTacToeTest( "o" );
     // a for loop created to execute the main the maximum number of times
     for( int counter = 0; counter <= 5; counter ++)
          // a call to the method choice for object x
          // player x makes a choice
          x.choice( board );
          // check to see if last move by x finishes game
          x.check( board );
          // a call to the method choice for object o
          // player o makes a choice
          o.choice( board );
          // check to see if last move by o finishes game
          o.check( board );
     }

Check this code,public class TicTacToeTest
     // create a two demensional array and initialize it with default values
     private String[][] board = {{"_","_","_"},{"_","_","_"},{"_","_","_"}};
     // create a String variable for the name of the players
     private String name;
     public TicTacToeTest(String name)
          this.name=name;
     public static void main(String args[])
          // create two objects for player x and player o
          TicTacToeTest x = new TicTacToeTest( "x" );
          TicTacToeTest o = new TicTacToeTest( "o" );
          // a for loop created to execute the main the maximum number of times
          for( int counter = 0; counter <= 5; counter ++)
               // a call to the method choice for object x
               // player x makes a choice
               x.choice(x.board);
               // check to see if last move by x finishes game
               x.check(x.board);
               // a call to the method choice for object o
               // player o makes a choice
               o.choice(o.board );
               // check to see if last move by o finishes game
               o.check(o.board );
     private void choice(String name[][])
     private void check(String name[][])
}Sudha

Similar Messages

  • RfcAdapter: receiver channel has static errors: can not instantiate RfcPool

    HI,
    While transferring the project from SAP system to PRIMVERA (third party system) system, iam getting the following error:
    com.sap.engine.interfaces.messaging.api.exception.MessagingException: com.sap.aii.adapter.rfc.afcommunication.RfcAFWException: RfcAdapter: receiver channel has static errors: can not instantiate RfcPool caused by: com.sap.aii.adapter.rfc.RfcAdapterException: error initializing RfcClientPool:com.sap.aii.adapter.rfc.core.repository.RfcRepositoryException: can not connect to destination system due to: com.sap.mw.jco.JCO$Exception: (102) RFC_ERROR_COMMUNICATION: Connect to SAP gateway failed Connect_PM TYPE=A ASHOST=192.168.215.138 SYSNR=02 GWHOST=192.168.215.138 GWSERV=sapgw02 PCS=1 LOCATION CPIC (TCP/IP) on local host with Unicode ERROR partner '192.168.215.138apgw02' not reached TIME Sun May 01 06:10:03 2011 RELEASE 710 COMPONENT NI (network interface) VERSION 39 RC -10 MODULE nixxi.cpp LINE 3133 DETAIL NiPConnect2: 192.168.215.138:3302 SYSTEM CALL connect ERRNO 10060 ERRNO TEXT WSAETIMEDOUT: Connection timed out COUNTER
    experts, kindly help me out in resolving this issue.
    Regards,
    Sai

    partner '192.168.215.138apgw02' not reached
    Well if you ask me, theres something seriuosly wrong with above "partner", review the config of the RFC/JCO,
    also you could add more details as above info on its own is not enough to give you and objective answer
    Regards
    Juan

  • Voume and static errors

    my ipod volume doesnt always work i turn it down all the way and it is still blasting and i constantly hear static and it isnt the earphones am i alone???

    Hi!!
    This error means that you are mixing up static and non-static methods. If you keep items() as you wrote it, then it's not a static method, and you'll have to create or use an Output variable in the blah() method. If I'm not clear:
    In Output, you put:
    public int items()
    return doneItemCount;
    And in Input, you put either:
    public void blah()
    int test = new Output().items();//not very useful
    or, if you declared and instanciated an Output variable(say blabla) somewhere else in the Input class, you put:
    public void blah()
    int test = blabla.items();
    Anyway, you should keep items() non-static, since it needs to access to an attribute(doneItemCount).
    Hope this'll help. When I first met this error, I thought it was quite a weird solution, but you get used to it. And the compiler leaves you alone :).

  • Static error when creating instances

    I have 3 classes, one is my Apple, one is my Tree that makes Apples, one is my AppleBuffer which my apples go into, waiting their turn to fall off the tree.
    There are many Apples, but there is only one Tree, and one AppleBuffer.
    Apple Class:
    public class Apple {
        private String col;
    }AppleBuffer Class (Stores the apples in a vector queue):
    public class AppleBuffer{
        public Vector<Apple> queue = new Vector<Apple>();
        public void add(Apple a){
             list.add(a);
    }Tree Class (Apple generator):
    public class Tree{
        public Apple a;
        public void create(){
            for(i=0;i<=10;i++){
                a = new Apple()
                AppleBuffer.add(a);
    }Apologies if some of the syntax is off, I just wrote the parts that needed mentioning of the top of my head.
    The error produced is compiling the Tree class:
    Cannot make a static reference to the non-static method add(Apple) from the type AppleBuffer
    I'm sure this is because I'm still new and don't really understand the use of objects properly.
    The way I see it, Apple is the only class which needs multiple instances of itself, thus is the only class that needs creating objects for.
    Would making a single object instance of AppleBuffer solve this problem? Would I need to do it for Tree aswell? It just all sounds a bit messy.
    I don't really want to start making certain methods static because I know it would just confuse me later.
    Please could someone tell me what I'm doing wrong, and provide me with a short and simple terminology to correct my view on OO programming.
    Thankyou.

    public class Tree{
        public Apple a;
        private AppleBuffer buffer;
        public void create(){
            for(i=0;i<=10;i++){
                a = new Apple()
                buffer.add(a);
    }You cannot access a non-static method ( add() in your case) in a static manner (AppleBuffer.add()) you need to create an instance of the AppleBuffer class first, then add apples to it. Another way to make it work, but NOT recommended by me, is to make the add() method static, and the queue as well
    public class AppleBuffer{
        public static Vector<Apple> queue = new Vector<Apple>();
        public static void add(Apple a){
             queue.add(a);
    }

  • Static vs. non-static errors!

    I dont understand why this doesn't work. Could someone explain the concept behind this error, and perhaps a solution, or another way of going about this?
    error:
    test.java:3: non-static method add(int,int) cannot be referenced from a static context
    add(1,2);
    ^
    1 error
    public class test {
       public static void main(String[] args) {
          add(1,2);
       public int add(int a, int b) {
          int c = a+b;
          return c;
    }

    You need to make your add() static:
    public static int add(int a, int b)
    Anything you reference in a static method - a method or a variable - that is defined ooutside of the static method must be defined as static. For example:
    public class test
    int x = 0;
    static int y =0;
    public static void main(String[] args)
    {      add(1,2); 
    System.out.println(x) // will cause an error - non-static variable referenced in static class
    System.out.println(y) // is okay
    public int add(int a, int b)
    {      int c = a+b;      return c;  
    }

  • Non-static and static errors

    Hi,
    I've created a couple classes, say, Input and Output both with a number of different methods.
    Output holds an integer value that Input needs access to.
    I created a method in Output to return the value, such as
    //doneItemCount is declared up here somewhere, etc
    public int items()
         int returnvalue = doneItemCount;
         return returnvalue;
    My Input class has a method from which it tries to get that value
    public void blah()
    int test = Output.items();
    but no matter what i try i get
    non-static method items() cannot be referenced from a static context
    int test = Output.items();
    If i make the methods static, then i get the same error for doneItemCount not being static or whatnot.
    Any tips on how to overcome this?
    Thanks

    Hi!!
    This error means that you are mixing up static and non-static methods. If you keep items() as you wrote it, then it's not a static method, and you'll have to create or use an Output variable in the blah() method. If I'm not clear:
    In Output, you put:
    public int items()
    return doneItemCount;
    And in Input, you put either:
    public void blah()
    int test = new Output().items();//not very useful
    or, if you declared and instanciated an Output variable(say blabla) somewhere else in the Input class, you put:
    public void blah()
    int test = blabla.items();
    Anyway, you should keep items() non-static, since it needs to access to an attribute(doneItemCount).
    Hope this'll help. When I first met this error, I thought it was quite a weird solution, but you get used to it. And the compiler leaves you alone :).

  • Static error

    i am trying to declare a method in a driver class and trying to call it in the main method but compiler gives the error that can not call non static method in a static(main) method .
    I dont understand?
    what is the reason.

    main is always a static method (which means that it exists at the level of the class rather than at the instance level).
    You all calling a method in main that is not static. When you call a non-static method (these are the normal methods you use) you need to have an instance, but becuase the call originates from a static method there is no instance - and so you are told not to call non-static methods from static ones. Essentially, you don't have access to 'this' in a static method, and you need to be able to call 'this.yourMethod()'
    public class Statics {
      public static void main(String args[]) {
         staticMethod();   // That's good
         nonStaticMethod();  // No, that's not.
         (new Statics()).nonStaticMethod();   // Oh, yeahh!
      public void nonStaticMethod() {
        otherNonStaticMethod();   // You can do this.
        staticMethod();   // You can also do this.
        Statics.staticMethod();  // or this...
        this.staticMethod();   // And this though it seems slightly odd.
      public static void staticMethod() {
        nonStaticMethod();   // but you can't do this.
      public void otherNonStaticMethod() {
    }Confused? You should be.
    PD.

  • Error while sending data from XI to BI System

    Hello Friends,
    I m facing an error while sending data from XI to BI. XI is successfully recived data from FTP.
    Given error i faced out in communication channel monitoring:-
    Receiver channel 'POSDMLog_Receiver' for party '', service 'Busys_POSDM'
    Error can not instantiate RfcPool caused by:
    com.sap.aii.af.rfc.RfcAdapterException: error initializing RfcClientPool:com.sap.aii.af.rfc.core.repository.RfcRepositoryException: can not connect to destination system due to: com.sap.mw.jco.JCO$Exception: (102) RFC_ERROR_COMMUNICATION: Connect to SAP gateway failed
    Connect_PM TYPE=A ASHOST=10.1.45.35 SYSNR=01 GWHOST=10.1.45.35 GWSERV=sapgw01 PCS=1
    LOCATION CPIC (TCP/IP) on local host with Unicode
    ERROR partner '10.1.45.35:sapgw01' not reached
    TIME Fri Apr 16 08:15:18 2010
    RELEASE 700
    COMPONENT NI (network interface)
    VERSION 38
    RC -10
    MODULE nixxi.cpp
    LINE 2823
    DETAIL NiPConnect2
    SYSTEM CALL connect
    ERRNO 10061
    ERRNO TEXT WSAECONNREFUSED: Connection refused
    COUNTER 2
    Error displaying in message monitoring:-
    Exception caught by adapter framework: RfcAdapter: receiver channel has static errors: can not instantiate RfcPool caused by: com.sap.aii.af.rfc.RfcAdapterException: error initializing RfcClientPool:com.sap.aii.af.rfc.core.repository.RfcRepositoryException: can not connect to destination system due to: com.sap.mw.jco.JCO$Exception: (102) RFC_ERROR_COMMUNICATION: Connect to SAP gateway failed Connect_PM  TYPE=A ASHOST=10.1.45.35 SYSNR=01 GWHOST=10.1.45.35 GWSERV=sapgw01 PCS=1 LOCATION    CPIC (TCP/IP) on local host with Unicode ERROR       partner '10.1.45.35:sapgw01' not reached TIME        Fri Apr 16 08:15:18 2010 RELEASE     70
    Delivery of the message to the application using connection RFC_http://sap.com/xi/XI/System failed, due to: com.sap.aii.af.ra.ms.api.RecoverableException: RfcAdapter: receiver channel has static errors: can not instantiate RfcPool caused by: com.sap.aii.af.rfc.RfcAdapterException: error initializing RfcClientPool:com.sap.aii.af.rfc.core.repository.RfcRepositoryException: can not connect to destination system due to: com.sap.mw.jco.JCO$Exception: (102) RFC_ERROR_COMMUNICATION: Connect to SAP gateway failed Connect_PM  TYPE=A ASHOST=10.1.45.35 SYSNR=01 GWHOST=10.1.45.35 GWSERV=sapgw01 PCS=1 LOCATION    CPIC (TCP/IP) on local host with Unicode ERROR       partner '10.1.45.35:sapgw01' not reached TIME.
    Kindly suggest me & provide details of error.
    Regards,
    Narendra

    Hi Narendra,
    Message is clearly showing that your system is not reachable
    102) RFC_ERROR_COMMUNICATION: Connect to SAP gateway failed Connect_PM TYPE=A ASHOST=10.1.45.35 SYSNR=01 GWHOST=10.1.45.35 GWSERV=sapgw01 PCS=1 LOCATION CPIC (TCP/IP) on local host with Unicode ERROR partner '10.1.45.35:sapgw01' not reached
    Please check to ping the BI server  IP 10.1.45.35 from your XI server , in case its working you can check telnet to SAP standard port like 3201/3601/3301/3901 etc.
    It seems to be connectivity issue only.
    Make sure your both the systems are up and running.
    Revert back after checking above stuff.
    Regards,
    Gagan Deep Kaushal

  • RFC Error: A remote host refused an attempted connect operation

    Hi I received strange kind of error..
    Have anyone of you seen something like this before?
    <SAP:AdditionalText>com.sap.engine.interfaces.messaging.api.exception.MessagingException: com.sap.aii.adapter.rfc.afcommunication.RfcAFWException: RfcAdapter: receiver channel has static errors: can not instantiate RfcPool caused by: com.sap.aii.adapter.rfc.RfcAdapterException: error initializing RfcClientPool:com.sap.aii.adapter.rfc.core.repository.RfcRepositoryException: can not connect to destination system due to: com.sap.mw.jco.JCO$Exception: (**) RFC_ERROR_COMMUNICATION: Connect to message server host failed Connect_PM TYPE=B MSHOST=logon*.*.com GROUP=SPACE R3NAME=2 MSSERV=sapms2 PCS=1 LOCATION CPIC (TCP/IP) on local host with Unicode ERROR partner '.*..*:sapms*8' not reached TIME Sat Feb 11 20:37:58 201 RELEASE 710 COMPONENT NI (network interface) VERSION 39 RC -10 MODULE nixxi.cpp LINE 3147 DETAIL NiPConnect2: *.*..*:*** SYSTEM CALL connect ERRNO 79 ERRNO TEXT A remote host refused an attempted connect operation. COUNTER 8</SAP:AdditionalText>
      <SAP:Stack />

    Hi,
    MSHOST=logon**.*.com is name server, but it can be recognized as in message is also part "on local host with Unicode ERROR partner '.*..**:" where *.*... is IP address..
    That problem occurred after some patches were implemented.
    @2.) I can't change it to ABAP proxy
    M.

  • OSM 7.0.3 PIP Error in SIEntryPoint.Xquery

    Hi All,
    I have created one new function component and in SIENTRY Point.Xquery, i am getting below error:-
    or in #...pdateOrder($automator, "false"#:
    Variable $automator has not been declared. . File[null (actual location resolved to [])] Line[186] Column[52]
    Below is the error message:-
    ####<Nov 11, 2012 2:31:58 PM IST> <Error> <oms> <INPUHJLP03690> <AdminServer> <ExecuteThread: '14' for queue: 'oms.automation'> <oms-automation> <BEA1-1B1DEC65870F3057A4BD> <> <1352624518243> <BEA-000000> <rule.XQueryHelper: XQuery static error in #...pdateOrder($automator, "false"#:
    Variable $automator has not been declared. . File[null (actual location resolved to [])] Line[186] Column[52]
    net.sf.saxon.trans.XPathException: XQuery static error in #...pdateOrder($automator, "false"#:
    Variable $automator has not been declared
         at net.sf.saxon.query.QueryParser.grumble(QueryParser.java:345)
         at net.sf.saxon.expr.ExpressionParser.parseBasicStep(ExpressionParser.java:1270)
         at net.sf.saxon.expr.ExpressionParser.parseStepExpression(ExpressionParser.java:1213)
         at net.sf.saxon.expr.ExpressionParser.parseRelativePath(ExpressionParser.java:1151)
         at net.sf.saxon.expr.ExpressionParser.parsePathExpression(ExpressionParser.java:1137)
         at net.sf.saxon.expr.ExpressionParser.parseUnaryExpression(ExpressionParser.java:1026)
         at net.sf.saxon.expr.ExpressionParser.parseCastExpression(ExpressionParser.java:691)
         at net.sf.saxon.expr.ExpressionParser.parseCastableExpression(ExpressionParser.java:646)
         at net.sf.saxon.expr.ExpressionParser.parseTreatExpression(ExpressionParser.java:627)
         at net.sf.saxon.expr.ExpressionParser.parseInstanceOfExpression(ExpressionParser.java:609)
         at net.sf.saxon.expr.ExpressionParser.parseIntersectExpression(ExpressionParser.java:1059)
         at net.sf.saxon.expr.ExpressionParser.parseUnionExpression(ExpressionParser.java:1041)
         at net.sf.saxon.expr.ExpressionParser.parseMultiplicativeExpression(ExpressionParser.java:978)
         at net.sf.saxon.expr.ExpressionParser.parseAdditiveExpression(ExpressionParser.java:958)
         at net.sf.saxon.expr.ExpressionParser.parseRangeExpression(ExpressionParser.java:876)
         at net.sf.saxon.expr.ExpressionParser.parseComparisonExpression(ExpressionParser.java:826)
         at net.sf.saxon.expr.ExpressionParser.parseAndExpression(ExpressionParser.java:423)
         at net.sf.saxon.expr.ExpressionParser.parseOrExpression(ExpressionParser.java:405)
         at net.sf.saxon.expr.ExpressionParser.parseExprSingle(ExpressionParser.java:354)
         at net.sf.saxon.expr.ExpressionParser.parseFunctionCall(ExpressionParser.java:1780)
         at net.sf.saxon.expr.ExpressionParser.parseBasicStep(ExpressionParser.java:1307)
         at net.sf.saxon.expr.ExpressionParser.parseStepExpression(ExpressionParser.java:1213)
         at net.sf.saxon.expr.ExpressionParser.parseRelativePath(ExpressionParser.java:1151)
         at net.sf.saxon.expr.ExpressionParser.parsePathExpression(ExpressionParser.java:1137)
         at net.sf.saxon.expr.ExpressionParser.parseUnaryExpression(ExpressionParser.java:1026)
         at net.sf.saxon.expr.ExpressionParser.parseCastExpression(ExpressionParser.java:691)
         at net.sf.saxon.expr.ExpressionParser.parseCastableExpression(ExpressionParser.java:646)
         at net.sf.saxon.expr.ExpressionParser.parseTreatExpression(ExpressionParser.java:627)
         at net.sf.saxon.expr.ExpressionParser.parseInstanceOfExpression(ExpressionParser.java:609)
         at net.sf.saxon.expr.ExpressionParser.parseIntersectExpression(ExpressionParser.java:1059)
         at net.sf.saxon.expr.ExpressionParser.parseUnionExpression(ExpressionParser.java:1041)
         at net.sf.saxon.expr.ExpressionParser.parseMultiplicativeExpression(ExpressionParser.java:978)
         at net.sf.saxon.expr.ExpressionParser.parseAdditiveExpression(ExpressionParser.java:958)
         at net.sf.saxon.expr.ExpressionParser.parseRangeExpression(ExpressionParser.java:876)
         at net.sf.saxon.expr.ExpressionParser.parseComparisonExpression(ExpressionParser.java:826)
         at net.sf.saxon.expr.ExpressionParser.parseAndExpression(ExpressionParser.java:423)
         at net.sf.saxon.expr.ExpressionParser.parseOrExpression(ExpressionParser.java:405)
         at net.sf.saxon.expr.ExpressionParser.parseExprSingle(ExpressionParser.java:354)
         at net.sf.saxon.expr.ExpressionParser.parseExpression(ExpressionParser.java:306)
         at net.sf.saxon.query.QueryParser.readElementContent(QueryParser.java:3350)
         at net.sf.saxon.query.QueryParser.parseDirectElementConstructor(QueryParser.java:3028)
         at net.sf.saxon.query.QueryParser.parsePseudoXML(QueryParser.java:2767)
         at net.sf.saxon.query.QueryParser.readElementContent(QueryParser.java:3316)
         at net.sf.saxon.query.QueryParser.parseDirectElementConstructor(QueryParser.java:3028)
         at net.sf.saxon.query.QueryParser.parsePseudoXML(QueryParser.java:2767)
         at net.sf.saxon.query.QueryParser.parseConstructor(QueryParser.java:2357)
         at net.sf.saxon.expr.ExpressionParser.parseBasicStep(ExpressionParser.java:1387)
         at net.sf.saxon.expr.ExpressionParser.parseStepExpression(ExpressionParser.java:1213)
         at net.sf.saxon.expr.ExpressionParser.parseRelativePath(ExpressionParser.java:1151)
         at net.sf.saxon.expr.ExpressionParser.parsePathExpression(ExpressionParser.java:1137)
         at net.sf.saxon.expr.ExpressionParser.parseUnaryExpression(ExpressionParser.java:1026)
         at net.sf.saxon.expr.ExpressionParser.parseCastExpression(ExpressionParser.java:691)
         at net.sf.saxon.expr.ExpressionParser.parseCastableExpression(ExpressionParser.java:646)
         at net.sf.saxon.expr.ExpressionParser.parseTreatExpression(ExpressionParser.java:627)
         at net.sf.saxon.expr.ExpressionParser.parseInstanceOfExpression(ExpressionParser.java:609)
         at net.sf.saxon.expr.ExpressionParser.parseIntersectExpression(ExpressionParser.java:1059)
         at net.sf.saxon.expr.ExpressionParser.parseUnionExpression(ExpressionParser.java:1041)
         at net.sf.saxon.expr.ExpressionParser.parseMultiplicativeExpression(ExpressionParser.java:978)
         at net.sf.saxon.expr.ExpressionParser.parseAdditiveExpression(ExpressionParser.java:958)
         at net.sf.saxon.expr.ExpressionParser.parseRangeExpression(ExpressionParser.java:876)
         at net.sf.saxon.expr.ExpressionParser.parseComparisonExpression(ExpressionParser.java:826)
         at net.sf.saxon.expr.ExpressionParser.parseAndExpression(ExpressionParser.java:423)
         at net.sf.saxon.expr.ExpressionParser.parseOrExpression(ExpressionParser.java:405)
         at net.sf.saxon.expr.ExpressionParser.parseExprSingle(ExpressionParser.java:354)
         at net.sf.saxon.query.QueryParser.parseLetClause(QueryParser.java:1910)
         at net.sf.saxon.query.QueryParser.parseForExpression(QueryParser.java:1642)
         at net.sf.saxon.expr.ExpressionParser.parseExprSingle(ExpressionParser.java:338)
         at net.sf.saxon.expr.ExpressionParser.parseExpression(ExpressionParser.java:306)
         at net.sf.saxon.expr.ExpressionParser.parseBasicStep(ExpressionParser.java:1286)
         at net.sf.saxon.expr.ExpressionParser.parseStepExpression(ExpressionParser.java:1213)
         at net.sf.saxon.expr.ExpressionParser.parseRelativePath(ExpressionParser.java:1151)
         at net.sf.saxon.expr.ExpressionParser.parsePathExpression(ExpressionParser.java:1137)
         at net.sf.saxon.expr.ExpressionParser.parseUnaryExpression(ExpressionParser.java:1026)
         at net.sf.saxon.expr.ExpressionParser.parseCastExpression(ExpressionParser.java:691)
         at net.sf.saxon.expr.ExpressionParser.parseCastableExpression(ExpressionParser.java:646)
         at net.sf.saxon.expr.ExpressionParser.parseTreatExpression(ExpressionParser.java:627)
         at net.sf.saxon.expr.ExpressionParser.parseInstanceOfExpression(ExpressionParser.java:609)
         at net.sf.saxon.expr.ExpressionParser.parseIntersectExpression(ExpressionParser.java:1059)
         at net.sf.saxon.expr.ExpressionParser.parseUnionExpression(ExpressionParser.java:1041)
         at net.sf.saxon.expr.ExpressionParser.parseMultiplicativeExpression(ExpressionParser.java:978)
         at net.sf.saxon.expr.ExpressionParser.parseAdditiveExpression(ExpressionParser.java:958)
         at net.sf.saxon.expr.ExpressionParser.parseRangeExpression(ExpressionParser.java:876)
         at net.sf.saxon.expr.ExpressionParser.parseComparisonExpression(ExpressionParser.java:826)
         at net.sf.saxon.expr.ExpressionParser.parseAndExpression(ExpressionParser.java:423)
         at net.sf.saxon.expr.ExpressionParser.parseOrExpression(ExpressionParser.java:405)
         at net.sf.saxon.expr.ExpressionParser.parseExprSingle(ExpressionParser.java:354)
         at net.sf.saxon.query.QueryParser.parseForExpression(QueryParser.java:1675)
         at net.sf.saxon.expr.ExpressionParser.parseExprSingle(ExpressionParser.java:338)
         at net.sf.saxon.expr.ExpressionParser.parseExpression(ExpressionParser.java:306)
         at net.sf.saxon.query.QueryParser.parseQuery(QueryParser.java:271)
         at net.sf.saxon.query.QueryParser.makeXQueryExpression(QueryParser.java:103)
         at net.sf.saxon.query.StaticQueryContext.compileQuery(StaticQueryContext.java:343)
         at oracle.communications.ordermanagement.rule.XQueryHelper.compileQuery(Unknown Source)
         at oracle.communications.ordermanagement.rule.h.a(Unknown Source)
         at oracle.communications.ordermanagement.rule.v.a(Unknown Source)
         at oracle.communications.ordermanagement.rule.m.a(Unknown Source)
         at oracle.communications.ordermanagement.rule.XQueryHelper.transform(Unknown Source)
         at oracle.communications.ordermanagement.rule.XQueryHelper.transform(Unknown Source)
         at oracle.communications.ordermanagement.rule.XQueryHelper.transform(Unknown Source)
         at oracle.communications.ordermanagement.automation.plugin.d.transform(Unknown Source)
         at oracle.communications.ordermanagement.automation.plugin.AbstractScriptPluginImplementation.transform(Unknown Source)
         at oracle.communications.ordermanagement.automation.plugin.AbstractScriptPluginImplementation.runCommonFunctionality(Unknown Source)
         at oracle.communications.ordermanagement.automation.plugin.ScriptRunnerImpl.runScript(Unknown Source)
         at oracle.communications.ordermanagement.automation.plugin.AbstractScriptAutomator.run(Unknown Source)
         at com.mslv.oms.automation.plugin.AbstractAutomator._runAutomator(Unknown Source)
         at com.mslv.oms.automation.AutomationDispatcher.a(Unknown Source)
         at com.mslv.oms.automation.plugin.AutomationEventHandlerImpl.processMessage(Unknown Source)
         at com.mslv.oms.automation.AutomationDispatcher.onLocalMessage(Unknown Source)
         at oracle.communications.ordermanagement.cluster.message.e.a(Unknown Source)
         at oracle.communications.ordermanagement.cluster.message.impl.c.a(Unknown Source)
         at oracle.communications.ordermanagement.cluster.message.impl.c.a(Unknown Source)
         at oracle.communications.ordermanagement.cluster.impl.a.a(Unknown Source)
         at oracle.communications.ordermanagement.cluster.message.ClusterMessageHandlerBean.onMessage(Unknown Source)
         at weblogic.ejb.container.internal.MDListener.execute(MDListener.java:466)
         at weblogic.ejb.container.internal.MDListener.transactionalOnMessage(MDListener.java:371)
         at weblogic.ejb.container.internal.MDListener.onMessage(MDListener.java:327)
         at weblogic.jms.client.JMSSession.onMessage(JMSSession.java:4585)
         at weblogic.jms.client.JMSSession.execute(JMSSession.java:4271)
         at weblogic.jms.client.JMSSession.executeMessage(JMSSession.java:3747)
         at weblogic.jms.client.JMSSession.access$000(JMSSession.java:114)
         at weblogic.jms.client.JMSSession$UseForRunnable.run(JMSSession.java:5096)
         at weblogic.work.ExecuteRequestAdapter.execute(ExecuteRequestAdapter.java:21)
         at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:145)
         at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:117)
    >
    ####<Nov 11, 2012 2:31:58 PM IST> <Error> <oms> <INPUHJLP03690> <AdminServer> <ExecuteThread: '14' for queue: 'oms.automation'> <oms-automation> <BEA1-1B1DEC65870F3057A4BD> <> <1352624518258> <BEA-000000> <rule.XQueryHelper: XQuery static error in #...pdateOrder($automator, "false"#:
    Variable $automator has not been declared. . File[null (actual location resolved to [])] Line[186] Column[52]
    net.sf.saxon.trans.XPathException: XQuery static error in #...pdateOrder($automator, "false"#:
    Variable $automator has not been declared
         at net.sf.saxon.query.QueryParser.grumble(QueryParser.java:345)
         at net.sf.saxon.expr.ExpressionParser.parseBasicStep(ExpressionParser.java:1270)
         at net.sf.saxon.expr.ExpressionParser.parseStepExpression(ExpressionParser.java:1213)
         at net.sf.saxon.expr.ExpressionParser.parseRelativePath(ExpressionParser.java:1151)
         at net.sf.saxon.expr.ExpressionParser.parsePathExpression(ExpressionParser.java:1137)
         at net.sf.saxon.expr.ExpressionParser.parseUnaryExpression(ExpressionParser.java:1026)
         at net.sf.saxon.expr.ExpressionParser.parseCastExpression(ExpressionParser.java:691)
         at net.sf.saxon.expr.ExpressionParser.parseCastableExpression(ExpressionParser.java:646)
         at net.sf.saxon.expr.ExpressionParser.parseTreatExpression(ExpressionParser.java:627)
         at net.sf.saxon.expr.ExpressionParser.parseInstanceOfExpression(ExpressionParser.java:609)
         at net.sf.saxon.expr.ExpressionParser.parseIntersectExpression(ExpressionParser.java:1059)
         at net.sf.saxon.expr.ExpressionParser.parseUnionExpression(ExpressionParser.java:1041)
         at net.sf.saxon.expr.ExpressionParser.parseMultiplicativeExpression(ExpressionParser.java:978)
    Please help me out

    Hi All,
    I have got solution. In that error is of file location but actually its referring to the function which is declared in XQuery.
    Secondly, this will refer to all XQuery which is imported there at the time of task.
    For ex. SIEntryPoint.xquery, in that it will go and check for all the functions which is imported in that XQuery (refer to all XQuery)

  • Error in calling RFC

    Dear All,
    In one of my scenarios I have called RFC to my R/3 server. But now ita throwing an error mail that user id/password locked. I am checking the messages in SXMP_MONI and it is showing the following description.
    <b>com.sap.aii.af.ra.ms.api.DeliveryException: RfcAdapter: receiver channel has static errors: can not instantiate RfcPool caused by: com.sap.aii.af.rfc.RfcAdapterException: error initializing RfcClientPool:com.sap.aii.af.rfc.core.repository.RfcRepositoryException: can not connect to destination system due to: com.sap.mw.jco.JCO$Exception: (102) RFC_ERROR_COMMUNICATION: Connect to SAP gateway failed Connect_PM TYPE=A ASHOST=10.6.4.55 SYSNR=00 GWHOST=10.6.4.55 GWSERV=sapgw00 PCS=1 LOCATION CPIC (TCP/IP) on local host with Unicode ERROR partner not reached (host 10.6.4.55, service sapgw00) TIME Sat Mar 17 07:46:10 2007 RELEASE 640 COMPONENT NI (network interface) VERSION 37 RC -10 MODULE nixxi_r.cpp LINE 8684 DETAIL NiPConnect2 SYSTEM CALL SiPeekPendConn ERRNO 10061 ERRNO TEXT WSAECONNREFUSED: Connection refused COUNTER 4</b>
    Can u please suggest what is the error and how can it be solved.
    Warm Regards,
    N.Jain

    hi,
    ya i have checked the RFC connection in SM%( and it is working and also I have tested the authorisation there for tht user and everything is working fine.
    but still the error message is coming in SXMB_MONI in every minute.
    Warm regards,
    N.Jain

  • RFC Receiver Error

    Hi
    Im doing a File-RFC-File scenario wothout BPM.
    Getting the following error in RFC reveiver Adapter
    <SAP:AdditionalText>com.sap.aii.af.ra.ms.api.DeliveryException: RfcAdapter: receiver channel has static errors: can not instantiate RfcPool caused by: com.sap.aii.af.rfc.RfcAdapterException: error initializing RfcClientPool:com.sap.aii.af.rfc.core.repository.RfcRepositoryException: can not connect to destination system due to: com.sap.mw.jco.JCO$Exception: (102) RFC_ERROR_COMMUNICATION: Connect to SAP gateway failed Connect_PM TYPE=A ASHOST=<host ip address> SYSNR=00 GWHOST=<host ip address>  GWSERV=sapgwXX SAPROUTER_STRING=<SAPRouter String is here> PCS=1 LOCATION SAProuter 37.0 on gareweb ERROR timeout occured TIME Mon May 11 20:52:21 200 RELEASE 640 COMPONENT NI (network interface) VERSION 37 RC -93 COUNTER 425487</SAP:AdditionalText>
    Your help is needed
    thanks
    keerthi

    Keerthika,
    Error : 500 ->Internal Server Errors
    Generally this is due to Server encountered an unexpected condition which prevented it from fulfilling the request.
    Possible Tips: Have a look into SAP Notes u2013 804124, 807000
    Check your SAP details again on the Receiver CC, check for your authorizations ( go to R/3 and try to execute the RFC with the logon details you gave in the CC )
    Check the logon details you gave in the RFC
    Check if the adapter engine is up and running, to isolate this send other scenario which was working..
    Also, check the following.
    File->XI->RFC (Error: Received HTTP response code 500..)
    Re: HTTP response code 500 : Error during parsing of SOAP header
    HTTP response contains status code 500 with the description Internal Server
    Received HTTP response code 500..
    Venkat.

  • Question about Error Statistics

    Hello,
    Just want to ask question, what cause of  Recieve Ignored packets and Throttles in Cisco Aironet 1310G  with System                                       Software Version:12.4(21a)JA, it increments the number very fast.
    Thanks you

    Wireless transmission acts similar to a wired hub.  One talks and everyone listens.  Wireless static errors can easily be attributed to retransmissions caused by the clients either too far away or too close (shadow).  Transmission errors also happens when there are just too many clients that associate to a specific AP.

  • Error when testing from Message mapping test tab

    Hi Experts,
    I am wondering that when i test the message in the MM test tab its giving error and target message is not generating. I am not testing end to end then why it is triggering communication channel?
    I can see that the 'RFC_Alert_Service_RFC_Receive' communication channel is in Red color RWB--> communication channel monitoring. I even even refreshed the cache and also activated the RFC channel but no use.
    Below are the error details:
    Error when testing message from test tab of mapping -->
    java.lang.RuntimeException: Exception during processing the payload.Problem when calling an adapter by using communication channel RFC_Alert_Service_RFC_Receiver (Party: , Service: RFC_Alert_Service, XI AF API call failed. Module exception: 'error while processing the request to rfc-client: com.sap.aii.af.rfc.afcommunication.RfcAFWException: RfcAdapter: receiver channel has static errors: can not instantiate RfcPool caused by: com.sap.aii.af.rfc.RfcAdapterException: error initializing
    Error in Communication channel monitoring -->
    Receiver channel 'RFC_Alert_Service_RFC_Receiver' for party '', service 'RFC_Alert_Service'
    Error can not instantiate RfcPool caused by:
    com.sap.aii.af.rfc.RfcAdapterException: error initializing RfcClientPool:com.sap.aii.af.rfc.core.repository.RfcRepositoryException: can not connect to destination system due to: com.sap.mw.jco.JCO$Exception: (103) RFC_ERROR_LOGON_FAILURE: Password logon no longer possible - too many failed attempts.
    Please help me how can i resolve this issue to successfully test the message in mapping-test tab.
    Regards,
    Suresh.

    > Error in Communication channel monitoring -->
    > Receiver channel 'RFC_Alert_Service_RFC_Receiver' for party '', service 'RFC_Alert_Service'
    > Error can not instantiate RfcPool caused by:
    > com.sap.aii.af.rfc.RfcAdapterException: error initializing RfcClientPool:com.sap.aii.af.rfc.core.repository.RfcRepositoryException: can not connect to destination system due to: com.sap.mw.jco.JCO$Exception: (103) RFC_ERROR_LOGON_FAILURE: Password logon no longer possible - too many failed attempts.
    Unlock the user you are using in the RFC channel and provide the correct password in the channel configuration. Once the channel error is resolved you would be able to test the Mapping sucessfully...
    >>why it is triggering communication channel?
    You would be using RFC lookup in the mapping....
    ~SaNv...
    Edited by: Santhosh Kumar V on Jul 8, 2009 5:48 PM

  • CORBA MINOR CODE ERROR

    Hello All,
    I am getting following error when I am making CORBA connection,
    173938.019:Connection handler pasapap-vip-51664:LOW :<<static>>:
    : (ERROR) Exception occured during connection -
    >> 173938.020:Connection handler pasapap-vip-51664:SANE:com.mslv.activation.cartridge.eci.ls.v1.EciConnectionHandler:
    Exception occured during connection - org.omg.CORBA.INTERNAL:   vmcid: SUN  minor code: 261  completed: Yes
    >> 173938.020:Connection handler pasapap-vip-51664:LOW :com.mslv.activation.cartridge.eci.ls.v1.EciConnectionHandler:
    Closing EMS Session...
    What problem occurs "SUN  minor code: 261"
    Please help.
    Thank you,
    Bhaskar

    Tried with following error,
    String orbArgs[] = new String[] { "-ORBInitRef", nameService };
    java.util.Properties props = System.getProperties();
    props.put("org.omg.CORBA.ORBClass", "com.iona.corba.art.artimpl.ORBImpl");
    props.put("org.omg.CORBA.ORBSingletonClass", "com.iona.corba.art.artimpl.ORBSingleton");
    // create and initialize the ORB
    orb = ORB.init(orbArgs, props);
    But now received,
    org.omg.CORBA.INITIALIZE: can't instantiate default ORB implementation com.iona.corba.art.artimpl.ORBImpl  vmcid: 0x0 minor code: 0  completed: No
            at org.omg.CORBA.ORB.create_impl(ORB.java:297)
              at org.omg.CORBA.ORB.init(ORB.java:336)
    Please help.

Maybe you are looking for

  • Unique Index vs. Unique Constraint

    Hi All, I'm studying for the Oracle SQL Expert Certification. At one point in the book, while talking about indices, the author says that a unique index is not the same a unique constraint. However, he doesn't explain why they're two different things

  • File_To_File: UTF-8 to ASCII format conversion.

    HI Experts, I got one requirement File_To_File scenario source file is in UTF-8 format so we need to convet it into ASCII fromat , in this one mapping not required so please can you please help me out. we are using  Pi 7.0 with SP 21. Regards, Prabha

  • How to set the 'text' property of a 'Header' region dynamically?

    Hi, I have a requirement to display the 'text' property of a 'Header' region, based on a query. So I need to set the text property programatically in CO. Can I use setText("..") by getting the handler to the 'Header' region? If so, How to get the han

  • Upgrade install for newest version of Logic Studio questions...

    I'm definitely interested in upgrading, lots of new features I'm excited about. However, I've got very little room on my hard disk, what do you guys think the footprint would be since it's an upgrade? Would it be smarter for me to remove Logic 8 et.

  • Enabling tracing in remote debugging

    Hello, I am wondering how to enable tracing in remote debugging. Here is what I now how to do: 1) how to attach to JDPA, 2) run till the breakpoint. Next, when I try to step in, or step over the process is always run until the next break point regard