Unexpected Token Error

Hi,
--> I am using JBoss 3.0.2
--> have succesfully deployed my beans
--> client to server communication is happening
But when a method in my session bean is calling a finder method on an entity bean i get the following error
14:23:02,781 ERROR [STDERR] Caused by: javax.ejb.EJBException: Load failed; Caus
edByException is:
Unexpected token: FROM in statement [SELECT name,count FROM ENTITY WHERE
(name='david') OR (name='mandy') OR (name='bush') OR (name='clinton') OR (name=
'arun')]
14:23:02,781 ERROR [STDERR] at org.jboss.ejb.plugins.cmp.jdbc.JDBCLoadEntity
Command.execute(JDBCLoadEntityCommand.java:176)
14:23:02,781 ERROR [STDERR] at org.jboss.ejb.plugins.cmp.jdbc.JDBCLoadEntity
Command.execute(JDBCLoadEntityCommand.java:62)
14:23:02,781 ERROR [STDERR] at org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManag
er.loadEntity(JDBCStoreManager.java:572)
what might be the reason ?
Thanks in advance
Meka Toka

The problem is that count is a reserved word. It's expecting, count(some_column_name) or count(*).
Paul

Similar Messages

  • Unexpected Token: Error occuring inside a stored procedure

    I get an unexpected token error when trying to compile below stored procedure. The error occurs on the exec pk_proof.pr_ProofAssets execution statement inside the stored procedure. Any reason why?
    CREATE OR REPLACE PROCEDURE MONTHLY_ASSET (ln_business_dt_num IN NUMBER DEFAULT NULL,
                                               missing_tbl_name OUT NOCOPY VARCHAR2)
    IS
       ln_business_dt_num NUMBER;
       missing_tbl_name VARCHAR2;
       no_tbl_name_found EXCEPTION;
       bad_date_value EXCEPTION;
       counts_not_matched EXCEPTION;
    BEGIN
       IF ln_business_dt_num < 0 THEN
       RAISE bad_date_value;
       ELSE
         Select MAX(business_dt_num) into ln_business_dt_num
         FROM sasor.dp_ca_proof;
       if missing_tbl_name IS NOT NULL then
          raise no_tbl_name_found;
       end if;
       exec pk_proof.pr_ProofAssets('SLH_DST_ASSET', ln_business_dt_num, 'sasor_batch');

    EXEC (short for EXECUTE) is an SQL*Plus command. Just remove it.

  • TO_DATE function with JPA, Getting Unexpected Token error

    I am constructing a search query like this from my JAVA code
    SELECT * FROM EMAIL_PROXY_ERROR_LOG WHERE (to_date((REPLACE (DATETIME,'T',':')),'yyyy-mm-dd:hh24:mi:ss') BETWEEN to_date('2008-04-29:11:30:08','yyyy-mm-dd:hh24:mi:ss') AND to_date('2008-04-30:11:30:02','yyyy-mm-dd:hh24:mi:ss'))
    I am using Toplink Essentials and I get the following error while running, what would be a possible solution
    Exception Description: Syntax error parsing the query [select c FROM EmailProxyErrorLog c WHERE to_date((REPLACE (c.dateTime,'T',':')),'yyyy-mm-dd:hh24:mi:ss') BETWEEN to_date('2008-04-26:11:30:08','yyyy-mm-dd:hh24:mi:ss') AND to_date('2008-04-30:11:30:02','yyyy-mm-dd:hh24:mi:ss')], line 1, column 42: unexpected token [to_date].
    Internal Exception: line 1:42: unexpected token: to_date
    at oracle.toplink.essentials.exceptions.EJBQLException.unexpectedToken(EJBQLException.java:389)
    at oracle.toplink.essentials.internal.parsing.ejbql.EJBQLParser.handleANTLRException(EJBQLParser.java:350)
    at oracle.toplink.essentials.internal.parsing.ejbql.EJBQLParser.addError(EJBQLParser.java:278)
    at oracle.toplink.essentials.internal.parsing.ejbql.EJBQLParser.reportError(EJBQLParser.java:378)
    at oracle.toplink.essentials.internal.parsing.ejbql.antlr273.EJBQLParser.arithmeticPrimary(EJBQLParser.java:3617)
    at oracle.toplink.essentials.internal.parsing.ejbql.antlr273.EJBQLParser.arithmeticFactor(EJBQLParser.java:3513)
    at oracle.toplink.essentials.internal.parsing.ejbql.antlr273.EJBQLParser.arithmeticTerm(EJBQLParser.java:3407)
    at oracle.toplink.essentials.internal.parsing.ejbql.antlr273.EJBQLParser.simpleArithmeticExpression(EJBQLParser.java:1021)
    at oracle.toplink.essentials.internal.parsing.ejbql.antlr273.EJBQLParser.arithmeticExpression(EJBQLParser.java:2304)
    at oracle.toplink.essentials.internal.parsing.ejbql.antlr273.EJBQLParser.simpleConditionalExpression(EJBQLParser.java:2282)
    at oracle.toplink.essentials.internal.parsing.ejbql.antlr273.EJBQLParser.conditionalPrimary(EJBQLParser.java:2218)
    at oracle.toplink.essentials.internal.parsing.ejbql.antlr273.EJBQLParser.conditionalFactor(EJBQLParser.java:2155)
    at oracle.toplink.essentials.internal.parsing.ejbql.antlr273.EJBQLParser.conditionalTerm(EJBQLParser.java:2030)
    at oracle.toplink.essentials.internal.parsing.ejbql.antlr273.EJBQLParser.conditionalExpression(EJBQLParser.java:1989)
    at oracle.toplink.essentials.internal.parsing.ejbql.antlr273.EJBQLParser.whereClause(EJBQLParser.java:507)
    at oracle.toplink.essentials.internal.parsing.ejbql.antlr273.EJBQLParser.selectStatement(EJBQLParser.java:184)
    at oracle.toplink.essentials.internal.parsing.ejbql.antlr273.EJBQLParser.document(EJBQLParser.java:135)
    at oracle.toplink.essentials.internal.parsing.ejbql.EJBQLParser.parse(EJBQLParser.java:166)
    at oracle.toplink.essentials.internal.parsing.ejbql.EJBQLParser.buildParseTree(EJBQLParser.java:127)
    at oracle.toplink.essentials.internal.ejb.cmp3.base.EJBQueryImpl.buildEJBQLDatabaseQuery(EJBQueryImpl.java:215)
    at oracle.toplink.essentials.internal.ejb.cmp3.base.EJBQueryImpl.buildEJBQLDatabaseQuery(EJBQueryImpl.java:189)
    at oracle.toplink.essentials.internal.ejb.cmp3.base.EJBQueryImpl.buildEJBQLDatabaseQuery(EJBQueryImpl.java:153)
    at oracle.toplink.essentials.internal.ejb.cmp3.base.EJBQueryImpl.<init>(EJBQueryImpl.java:114)
    at oracle.toplink.essentials.internal.ejb.cmp3.base.EJBQueryImpl.<init>(EJBQueryImpl.java:99)
    at oracle.toplink.essentials.internal.ejb.cmp3.EJBQueryImpl.<init>(EJBQueryImpl.java:86)
    at oracle.toplink.essentials.internal.ejb.cmp3.EntityManagerImpl.createQuery(EntityManagerImpl.java:204)
    Caused by: line 1:42: unexpected token: to_date
    at oracle.toplink.essentials.internal.parsing.ejbql.antlr273.EJBQLParser.arithmeticPrimary(EJBQLParser.java:3611)

    Hello,
    The JPQL dies not define a to_date function, which is why it will throw an exception when parsing the query string. You will need to use a native query for this if you need to convert database fields to dates for comparison.
    Best Regards,
    Chris

  • Unexpected Token error in CS4 64-bit plugin

    Hi All,
    I want to migrate my photoshop CS4 plugin from 32bit to 64 bit environment.
    Here is the code chunk i have added in the .r file for the 64bit recompile:
    #if defined(_WIN64)
    CodeWin64X86 { "PluginMain" },
    #else
    CodeWin32X86 { "PluginMain" },
    #endif
    I am getting the following error in the .r file while compilation.
    Unexpected token ('CodeWin64X86 { "PluginMain" },'
    I have done all the settings required for 64bit in the project settings:
    Like In C/C++:
    - Detect 64-bit portibility issues = Yes
    In Linker:
    - Advance->TargetMachine = MACHINEX64
    I do not understand what else is missing.. Can anybody has any idea what
    is going wrong.
    Please help me.
    Regards
    Hemant

    Are you using the cnvtpipl.exe that came with the CS4 SDK?
    Older versions won't recognize the new properties.

  • 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...

  • 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.

  • Data adapter failed during OnLoad: The UDC file contains errors: '=' is an unexpected token. The expected token is ';'.

    I am working on SharePoint 2010 Infopath form, i have created one secondary connection to SharePoint List view using XML Connection it works fine.
    For the deployment from DEV to PROD i converted this connection to universal data connection (UDC) and tested this before deploying to PROD but i m getting below error.
    An error occurred querying a data source.
    i checked ULS logs and found below details
    Data adapter failed during OnLoad: The UDC file contains errors: '=' is an unexpected token. The expected token is ';'. Line 17, position 108.
    UDC file is below
    <?xml version="1.0" encoding="UTF-8"?>
    <?MicrosoftWindowsSharePointServices ContentTypeID="0x010100B4CBD48E029A4ad8B62CB0E41868F2B0"?>
    <udc:DataSource MajorVersion="2" MinorVersion="0" xmlns:udc="http://schemas.microsoft.com/office/infopath/2006/udc">
    <udc:Name>LastItemID</udc:Name>
    <udc:Description>Format: UDC V2; Connection Type: XmlQuery; Purpose: ReadOnly; Generated by Microsoft InfoPath 2010 on 2014-04-25 at 16:49:31 by DOMAIN\username.</udc:Description>
    <udc:Type MajorVersion="2" MinorVersion="0" Type="XmlQuery">
    <udc:SubType MajorVersion="0" MinorVersion="0" Type=""/>
    </udc:Type>
    <udc:ConnectionInfo Purpose="ReadOnly" AltDataSource="">
    <udc:WsdlUrl/>
    <udc:SelectCommand>
    <udc:ListId/>
    <udc:WebUrl/>
    <udc:ConnectionString/>
    <udc:ServiceUrl UseFormsServiceProxy="false"/>
    <udc:SoapAction/>
    <udc:Query>https://contoso/_vti_bin/owssvr.dll?Cmd=Display&List={32364DED-7FE3-4276-837C-F2AC62C04B81}&View={804CC528-34B2-4473-89DB-C4E766CACC95}&XMLDATA=TRUE&NOREDIRECT=TRUE</udc:Query>
    </udc:SelectCommand>
    <udc:UpdateCommand>
    <udc:ServiceUrl UseFormsServiceProxy="false"/>
    <udc:SoapAction/>
    <udc:Submit/>
    <udc:FileName>Specify a filename or formula</udc:FileName>
    <udc:FolderName AllowOverwrite=""/>
    </udc:UpdateCommand>
    <!--udc:Authentication><udc:SSO AppId='' CredentialType='' /></udc:Authentication-->
    </udc:ConnectionInfo>
    </udc:DataSource>
    w: sandippatilblog.blogspot.com/

    Hi  Sandip ,
    How about escape “&” to “&amp;” as below:
    <udc:Query>https://contoso/_vti_bin/owssvr.dll?Cmd=Display&amp;List={32364DED-7FE3-4276-837C-F2AC62C04B81}&amp;View={804CC528-34B2-4473-89DB-C4E766CACC95}&amp;XMLDATA=TRUE&amp;NOREDIRECT=TRUE</udc:Query>
    Reference:
    http://social.technet.microsoft.com/Forums/en-US/534fae6b-2cef-4947-86e2-4869cb291cfe/the-form-cannot-be-opened-because-it-requires-the-domain-permission-level-log-id-5566-error?forum=sharepointcustomizationlegacy 
    http://stackoverflow.com/questions/3493405/do-i-really-need-to-encode-as-amp
    Best Regards,
    Eric
    Eric Tao
    TechNet Community Support

  • /etc/init.d/nodemgr: line 96: syntax error near unexpected token `is'

    I am trying to modify the unix script to auto start nodemanager on Oracle Linux server,however i am getting below error when ever i tried to start service nodemgr restart
    here is script:
    ============
    #!/bin/sh
    # nodemgr Oracle Weblogic NodeManager service
    # chkconfig: 345 85 15
    # description: Oracle Weblogic NodeManager service
    # The script needs to be saved as /etc/init.d/nodemgr and then issue chkconfig .add nodemgr as root
    ### BEGIN INIT INFO
    # Provides: nodemgr
    # Required-Start: $network $local_fs
    # Required-Stop:
    # Should-Start:
    # Should-Stop:
    # Default-Start: 3 4 5
    # Default-Stop: 0 1 2 6
    # Short-Description: Oracle Weblogic NodeManager service.
    # Description: Starts and stops Oracle Weblogic NodeManager.
    ### END INIT INFO
    . /etc/rc.d/init.d/functions
    export WLS_HOME=/u01/Oracle/Middleware/wlserver_10.3
    export MW_HOME=/u01/Oracle/Middleware
    export JAVA_HOME=/u01/Oracle/Middleware/jdk160_24
    export IDM_HOME=/u01/Oracle/Middleware/Oracle_IDM1
    export OAM_HOME=/u01/Oracle/Middleware/Oracle_IDM2
    export ORACLE_INSTANCE=/u01/Oracle/Middleware/Oracle_IDM1
    export IAM_HOME=/u01/Oracle/Middleware/Oracle_IDM2
    export DOMAIN_HOME=/u01/Oracle/Middleware/user_projects/domains
    DAEMON_USER="oracle"
    PROCESS_STRING="^.*/u01/Oracle/Middleware/.*weblogic.NodeManager.*"
    source $MW_HOME/wlserver_10.3/server/bin/setWLSEnv.sh > /dev/null
    export NodeManagerHome="$WLS_HOME/common/nodemanager"
    NodeManagerLockFile="$NodeManagerHome/nodemanager.log.lck"
    PROGRAM="$MW_HOME/wlserver_10.3/server/bin/startNodeManager.sh"
    SERVICE_NAME=`/bin/basename $0`
    LOCKFILE="/var/lock/subsys/$SERVICE_NAME"
    RETVAL=0
    start() {
    OLDPID=`/usr/bin/pgrep -f $PROCESS_STRING`
    if [ ! -z "$OLDPID" ]; then
    echo "$SERVICE_NAME is already running (pid $OLDPID) !"
    exit
    fi
    echo -n $"Starting $SERVICE_NAME: "
    /bin/su $DAEMON_USER -c "$PROGRAM &"
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch $LOCKFILE
    stop() {
    echo -n $"Stopping $SERVICE_NAME: "
    OLDPID=`/usr/bin/pgrep -f $PROCESS_STRING`
    if [ "$OLDPID" != "" ]; then
    /bin/kill -TERM $OLDPID
    else
    /bin/echo "$SERVICE_NAME is stopped"
    fi
    echo
    /bin/rm -f $NodeManagerLockFile
    [ $RETVAL -eq 0 ] && rm -f $LOCKFILE
    restart() {
    stop
    sleep 10
    start
    case "$1. in
    start)
    start
    stop)
    stop
    restart|force-reload|reload)
    restart
    condrestart|try-restart)
    [ -f $LOCKFILE ] && restart
    status)
    OLDPID=`/usr/bin/pgrep -f $PROCESS_STRING`
    if [ "$OLDPID" != "" ]; then
    /bin/echo "$SERVICE_NAME is running (pid: $OLDPID)!"
    else
    /bin/echo "$SERVICE_NAME is stopped"
    fi
    RETVAL=$?
    echo $"Usage: $0 start"
    exit 1
    esac
    exit $RETVAL
    =================
    here is error message
    [root@oam init.d]# service nodemgr restart
    /etc/init.d/nodemgr: line 96: syntax error near unexpected token `is'
    /etc/init.d/nodemgr: line 96: `/bin/echo "$SERVICE_NAME is running ("pid: $OLDPID")"'

    It is necessary to post code between code tags, otherwise it screws up. See the FAQ.
    What sticks out right away is your wrong case statement case *"$1.* which should read *case "$1"*. You are also missing ;; to terminate your default case statement. You should also put $RETVAL between quotes and remove the /bin paths.

  • Excel error "unexpected token"

    I just bought my palm centro so I am still trying to learn some things.
    I am trying to do something real simple on my phone. In the Excel document I am simply trying to sum up some numbers. When I hit the sum button, though it tells me "edit error unexpected token".
    I have no clue what this means. Creating and editing documents was one of the main reasons I got this phone.
    Post relates to: Centro (AT&T)

    Token refers to the security applied to the website.
    When you open the form locally, you are not using a secured URL. So probably you may need to check with your security administrator to resolve this.
    Thanks
    Srini

  • Ati driver install warning unexpected token `}'

    /var/lib/pacman/local/ati-drivers-8.22.5-4/install: line 32: syntax error near unexpected token `}'     do I need to worry about this

    it's not fixed at home :
    [root@ElroCorp nico]# pacman -S ati-drivers                             
    Targets: ati-drivers-8.22.5-4
    Total Package Size:   9.1 MB
    Proceed with upgrade? [Y/n]
    checking package integrity... done.
    loading package data... done.
    checking for file conflicts... done.
    /tmp/pacman-j2SHLE/.INSTALL: line 32: syntax error near unexpected token `}'
    /tmp/pacman-j2SHLE/.INSTALL: line 32: `}'
    installing ati-drivers... done.
    /var/lib/pacman/local/ati-drivers-8.22.5-4/install: line 32: syntax error near
    nexpected token `}'
    /var/lib/pacman/local/ati-drivers-8.22.5-4/install: line 32: `}'

  • BUG?: unexpected token in connection pane for cursor declaration

    If I declare a cursor with an order clause in the declaration part of a procedure in a package I will get the unexpected token. The code compiles without errors.
    SQL Developer 15.57.
    Windows XP SP2
    Oracle 10g
    example:
    declare procedure test( param in integer ) as
    cursor cur( nVal in integer ) is
    select * from tab where col1 = nVal
    order by col2;
    begin
    NULL;
    end test;
    If I comment out the order by line and proper end the line before all is OK in connection pane.

    There are a few issues logged for these unexpected tokens. We will be reviewing this section for 1.1.
    Regards
    Sue Harper

  • Package body in tree view shows "unexpected token"

    I have a package which is in production for months now. This does not show any error with PL/SQL Developer nor OraEdit. SQL Developer shows "unexpected token" after trying to expand the package into the list of functions and procedures. Database is 9.2, Sql developer is 1.0.0.14.22.
    Any idea how to fix this?
    Martin

    Did you get any test material? Here is one example.
    TABLES:
      CREATE TABLE "RAPTOR"."SETTLEMENTCALENDAR"
       (     "SSRRUNNUMBER" NUMBER(*,0) NOT NULL ENABLE,
         "SETTLEMENTDATE" DATE NOT NULL ENABLE,
         "SSRRUNTYPE" VARCHAR2(2 BYTE) NOT NULL ENABLE,
         "SSRRUNDATE" DATE NOT NULL ENABLE
      CREATE TABLE "RAPTOR"."DATAFILELOG"
       (     "DATAFILEID" NUMBER(*,0) NOT NULL ENABLE,
         "FILENAME" VARCHAR2(70 BYTE) NOT NULL ENABLE,
         "FILELASTMODIFIEDDATE" DATE NOT NULL ENABLE,
         "FILETYPE" VARCHAR2(8 BYTE),
         "FILEIDENTIFIER" VARCHAR2(50 BYTE),
         "FROMPARTICIPANTID" VARCHAR2(8 BYTE),
         "FROMPARTICIPANTROLECODE" VARCHAR2(2 BYTE),
         "TOPARTICIPANTID" VARCHAR2(8 BYTE),
         "TOPARTICIPANTROLECODE" VARCHAR2(2 BYTE),
         "CREATIONTIME" DATE,
         "PERIODENDDATE" DATE,
         "FILESTATUS" VARCHAR2(50 BYTE) NOT NULL ENABLE,
         "FILESTATUSDATETIME" DATE NOT NULL ENABLE,
         "EMAILINBOXLOGID" NUMBER(*,0),
         "RESPONSEFILE" VARCHAR2(50 BYTE),
         "RESPONSEFILEGROUPID" NUMBER(*,0),
         "DATETIMERECEIVED" DATE NOT NULL ENABLE
       CREATE TABLE "RAPTOR"."ELX_MULTI_PARAMETERS"
       (     "EMP_JOB_NAME" VARCHAR2(30 BYTE) NOT NULL ENABLE,
         "EMP_PARAM_NAME" VARCHAR2(30 BYTE) NOT NULL ENABLE,
         "EMP_STRING_VALUE" VARCHAR2(100 BYTE),
         "EMP_DATE_VALUE" DATE,
         "EMP_NUMBER_VALUE" NUMBER
       ) ;Code
    create or replace PACKAGE "ELX_PARMS_TOOLS" AS
    procedure do_settlementcal_gap_check(cutoff_date in date default null);
    END;
    create or replace PACKAGE BODY "ELX_PARMS_TOOLS" AS
    --This procedure checks the settlementcalendar table for gaps
    procedure do_settlementcal_gap_check( cutoff_date in date default null) is
    cursor gap_cursor is
      ((select rnum
       from ( select rownum rnum
              from datafilelog )
      where rownum <= ( select max(ssrrunnumber)
                          from settlementcalendar)
    minus
      select rnum
      from ( select rownum rnum
               from datafilelog )
      where rownum <= ( select max(ssrrunnumber)
                            from settlementcalendar
                         where settlementdate <=cutoff_date))
    minus
      select ssrrunnumber from settlementcalendar)
    minus
       select emp_number_value from elx_multi_parameters
            where emp_job_name ='SETTLECAL1'
            and   emp_param_name ='GAPEXCEPTION';
    begin
    null;
    end;
    END;

  • SQL Developer cloud login - Unexpected token NUMERIC_VALUE encountered

    Dear all
    I have set up a cloud database, the database is activated. I have reset the published sftp user which was sent by mail and a new user in APEX interface is created, the groups are attached.
    Now for cloud new connection in SQL Developer
    -> Username = my new created user
    -> URL= https://database-trialabsw.db.us1.oraclecloudapps.com/apex/
    -> SFTP-Username = provided by mail, password changed in Identity console
    -> SFTP-Hostname = sftp.us1.cloud.oracle.com
    When I want to connect, i am prompted with username set above, but if I enter the password which is set, a popup with this error message will be shown:
    Unexpected token NUMERIC_VALUE encountered
    I have create user as document in "Data Movement...." and i have seen the blog from Kris, but same error. Can you help me?
    Here is the error log from SQL Developer:
    Unexpected token NUMERIC_VALUE encountered at oracle.dbtools.raptor.cloud.auth.basic.BasicAuthenticationHandler.readProperty(BasicAuthenticationHandler.java:221)
    Edited by: user626582 on Oct 18, 2012 2:19 AM

    Hi,
    I download the latest version, but when I try to make the connection I always get an "Invalid resource owner credentials". I have given the user admin, user and develop role and can login with the user via the web interface.
    Is this path correct? https://database-trialabxn.db.us1.oraclecloudapps.com/apex/
    Is there anything else from a security setup I need to do?

  • Java.sql.SQLException: Unexpected token: IN in statement

    I use Toplink 2.0-b41-beta2 (03/30/2007) and have a problem with the following JPQL query:
    “SELECT DISTINCT OBJECT(e) FROM Entry e WHERE e.location IN (SELECT loc From View v JOIN v.viewLocs vl JOIN vl.location loc where v.code = :code)”
    “Entry” is a subclass of “TrainElement”, location points to Entity Location. Entity View has a one-to-many relationship to ViewLoc whereas each ViewLoc has a relationship to a Location object.
    Toplink creates the following incorrect sql statement – I inserted some CRLF for better readability::
    Local Exception Stack:
    Exception [TOPLINK-4002] (Oracle TopLink Essentials - 2.0 (Build b41-beta2 (03/30/2007))): oracle.toplink.essentials.exceptions.DatabaseException
    Internal Exception: java.sql.SQLException: Unexpected token: IN in statement
    [SELECT DISTINCT t0.TELEM_TRAINELEM_ID, t0.TRAINELEMENT_TYPE, t0.TELEM_INDEX, t0.TTELEM_TRAIN_ID, t0.ENTRY_TYPE, t0.ENTRY_ARRIVAL, t0.DISPLAY, t0.ENTRY_ORDERED_STOP, t0.ENTRY_DEPARTURE, t0.ENTRY_ORDER_CODE, t0.ENTRY_PREV_SEC_ID, t0.ENTRY_NEXT_SEC_ID, t0.ENT_LOC_ID FROM TRAINELEMENT t0, LOCATION t1
    WHERE (( IN ((SELECT DISTINCT t2.LOC_ID, t2.LOC_GPSY, t2.LOC_GRX, t2.LOC_CODE, t2.LOC_GRY, t2.LOC_GPSX, t2.LOC_LOCAL_RADIO, t2.LOC_NAME, t2.DELETED, t2.LOC_CLASS_ID FROM VIEW t4, VIEWLOC t3, LOCATION t2 WHERE ((t4.VIEW_CODE = ?) AND ((t3.VIEWLOC_VIEW_ID = t4.VIEW_ID) AND (t2.LOC_ID = t3.VIEWLOC_LOCACTION_ID))))) AND (t0.TRAINELEMENT_TYPE = ?)) AND (t1.LOC_ID = t0.ENT_LOC_ID))]
    Error Code: -11
    Call: SELECT DISTINCT t0.TELEM_TRAINELEM_ID, t0.TRAINELEMENT_TYPE, t0.TELEM_INDEX, t0.TTELEM_TRAIN_ID, t0.ENTRY_TYPE, t0.ENTRY_ARRIVAL, t0.DISPLAY, t0.ENTRY_ORDERED_STOP, t0.ENTRY_DEPARTURE, t0.ENTRY_ORDER_CODE, t0.ENTRY_PREV_SEC_ID, t0.ENTRY_NEXT_SEC_ID, t0.ENT_LOC_ID FROM TRAINELEMENT t0, LOCATION t1 WHERE (( IN ((SELECT DISTINCT t2.LOC_ID, t2.LOC_GPSY, t2.LOC_GRX, t2.LOC_CODE, t2.LOC_GRY, t2.LOC_GPSX, t2.LOC_LOCAL_RADIO, t2.LOC_NAME, t2.DELETED, t2.LOC_CLASS_ID FROM VIEW t4, VIEWLOC t3, LOCATION t2 WHERE ((t4.VIEW_CODE = ?) AND ((t3.VIEWLOC_VIEW_ID = t4.VIEW_ID) AND (t2.LOC_ID = t3.VIEWLOC_LOCACTION_ID))))) AND (t0.TRAINELEMENT_TYPE = ?)) AND (t1.LOC_ID = t0.ENT_LOC_ID))
         bind => [ROMAN W-Pb, ENT]
    There sould be a “t0.ENT_LOC_ID” before the IN in the WHERE clause and the implicit join “ID FROM TRAINELEMENT t0, LOCATION t1” seems incorrect to me. At any rate the database (HSQLDB) rejects that incorrect sql statement.
    How can I circumvent that problem?
    A add the relevant mapping part of the involved classes.
    @Entity
    @DiscriminatorValue("ENT")
    public class Entry extends TrainElement implements IEntry {
         @ManyToOne(cascade = CascadeType.ALL)
         @JoinColumn(name = "ENT_LOC_ID", nullable = true)
         private Location location;
    @Entity
    @Table(name = "LOCATION")
    public class Location implements ILocation {
         // persistent part
         // primary key field
         @Id
         @GeneratedValue
         @Column(name = "LOC_ID")
         private Long id;
         @Column(name = "LOC_CODE", nullable = false)
         private String code;
         @Column(name = "LOC_NAME", nullable = false)
         private String name;
    @Entity
    @EntityListeners(EntityListener.class)
    @Table(name = "VIEW")
    public class View implements IView {
         // persistent
         // primary key field
         @Id
         @GeneratedValue
         @Column(name = "VIEW_ID")
         private Long id;
         @OneToMany(mappedBy = "view", cascade = CascadeType.ALL)
         private List<ViewLoc> viewLocs = new ArrayList<ViewLoc>();
    @Entity
    @Table(name = "VIEWLOC")
    @EntityListeners(EntityListener.class)
    public class ViewLoc implements IViewLoc {
         // persistent fields
         // primary key field
         @Id
         @GeneratedValue
         @Column(name = "VIEWLOC_ID")
         private Long id;
         @ManyToOne(cascade = CascadeType.ALL)
         @JoinColumn(name = "VIEWLOC_VIEW_ID", nullable = false)
         private View view;
         // direct Linking to the infrastrucutre location
         @ManyToOne(cascade = CascadeType.ALL)
         @JoinColumn(name = "VIEWLOC_LOCACTION_ID")
         private Location location;
    ….

    IN doesn't support objects, only state_field_path_expression that must have a string, numeric, or enum value.
    Try using
    “SELECT DISTINCT OBJECT(e) FROM Entry e WHERE e.location.id IN (SELECT loc.id From View v JOIN v.viewLocs vl JOIN vl.location loc where v.code = :code)”
    Best Regards,
    Chris

  • PowerShell command returned an exception. Unexpected token 's' in expression or statement

    Hi All,
    I am trying to Creating a VM based on a Template in VMM through Orchestrator Runbook using below URL;
    http://blogs.catapultsystems.com/lrayl/archive/2013/07/03/orchestrator-system-center-integrations-part-3-creating-a-vm-based-on-a-template-in-vmm.aspx
    Runbook:
    But at the Create VM from Template activity runbook will failed:
    Throwing below error in while running runbook in Error Summary text:
    PowerShell command returned an exception. Unexpected token 's' in expression or statement.
    Exception: InvalidOperationException
    Target site: PSRunspaceInvoker.HandleInvokeException
    Stack trace:
       at Microsoft.SystemCenter.Orchestrator.Integration.PowerShellConnector.PSRunspaceInvoker.HandleInvokeException(Exception ex, ILogger logger)
       at Microsoft.SystemCenter.Orchestrator.Integration.PowerShellConnector.PSRunspaceInvoker.Invoke(RunspaceInvoke runspace, String script, ILogger logger)
       at Microsoft.SystemCenter.Orchestrator.Integration.PowerShellConnector.PSScriptRunner.Execute(String script)
       at Microsoft.SystemCenter.Orchestrator.Integration.VMM2012Domain.VM.CloneFromTemplate(String vmmServer, ParameterList inputParameters)
       at Microsoft.SystemCenter.Orchestrator.Integration.VMM2012QIK.VM.CloneFromTemplate.DoExecute(IActivityRequest request, ILogger logger)
       at Microsoft.SystemCenter.Orchestrator.Integration.VMM2012QIK.ActivityBase`2.Execute(IActivityRequest request, IActivityResponse response)
    Both Orchestrator & SCVMM powershell are set on Unrestricted powershell.
    Kindly suggest any solution or work around for resolution.
    Thanks Rahul$

    This may be a bit late and perhaps not even relevant but I came across this post when trying to solve an issue I had with a powershell script in Orchestrator. Maybe it will help you, or maybe it will help someone else.
    I was trying to create a connector between SCOM and our ticketing system. I wanted to export alert descriptions and in the process of testing I came across an alert description that had multiple lines and all kinds of crazy formatting. When I tried to assign
    the Published Data to a varialbe in my powershell script i would get an error "Unexpected token [a partial alert description] in expression or statement.". After looking at the actual alert description data and seeing that i was only getting some of it
    and not all of it it dawned on me that i somehow needed to escape out of all the crazy quoting, carriage returns, and special characters. to do that i assigned the Published Data to a variable in my powershell script as follows:
    $Description = @"
    {Description from "Get Alert"}
    Apparently the @" "@ is called a here-string. Somewhat interesting. Hope it helps you or someone else!

Maybe you are looking for