Syntax error on token

Hi, I am new to Java. I am getting a compiler error I am not able to resolve the error. Can somebody Please meout? Below is the error that I am getting.
Syntax error on token "LinkedList", "interface", "class" expected.
Below is the code snippet on which I am getting this error.
public LinkedList getPolicyBaseRecordByPriorId(BigDecimal priorPolicyId) throws TFGSessionException {

To put it another way:
Your method definitions have to appear inside of classes. Unlike many other languages, Java does not allow for free-standing functions like that.

Similar Messages

  • Syntax error on token "Enum", Identifier expected

    Hello,
    We are using the LinkType class(com.sapportals.wcm.repository.enum.LinkType) but at the import statement we get an error message: Syntax error on token "Enum", Identifier expected
    Configuration:
    JDK version: jdk1.5.0_17
    NWDS 7.1 SP7 CE
    import com.sapportals.wcm.repository.enum.LinkType;
    Has anyone experienced the same issue and found a workaround or solution?
    Regards,
    Edwin.

    Thanks, but that is not the problem... Unfortunately.
    The class we needed (linkType) is found in the KM API for NWDS 04, but this KM API is not available anymore in NWDS 7.1...
    So we will have to redesign the application and re-do the developments...
    Regards,
    Edwin.

  • Syntax error before '@' token

    Hey all, uber noob here just starting out. Working with the Stephen Kochan book 'Programming in Objective-C', and having a problem compiling a sample program. I receive the error "syntax error before '@' token" when I try to build and run the following code. I'm sure it's something completely ridiculous, but I can't see it for the life of me and can't find anything on the interwebs.
    (The error is after the last import and before the @interface declaration.)
    Thanks in advance,
    ~Mark
    #import <stdio.h>
    #import <objc/Object.h>
    @interface Fraction: Object
    int numerator;
    int denominator;
    -(void) print;
    -(void) setNumerator: (int) n;
    -(void) setDenominator: (int) d;
    -(int) numerator;
    -(int) denominator;
    @end
    //-- @implementation section --
    @implementation Fraction;
    -(void) print
    printf(" %i/%i ", numerator,denominator);
    -(void) setNumerator: (int) n
    numerator = n;
    -(void) setDenominator: (int) d
    denominator = d;
    -(int) numerator
    return numerator;
    -(int) denominator
    return denominator;
    @end
    //-- program section --
    int main (int argc, const char * argv[])
    Fraction *myFraction = [[Fraction alloc] init];
    [myFraction setNumerator: 1];
    [myFraction setDenominator: 3];
    printf ("The value of myFraction is: %i/%i\n", [myFraction numerator], [myFraction denominator]);
    [myFraction free];
    return 0;
    }

    Ah, you are using the old edition of Kochan and some things have changed. The import statements should just be:
    #import <Foundation/Foundation.h>
    I recommend that you get the 2nd edition of the book. Although the hard copy hasn't been published yet it is available as a pdf from Safari Rough Cuts http://safari.informit.com/9780321605559 ).

  • Syntax error on token "class", invalid Expression

    Hai,
    i am new to java beans and i have written the following code which gives an error
    Code jsp:
    <%@ page contentType="text/html; charset=iso-8859-1" language="java" import="java.sql.*" errorPage="" %>
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
    <html>
    <head>
    <title>beancode</title>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    </head>
    <body>
    <!--<form name="form1" action="beancode" method="POST"> -->
    Name: <input type="text" name ="nname"> <br><br><br>
    Address: <input type="text" name ="naddress"> <br><br><br>
         <input type = "submit" value="Submit">
    <% useBean id="sampl"; class="beancode.class"; scope="page"; %>
    <% setProperty name="sampl"; property="*"; %>
    <%--</jsp:useBean> --%>
    <table border="1">
              <tr><td>S.NO</td><td>NAME</td><td width="95">ADDRESS</td></tr>
    <%
              int count =1;
              while (rs.next())
         String name = rs.getString("Name");
              String address = rs.getString("ADDRESS");
    %>
              <tr>
                   <td>
    <%
                        out.print(count);
    %>               </td>
                   <td>
    <%                     out.println(name);
    %>                </td>
                   <td>
    <%                     out.print(address);
                        count++;
    %>               </td>
              </tr>
    <%          }
    %>
         </table>
    <!--</form> -->
    </body>
    </html>
    JAVA Class code:
    import java.sql.*;
    * @author
    public class beancode
    private String employid;
    private Connection con = null;
    // private ResultSet rs = null;
    private PreparedStatement st = null;
    String name, address;
    /** Creates a new instance of beancode */
    public beancode()
    {ok
    try
              Class.forName("com.mysql.jdbc.Driver");
              String url = "jdbc:mysql://localhost:3306/test";
              Connection con =DriverManager.getConnection(url,"root","shasi");
              Statement s = con.createStatement();
              ResultSet rs = s.executeQuery ("Select * FROM Test");
    catch(Exception e)
              System.out.println(e.getMessage());
    public void setemployid(String nname,String naddress)
              name = nname;
              address = naddress;
         public String getemployid()
              return(name);
         public String getemployadd()
              return(address);
    public void insert()
    try
    String s1="insert into samp values('"+name+"','"+address+"')";
    st = con.prepareStatement(s1);
    st.executeUpdate();
    st.clearParameters();
    st.close();
    catch(Exception m)
         public static void main(String args[])
                   beancode b = new beancode();
                   b.insert();
    The error
    type Exception report
    message
    description The server encountered an internal error () that prevented it from fulfilling this request.
    exception
    org.apache.jasper.JasperException: Unable to compile class for JSP
    An error occurred at line: 18 in the jsp file: /bean.jsp
    Generated servlet error:
    Syntax error on token "class", invalid Expression
         org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:84)
         org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:328)
         org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:397)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:288)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:267)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:255)
         org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:556)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:293)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:291)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    PLEASE HELP ME OUT
    I AM WAITING PLEASE
    Thanks,
    Shasi

    You can try to use the xml form of tag use bean and not <% like this:
    <jsp:useBean id="sampl" class="beancode" scope="page" />
    <jsp:setProperty name="sampl"; property="*" />
    and in the class attribute specify the fully qualified class name without the extension

  • Error: [SQLServer JDBC Driver]Syntax error at token 0, line 0 offset 0

    Hi:
    I´m working with system driver at de JDBC connection in VA. When a record is inserted/updated this error is display:
    NWMss  SQLServer JDBC Driver  Syntax error at token 0, line 0 offset 0
    The record is inserted/updated but when the operation ends the exception is throw.
    I Google the error but I didn´t find how to solve it.
    Any idea?
    Thanks a lot for your time on this post.
    Rocío.

    Hi,
    Rocío Lorena Suárez wrote:
    NWMss  SQLServer JDBC Driver  Syntax error at token 0, line 0 offset 0
    I think that you may be trying to construct an SQL query using some logic. Is that right?
    I hav encountered this problem when trying these types of code - If possible please debug the code and see if there is any particular case in which the SQL string in which the command is saved becomes null.
    When it is null or blank - the SQL Driver will throw such an error.
    Also, if you can elaborate more on the problem - I can give you some more help.
    Thanks.
    p256960

  • MDX query : Syntax error at token 'NONEMPTYMEMBER'

    Syntax error when executing this very simplified MDX query :
    WITH
    MEMBER [ANNEE].[YEAR1] AS
    NONEMPTYMEMBER FY10
    [FY10]
    MEMBER [ANNEE].[YEAR2] AS
    NONEMPTYMEMBER [FY10]
    [FY10]
    SELECT
    {[YEAR1],[YEAR2]} ON COLUMNS
    FROM [MICOPIGE.COM_MBU]
    Syntax error in input MDX query on line 9 at token 'NONEMPTYMEMBER'
    Note that line 9 "NONEMPTYMEMBER FY10" is a copy of line 4
    No error if I delete line 4
    Any help to understand and fix this error would be greatly appreciated.

    Precision : My goal is to reduce the 30mn duration of a complex MDX query with many calculated members, using the NONEMPTYMEMBER token.

  • Small Syntax error on token

    Hey everyone. Im trying to debug my program and it is giving me a syntax error.
    if (Me >0 )
                    System.out.println(Spot[0]);
                else if(Total < 50)
                    System.out.println(Spot[0] );
                else if(Total >= 50 && <= 100) //syntax error at the <= sign
                    System.out.println(Spot[0]  + "Good Job");That is a segment of my code, and it gives me the same error for the same <= sign for a few lines after that as well. Because the "else if " continues on with some other values.
    Any Ideas?

    > else if(Total >= 50 && <= 100) //syntax error at the <= signThat's a shorthand notation which is not available in Java. You just have
    to spell it out like this:else if(Total >= 50 && Total <= 100)kind regards,
    Jos

  • Error on token(jsp error)

    Hi i am writing a code in which i have to call one jsp page from another but as soon as the control gets transferred i get the error msg as:
    Syntax error on token(s), misplaced construct(s)
    16: if(rs.next()==false)
    17: {
    18:
    19: <jsp:forward page="success.jsp"/>
    20:
    21: }
    22: %>
    An error occurred at line: 19 in the jsp file: /second/process.jsp
    Syntax error, insert "AssignmentOperator Expression" to complete Assignment
    16: if(rs.next()==false)
    17: {
    18:
    19: <jsp:forward page="success.jsp"/>
    20:
    21: }
    22: %>
    An error occurred at line: 19 in the jsp file: /second/process.jsp
    Syntax error, insert ";" to complete Statement
    16: if(rs.next()==false)
    17: {
    18:
    19: <jsp:forward page="success.jsp"/>
    20:
    21: }
    22: %>
    An error occurred at line: 19 in the jsp file: /second/process.jsp
    forward cannot be resolved
    16: if(rs.next()==false)
    17: {
    18:
    19: <jsp:forward page="success.jsp"/>
    20:
    21: }
    22: %>
    An error occurred at line: 19 in the jsp file: /second/process.jsp
    The operator / is undefined for the argument type(s) String, void
    16: if(rs.next()==false)
    17: {
    18:
    19: <jsp:forward page="success.jsp"/>
    20:
    21: }
    22: %>
    An error occurred at line: 19 in the jsp file: /second/process.jsp
    Syntax error on tokens, delete these tokens
    16: if(rs.next()==false)
    17: {
    18:
    19: <jsp:forward page="success.jsp"/>
    20:
    21: }
    22: %>
    An error occurred at line: 22 in the jsp file: /second/process.jsp
    Syntax error, insert "}" to complete Statement
    19: <jsp:forward page="success.jsp"/>
    20:
    21: }
    22: %>
    23:
    24: <%
    25: else
    An error occurred at line: 31 in the jsp file: /second/process.jsp
    Syntax error, insert "Finally" to complete TryStatement
    28: <jsp:forward page="fail.jsp"/>
    29: <%
    30: }
    31: }
    32: %>
    33: <%catch(Exception e)
    34: {
    An error occurred at line: 32 in the jsp file: /second/process.jsp
    Syntax error, insert "}" to complete Block
    29: <%
    30: }
    31: }
    32: %>
    33: <%catch(Exception e)
    34: {
    35:
    I am using MS-ACCESS AS DATABASE.
    the jsp code is:
    {color:#ff0000}<%@ page contentType="text/html; charset=UTF-8"%>
    <%@ page import="java.io.{color}{color:#ff0000}*"%>*
    *<%@ page import = "java.sql.*"%>
    <%
    String account=request.getParameter("ac");
    String password=request.getParameter("pass");
    String url="Jdbc:Odbc:Namrata";
    try
    Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
    Connection con=DriverManager.getConnection(url);
    Statement stmt=con.createStatement();
    ResultSet rs=stmt.executeQuery("select from database1 where Account="+account+"and Password="+password);
    if(rs.next()==false)
    <jsp:forward page="success.jsp"/>
    %>
    <%
    else
    %>
    <jsp:forward page="fail.jsp"/>
    <%
    %>
    <%catch(Exception e)
    out.println("the exception is:"+e);
    %>{color}

    Namrata.Kakkar wrote:
    but i have google searched and came to know that in jsp whatever java code we have to write we will write in tagsThat was not very good advice. Like I said, get Sun's Java EE tutorial (it's free) and learn how to do it the correct way.

  • Cant resolve syntax error.

    In the current program I am trying to read multiple text files from a folder. I keep getting the following syntax error
    "Syntax error on token ";", { expected after this token". I highlighted the line where im getting this error in red.
    import java.io.*;
    import java.util.*;
    public class CacheData {
      // Directory path here
        String path = "C:\\myfiles\\*.txt";
        String files;
        File folder = new File(path);
        File[] listOfFiles = folder.listFiles();
        for (int i = 0; i < listOfFiles.length; i++)
            if (listOfFiles[i].isFile())
                files = listOfFiles[i].getName();
                if (files.endsWith(".txt") || files.endsWith(".TXT"))
                    System.out.println(files);
                    TreeMap<String, Integer> frequencyMap = new TreeMap<String, Integer>();
                    String currentLine="";
                    File textFile = new File(files);
                    try {
                        BufferedReader br = new BufferedReader(new FileReader(textFile));
                        while ((currentLine = br.readLine()) != null) {
                            currentLine = currentLine.toLowerCase();
                            StringTokenizer parser = new StringTokenizer(currentLine, " \t\n\r\f.,;:!?'");
                            while (parser.hasMoreTokens()) {
                                String currentWord = parser.nextToken();
                                Integer frequency = frequencyMap.get(currentWord);
                                if (frequency == null) {
                                    frequency = 0;
                                frequencyMap.put(currentWord, frequency + 1);
                        br.close();
                    } catch (FileNotFoundException e) {
                    } catch (IOException e) {
                        // TODO Auto-generated catch block

    In the current program I am trying to read multiple text files from a folder. I keep getting the following syntax error
    "Syntax error on token ";", { expected after this token". I highlighted the line where im getting this error in red.
    Code MUST BE in a method or static block.
    Your code HAS NO METHODS.
    I suggest you start by working with the many examples in the 'Reading, Writing, and Creating Files' trail of The Java Tutorials.
    https://docs.oracle.com/javase/tutorial/essential/io/file.html
    Then clone one of those examples and modify it for your own requirements.

  • Entry-SQL syntax error: CASE not allowed

    Hello All. When I use sap netweaver developer to develop webdynpro applications, I always meet that jdbc error.
    when using inner join,left join, or using case when in the sql, it will pop up Entry-SQL syntax error.
    But I have run the sql in Microsoft SQL Server studio successfully.
    The SQL statement "UPDATE SAPNWDDB.Z_SERIAL SET LASTSERIAL = CASE WHEN ENDWITH IS NOT NULL THEN CASE WHEN LASTSERIAL + 1 > ENDWITH THEN ISNULL(STARTWITH, 0) ELSE LASTSERIAL + 1 END ELSE LASTSERIAL + 1 END WHERE SERIALNO = ?" contains the syntax error[s]: - 1:43 - Entry-SQL syntax error: CASE not allowed
    - 1:78 - Entry-SQL syntax error: CASE not allowed
    - 1:124 - SQL syntax error: the token "(" was not expected here
    Can someone help me? Thank you.

    Hi Arun Jaiswal ,
    Thank you for your answer. But I have tried query in sql editor. Actually it can work. Other than "CASE" syntax, it seems not support inner join and left join in webdynpro either. I even can not query the db views.
    That's imposible jdbc not support these simple syntex. I wonder there is any config control the sql compatibility level.
    I have developped a java programm to test it. It is ok. No error. But the same case pop up error in java webdynpro application.I don't know why.
    I am entry level webdynpro developper.
    Hopefully you can help me.
    Thank you.
    Edited by: zegunlee330 on Sep 3, 2010 4:18 AM

  • Syntax error in my code and I can't figure out the problem

    When I try to compile a program, I get this message:
    Syntax error on token "(", "Identifier" expected
    This is the part of the code that is giving me trouble:
    JTextPane textPane = createTextPane();
              JScrollPane paneScrollPane = new JScrollPane(textPane);
              paneScrollPane.setVerticalScrollBarPolicy(
                                  JScrollPane.VERTICAL_SCROLLBAR_ALWAYS);
              paneScrollPane.setPreferredSize(new Dimension(250, 155));
              paneScrollPane.setMinimumSize(new Dimension(10, 10));Can you see what's wrong?
    Thanks

    The code's syntax is perfectly fine. The compiler is not falgging an error message in this part of your code. One silly thing you can do:
    Try out this silly change...I don't think it will make any difference but still.
    paneScrollPane.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_ALWAYS);That is, put it all in a single line.
    If it is already in a single line then you can be sure that the problem is being flagged from elsewhere in your code and this portion.
    Vijay :-)

  • Forms 10g compile : syntax error near unexpected token `in

    Hi,
    I am writing a code to compile FORMS 10g(10.1.2.0.2) in HP_UX one by one.
    this is the code---frm10g.sh
    *#!/bin/ksh*
    *# . ~oracle/forms/server/default.env*
    *# . sid icache*
    TERM=vt220
    *if [ $# != 2 ]*
    then
    echo Usage : $0 module_name module_type
    exit 1
    fi
    case $2 in
    FORM|form|F|f) ext1='fmb' ;ext='fmx' ; modtyp='FORM' ;;
    PLL|pll|p|lib|LIB) ext1='pll' ;ext='plx' ; modtyp='LIBRARY' ;;
    MENU|menu|M|m) ext1='mmb' ;ext='mmx' ; modtyp='MENU' ;;
    **) echo invalid parameter ; exit 1 ;*
    esac
    echo Generating $1.$ext
    frmcmp module=$1.$ext1 userid=abc/abc@abc output_file=../$1.$ext module_type=$modtyp batch=NO compile_all=special > ./log/$1.log
    when I try to excute above file frm10g.sh in command line i get following error. Please let me know how to fix it.
    [abc]u01/app/oracle/product/10.1.2/forms/forms/Forms10g:. frm10g.sh INV FORM
    : command not found
    : command not found
    'bash: ./frm10g.sh: line 13: syntax error near unexpected token `in
    'bash: ./frm10g.sh: line 13: `case $2 in
    I really aapreciate your help.
    Thanks
    Sandy

    Sandy,
    I must apologize. The Compile.sh does not come with the Oracle Dev Suite installation. However, the following is the contents of the compile.sh script we use. This script compiles a single form.
    #!/usr/bin/ksh
    ORACLE_HOME=/d01/oracle/ias1012;export ORACLE_HOME
    LD_LIBRARY_PATH=$ORACLE_HOME/lib:$ORACLE_HOME/lib32:$ORACLE_HOME/ctx/lib:/usr/java1.2/jre/lib/sparc:$ORACLE_HOME/jdk/jre/lib/sparc:/usr/lib:/usr/dt/lib:/usr/openwin/lib:/usr/ucblib:usr/ccs/lib; export LD_LIBRARY_PATH
    MODULE_NAME=`echo $1|cut -d. -f1`
    MODULE_SUFFIX=`echo $1|cut -d. -f2`
    MODULE_MESG=${2:-"Compiling $1"}
    OK_MESG=${3:-"  Compiled sucessfully"}
    . .setpass_cir
    APP_PW='cir/'`eimauth -g cir`'@database'
    echo "************************************************************************* "
    echo ${MODULE_MESG}
    frmcmp.sh module=/d01/oracle/forms/${MODULE_NAME}.fmb userid=${APP_PW} compile_all=yes batch=yes
    RC=$?
    case "$RC" in
      0)
        echo ${OK_MESG}
        echo "Compile errors, return code: $RC "
        cat ${MODULE_NAME}.err
        echo "Compile errors in $1, press [enter] to continue.\c"
        read x
    esac
    eval exit $RCYou should be able to modify this to suit your needs.
    Craig...

  • The following syntax error occurred during parsing: Invalid token, Line 1,

    Hello Experts,
    I hope someone could help me. I am trying to create a MDX formula in Account dimension (Cuenta).
    When formula created use "Iif" syntax, system give the following error:
      - [CUENTA].[H1].[#X000] Parser: The following syntax error occurred during parsing: Invalid token, Line 1, Offset 15, [.
    My Account dimension (Cuenta) has 3 parent, and the formula introduces is:
    'Iif([Cuenta].[H1].[BLOQ_FASEC]<0.5 and [Cuenta].[H1].[BLOQ_FASEC]>-0.5,0,[Cuenta].[H1].[BLOQ_FASEC])
    We try another syntax
    'Iif([Cuenta].[BLOQ_FASEC]<0.5 and [Cuenta].[BLOQ_FASEC]>-0.5,0,[Cuenta].[BLOQ_FASEC])
    But same error persist.
    Could you have any idea?
    Thanks

    Can you check into dimension properties what is the size of FORMULA propertiy?
    Make sure is bigger than number of chars from your formula.
    Do you have multiple hierarchies for CUENTA?
    The formula which you mentioned it has to be into column: FORMULAH1.
    Also make sure that your formula doesn't have an end of line at the end. That can cause again problems.
    Regards
    Sorin Radulescu
    Edited by: Sorin Radulescu on Apr 22, 2010 11:03 AM

  • Syntax error near unexpected token `)'

    I get that error sometimes when i try to complile. I was trying to use my Banshee1.5.1 PKGBUILD on my desktop (it works on my laptop) and i got that error again. But i don't think it's banshee cause i remember getting that same error when i wanted to complile Gnote.
    Banshee
    checking for a BSD-compatible install... /bin/install -c
    checking whether build environment is sane... yes
    ./configure: eval: line 2650: unexpected EOF while looking for matching `''
    ./configure: eval: line 2651: syntax error: unexpected end of file
    configure: WARNING: `missing' script is too old or missing
    checking for a thread-safe mkdir -p... /bin/mkdir -p
    checking for gawk... gawk
    checking whether make sets $(MAKE)... yes
    checking how to create a ustar tar archive... gnutar
    checking whether to enable maintainer-specific portions of Makefiles... no
    checking whether NLS is requested... yes
    checking for style of include used by make... GNU
    checking for gcc... gcc
    checking for C compiler default output file name... a.out
    checking whether the C compiler works... yes
    checking whether we are cross compiling... no
    checking for suffix of executables...
    checking for suffix of object files... o
    checking whether we are using the GNU C compiler... yes
    checking whether gcc accepts -g... yes
    checking for gcc option to accept ISO C89... none needed
    checking dependency style of gcc... gcc3
    checking for intltool >= 0.35.0... 0.41.0 found
    checking for intltool-update... /usr/bin/intltool-update
    checking for intltool-merge... /usr/bin/intltool-merge
    checking for intltool-extract... /usr/bin/intltool-extract
    checking for xgettext... /usr/bin/xgettext
    checking for msgmerge... /usr/bin/msgmerge
    checking for msgfmt... /usr/bin/msgfmt
    checking for gmsgfmt... /usr/bin/msgfmt
    checking for perl... /usr/bin/perl
    checking for XML::Parser... ok
    checking build system type... i686-pc-linux-gnu
    checking host system type... i686-pc-linux-gnu
    checking for a sed that does not truncate output... /bin/sed
    checking for grep that handles long lines and -e... /bin/grep
    checking for egrep... /bin/grep -E
    checking for fgrep... /bin/grep -F
    checking for ld used by gcc... /usr/bin/ld
    checking if the linker (/usr/bin/ld) is GNU ld... yes
    checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
    checking the name lister (/usr/bin/nm -B) interface... BSD nm
    checking whether ln -s works... yes
    checking the maximum length of command line arguments... 1572864
    checking whether the shell understands some XSI constructs... yes
    checking whether the shell understands "+="... yes
    checking for /usr/bin/ld option to reload object files... -r
    checking for objdump... objdump
    checking how to recognize dependent libraries... pass_all
    checking for ar... ar
    checking for strip... strip
    checking for ranlib... ranlib
    checking command to parse /usr/bin/nm -B output from gcc object... ok
    checking how to run the C preprocessor... gcc -E
    checking for ANSI C header files... yes
    checking for sys/types.h... yes
    checking for sys/stat.h... yes
    checking for stdlib.h... yes
    checking for string.h... yes
    checking for memory.h... yes
    checking for strings.h... yes
    checking for inttypes.h... yes
    checking for stdint.h... yes
    checking for unistd.h... yes
    checking for dlfcn.h... yes
    checking for objdir... .libs
    checking if gcc supports -fno-rtti -fno-exceptions... no
    checking for gcc option to produce PIC... -fPIC -DPIC
    checking if gcc PIC flag -fPIC -DPIC works... yes
    checking if gcc static flag -static works... yes
    checking if gcc supports -c -o file.o... yes
    checking if gcc supports -c -o file.o... (cached) yes
    checking whether the gcc linker (/usr/bin/ld) supports shared libraries... yes
    checking whether -lc should be explicitly linked in... no
    checking dynamic linker characteristics... GNU/Linux ld.so
    checking how to hardcode library paths into programs... immediate
    checking whether stripping libraries is possible... yes
    checking if libtool supports shared libraries... yes
    checking whether to build shared libraries... yes
    checking whether to build static libraries... yes
    checking for a BSD-compatible install... /bin/install -c
    checking for library containing strerror... none required
    checking for gcc... (cached) gcc
    checking whether we are using the GNU C compiler... (cached) yes
    checking whether gcc accepts -g... (cached) yes
    checking for gcc option to accept ISO C89... (cached) none needed
    checking dependency style of gcc... (cached) gcc3
    checking for ANSI C header files... (cached) yes
    checking for pkg-config... /usr/bin/pkg-config
    checking pkg-config is at least version 0.16... yes
    checking for GLIB - version >= 2.0.0... yes (version 2.22.2)
    checking for GDK_X11... yes
    checking for CLUTTER... yes
    checking for GST... yes
    checking for GST_PBUTILS... yes
    checking for BNPX_GTK... yes
    checking for X... libraries , headers
    checking for XVIDMODE... yes
    checking for MONO_MODULE... yes
    checking for gmcs... /usr/bin/gmcs
    checking for mono... /usr/bin/mono
    checking for Mono 2.0 GAC for System.Data.dll... found
    checking for Mono 2.0 GAC for System.Web.dll... found
    checking for Mono 2.0 GAC for System.Web.Services.dll... found
    checking for Mono 2.0 GAC for Mono.Cairo.dll... found
    checking for Mono 2.0 GAC for Mono.Posix.dll... found
    checking for Mono 2.0 GAC for ICSharpCode.SharpZipLib.dll... found
    checking for NDESK_DBUS_GLIB... yes
    checking for NDESK_DBUS... yes
    checking for MONO_ADDINS... yes
    checking for MONO_ADDINS_SETUP... yes
    checking for MONO_ADDINS_GUI... yes
    checking for NOTIFY_SHARP... yes
    checking for BOO... yes
    checking for monodocer... /usr/bin/monodocer
    checking for mdassembler... /usr/bin/mdassembler
    checking for NUNIT... no
    checking for NUNIT... yes
    checking for TAGLIB_SHARP... yes
    checking for GTKSHARP... yes
    checking for GLIBSHARP... yes
    checking for SQLITE... yes
    checking for GCONFSHARP... yes
    checking for GNOMESHARP... yes
    checking for gconftool-2... /usr/bin/gconftool-2
    Using config source xml:merged:/etc/gconf/gconf.xml.defaults for schema installation
    Using $(sysconfdir)/gconf/schemas as install directory for schema files
    checking for LIBMTP... yes
    checking for struct LIBMTP_track_struct.modificationdate... no
    checking for IPODSHARP... yes
    checking for KARMASHARP... no
    checking for MONO_ZEROCONF... yes
    checking locale.h usability... yes
    checking locale.h presence... yes
    checking for locale.h... yes
    checking for LC_MESSAGES... yes
    checking libintl.h usability... yes
    checking libintl.h presence... yes
    checking for libintl.h... yes
    checking for ngettext in libc... yes
    checking for dgettext in libc... yes
    checking for bind_textdomain_codeset... yes
    checking for msgfmt... (cached) /usr/bin/msgfmt
    checking for dcgettext... yes
    checking if msgfmt accepts -c... yes
    checking for gmsgfmt... (cached) /usr/bin/msgfmt
    checking for xgettext... (cached) /usr/bin/xgettext
    checking for catalogs to be installed... ar be@latin bg br ca cs da de dz en_CA en_GB es eu fi fr gl gu he hu it ja ko ky lt lv mk nb nl oc pa pl pt pt_BR ru sl sr sr@latin sv th uk vi zh_CN zh_HK zh_TW
    checking for sed... /bin/sed
    configure: creating ./config.status
    ./config.status: line 400: syntax error near unexpected token `)'
    ./config.status: line 400: ` *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;'
    Gnote
    checking for a BSD-compatible install... /bin/install -c
    checking whether build environment is sane... yes
    ./configure: eval: line 2411: unexpected EOF while looking for matching `''
    ./configure: eval: line 2412: syntax error: unexpected end of file
    configure: WARNING: `missing' script is too old or missing
    checking for a thread-safe mkdir -p... /bin/mkdir -p
    checking for gawk... gawk
    checking whether make sets $(MAKE)... yes
    checking whether to enable maintainer-specific portions of Makefiles... no
    checking whether ln -s works... yes
    checking for pkg-config... /usr/bin/pkg-config
    checking pkg-config is at least version 0.9.0... yes
    checking for g++... g++
    checking for C++ compiler default output file name... a.out
    checking whether the C++ compiler works... yes
    checking whether we are cross compiling... no
    checking for suffix of executables...
    checking for suffix of object files... o
    checking whether we are using the GNU C++ compiler... yes
    checking whether g++ accepts -g... yes
    checking for style of include used by make... GNU
    checking dependency style of g++... gcc3
    checking for gcc... gcc
    checking whether we are using the GNU C compiler... yes
    checking whether gcc accepts -g... yes
    checking for gcc option to accept ISO C89... none needed
    checking dependency style of gcc... gcc3
    checking how to run the C preprocessor... gcc -E
    checking for grep that handles long lines and -e... /bin/grep
    checking for egrep... /bin/grep -E
    checking for ANSI C header files... yes
    checking for sys/types.h... yes
    checking for sys/stat.h... yes
    checking for stdlib.h... yes
    checking for string.h... yes
    checking for memory.h... yes
    checking for strings.h... yes
    checking for inttypes.h... yes
    checking for stdint.h... yes
    checking for unistd.h... yes
    checking minix/config.h usability... no
    checking minix/config.h presence... no
    checking for minix/config.h... no
    checking whether it is safe to define __EXTENSIONS__... yes
    checking build system type... i686-pc-linux-gnu
    checking host system type... i686-pc-linux-gnu
    checking for a sed that does not truncate output... /bin/sed
    checking for fgrep... /bin/grep -F
    checking for ld used by gcc... /usr/bin/ld
    checking if the linker (/usr/bin/ld) is GNU ld... yes
    checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
    checking the name lister (/usr/bin/nm -B) interface... BSD nm
    checking the maximum length of command line arguments... 1572864
    checking whether the shell understands some XSI constructs... yes
    checking whether the shell understands "+="... yes
    checking for /usr/bin/ld option to reload object files... -r
    checking for objdump... objdump
    checking how to recognize dependent libraries... pass_all
    checking for ar... ar
    checking for strip... strip
    checking for ranlib... ranlib
    checking command to parse /usr/bin/nm -B output from gcc object... ok
    checking for dlfcn.h... yes
    checking whether we are using the GNU C++ compiler... (cached) yes
    checking whether g++ accepts -g... (cached) yes
    checking dependency style of g++... (cached) gcc3
    checking how to run the C++ preprocessor... g++ -E
    checking for objdir... .libs
    checking if gcc supports -fno-rtti -fno-exceptions... no
    checking for gcc option to produce PIC... -fPIC -DPIC
    checking if gcc PIC flag -fPIC -DPIC works... yes
    checking if gcc static flag -static works... yes
    checking if gcc supports -c -o file.o... yes
    checking if gcc supports -c -o file.o... (cached) yes
    checking whether the gcc linker (/usr/bin/ld) supports shared libraries... yes
    checking whether -lc should be explicitly linked in... no
    checking dynamic linker characteristics... GNU/Linux ld.so
    checking how to hardcode library paths into programs... immediate
    checking whether stripping libraries is possible... yes
    checking if libtool supports shared libraries... yes
    checking whether to build shared libraries... yes
    checking whether to build static libraries... yes
    checking for ld used by g++... /usr/bin/ld
    checking if the linker (/usr/bin/ld) is GNU ld... yes
    checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes
    checking for g++ option to produce PIC... -fPIC -DPIC
    checking if g++ PIC flag -fPIC -DPIC works... yes
    checking if g++ static flag -static works... yes
    checking if g++ supports -c -o file.o... yes
    checking if g++ supports -c -o file.o... (cached) yes
    checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes
    checking dynamic linker characteristics... GNU/Linux ld.so
    checking how to hardcode library paths into programs... immediate
    checking for LIBGLIBMM... yes
    checking for GTK... yes
    checking for LIBGTKMM... yes
    checking for LIBXML... yes
    checking for LIBXSLT... yes
    checking for GCONF... yes
    checking for PCRE... yes
    checking uuid/uuid.h usability... yes
    checking uuid/uuid.h presence... yes
    checking for uuid/uuid.h... yes
    checking for uuid_unparse_lower in -luuid... yes
    checking for LIBPANELAPPLETMM... yes
    checking for GTKSPELL... yes
    checking for Boost headers version >= 103400... yes
    checking for Boost's header version... 1_39
    checking boost/bind.hpp usability... yes
    checking boost/bind.hpp presence... yes
    checking for boost/bind.hpp... yes
    checking boost/cast.hpp usability... yes
    checking boost/cast.hpp presence... yes
    checking for boost/cast.hpp... yes
    checking boost/lexical_cast.hpp usability... yes
    checking boost/lexical_cast.hpp presence... yes
    checking for boost/lexical_cast.hpp... yes
    checking for the toolset name used by Boost for g++... gcc44 -gcc
    checking boost/system/error_code.hpp usability... yes
    checking boost/system/error_code.hpp presence... yes
    checking for boost/system/error_code.hpp... yes
    checking for the Boost system library... yes
    checking boost/filesystem/path.hpp usability... yes
    checking boost/filesystem/path.hpp presence... yes
    checking for boost/filesystem/path.hpp... yes
    checking for the Boost filesystem library... yes
    checking boost/format.hpp usability... yes
    checking boost/format.hpp presence... yes
    checking for boost/format.hpp... yes
    checking boost/test/unit_test.hpp usability... yes
    checking boost/test/unit_test.hpp presence... yes
    checking for boost/test/unit_test.hpp... yes
    checking for the Boost unit_test_framework library... yes
    checking tr1/memory usability... yes
    checking tr1/memory presence... yes
    checking for tr1/memory... yes
    checking whether gcc understands -Wall... yes
    checking whether gcc understands -Wextra... yes
    checking whether gcc understands -Wsign-compare... yes
    checking whether gcc understands -Wpointer-arith... yes
    checking whether gcc understands -Wchar-subscripts... yes
    checking whether gcc understands -Wwrite-strings... yes
    checking whether gcc understands -Wunused... yes
    checking whether gcc understands -Wpointer-arith... yes
    checking whether gcc understands -Wshadow... yes
    checking whether gcc understands -fshow-column... yes
    checking whether NLS is requested... yes
    checking for intltool >= 0.35.0... 0.41.0 found
    checking for intltool-update... /usr/bin/intltool-update
    checking for intltool-merge... /usr/bin/intltool-merge
    checking for intltool-extract... /usr/bin/intltool-extract
    checking for xgettext... /usr/bin/xgettext
    checking for msgmerge... /usr/bin/msgmerge
    checking for msgfmt... /usr/bin/msgfmt
    checking for gmsgfmt... /usr/bin/msgfmt
    checking for perl... /usr/bin/perl
    checking for perl >= 5.8.1... 5.10.1
    checking for XML::Parser... ok
    checking locale.h usability... yes
    checking locale.h presence... yes
    checking for locale.h... yes
    checking for LC_MESSAGES... yes
    checking libintl.h usability... yes
    checking libintl.h presence... yes
    checking for libintl.h... yes
    checking for ngettext in libc... yes
    checking for dgettext in libc... yes
    checking for bind_textdomain_codeset... yes
    checking for msgfmt... (cached) /usr/bin/msgfmt
    checking for dcgettext... yes
    checking if msgfmt accepts -c... yes
    checking for gmsgfmt... (cached) /usr/bin/msgfmt
    checking for xgettext... (cached) /usr/bin/xgettext
    checking for gconftool-2... /usr/bin/gconftool-2
    Using config source xml:merged:/etc/gconf/gconf.xml.defaults for schema installation
    Using $(sysconfdir)/gconf/schemas as install directory for schema files
    checking for sed... /bin/sed
    configure: creating ./config.status
    ./config.status: line 400: syntax error near unexpected token `)'
    ./config.status: line 400: ` *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;'
    Both get exactly the same error.

    I have tried downgrading bash and gcc, but no luck. I have also looked into some config files and stuff but i can't find anything. Maybe it's time for a reinstall.

  • Agent         syntax error in fscan+syslog.dat(1) at token '{'

    Hello
    I'm getting the following message thousand of times per day.
    Sep 25 13:43:16 [10.64.47.16.183.179] agent[5350]: syslog   Sep 25 13:43:16 agent         syntax error in fscan+syslog.dat(1) at token '{'
    Sep 25 13:43:16 [10.64.47.16.183.179] agent[5350]: syslog   Sep 25 13:43:16 agent         *** aborting execution ***
    Sep 25 13:43:16 [10.64.47.16.183.179] agent[5350]: [ID 886278 daemon.alert] syslog   Sep 25 13:43:16 agent         syntax error in fscan+syslog.dat(1) at token '{'
    Sep 25 13:43:16 [10.64.47.16.183.179] agent[5350]: [ID 362431 daemon.alert] syslog   Sep 25 13:43:16 agent         *** aborting execution ***
    Sep 25 13:44:21 [10.64.47.16.183.179] agent[7778]: syslog   Sep 25 13:44:21 agent         syntax error in fscan+syslog.dat(1) at token '{'
    Sep 25 13:44:21 [10.64.47.16.183.179] agent[7778]: syslog   Sep 25 13:44:21 agent         *** aborting execution ***
    Sep 25 13:44:21 [10.64.47.16.183.179] agent[7778]: [ID 580518 daemon.alert] syslog   Sep 25 13:44:21 agent         syntax error in fscan+syslog.dat(1) at token '{'
    Sep 25 13:44:21 [10.64.47.16.183.179] agent[7778]: [ID 457334 daemon.alert] syslog   Sep 25 13:44:21 agent         *** aborting execution ***
    Sep 25 13:45:27 [10.64.47.16.183.179] agent[10206]: syslog   Sep 25 13:45:27 agent         syntax error in fscan+syslog.dat(1) at token '{'
    Sep 25 13:45:27 [10.64.47.16.183.179] agent[10206]: [ID 275109 daemon.alert] syslog   Sep 25 13:45:27 agent         syntax error in fscan+syslog.dat(1) at token '{'
    Sep 25 13:45:27 [10.64.47.16.183.179] agent[10206]: syslog   Sep 25 13:45:27 agent         *** aborting execution ***
    Sep 25 13:45:27 [10.64.47.16.183.179] agent[10206]: [ID 903135 daemon.alert] syslog   Sep 25 13:45:27 agent         *** aborting execution ***
    Sep 25 13:46:33 [10.64.47.16.183.179] agent[12637]: syslog   Sep 25 13:46:33 agent         syntax error in fscan+syslog.dat(1) at token '{'
    Sep 25 13:46:33 [10.64.47.16.183.179] agent[12637]: [ID 869362 daemon.alert] syslog   Sep 25 13:46:33 agent         syntax error in fscan+syslog.dat(1) at token '{'
    Sep 25 13:46:33 [10.64.47.16.183.179] agent[12637]: syslog   Sep 25 13:46:33 agent         *** aborting execution ***
    Sep 25 13:46:33 [10.64.47.16.183.179] agent[12637]: [ID 622345 daemon.alert] syslog   Sep 25 13:46:33 agent         *** aborting execution ***
    Sep 25 13:47:38 [10.64.47.16.183.179] agent[15065]: syslog   Sep 25 13:47:38 agent         syntax error in fscan+syslog.dat(1) at token '{'
    Sep 25 13:47:38 [10.64.47.16.183.179] agent[15065]: [ID 563921 daemon.alert] syslog   Sep 25 13:47:38 agent         syntax error in fscan+syslog.dat(1) at token '{'
    Sep 25 13:47:38 [10.64.47.16.183.179] agent[15065]: syslog   Sep 25 13:47:38 agent         *** aborting execution ***
    Sep 25 13:47:38 [10.64.47.16.183.179] agent[15065]: [ID 543858 daemon.alert] syslog   Sep 25 13:47:38 agent         *** aborting execution ***Any ideas?
    --Andreas                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

    Hello Bobby
    One problem was fixed but now I have a new one :(
    Sep 26 08:18:58 wgtsinf01 agent[1727]: [ID 657200 daemon.alert] syslog   Sep 26 08:18:58 agent         invalid URL mode:
    Sep 26 08:18:58 wgtsinf01 agent[1727]: [ID 968156 daemon.alert] syslog   Sep 26 08:18:58 agent         *** aborting execution ***
    Sep 26 08:18:58 wgtsinf01 agent[1727]: [ID 657200 daemon.alert] syslog   Sep 26 08:18:58 agent         invalid URL mode:
    Sep 26 08:18:58 wgtsinf01 agent[1727]: [ID 968156 daemon.alert] syslog   Sep 26 08:18:58 agent         *** aborting execution ***
    Sep 26 08:19:05 wgtsinf01 agent[3663]: [ID 285625 daemon.alert] syslog   Sep 26 08:19:05 agent         invalid URL mode:
    Sep 26 08:19:05 wgtsinf01 agent[3663]: [ID 285625 daemon.alert] syslog   Sep 26 08:19:05 agent         invalid URL mode:
    Sep 26 08:19:05 wgtsinf01 agent[3663]: [ID 213369 daemon.alert] syslog   Sep 26 08:19:05 agent         *** aborting execution ***
    Sep 26 08:19:05 wgtsinf01 agent[3663]: [ID 213369 daemon.alert] syslog   Sep 26 08:19:05 agent         *** aborting execution ***
    Sep 26 08:19:14 wgtsinf01 agent[7068]: [ID 759446 daemon.alert] syslog   Sep 26 08:19:14 agent         invalid URL mode:
    Sep 26 08:19:14 wgtsinf01 agent[7068]: [ID 759446 daemon.alert] syslog   Sep 26 08:19:14 agent         invalid URL mode:
    Sep 26 08:19:14 wgtsinf01 agent[7068]: [ID 605446 daemon.alert] syslog   Sep 26 08:19:14 agent         *** aborting execution ***
    Sep 26 08:19:14 wgtsinf01 agent[7068]: [ID 605446 daemon.alert] syslog   Sep 26 08:19:14 agent         *** aborting execution ***
    Sep 26 08:19:22 wgtsinf01 agent[8792]: [ID 212727 daemon.alert] syslog   Sep 26 08:19:22 agent         invalid URL mode:
    Sep 26 08:19:22 wgtsinf01 agent[8792]: [ID 473235 daemon.alert] syslog   Sep 26 08:19:22 agent         *** aborting execution ***
    Sep 26 08:19:22 wgtsinf01 agent[8792]: [ID 212727 daemon.alert] syslog   Sep 26 08:19:22 agent         invalid URL mode:
    Sep 26 08:19:22 wgtsinf01 agent[8792]: [ID 473235 daemon.alert] syslog   Sep 26 08:19:22 agent         *** aborting execution ***Any more ideas?
    Cheers,
    --Andreas                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

Maybe you are looking for

  • License error in SAP B1 .8 PL5

    Hi All, one my client facing following  problem. Details: Server Details 1.     Intel Server Board & Platforms S3200SH / S3210SH 2.     8 GB RAM. 3.     500 GB HDD: 2 Nos. 4.     OS: Windows Server 2003 Enterprise Edition SP-II. 5.     Data Base: Mic

  • How do I identify Presenter Questions in a LMS report?

    Hi, We've put together 25 questions in Presenter and set it up to report from our LMS (e2train). We need to know what users answer for each of the questions and can pull off a report that shows the results ok. The problem is that we have no identifie

  • ABAP  Code for SAP exit varaibles?

    Hi, i) Where can I find the abap code for SAP exit variables OP_KEYDT used for the net due date OP_KEYD2 used for the posting date OP_KEYD3 used for the clearing date, which are used in FI AR aging report(0FIAR_C03). Based on the Net Due Date, which

  • Downloading updates to my iweb website

    i have been trying for TWO months to download additional blog entries and photos to my website. It will be downloading for 5, or 10 minutes and then I get a message that it quit, to check with my server. Can anyone help? This is so frustrating as I h

  • Cs5 photoshop halftone screen button ? gone ?

    cs5 photoshop halftone screen button ? gone ?