Unexpected token ''Test_Group (p)'' in expression or statement?
Hi,
I am trying to get a list of computers in each OU and get the count of each that are a member of the ''Test_Group (p)'' but I am getting the error "Unexpected token in expression or statement. Not sure what I am doing wrong here? I appreciate any help
someone can give I am very new to powershell. Thank you
import-module activedirectory
foreach ($ou in Get-ADOrganizationalUnit -filter * -SearchScope 1){
$computers = 0 + (get-adcomputer -filter * -searchbase $ou.distinguishedname).count
$Test = get-adcomputer -Property * | where {$_.memberof 'Test_Group (p)'}
$ou | add-member -membertype noteproperty -name Computers -value $computers -force
$ou | select name,computers
$Test | select name
You may want to take some time to gain a level of proficiency with Powershell. Try this link for example: http://technet.microsoft.com/en-us/scriptcenter/dd793612.aspx then
take some time to familiarize yourself with the features and capabilities of the ActiveDirectory module cmdlets. That will give you all the information you need.
To see imported modules run:
Get-Module
To see available modules run:
Get-Module -ListAvailable
To see available cmdlets in a give module run:
Get-Command -Module ActiveDirectory
To get help on a specific cmdlet run:
help Get-ADUser -Full
Sam Boutros, Senior Consultant, Software Logic, KOP, PA http://superwidgets.wordpress.com (Please take a moment to Vote as Helpful and/or Mark as Answer, where applicable)
Similar Messages
-
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! -
Unexpected Token '(' in expression or statement.
I'm trying to retrieve DHCP server names and Leases using this script. But when I execute this section of the script of receive the following error message:
Pwershell> C:\PowerShell\DHCPLease.ps1
At C:\PowerShell\DHCPLease.ps1:287 char:25
+ $line = $AllScopes[$i] (Read-Host " ").Split(",")
+ ~
Unexpected token '(' in expression or statement.
+ CategoryInfo : ParserError: (:) [], ParentContainsErrorRecordException
+ FullyQualifiedErrorId : UnexpectedToken
Here is the part of the script that is failing
#region Get all Scopes in the Server
# Run the Command in the Show Scopes var
$AllScopes=Invoke-Expression$ShowScopes
# Go over all the Results, start from index 5 and finish in last index -3
for($i=5;$i-lt$AllScopes.Length-3;$i++)
# Split the line and get the strings
$line=$AllScopes[$i](Read-Host"
").Split(",")
- This is the line I receive the error
$Scope.Address
+=Check-Empty$line[0]
$Scope.Mask
+=Check-Empty$line[1]
$Scope.State
+=Check-Empty$line[2]
# Line 3 and 4 represent the Name and Comment of the Scope
# If the name is empty, try taking the comment
If(Check-Empty$line[3]-eq"-")
$Scope.Name
+=Check-Empty$line[4]
else{
$Scope.Name
+=Check-Empty$line[3]}That "read-host" seems weird, that cmdlet is supposed to be used to read input from a user typing into the console. Try changing this line
$line = $AllScopes[$i] (Read-Host" ").Split(",")
to this
$line = $AllScopes[$i].Split(",")
DJ Grijalva | MCITP: EMA 2007/2010 SPA 2010 | www.persistentcerebro.com -
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 -
SQL0104N An unexpected token "END-OF-STATEMENT"
Hello,
for some audits we should run the following command:
DB2 SELECT DISTINCT GRANTEE FROM SYSCAT.TABAUTH
WHERE CONTROLAUTH = 'Y' OR 'G'
UNION
SELECT DISTINCT GRANTEE FROM SYSCAT.TABAUTH
WHERE ALTERAUTH = 'Y' OR 'G'
UNION
SELECT DISTINCT GRANTEE FROM SYSCAT.TABAUTH
WHERE DELETEAUTH = 'Y' OR 'G'
UNION
SELECT DISTINCT GRANTEE FROM SYSCAT.TABAUTH
WHERE UPDATEAUTH = 'Y' OR 'G'
UNION
SELECT DISTINCT GRANTEE FROM SYSCAT.TABAUTH
WHERE INSERTAUTH = 'Y' OR 'G' > all_users_auth.txt
This does not work. When I run a single step I get the following message:
db2 "select distinct grantee from syscat.tabauth where controlauth = 'Y' or 'G'"
SQL0104N An unexpected token "END-OF-STATEMENT" was found following "rolauth
= 'Y' or 'G'". Expected tokens may include: "<interval_qualifier>".
SQLSTATE=42601
But what kind of interval_qualifier is needed???
Regards
OlafHello Olaf,
You can try to run the following SQL statement.
db2 "select distinct grantee from syscat.tabauth where controlauth in ('Y','G')"
Regards,
Masako -
EJB QL "unexpected token: ( " Exception with IN operator and AND operator
Hey everyone,
Hopefully someone can help me. I am just starting to write more complex queries with EJB QL and am running into an issue. When I run my query I get an "Internal Exception: line 1:87: unexpected token: (" Exception below is my query with acording to the sun references I have managed to find looks right. Here is my query:
SELECT OBJECT(e) FROM Period e, IN (e.myScorecardItem.cyclesList) t WHERE current_date() BETWEEN e.startDate AND e.endDate AND t.id =?1
I have removed the portion with the IN navigation and it works fine, and I have removed the conditional statement and left the IN portion and that works fine but I can not get the to work together. Here is my bean relationships: Cycles have ScorecardItems have Periods. I am trying to find all the Periods that fall within a certain cycle. Any direction or help anyone can provide would be greatly appreciated.
Thanks,
JustenIt's not inherently bad - but it does depend on the optimizer getting good estimate of the data volume.
Did you test with 200 distinct values in your IN list, and can you see in the execution plan Oracle estimate of how many rows the subquery would generate.
Regards
Jonathan Lewis -
Bug in OC4J [unexpected token: IN] when use Subquery
Hi
I use this named query in my entity, but when I run it from JDeveloper 10.1.3.0.4 (SU2)
it throw exception
Thia is as sample query:
@NamedQuery(name="EmpbyDept",query="SELECT object(o) FROM Employees o WHERE o.departments IN(SELECT object(d) FROM Departments d)")
Internal Exception: Exception [TOPLINK-0] (Oracle TopLink - 10g Release 3 (10.1.3.0.0) (Build 060118)): oracle.toplink.exceptions.EJBQLException
Exception Description: Syntax Recognition Problem parsing the EJBQL [SELECT object(o) FROM Employees o WHERE o.departments IN(SELECT object(d) FROM Departments d)]. The parser returned the following [unexpected token: IN]
I looked in the Java Persistence API Proposed final for the In Expressions and it look like this:
in_expression ::=state_field_path_expression [NOT] IN ( in_item {, in_item}* | subquery)
in_item ::= literal | input_parameter
GhassanHi Ghassan,
At the moment we don't have a final date for the release, but we are hopeful to have a 10.1.3.1 Beta release very soon (in a few weeks), please keep watching the OTN space, and we will also announce it here in the forums.
Thanks for your patience.
Deepak -
Hello,
I'm trying to extract data from Essbase to an Oracle database. The columns in the db map one on one with the dimensions in essbase but I am getting error on one dimension only. The error is:
-11 : 37000 : java.sql.SQLException: Unexpected token: POSITION in statement [select C2_ACCOUNT ACCOUNT, C10_PERIOD PERIOD, C12_ENTITY ENTITY, C9_VERSION VERSION, C13_EMPLOYEE_TYPE EMPLOYEE_TYPE, C1_POP POP, C11_FUNCTIONAL_TITLE FUNCTIONAL_TITLE, C5_EMPLOYEE EMPLOYEE, C7_CURRENCY CURRENCY, C6_POSITION POSITION, C8_GRADE GRADE, C4_SCENARIO SCENARIO, C3_YEARS YEARS from C$_0TEST1 where (1=1)]
I have checked the spellings of the dimension and the column and they are fine.
Secondly, to extract data from Essbase does the ODI agent need to run on the Essbase server and does the reportscript have to be on the server as well? I have separate machines for ODI and Essbase and I have written a ReportScript and put it in a folder on the ODI machine.
Thanks.That "read-host" seems weird, that cmdlet is supposed to be used to read input from a user typing into the console. Try changing this line
$line = $AllScopes[$i] (Read-Host" ").Split(",")
to this
$line = $AllScopes[$i].Split(",")
DJ Grijalva | MCITP: EMA 2007/2010 SPA 2010 | www.persistentcerebro.com -
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 TokaThe problem is that count is a reserved word. It's expecting, count(some_column_name) or count(*).
Paul -
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.
-
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.
-
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. -
[INS-08109] Unexpected error occurred while validating inputs at state 'get
Facing that on a windows 2003 server on installing 11gR2 on an installed 11.1.0.6
[INS-08109] Unexpected error occurred while validating inputs at state 'getOCMDetails'.
that's in the first step on the installerVery stupid installer !
I've omitted my email, then pressed no in the next message, it passed that step! -
INS-08109 Unexpected error occurred while validating inputs at state nodeselection page
Scenerio: We have 4 node 11gr2 RAC cluster and Trying to install RAC Database software only on two nodes
Getting warning on run Installer Page INS-08109 Unexpected error occurred while validating inputs at state nodeselection page while selecting two nodes out of four and even after confirming it comes back to same screen ....
Example ... RAC node A,B,C,D and clusterware is up and running on all four nodes .....
Trying to Install RAC database on node C,D ... Getting INS-08109 Unexpected error occurred while selecting C,D Node out of Four nodes ...A,B,C,DVery stupid installer !
I've omitted my email, then pressed no in the next message, it passed that step! -
Unexpected error when connecting Airport Express A1264 to Airport Utility 6.3.1
My current wireless setup is and has been the following: Phone Jack --> DSL modem ---> Airport Express via Ethernet cable
Off of that connection we've been able to wirelessly run our MacBook, Apple TV and iPhones for several years.
We recently left for vacation, so I unplugged everything (apparently a huge mistake). When we returned from vacation, the wireless connection was intermittent and kept being dropped.
If I connect the Ethernet cable directly from the modem into my MacBook the internet works fine.
I tried refreshing the Airport Express by unplugging it and cycling it through. It continued to drop.
By opening the Airport Utility, a firmware update was recommended. However, since that update the Airport Express isn't detected anymore.
I tried a hard reset and Utility finds the Airport Express under "Other Wifi Devices" but then, at the end of trying to "Join the Airport Express to the Network" I get an "Unexpected Error" message.
Airport Express Model Number: A1264
Airport Utility: 6.3.1
OS: 10.8.5
I am very frustrated and way out of my league here with understanding how this all works and what I can do to fix it. If anyone has any suggestions or expertise to offer, I would greatly appreciate it.
Thank you for your time,
AmandaHi AMM222,
"Unexpected Error" message with Mountain Lion and AirPort Utility 6.3.x. Hopefully this is just a matter of enabling IPv6.
AirPort base station not seen or "An unexpected error occurred" appears in AirPort Utility 6.3
http://support.apple.com/kb/TS4597
This can happen if IPv6 has been disabled. To enable IPv6 for your network interface:
Choose Apple menu () > System Preferences, and then click Network.
If a lock icon appears in the lower-left corner, click it and enter your admin name and password to unlock the pane.
Click your network service (Wi-Fi or Ethernet) in the list, and then click Advanced.
Click the TCP/IP tab.
Choose Link-local only from the Configure IPv6 pop-up menu.
Click OK.
Click Apply.
The AirPort device should now appear in AirPort Utility.
Thank you for using Apple Support Communities.
Nubz
Maybe you are looking for
-
Other than just attempting to play the song I'm not sure of any way to do it.
-
I was wondering if someone has SD and MM documentation for BW. Please help. I am experienced in FI/CO and wanted to get some documentation on the above modules. Regards, David.
-
Boot Camp 4.0 on MacBook Pro With USB
I'm trying to install Windows 7 onto a Macbook Pro (2011) with Boot Camp 4.0 (i.e. not the one that lets you make a usb installer for computers without an optical drive). I have a NTFS formatted install USB made with Microsoft's ISO tools. Boot Camp
-
How to keep the worksheet and the database connection in sync
Is there a way I can configure sqldeveloper to do this - I click on a worksheet - The specific connection in the "connections list" on the left get highlighted - The specific connection if not expanded gets expanded Basically I want the sql worksheet
-
I have purchased the ecommerce level with 10 users. I need to insert a facebook and twitter module on my pages. I can get all the code in place and the buttons show, but when I try to follow the instructions to build the modules by going to Site Mana