Syntax error at line1 : �(� fortran90 compiler of SUN OS 5.6.
Does anyone know what this mean and how to correct the error?
�./some_program :syntax error at line1 : �(� unexpected
I executed the fortran 90 program under Sun OS 5.6 with SPARC platform.
The sun.com website do not provide the trial version fortran90 compiler of SUN OS 5.6.
Would you please tell me how to download the old version fortran90?!
Thanks in advance!
I notice your earlier post asking for download of f90 compiler. You may have installed the latest f90 and run it on your old OS 5.6. I suggest you upgrate your OS to S10. S5.6 is EOL and no long supported. And S10 is much better. If you want to keep 5.6, you may try this site for an old compiler:
http://www.sun.com/software/sundev/previous/fortran/buy.html
Similar Messages
-
Fatal Syntax Errors Unique to XCode Compile
I am attempting to bring a Unix library into an XCode project for iPad and compile it. This Unix library compiles for i386 without any problems when I use gcc from Terminal, which is v4.2. However, when I attempt to compile those same sources from within the XCode project, I receive hundreds of fatal syntax errors, even though I it is still compiling to i386, and it is still using GCC 4.2. Here is an example declaration where it gives an error:
The Code:
int memcmp(const void *, const void *, size_t);
The error:
Expected declaration specifiers or '...' before '(' token
I must admit I am just now reading my introduction to Objective-C, so it is possible that there is a syntax error there according to some strict guidelines. The above code is actually C, but I did not worry about this because I was not expecting to extensively modify this library.
How is the XCode compile so different from using Apple's built-in GCC 4.2 that I receive hundreds of fatal syntax errors from within XCode, but it compiles with only a few warnings from the command line?kienjakenobi wrote:
At the moment, I am having difficulty compiling libpng. libpng does not appear to like Apple's custom stdio.h header file.
What errors are you getting? I'm pretty sure I've build this library before, although not for iOS. Building for iOS shouldn't be much different than any cross-platform build, such as when building 32-bit on a 64-bit machine.
I tried it myself and couldn't get the configure script to do it all. Those things never work when you need them to. I had to hack up the Makefile and libtool file. Here is a patch file:
diff -crB libpng-1.2.44/Makefile libpng-1.2.44.iOS/Makefile
* libpng-1.2.44/Makefile 2010-10-14 14:57:16.000000000 -0400
--- libpng-1.2.44.iOS/Makefile 2010-10-14 14:50:06.000000000 -0400
* 171,180 **
AUTOHEADER = ${SHELL} /Users/jdaniel/Downloads/libpng-1.2.44/missing --run autoheader
AUTOMAKE = ${SHELL} /Users/jdaniel/Downloads/libpng-1.2.44/missing --run automake-1.11
AWK = awk
! CC = gcc
CCDEPMODE = depmode=gcc3
! CFLAGS = -g -O2
! CPP = gcc -E
CPPFLAGS =
CYGPATH_W = echo
DEFS = -DHAVECONFIGH
--- 171,180 ----
AUTOHEADER = ${SHELL} /Users/jdaniel/Downloads/libpng-1.2.44/missing --run autoheader
AUTOMAKE = ${SHELL} /Users/jdaniel/Downloads/libpng-1.2.44/missing --run automake-1.11
AWK = awk
! CC = /Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/gcc
CCDEPMODE = depmode=gcc3
! CFLAGS = -g -O2 -isysroot /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS3.2.sdk -arch armv7
! CPP = /Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/cpp -E
CPPFLAGS =
CYGPATH_W = echo
DEFS = -DHAVECONFIGH
* 194,200 **
INSTALL_PROGRAM = ${INSTALL}
INSTALL_SCRIPT = ${INSTALL}
INSTALLSTRIPPROGRAM = $(install_sh) -c -s
! LD = /usr/libexec/gcc/i686-apple-darwin10/4.2.1/ld
LDFLAGS =
LIBOBJS =
LIBPNG_DEFINES = -DPNGCONFIGURELIBPNG
--- 194,200 ----
INSTALL_PROGRAM = ${INSTALL}
INSTALL_SCRIPT = ${INSTALL}
INSTALLSTRIPPROGRAM = $(install_sh) -c -s
! LD = /Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/ld
LDFLAGS =
LIBOBJS =
LIBPNG_DEFINES = -DPNGCONFIGURELIBPNG
diff -crB libpng-1.2.44/config.log libpng-1.2.44.iOS/config.log
* libpng-1.2.44/config.log 2010-10-14 14:57:16.000000000 -0400
--- libpng-1.2.44.iOS/config.log 2010-10-14 14:48:08.000000000 -0400
* 30,37 **
Processor type: i486 (Intel 80486)
Processors active: 0 1
Primary memory available: 4.00 gigabytes
! Default processor set: 90 tasks, 370 threads, 2 processors
! Load average: 0.28, Mach factor: 1.71
/bin/machine = unknown
/usr/bin/oslevel = unknown
/bin/universe = unknown
--- 30,37 ----
Processor type: i486 (Intel 80486)
Processors active: 0 1
Primary memory available: 4.00 gigabytes
! Default processor set: 90 tasks, 374 threads, 2 processors
! Load average: 0.38, Mach factor: 1.60
/bin/machine = unknown
/usr/bin/oslevel = unknown
/bin/universe = unknown
diff -crB libpng-1.2.44/libtool libpng-1.2.44.iOS/libtool
* libpng-1.2.44/libtool 2010-10-14 14:57:16.000000000 -0400
--- libpng-1.2.44.iOS/libtool 2010-10-14 14:55:40.000000000 -0400
* 240,249 **
hardcodeintolibs=no
# Compile-time system search path for libraries.
! syslib_search_path_spec="/usr/lib/gcc/i686-apple-darwin10/4.2.1/x8664 /usr/lib/i686-apple-darwin10/4.2.1 /usr/lib /usr/local/lib"
# Run-time system search path for libraries.
! syslib_dlsearch_pathspec="/usr/local/lib /lib /usr/lib"
# Whether dlopen is supported.
dlopen_support=unknown
--- 240,249 ----
hardcodeintolibs=no
# Compile-time system search path for libraries.
! syslib_search_pathspec="/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS3.2.sdk/usr/lib"
# Run-time system search path for libraries.
! syslib_dlsearch_pathspec="/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS3.2.sdk/usr/lib"
# Whether dlopen is supported.
dlopen_support=unknown
* 260,272 **
# The linker used to build libraries.
! LD="/usr/libexec/gcc/i686-apple-darwin10/4.2.1/ld"
# Commands used to build an old-style archive.
oldarchivecmds="$AR $AR_FLAGS $oldlib$oldobjs~$RANLIB $oldlib"
# A language specific compiler.
! CC="gcc"
# Is the compiler the GNU compiler?
with_gcc=yes
--- 260,272 ----
# The linker used to build libraries.
! LD="/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/ld"
# Commands used to build an old-style archive.
oldarchivecmds="$AR $AR_FLAGS $oldlib$oldobjs~$RANLIB $oldlib"
# A language specific compiler.
! CC="/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/gcc"
# Is the compiler the GNU compiler?
with_gcc=yes
It seems to work:
file ./.libs/libpng12.0.dylib
./.libs/libpng12.0.dylib: Mach-O dynamically linked shared library arm
You don't need to create static libraries. Just use the "installnametool" to change the location of the dynamic libraries to @executable_path and include the required libraries inside your application bundle. -
SQLException syntax error in query
I am baffled and hoping that maybe you can spot an error in my query - I can't seem to find it!
The query is:
INSERT INTO CreditCard (userID, type, name, number, expiration, addressID) VALUES (5, 1, 'Bill', '1264', 2004-04-10, 9)
And in code it is:
String sql = "INSERT INTO CreditCard (userID, type, name, number," + " expiration, addressID) VALUES (" + userId + ", " + type + ", \'" + name + "\', \'" + number + "\', " + expiration + ", " + addressId + ")";
I keep getting error for this line:
stmt.execute(sql);
with the following message:
java.sql.SQLException: [Microsoft][ODBC Microsoft Access Driver] Syntax error in INSERT INTO statement.
at sun.jdbc.odbc.JdbcOdbc.createSQLException(JdbcOdbc.java:6879)
at sun.jdbc.odbc.JdbcOdbc.standardError(JdbcOdbc.java:7036)
at sun.jdbc.odbc.JdbcOdbc.SQLExecDirect(JdbcOdbc.java:3065)
at sun.jdbc.odbc.JdbcOdbcStatement.execute(JdbcOdbcStatement.java:338)
at jauction.server.CreditCardImpl.<init>(CreditCardImpl.java:65)
at jauction.server.CreditCardTest.main(CreditCardTest.java:14)
Do you spot the syntax error in the query? Is there any other reason why I could be getting this error?
Similar INSERT INTO queries have been implemented and tested in this project of mine and they are working fine. I am baffled as to where the syntax error is in this query. If you spot it - could you point it out? Thanks.Thanks man, you saved me hours of debugging.
I had an Access table with a column named TimeStamp, just couldn't get the damn thing to work. But I think both our problems are JDBC/SQL related, not Access related. In other words, it wouldn't work on any other RDBMS system either.
Someone should put it in the documentation somewhere that using SQL datatype names for column names is a no-no. -
Illegal register: "icc" : syntax error with Sun C 5.8 compiler
I wanted to compile my C file with compiler option "cc -c -Xc -mt -fast -xarch=amd64" on Solaris 10 amd64 machine but it failed with following error -
Assembler: abc.c
"/tmp/GAAOBain6", line 819 : Illegal register: "icc"
"/tmp/GAAOBain6", line 819 : Syntax error
Near line: " orq %icc,%r8 ;/ line : 210"
"/tmp/GAAOBain6", line 852 : Illegal register: "icc"
"/tmp/GAAOBain6", line 852 : Syntax error
Near line: " movzwq %icc,%r9 ;/ line : 215"
cc: ube failed for abc.c
*** Error code 2
I am using following sun C compiler -
/SS11/SUNWspro/bin/cc -V
cc: Sun C 5.8 Patch 121016-02 2006/03/31
Do anybody has idea about this issue?
Thanks
SguptaThanks Boris for your help.
My abc.c file is following -
struct struct_1 {
unsigned type:8;
unsigned level:5;
unsigned seen:1;
unsigned pad:2;
unsigned length:16;
void sample (unsigned char type)
struct struct_1 *q;
/*** Allocate and assign pBody here **/
q->type = type;
q->length = type;
==========================================
compiling this file with following option gives the error in Sol-10 amd64 -
/SS11/SUNWspro/bin/cc -c -Xc -mt -fast -xarch=amd64 abc.c
But compiling without "-fast" options work fine.
Thanks
Sgupta -
Hi Gurus,
I have started with VC and while compiling a model, I get a syntax error in Fiscalyear (variable in the query).
the message is "The expression in field 'FiscalYear' contains an error: Syntax error".
"Stopped due to errors"
Have no clues as the other variable (Cost center) is working fine.
We are on NW7.0 SP13
Tks
KSHi
Right click on the joining line after that form. Go to the field mapping & go to the field for the 'Fiscal Year'
Do following changes
If by default you are getting there '@Fiscal year' then make it '@Fiscal year_Key' means whatever is there, just add "_key" after that. Then instead of compiling & deploying, Directly Deploy the model & then check if you are getting any error.
Regards
Sandeep -
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
SandySandy,
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... -
Compiles a procedure with syntax error
In the script tab, try to compile a procedure with syntax errors.
The message displays procedure compiled !!!
It should display that procedure compiled with errors.Hi Kris,
I searched through the threads, but did not come across a similar question and that is why i raised the query. It'll be helpful if you could answer the query.
regards, -
AIX C-Compiler Syntax Error osmm.h
Hello Forte-Users,
i have a problem on AIX 4.2 using the C/C++ Compiler.
I got the error:
"/forte/install/inc/cmn/osmm.h", line 4.1: 1506-166 (S) Definition of
function c
lass requires parentheses.
"/forte/install/inc/cmn/osmm.h", line 4.25: 1506-276 (S) Syntax error:
possible
missing '{'?
"/forte/install/inc/cmn/osmm.h", line 9.27: 1506-045 (S) Undeclared
identifier U
pdateFunction.
In this line is following:
class qqOS_HUGE qqsh_Task;
Does anyone knows wether some opten (qoption) is to set in /etc/xlC.cfg or
other solutions to fix this problem. I have already contacted Forte-Support
and they have no problem to compile my ~.pgf File on an RS6000.
I also try to use the same xlC.cfg as used from Forte-Support. I deinstall
and install the C-Compiler. Nothing helps.
Does anyone knows what may be wrong with my configuration?
Joseph Mirwald
Bachmeier & Sporrer
To unsubscribe, email '[email protected]' with
'unsubscribe forte-users' as the body of the message.
Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/>Hello Forte-Users,
i got only one reply on my problem, so i will explain the problem more
clearly.
in the include File: FORTE_ROOT/install/os/os.h
is a definition: '#define qqOS_HUGE'
The compiler fails in File: FORTE_ROOT/install/cmn/osmm.h line 4
in the Class Definition: 'class qqOS_HUGE qqsh_Task;'
with the following error:
FORTE_ROOT/install/inc/cmn/osmm.h", line 4.1: 1506-166 (S) Definition of
function class requires parentheses.
Does anyone know which option or failure in the environment of the
C-Compiler occures this error?
Works someone on a RS6000 with an AIX C-Compiler on AIX 4.2?
So please look at your configuration settings and help me.
I know that a function needs parentheses, but this code (everybody have the
same Header-Files on his/her machine) wants to define a class and no
parentheses are needed for class definition.
Joseph Mirwald
To unsubscribe, email '[email protected]' with
'unsubscribe forte-users' as the body of the message.
Searchable thread archive <URL:<a href=
"http://pinehurst.sageit.com/listarchive/">http://pinehurst.sageit.com/listarchive/</a>> -
Sun studio C++ compilation error in std when compile ACE5.2
CC -mt -g -instances=explicit -g -I/home/xxx/ACE_wrappers -DACE_NO_INLINE -c -KPIC -o .shobj/Basic_Types.o Basic_Types.cpp
"/opt/SUNWspro/prod/include/CC/Cstd/./stdexcept", line 57: Error: Function std::logic_error::~logic_error() can throw only the exceptions thrown by the function std::exception::~exception() it overrides.
"/opt/SUNWspro/prod/include/CC/Cstd/./stdexcept", line 60: Error: Function std::logic_error::what() const can throw only the exceptions thrown by the function std::exception::what() const it overrides.
"/opt/SUNWspro/prod/include/CC/Cstd/./stdexcept", line 128: Error: Function std::runtime_error::~runtime_error() can throw only the exceptions thrown by the function std::exception::~exception() it overrides.
"/opt/SUNWspro/prod/include/CC/Cstd/./stdexcept", line 131: Error: Function std::runtime_error::what() const can throw only the exceptions thrown by the function std::exception::what() const it overrides.
"/opt/SUNWspro/prod/include/CC/Cstd/./istream", line 41: Error: Use ";" to terminate declarations.
"/opt/SUNWspro/prod/include/CC/Cstd/./ostream", line 438: Error: Illegal number of arguments for std::ostream::operator<<(std::basic_ostream<std::basic_ostream<std::charT, std::traits>::charT, std::basic_ostream<std::charT, std::traits>::traits>&, std::ostream::charT).
"/opt/SUNWspro/prod/include/CC/Cstd/./iostream", line 43: Where: While specializing "std::ostream ".
"/opt/SUNWspro/prod/include/CC/Cstd/./iostream", line 43: Where: Specialized in non-template code.
"/opt/SUNWspro/prod/include/CC/Cstd/./ostream", line 444: Error: Illegal number of arguments for std::ostream::operator<<(std::basic_ostream<std::basic_ostream<std::charT, std::traits>::charT, type "std::ostream ".
"/opt/SUNWspro/prod/include/CC/Cstd/./iostream", line 43: Where: While specializing "std::ostream ".
"/opt/SUNWspro/prod/include/CC/Cstd/./iostream", line 43: Where: Specialized in non-template code.
"/opt/SUNWspro/prod/include/CC/Cstd/./ostream", line 438: Error: Illegal number of arguments for std::wostream::operator<<(std::basic_ostream<std::basic_ostream<std::charT, std::traits>::charT, std::basic_ostream<std::charT, std::traits>::traits>&, std::wostream::charT).
"/opt/SUNWspro/prod/include/CC/Cstd/./iostream", line 46: Where: While specializing "std::wostream ".
"/opt/SUNWspro/prod/include/CC/Cstd/./iostream", line 46: Where: Specialized in non-template code.
"/opt/SUNWspro/prod/include/CC/Cstd/./ostream", line 444: Error: Illegal number of arguments for std::wostream::operator<<(std::basic_ostream<std::basic_ostream<std::charT, std::traits>::charT, std::basic_ostream<std::charT, std::traits>::traits>&, char).
"/opt/SUNWspro/prod/include/CC/Cstd/./iostream", line 46: Where: While specializing "std::wostream ".
"/opt/SUNWspro/prod/include/CC/Cstd/./iostream", line 46: Where: Specialized in non-template code.
"/opt/SUNWspro/prod/include/CC/Cstd/./ostream", line 451: Error: Illegal number of arguments for std::wostream::operator<<(std::ostream &, char).
"/opt/SUNWspro/prod/include/CC/Cstd/./iostream", line 46: Where: While specializing "std::wostream ".
"/opt/SUNWspro/prod/include/CC/Cstd/./iostream", line 46: Where: Specialized in non-template code.
Compilation aborted, too many Error messages.
make: *** [.shobj/Basic_Types.o] Error 1
sun0% CC -V
CC: Sun C++ 5.9 SunOS_sparc Patch 124863-01 2007/07/25I have solved the problem by adding "-D ACE_HAS_EXCEPTIONS"
-
Getting syntax error in /usr/include/sys/ header files during Compilation
Hi,
I am migrating old PRO C code from Oracle 8 + Solaris 8 to Oracle 10 + Solaris 10 environment. While compiling the code it is giving error :*
Syntax error at line 69, column 2, file /usr/include/sys/uio.h:
Error at line 69, column 2 in file /usr/include/sys/uio.h
lloff_t uiooffset; /* file offset */
.1
PCC-S-02201, Encountered the symbol "lloff_t" when expecting one of the followin
g:
} char, const, double, enum, float, int, long, ulong_varchar,
OCIBFileLocator OCIBlobLocator, OCIClobLocator, OCIDateTime,
OCIExtProcContext, OCIInterval, OCIRowid, OCIDate, OCINumber,
OCIRaw, OCIString, short, signed, sql_context, sql_cursor,
struct, union, unsigned, utext, uvarchar, varchar, void,
volatile, a typedef name,
The symbol "enum," was substituted for "lloff_t" to continue.
Any guess why this is happening?Hi,
Try using the PARSE=PARTIAL USERID=user/password[@SID] SQLCHECK=SEMANTICS precompiler options.
All your hosts variables must be declared inside a Declare section.
Reference: Pro C/C++ Programmers Guide, chapter 5
Reguards,
Rene Rivet -
"[Microsoft][ODBC Microsoft Access Driver] Syntax error in field definition
I am creating a program in Java which has a Database reference application.The Database I am using is MS Access.But whenever I am trying to run the program from DOS Prompt(ie executing the program:java <program name>) I am unable to connenct to the database.The compiling of the program doesn't show any error(ie javac <program name>) The following error is displayed at the DOS Prompt:
"[Microsoft][ODBC Microsoft Access Driver] Syntax error in field definition."
Pls give me a detailed help report.If it is a Machine side problem do help me to solve it.Mine is a Compaq Presario Machine,OS:Windows 98,Database:MS Access(Office XP)
I request you to help me in this matter.Pls email ur responses to:
[email protected]
[email protected]hi there
did u configure ur ODBC setting if no then try these steps
================== ODBC Settings ========================
step 1 : go to control panel
step 2 : ODBC Data Sources
step 3 : click UserDSN Tab
step 4 : click ADD Button , Select Microsoft Access Driver , Finish
step 5 : Give Datasource Name as "DATABASE_NAMEXXX" , no double quotes
step 6 : use Select and select Database_NAME.mdb from <INSTALL DIRECTORY>\DATABASE_NAME.mdb
click ok , ok finish
<INSTALL DIRECTORY> is where yr database is
=========================================================
then in yr program
URL for yr database
"jdbc:odbc:DATABASE_NAMEXXX" // as name in step 5
and Driver is
"sun.jdbc.odbc.JdbcOdbcDriver"
if u done all these steps then check yr spelling of table and tabel field in yr program
hope this works for u
regards
Satinderjit -
Hi,
we have a syntax error in our JDOQL-namedQuery. We want to do a join over
two tables "TestOrder" and "TestOrderPosition" and get this error:
(we use Kodo 4.0)
<?xml version="1.0"?>
<jdoquery>
<package name="salt.domain.orderservice.entity">
<class name = "TestOrder">
<query name="findByOrderId">select where
testOrderPositions.contains(testOrderPosition) and
testOrderPosition.description==:t variables
salt.domain.orderservice.entity.TestOrderPosition testOrderPosition</query>
</class>
</package>
</jdoquery>
<4|false|4.0.0EA3> kodo.jdo.UserException: An error occurred while parsing the
query filter "testOrderPositions.contains(testOrderPosition) and
testOrderPosition.description==:t". Error message: The JDOQL string is not
valid. Make sure all parentheses are matched and that you use proper Java
syntax.
kodo.query.AbstractExpressionBuilder.parseException(AbstractExpressionBuilder.java:92)
kodo.query.jdoql.JDOQLExpressionBuilder.evalExpression(JDOQLExpressionBuilder.java:508)
kodo.query.jdoql.JDOQLExpressionBuilder.eval(JDOQLExpressionBuilder.java:265)
kodo.query.jdoql.JDOQLParser.eval(JDOQLParser.java:98)
kodo.query.ExpressionStoreQuery$DataStoreExecutor.<init>(ExpressionStoreQuery.java:542)
kodo.query.ExpressionStoreQuery.newDataStoreExecutor(ExpressionStoreQuery.java:154)
kodo.query.QueryImpl.createExecutor(QueryImpl.java:807)
kodo.query.QueryImpl.compileForDataStore(QueryImpl.java:741)
kodo.query.QueryImpl.compileForExecutor(QueryImpl.java:721)
kodo.query.QueryImpl.compile(QueryImpl.java:635)
kodo.kernel.BrokerImpl.namedQuery(BrokerImpl.java:3681)
kodo.kernel.DelegatingBroker.namedQuery(DelegatingBroker.java:1587)
kodo.jdo.PersistenceManagerImpl.newNamedQuery(PersistenceManagerImpl.java:1028)
salt.domain.orderservice.dao.jdo.JDOOrderRepositoryImpl.findOrderWithPositionById(JDOOrderRepositoryImpl.java:85)
salt.domain.orderservice.OrderRepositoryImpl.findOrderWithPositions(OrderRepositoryImpl.java:91)
salt.domain.orderservice.OrderServiceImpl.getOrderWithPosition(OrderServiceImpl.java:15)
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
java.lang.reflect.Method.invoke(Unknown Source)
org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:335)
org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:181)
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:148)
org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:96)
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:170)
org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:176)
$Proxy0.getOrderWithPosition(Unknown Source)
salt.application.DddTestController.handleRequest(DddTestController.java:40)
org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter.handle(SimpleControllerHandlerAdapter.java:44)
org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:717)
org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:658)
org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:392)
org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:347)
javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
Does anyone have an idea?
Thanks,
Ingo SchneiderThanks for your help! It works now!
I have another problem with a very simple query:
I always get a ClassCastException with the follwoing query. If I left the
result parameter out the query works. Parameter "t" is an integer, but
there shouldn't be any cast problems between integer and long.
<?xml version="1.0"?>
<jdoquery>
<package name="salt.domain.orderservice.entity">
<class name="TestOrder">
<query name="findByOrderIdPosition">select idOrder where
idOrder==:t</query>
</class>
</package>
</jdoquery>
public class TestOrder implements Serializable{
private String description;
private long idOrder;
private Set testOrderPositions = new HashSet();
getters & setters...
java.lang.ClassCastException: java.lang.Long
salt.domain.orderservice.dao.jdo.JDOOrderRepositoryImpl.findOrderWithPositionById(JDOOrderRepositoryImpl.java:99)
salt.domain.orderservice.OrderRepositoryImpl.findOrderWithPositions(OrderRepositoryImpl.java:91)
salt.domain.orderservice.OrderServiceImpl.getOrderWithPosition(OrderServiceImpl.java:15)
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
java.lang.reflect.Method.invoke(Unknown Source)
org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:335)
org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:181)
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:148)
org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:96)
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:170)
org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:176)
$Proxy0.getOrderWithPosition(Unknown Source)
salt.application.DddTestController.handleRequest(DddTestController.java:40)
org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter.handle(SimpleControllerHandlerAdapter.java:44)
org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:717)
org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:658)
org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:392)
org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:347)
javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
Thanks,
Ingo Schneider -
Problem in compilation using Sun Studio 11
Hello,
We are migrating from a Solaris 8 to a Solaris 10 OS. At the same ttime we are also migrating from Ingres 2.6 to Ingres 2006. As a part of the creation of teh development environment, we are recompiling all the codes on teh new OS. WE have installed teh Sun Studio 11 compiler for this purpose. When compiling some C codes, we are getting the following error:
"am_xxxxxxxx.c", line 2596: warning: statement not reached
"am_xxxxxxxx.c", line 2778: undefined symbol: i8
"am_xxxxxxxx.c", line 2778: syntax error before or at: )
"am_xxxxxxxx.c", line 2858: undefined symbol: i8
"am_xxxxxxxx.c", line 2858: syntax error before or at: )
"am_xxxxxxxx.c", line 2889: warning: implicit function declaration: IIresnext
"am_xxxxxxxx.c", line 2891: warning: statement not reached
"am_xxxxxxxx.c", line 2920: warning: statement not reached
"am_xxxxxxxx.c", line 2931: undefined label: IIfdF1
"am_xxxxxxxx.c", line 2931: undefined label: IIosl9139
"am_xxxxxxxx.c", line 2931: undefined label: IIfdE1
"am_xxxxxxxx.c", line 2931: cannot recover from previous errors
cc: acomp failed for am_xxxxxxxx.c
The command used for compiling is :
cc -xarch=generic64 am_xxxxxxxx.c
We have exported teh following:
LD_LIBRARY_PATH_64=/usr/sfw/lib/sparcv9:/usr/local/lib/sparcv9:/usr/lib/sparcv9:/usr/openwin/lib/sparcv9:/usr/dt/lib/sparcv9:/opt/SUNWspro/lib/v9:/opt/SUNWspro/lib/v9:/eu/ingad/ingres/lib:/opt/oracle/lib:/usr/lib:/usr/ucblib:/usr/openwin/lib:/opt/SUNWspro/lib/:/opt/lib/cobol/coblib
LD_LIBRARY_PATH=/opt/SUNWspro/lib/v9:/eu/ingad/ingres/lib:/eu/ingad/ingres/lib:/opt/oracle/lib:/usr/lib:/usr/ucblib:/usr/openwin/lib:/opt/SUNWspro/lib/:/opt/lib/cobol/coblib
CXXFLAGS=-fast -xarch=v9b
CFLAGS=-fast -xarch=v9b
LDFLAGS=-L/usr/sfw/lib/sparcv9 -L/usr/lib/sparcv9 -R/usr/sfw/lib/sparcv9 -R/usr/lib/sparcv9
We are struggling with this issue for the last one week. Can someone please help me with this issue?
Could this be because the 64 bit library files are not installed? Please help.
AneeshaThe LD_LIBRARY_PATH environment variables determine where the runtime loader looks for shared libraries when you run an application. It is unlikely to be the source of compile-time errors.
I suspect that doing two major changes at the same time has resulted in undefined names and other problems, probably due to missing or incorrect header inclusion. If possible, make one change at a time, either compile the old code on the new OS, or the new code on the old OS, and get that to work first.
Check the Ingress documentation to see if you need to make source code changes when upgrading, and follow any recommendations there. You might also need to take up this problem with Ingress tech support.
Regarding LD_LIBRARY_PATH, the best advice is usually "don't set it at all". For more on this topic, see this article:
http://blogs.sun.com/rie/entry/tt_ld_library_path_tt
Just to eliminate this as a possible build problem, try removing LD_LIBRARY_PATH and LD_LIBRARY_PATH_64 from your environment when building the program. Then modify the build process to set the executable runpath (-R option) to include the Ingress or Oracle libraries that need to be searched. You don't normally want to point into /usr/lib or into the compiler installation area. -
Help! RDBMSCodeGenerator creates syntax errors!
We have recompiled our Weblogic 8.1 product on Weblogic 9.2, and while re-deploying
our EJBs one of our CMP beans curiously and unusually failed to deploy. The failure to deploy
stems from syntax errors generated by RDBMSCodeGenerator!
When we turn off use-select-for-update, the offending code is no longer
generated and the EJB deploys, but we need and depend on this feature being enabled, so simply
leaving this off is not a viable solution.
Here's the header, so you know I'm not hallucinating.
* This code was automatically generated at 10:43:37 AM on May 30, 2007
* by weblogic.ejb.container.cmp.rdbms.codegen.RDBMSCodeGenerator -- do not edit.
* @version WebLogic Server 9.2 MP1 Sun Jan 7 00:56:31 EST 2007 883308
* @author Copyright (c) 2007 by BEA Systems, Inc. All Rights Reserved.
*/The offending code occurs in nine separate methods, all in the same line of code: an if statement.
The if statement has two opening parentheses, and three closing parentheses!!
if (!__WL_pkMap.containsKey(__WL_pk))) {(One such broken method is at the bottom of this post.)
The seventh instance of this syntax error contains a second syntax error. It appears
that the code generator corrupted the variable name as well:
if (!WL_pkMap.containsKey(__WL_pk))) {(The two underscores at the beginning of the variable are missing.)
Now, when use-select-for-update is removed, the compiler generates a slightly different if clause,
but with no syntax errors. The __WL_pkMap variable is also written correctly.
Has anyone encountered this? Can anyone surmise what might be going on??
I think this might need to be posted as a bug. What do you think?
Torin...
Attached: One offending method (of nine) with the error highlighted and underscored is (about two-thirds of the way down):
public java.util.Collection ejbFindByReturnValue(java.lang.String param0) throws javax.ejb.FinderException
if(__WL_debugLogger.isDebugEnabled()) {
__WL_debug("called findByReturnValue");
java.sql.Connection __WL_con = null;
java.sql.PreparedStatement __WL_stmt = null;
java.sql.ResultSet __WL_rs = null;
int __WL_offset = 0;
__WL_pm.flushModifiedBeans();
int updateLockType = __WL_pm.getUpdateLockType();
java.lang.String __WL_query = null;
switch(updateLockType) {
case DDConstants.UPDATE_LOCK_AS_GENERATED:
__WL_query = "SELECT WL0.JOB_ID, WL0.COMPONENT_ID, WL0.HOSTNAME, WL0.LAST_EVENT, WL0.MESSAGE, WL0.PARAMETER, WL0.PARENT_JOB_ID, WL0.PID, WL0.PROGRESS, WL0.RETURN_VALUE, WL0.STATUS FROM JOB_QUEUE WL0 WHERE ( WL0.RETURN_VALUE = ? ) FOR UPDATE ";
break;
case DDConstants.UPDATE_LOCK_TX_LEVEL:
__WL_query = "SELECT WL0.JOB_ID, WL0.COMPONENT_ID, WL0.HOSTNAME, WL0.LAST_EVENT, WL0.MESSAGE, WL0.PARAMETER, WL0.PARENT_JOB_ID, WL0.PID, WL0.PROGRESS, WL0.RETURN_VALUE, WL0.STATUS FROM JOB_QUEUE WL0 WHERE ( WL0.RETURN_VALUE = ? ) FOR UPDATE ";
break;
case DDConstants.UPDATE_LOCK_TX_LEVEL_NO_WAIT:
__WL_query = "SELECT WL0.JOB_ID, WL0.COMPONENT_ID, WL0.HOSTNAME, WL0.LAST_EVENT, WL0.MESSAGE, WL0.PARAMETER, WL0.PARENT_JOB_ID, WL0.PID, WL0.PROGRESS, WL0.RETURN_VALUE, WL0.STATUS FROM JOB_QUEUE WL0 WHERE ( WL0.RETURN_VALUE = ? ) FOR UPDATE NOWAIT ";
break;
case DDConstants.UPDATE_LOCK_NONE:
__WL_query = "SELECT DISTINCT WL0.JOB_ID, WL0.COMPONENT_ID, WL0.HOSTNAME, WL0.LAST_EVENT, WL0.MESSAGE, WL0.PARAMETER, WL0.PARENT_JOB_ID, WL0.PID, WL0.PROGRESS, WL0.RETURN_VALUE, WL0.STATUS FROM JOB_QUEUE WL0 WHERE ( WL0.RETURN_VALUE = ? )";
break;
default:
throw new AssertionError(
"Unknown update lock type: '"+updateLockType+"'");
if(__WL_debugLogger.isDebugEnabled()) {
__WL_debug("Finder produced statement string " + __WL_query);
try {
__WL_con = __WL_pm.getConnection();
catch (java.lang.Exception e) {
__WL_pm.releaseResources(__WL_con, __WL_stmt, __WL_rs);
throw new javax.ejb.FinderException("Couldn't get connection: " + EOL +
e.toString() + EOL +
RDBMSUtils.throwable2StackTrace(e));
try {
__WL_stmt = __WL_con.prepareStatement(__WL_query);
// preparedStatementParamIndex reset.
if (param0 == null) {
__WL_stmt.setNull(1,java.sql.Types.VARCHAR);
} else {
__WL_stmt.setString(1, param0);
if (__WL_debugLogger.isDebugEnabled()) {
__WL_debug("paramIdx :"+1+" binded with value :"+param0);
__WL_rs = __WL_stmt.executeQuery();
catch (java.lang.Exception e) {
__WL_pm.releaseResources(__WL_con, __WL_stmt, __WL_rs);
throw new javax.ejb.FinderException(
"Exception in findByReturnValue while preparing or executing " +
"query: '" +
__WL_query + "': " + EOL +
"statement: '" + __WL_stmt + "'" + EOL +
e.toString() + EOL +
RDBMSUtils.throwable2StackTrace(e));
try {
java.util.Collection __WL_collection = new java.util.ArrayList();
com.quickplay.mmp.ingestionservices.ejb.JobQueue_r6lr5u__WebLogic_CMP_RDBMS __WL_bean = null;
Object __WL_eo = null;
Object __WL_eo_rc = null;
Map __WL_pkMap = new HashMap();
while (__WL_rs.next()) {
Integer __WL_offsetIntObj = new Integer(0);
Object __WL_pk = __WL_getPKFromRS(__WL_rs, __WL_offsetIntObj, __WL_classLoader);
__WL_eo = null;
if (__WL_pk != null) {
if (!__WL_pkMap.containsKey(__WL_pk))) {
RSInfo __WL_rsInfo = new RSInfoImpl(__WL_rs, 0, 0, __WL_pk);
__WL_bean = (com.quickplay.mmp.ingestionservices.ejb.JobQueue_r6lr5u__WebLogic_CMP_RDBMS)__WL_pm.getBeanFromRS(__WL_pk, __WL_rsInfo);
__WL_eo = __WL_pm.finderGetEoFromBeanOrPk(__WL_bean, __WL_pk, __WL_getIsLocal());
if (__WL_debugLogger.isDebugEnabled()) __WL_debug("bean after finder load: " + ((__WL_bean == null) ? "null" : __WL_bean.hashCode()));
if( __WL_bean == null || ( __WL_bean != null && !__WL_bean.__WL_getIsRemoved()))
__WL_collection.add(__WL_eo);
Object __WL_retVal = __WL_pkMap.put(__WL_pk, __WL_bean);
} else {
if (__WL_pm.isFindersReturnNulls()) {
__WL_collection.add(null);
return __WL_collection;
} catch (java.sql.SQLException sqle) {
throw new javax.ejb.FinderException(
"Exception in 'findByReturnValue' while using " +
"result set: '" + __WL_rs + "'" + EOL +
sqle.toString() + EOL +
RDBMSUtils.throwable2StackTrace(sqle));
} catch (java.lang.Exception e) {
throw new javax.ejb.FinderException(
"Exception executing finder 'findByReturnValue': " + EOL +
e.toString() + EOL +
RDBMSUtils.throwable2StackTrace(e));
} finally {
__WL_pm.releaseResources(__WL_con, __WL_stmt, __WL_rs);
}Dreamweaver will not produce such a mess when using column names which comply with the MySQL Naming Conventions and don´t contain (often quite problematic) hyphen characters.
That said, you´ll be on the safe side when renaming your columns by using underscores instead, example:
about_p3_img
Several other web developers have told me that they entirely abandoned DW CS* series and moved on to other IDE's rather than try to fix the problem.
Dreamweaver is certainly not a "perfect" PHP development IDE, but other IDEs (I use Komodo or Aptana at times and like them a lot...) aren´t perfect either. This may seem strange, but IMO Dreamweaver did do the - sort of - right thing by not letting the user get away with using such problematic characters, and that´s what those other IDEs I work with regretfully don´t pay attention to. -
Getting syntax error when i using INSERT command
Hi,
i am using MS Access DB. Table name is "Timesheet". the table has the following Fields,
uname - Text
date - Text
intime - Text
outtime - Text
duration - Text
desc - Text
i am using preparedStatment,
String accessDBURLPrefix = "jdbc:odbc:Driver={Microsoft Access Driver (*.mdb)};DBQ=";
String accessDBURLSuffix = ";DriverID=22;READONLY=false}";
String filename="D:\\TimeSheet\\TimeDB.mdb"
String databaseURL = accessDBURLPrefix + filename + accessDBURLSuffix;
Connection con = DriverManager.getConnection(databaseURL);
PreparedStatment st = con.prepareStatement("INSERT INTO (uname, date, intime) TimeSheet VALUES (?,?,?)");
st.setString(1,user);
st.setString(2,date);
st.setString(3,intime);
st.executeUpdate();
}if i am going to compile this code i will get SQLException
java.sql.SQLException: [Microsoft][ODBC Microsoft Access Driver] Syntax error in INSERT INTO statement.
at sun.jdbc.odbc.JdbcOdbc.createSQLException(JdbcOdbc.java:6958)
at sun.jdbc.odbc.JdbcOdbc.standardError(JdbcOdbc.java:7115)
at sun.jdbc.odbc.JdbcOdbc.SQLExecute(JdbcOdbc.java:3150)
at sun.jdbc.odbc.JdbcOdbcPreparedStatement.execute(JdbcOdbcPreparedStatement.java:214)
at sun.jdbc.odbc.JdbcOdbcPreparedStatement.executeUpdate(JdbcOdbcPreparedStatement.java:136)
at TimeSheetDemo.writeToDB(TimeSheetDemo.java:84)
at TimeSheetDemo.main(TimeSheetDemo.java:37)
Really i have tired to figure out this problem. please help me anyone.
thank youThank you. it was my careless mistake. i changed that mistake. but still it is not working, get same exception.
st = con.prepareStatement("INSERT INTO TimeSheet (uname, date, intime) VALUES (?,?,?)");suppose, if i will give values for all fields, it will work fine, example
st = con.prepareStatement("INSERT INTO TimeSheet VALUES (?,?,?,?,?,?)");
st.setString(1,user);
st.setString(2,date);
st.setString(3,intime);
st.setString(4,outtime);
st.setString(5,duration);
st.setString(6,descrip);
st.executeUpdate();But my problem is i want to insert the values for only 3 fields.
give me the solution for inserting values for specified fields
Maybe you are looking for
-
Quick Functions, export to Excel and variable screen pop up do not function
We have put the following in place in our environment. http://help.sap.com/saphelp_nw70/helpdata/en/45/2f76471ca96d7be10000000a114a6b/content.htm Integrating into an SAP NetWeaver 2004 Portal (SAP EP 6.0). The creation of the iview using the SAP BW R
-
I am new to MAC. I need to install iWork 9 on my MacPro instead of 6. It shows legal message! Should I purchase iWork 9?
-
System Preferences Sporadically and Unilaterally Change
I find that my system preferences sometimes change unilaterally. I have seen isolated posts on the discussion boards about specific preference settings being lost, but I think there is a general problem somewhere. Perhaps with corrupted preference fi
-
Best cooling pad for Macbook pro 15" with retina (2013)?
Hi, I have a Macbook pro 15" with retina display, bought in 2013 and I started playing Starcraft on the machine. It becomes extremely hot, almost unbearable to touch and after searching online, I've been told that overheating of macs is relatively co
-
imported because it does not appear to be a valid exported file". This relates to track 09cda and always seems to be with track 09. What the heck is up with this? Anyone got experience with this and, better yet, a solution?