Strange BEPLC compile error
Hello,
I am getting the following error when I attempt to compile a newly created BPEL process using version 10.0.1.2.:
[bpelc] file:/C:/Java/cmsynergy/mmiller/ekc/Esmee~mmiller/Esmee/esmee-process/ESMEE_OrderStatus/ESMEE_OrderStatus.ws
dl
[bpelc] file:/C:/Java/cmsynergy/mmiller/ekc/Esmee~mmiller/Esmee/esmee-process/ESMEE_OrderStatus/OrderDB.wsdl
[bpelc] file:/C:/Java/cmsynergy/mmiller/ekc/Esmee~mmiller/Esmee/esmee-process/ESMEE_OrderStatus/Orderstatus_table.xs
d
[bpelc] [Error] ESMEE_OrderStatus.wsdl:6:79: s4s-elt-schema-ns: The namespace of element 'definitions' must be from
the schema namespace, 'http://www.w3.org/2001/XMLSchema'.
[bpelc] [Error] ESMEE_OrderStatus.wsdl:6:79: s4s-elt-invalid: Element 'definitions' is not a valid element in a sche
ma document.
[bpelc] [Error] ESMEE_OrderStatus.wsdl:6:79: src-include.1: The root element of document 'file:/C:/Java/cmsynergy/mm
iller/ekc/Esmee%7Emmiller/Esmee/esmee-process/ESMEE_OrderStatus/ESMEE_OrderStatus.wsdl' has to have the namespace name '
http://www.w3.org/2001/XMLSchema' and the local name 'schema'.
[bpelc] [Error] OrderDB.wsdl:10:46: s4s-elt-schema-ns: The namespace of element 'definitions' must be from the schem
a namespace, 'http://www.w3.org/2001/XMLSchema'.
[bpelc] [Error] OrderDB.wsdl:10:46: s4s-elt-invalid: Element 'definitions' is not a valid element in a schema docume
nt.
[bpelc] [Error] OrderDB.wsdl:10:46: src-include.1: The root element of document 'file:/C:/Java/cmsynergy/mmiller/ekc
/Esmee%7Emmiller/Esmee/esmee-process/ESMEE_OrderStatus/OrderDB.wsdl' has to have the namespace name 'http://www.w3.org/2
001/XMLSchema' and the local name 'schema'.
[bpelc] BPEL validation failed.
[bpelc] BPEL source validation failed, the errors are:
[bpelc]
[bpelc] [Error ORABPEL-10902]: compilation failed
[bpelc] [Description]: in "bpel.xml", XML parsing failed because "undefined part element.
[bpelc] In WSDL at "file:/C:/Java/cmsynergy/mmiller/ekc/Esmee~mmiller/Esmee/esmee-process/ESMEE_OrderStatus/ESMEE_Or
derStatus.wsdl", message part element "{http://esmee.ekc.nl/model}ESMEE_OrderStatusProcessResponse" is not defined in an
y of the schemas.
[bpelc] Please make sure the spelling of the element QName is correct and the WSDL import is complete.
The error started appearing in one of my other projects for no apparent reason. I created a new project and started adding things to it and recompiling until the same error started to appear. The change that seems to cause the problem is the addition of a database adapter partnerlink. This caused the adtiion of the 'OrderDB.wsdl' and the error started to appear.
My previous project had been compiling, deploying and running and I did NOT change anything in the project. So I presume the error is caused by some change in my environment, but I can't think what it might be.
If I validate the wsdl files using JDeveloper, the ESMEE_OrderStatus.wsdl reports NO errors, but the OrderDB.wsdl reports:
Validating C:\Java\cmsynergy\mmiller\ekc\Esmee~mmiller\Esmee\esmee-process\ESMEE_OrderStatus\OrderDB.wsdl
Schema element not found: QName(http://xmlns.oracle.com/pcbpel/adapter/db/top/ESMEEOrderStatus, OrderDBSelect_idInputParameters)
Validate WSDL: has errors.
Here is the contents of the Order.wsdl (all generated by JDeveloper):
<?xml version="1.0" encoding="UTF-8"?>
<definitions
name="OrderDB"
targetNamespace="http://xmlns.oracle.com/pcbpel/adapter/db/OrderDB/"
xmlns:tns="http://xmlns.oracle.com/pcbpel/adapter/db/OrderDB/"
xmlns:plt="http://schemas.xmlsoap.org/ws/2003/05/partner-link/"
xmlns:jca="http://xmlns.oracle.com/pcbpel/wsdl/jca/"
xmlns:pc="http://xmlns.oracle.com/pcbpel/"
xmlns:top="http://xmlns.oracle.com/pcbpel/adapter/db/top/ESMEEOrderStatus"
xmlns="http://schemas.xmlsoap.org/wsdl/">
<types>
<schema xmlns="http://www.w3.org/2001/XMLSchema">
<import namespace="http://xmlns.oracle.com/pcbpel/adapter/db/top/ESMEEOrderStatus"
schemaLocation="Orderstatus_table.xsd"/>
</schema>
</types>
<message name="OrderstatusCollection_msg">
<part name="OrderstatusCollection" element="top:OrderstatusCollection"/>
</message>
<message name="OrderDBSelect_id_inparameters">
<part name="OrderDBSelect_id_inparameters" element="top:OrderDBSelect_idInputParameters"/>
</message>
<message name="Orderstatus_msg">
<part name="Orderstatus" element="top:Orderstatus"/>
</message>
<portType name="OrderDB_ptt">
<operation name="merge">
<input message="tns:OrderstatusCollection_msg"/>
</operation>
<operation name="insert">
<input message="tns:OrderstatusCollection_msg"/>
</operation>
<operation name="update">
<input message="tns:OrderstatusCollection_msg"/>
</operation>
<operation name="write">
<input message="tns:OrderstatusCollection_msg"/>
</operation>
<operation name="delete">
<input message="tns:OrderstatusCollection_msg"/>
</operation>
<operation name="OrderDBSelect_id">
<input message="tns:OrderDBSelect_id_inparameters"/>
<output message="tns:OrderstatusCollection_msg"/>
</operation>
<operation name="queryByExample">
<input message="tns:Orderstatus_msg"/>
<output message="tns:OrderstatusCollection_msg"/>
</operation>
</portType>
<binding name="OrderDB_binding" type="tns:OrderDB_ptt">
<jca:binding />
<operation name="merge">
<jca:operation
InteractionSpec="oracle.tip.adapter.db.DBWriteInteractionSpec"
DescriptorName="ESMEEOrderStatus.Orderstatus"
DmlType="merge"
MappingsMetaDataURL="toplink_mappings.xml" />
<input/>
</operation>
<operation name="insert">
<jca:operation
InteractionSpec="oracle.tip.adapter.db.DBWriteInteractionSpec"
DescriptorName="ESMEEOrderStatus.Orderstatus"
DmlType="insert"
MappingsMetaDataURL="toplink_mappings.xml" />
<input/>
</operation>
<operation name="update">
<jca:operation
InteractionSpec="oracle.tip.adapter.db.DBWriteInteractionSpec"
DescriptorName="ESMEEOrderStatus.Orderstatus"
DmlType="update"
MappingsMetaDataURL="toplink_mappings.xml" />
<input/>
</operation>
<operation name="write">
<jca:operation
InteractionSpec="oracle.tip.adapter.db.DBWriteInteractionSpec"
DescriptorName="ESMEEOrderStatus.Orderstatus"
DmlType="write"
MappingsMetaDataURL="toplink_mappings.xml" />
<input/>
</operation>
<operation name="delete">
<jca:operation
InteractionSpec="oracle.tip.adapter.db.DBWriteInteractionSpec"
DescriptorName="ESMEEOrderStatus.Orderstatus"
DmlType="delete"
MappingsMetaDataURL="toplink_mappings.xml" />
<input/>
</operation>
<operation name="OrderDBSelect_id">
<jca:operation
InteractionSpec="oracle.tip.adapter.db.DBReadInteractionSpec"
DescriptorName="ESMEEOrderStatus.Orderstatus"
QueryName="OrderDBSelect"
MappingsMetaDataURL="toplink_mappings.xml" />
<input/>
</operation>
<operation name="queryByExample">
<jca:operation
InteractionSpec="oracle.tip.adapter.db.DBReadInteractionSpec"
DescriptorName="ESMEEOrderStatus.Orderstatus"
IsQueryByExample="true"
MappingsMetaDataURL="toplink_mappings.xml" />
<input/>
</operation>
</binding>
<!-- Your runtime connection is declared in
J2EE_HOME/application-deployments/default/DbAdapter/oc4j-ra.xml
These 'mcf' properties here are from your design time connection and
save you from having to edit that file and restart the application server
if ESMEEDataSource is missing.
These 'mcf' properties are safe to remove.
-->
<service name="OrderDB">
<port name="OrderDB_pt" binding="tns:OrderDB_binding">
<jca:address location="ESMEEDataSource"
UIConnectionName="ESMEEDataSource"
ManagedConnectionFactory="oracle.tip.adapter.db.DBManagedConnectionFactory"
mcf.DriverClassName="oracle.jdbc.driver.OracleDriver"
mcf.PlatformClassName="oracle.toplink.oraclespecific.Oracle9Platform"
mcf.ConnectionString="jdbc:oracle:thin:@ossdbd1:2832:cuross"
mcf.UserName="esmee"
mcf.Password="7D46CB284877A72CC1E112510894EA90DE2D591D9362080D"
/>
</port>
</service>
<plt:partnerLinkType name="OrderDB_plt" >
<plt:role name="OrderDB_role" >
<plt:portType name="tns:OrderDB_ptt" />
</plt:role>
</plt:partnerLinkType>
</definitions>
I've been staring at this for two days and I still got no clue:(
As you mentoined:
"I am getting the following error when I attempt to compile a newly created BPEL process using version 10.0.1.2."
Is it possible to close all windows in JDev, stop and start JDeveloper and create a new process? A create a new partner-link to access the database adapater?
BTW: if you created a PL for the DBadapater, it is not possible to re-enter the DB wizard. It will mess up the toplink/bpel configuration
Similar Messages
-
I was just compiling a project and I got the following
strange new error written to c:\.err.
Friday, April 25, 2008 17:08:13
HHA Version 4.74.8702
htmlproc.cpp(114) : Assertion failure: (pszTmp ==
m_pCompiler->m_pHtmlMem->psz)
The only 'major' change made to the project was an update to
the existing Index, and deletion of a number of spurious entries
therein.
What is this error and what can I do about it?
Any Advice?Just got this error again:
Monday, May 05, 2008 11:25:23
HHA Version 4.74.8702
htmlproc.cpp(114) : Assertion failure: (pszTmp ==
m_pCompiler->m_pHtmlMem->psz)
Strangely, I have not increased the size of the index since
the last successful compile.
I am curious as to what other aspects of this
formerly-successfully-compiled-project may lead to this error.
Vivek, could you please provide any insight? Thank
you. -
Hi All ,
I am trying to compile the java classes with the ant build script .
Java code where I am getting error is :
while (rs.next()) {
System.out.println("rs.getInt(1): "+rs.getInt(1));
tmpSortedMap.add(rs.getInt(1));
tmpSortedMap is TreeSet .
When I run the build.xml , I am getting following error :
:1130: cannot find symbol
[javac] symbol : method add(int)
[javac] location: class java.util.TreeSet
[javac] tmpSortedMap.add(rs.getInt(1));
But when I run the same application without using ant , it compiles fine .Can anyone please tell me whats going on with ant .sam_123 wrote:
but when I write a sample class with TreeSet and store an integer value and compile it without using ant , it compiles without any error .Is it possible.Don't repeat yourself when you're under stress; as already suggested: your ant script probably uses a Java 1.4 compiler; in order to compile your code you neede a later version >= 1.5
kind regards,
Jos -
Strange running and compiling errors on some apps.
Hey,
I recently installed Archlinux 08.2012 (20 days ago aprox.), everything was going perfectly since yesterday.
I guess that the problem started during the AUR installation of Cinnamon which showed me a strange and undocumented error, during the "make" process. I believe that the error is undocumented because I do not found any post or information about it. Here you have the error which is the same of AUR:
[albert@(none) linuxmint-muffin]$ make
make all-recursive
make[1]: Entering directory `/home/albert/Baixades/linuxmint-muffin'
Making all in src
make[2]: Entering directory `/home/albert/Baixades/linuxmint-muffin/src'
make all-recursive
make[3]: Entering directory `/home/albert/Baixades/linuxmint-muffin/src'
Making all in wm-tester
make[4]: Entering directory `/home/albert/Baixades/linuxmint-muffin/src/wm-tester'
make[4]: Nothing to be done for `all'.
make[4]: Leaving directory `/home/albert/Baixades/linuxmint-muffin/src/wm-tester'
Making all in tools
make[4]: Entering directory `/home/albert/Baixades/linuxmint-muffin/src/tools'
make[4]: Nothing to be done for `all'.
make[4]: Leaving directory `/home/albert/Baixades/linuxmint-muffin/src/tools'
Making all in compositor/plugins
make[4]: Entering directory `/home/albert/Baixades/linuxmint-muffin/src/compositor/plugins'
make[4]: Nothing to be done for `all'.
make[4]: Leaving directory `/home/albert/Baixades/linuxmint-muffin/src/compositor/plugins'
make[4]: Entering directory `/home/albert/Baixades/linuxmint-muffin/src'
GISCAN Meta-3.0.gir
/usr/bin/g-ir-scanner: line 26: __builtin__.__dict__[DATADIR]: command not found
/usr/bin/g-ir-scanner: line 29: syntax error near unexpected token `('
/usr/bin/g-ir-scanner: line 29: ` def on_exception(exctype, value, tb):'
make[4]: *** [Meta-3.0.gir] Error 2
make[4]: Leaving directory `/home/albert/Baixades/linuxmint-muffin/src'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/home/albert/Baixades/linuxmint-muffin/src'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/home/albert/Baixades/linuxmint-muffin/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/albert/Baixades/linuxmint-muffin'
make: *** [all] Error 2
When the error appears my default mouse pointer disappears and is replaced by a cross. If I do not make 3 mouse clicks the compilation progress does not go and never shows the error. It remains waiting for my 3 clicks showing me on the prompt
GISCAN Meta-3.0.gir
As I saw that the error was related to g-ir-scanner I tried to run it:
[albert@(none) ~]$ g-ir-scanner
import: unable to grab mouse `': Resource temporarily unavailable @ error/xwindow.c/XSelectWindow/9047.
/usr/bin/g-ir-scanner: line 26: __builtin__.__dict__[DATADIR]: command not found
/usr/bin/g-ir-scanner: line 29: syntax error near unexpected token `('
/usr/bin/g-ir-scanner: line 29: ` def on_exception(exctype, value, tb):'
[albert@(none) ~]$
And then the mouse pointer's strange cross appeared again with the same symptomes than the last issue.
But the problem does not finish here. This evening I installed the Openshot software and when I tried to run it, the strange cross appeared again.
And the prompt log out is:
[albert@(none) ~]$ openshot
/usr/bin/openshot: line 24: syntax error near unexpected token `('
/usr/bin/openshot: line 24: `realfile = os.path.realpath(__file__)'
[albert@(none) ~]$
I really don't know what kind of problem I have, but It always repeat
/usr/bin/X: line XX: syntax error near unexpected token `('
I hope that someone will know how to help me.
Thank you for your time.
Wamest regars.
Last edited by acasnaovas (2012-08-28 21:47:40)Waoo, I reinstalled the packages (pacman -Sf python python2 gobject-introspection) and the openshot works and pitivi to, there is no more strange cross and errors, well just one always after Pacman finishes :
ldconfig: el fitxer «/lib/libakonadi-filestore.so» is empty, no es comprova
ldconfig: el fitxer «/lib/libprison.so» és buit, no es comprova
ldconfig: el fitxer «/lib/libkdepim-copy.so.4.9.0» és buit, no es comprova
ldconfig: el fitxer «/lib/libkresources.so.4.8.0» és buit, no es comprova
ldconfig: el fitxer «/lib/libgpgme++.so» és buit, no es comprova
ldconfig: el fitxer «/lib/libakonadiprotocolinternals.so.1» és buit, no es comprova
ldconfig: el fitxer «/lib/libakonadi-kcal.so.4» és buit, no es comprova
ldconfig: el fitxer «/lib/libkxmlrpcclient.so.4.8.0» és buit, no es comprova
ldconfig: el fitxer «/lib/libakonadi-kmime.so» és buit, no es comprova
ldconfig: el fitxer «/lib/libqrencode.so.3» és buit, no es comprova
ldconfig: el fitxer «/lib/libqgpgme.so.1.0.1» és buit, no es comprova
ldconfig: el fitxer «/lib/libgpgme++-pthread.so.2» és buit, no es comprova
ldconfig: el fitxer «/lib/libakonadi-calendar.so.4.8.0» és buit, no es comprova
ldconfig: el fitxer «/lib/libgpgme++-pth.so.2» és buit, no es comprova
ldconfig: el fitxer «/lib/libkldap.so.4» és buit, no es comprova
ldconfig: el fitxer «/lib/libakonadi-kcal.so» és buit, no es comprova
ldconfig: el fitxer «/lib/libsyndication.so» és buit, no es comprova
ldconfig: el fitxer «/lib/libkpimutils.so.4» és buit, no es comprova
ldconfig: el fitxer «/lib/libprison.so.0.0.0» és buit, no es comprova
ldconfig: el fitxer «/lib/libkdepim-copy.so.4» és buit, no es comprova
ldconfig: el fitxer «/lib/libkimap.so.4» és buit, no es comprova
ldconfig: el fitxer «/lib/libmaildir.so» és buit, no es comprova
ldconfig: el fitxer «/lib/libakonadi-kmime.so.4.8.0» és buit, no es comprova
ldconfig: el fitxer «/lib/libkmindexreader.so.4.9.0» és buit, no es comprova
ldconfig: el fitxer «/lib/libsensors.so» és buit, no es comprova
ldconfig: el fitxer «/lib/libakonadi-kde.so.4» és buit, no es comprova
ldconfig: el fitxer «/lib/libkblog.so» és buit, no es comprova
ldconfig: el fitxer «/lib/libkpimutils.so.4.8.0» és buit, no es comprova
ldconfig: el fitxer «/lib/libakonadi-contact.so.4.8.0» és buit, no es comprova
ldconfig: el fitxer «/lib/libgpgme++-pth.so» és buit, no es comprova
ldconfig: el fitxer «/lib/libkmbox.so» és buit, no es comprova
ldconfig: el fitxer «/lib/libkholidays.so.4» és buit, no es comprova
ldconfig: el fitxer «/lib/libkontactinterface.so.4» és buit, no es comprova
ldconfig: el fitxer «/lib/libkmime.so» és buit, no es comprova
ldconfig: el fitxer «/lib/libqalculate.so» és buit, no es comprova
ldconfig: el fitxer «/lib/libakonadi-contact.so» és buit, no es comprova
ldconfig: el fitxer «/lib/libgpgme++.so.2.8.0» és buit, no es comprova
ldconfig: el fitxer «/lib/libakonadi-kabc.so.4.8.0» és buit, no es comprova
ldconfig: el fitxer «/lib/libakonadi-calendar.so.4» és buit, no es comprova
ldconfig: el fitxer «/lib/libqjson.so.0.7.1» és buit, no es comprova
ldconfig: el fitxer «/lib/libqgpgme.so.1» és buit, no es comprova
ldconfig: el fitxer «/lib/libdmtx.so» és buit, no es comprova
ldconfig: el fitxer «/lib/libdmtx.so.0.0.0» és buit, no es comprova
ldconfig: el fitxer «/lib/libkcal.so.4.8.0» és buit, no es comprova
ldconfig: el fitxer «/lib/libGLESv2.so.2» és buit, no es comprova
ldconfig: el fitxer «/lib/libGLESv1_CM.so.1.1.0» és buit, no es comprova
ldconfig: el fitxer «/lib/libakonadiprotocolinternals.so» és buit, no es comprova
ldconfig: el fitxer «/lib/libkdepim-copy.so» és buit, no es comprova
ldconfig: el fitxer «/lib/libkmbox.so.4.8.0» és buit, no es comprova
ldconfig: el fitxer «/lib/libkdepim-runtime-dms-copy.so» és buit, no es comprova
ldconfig: el fitxer «/lib/libkmindexreader.so.4» és buit, no es comprova
ldconfig: el fitxer «/lib/libmaildir.so.4» és buit, no es comprova
ldconfig: el fitxer «/lib/libcln.so.6» és buit, no es comprova
ldconfig: el fitxer «/lib/libkgapi.so.0.4.1» és buit, no es comprova
ldconfig: el fitxer «/lib/libkalarmcal.so.2» és buit, no es comprova
ldconfig: el fitxer «/lib/libqscintilla2.so.8» és buit, no es comprova
ldconfig: el fitxer «/lib/libsyndication.so.4.8.0» és buit, no es comprova
ldconfig: el fitxer «/lib/libkalarmcal.so» és buit, no es comprova
ldconfig: el fitxer «/lib/libmailtransport.so.4» és buit, no es comprova
ldconfig: el fitxer «/lib/libqscintilla2.so.8.0» és buit, no es comprova
ldconfig: el fitxer «/lib/libakonadi-kde.so.4.8.0» és buit, no es comprova
ldconfig: el fitxer «/lib/libakonadi-kmime.so.4» és buit, no es comprova
ldconfig: el fitxer «/lib/libkblog.so.4» és buit, no es comprova
ldconfig: el fitxer «/lib/libmicroblog.so.4» és buit, no es comprova
ldconfig: el fitxer «/lib/libakonadi-kcal.so.4.8.0» és buit, no es comprova
ldconfig: el fitxer «/lib/libqrencode.so» és buit, no es comprova
ldconfig: el fitxer «/lib/libkcalcore.so.4» és buit, no es comprova
ldconfig: el fitxer «/lib/libkabc_file_core.so.4» és buit, no es comprova
ldconfig: el fitxer «/lib/libakonadi-kabc.so» és buit, no es comprova
ldconfig: el fitxer «/lib/libmicroblog.so» és buit, no es comprova
ldconfig: el fitxer «/lib/libkmindexreader.so» és buit, no es comprova
ldconfig: el fitxer «/lib/libgpgme++-pth.so.2.8.0» és buit, no es comprova
ldconfig: el fitxer «/lib/libktnef.so.4» és buit, no es comprova
ldconfig: el fitxer «/lib/libkpimidentities.so» és buit, no es comprova
ldconfig: el fitxer «/lib/libkabc_file_core.so» és buit, no es comprova
ldconfig: el fitxer «/lib/libkmbox.so.4» és buit, no es comprova
ldconfig: el fitxer «/lib/libGLESv2.so.2.0.0» és buit, no es comprova
ldconfig: el fitxer «/lib/libkcal.so» és buit, no es comprova
ldconfig: el fitxer «/lib/libqimageblitz.so.4» és buit, no es comprova
ldconfig: el fitxer «/lib/libkpimtextedit.so.4.8.0» és buit, no es comprova
ldconfig: el fitxer «/lib/libkalarmcal.so.2.7.0» és buit, no es comprova
ldconfig: el fitxer «/lib/libakonadi-xml.so» és buit, no es comprova
ldconfig: el fitxer «/lib/libqscintilla2.so.8.0.2» és buit, no es comprova
ldconfig: el fitxer «/lib/libkcalcore.so.4.8.0» és buit, no es comprova
ldconfig: el fitxer «/lib/libqimageblitz.so.4.0.0» és buit, no es comprova
ldconfig: el fitxer «/lib/libqjson.so.0» és buit, no es comprova
ldconfig: el fitxer «/lib/libakonadi-xml.so.4.9.0» és buit, no es comprova
ldconfig: el fitxer «/lib/libakonadi-notes.so.4.8.0» és buit, no es comprova
ldconfig: el fitxer «/lib/libkholidays.so.4.8.0» és buit, no es comprova
ldconfig: el fitxer «/lib/libmailtransport.so.4.8.0» és buit, no es comprova
ldconfig: el fitxer «/lib/libkldap.so» és buit, no es comprova
ldconfig: el fitxer «/lib/libkontactinterface.so.4.8.0» és buit, no es comprova
ldconfig: el fitxer «/lib/libdmtx.so.0» és buit, no es comprova
ldconfig: el fitxer «/lib/libgpgme++-pthread.so.2.8.0» és buit, no es comprova
ldconfig: el fitxer «/lib/libkblog.so.4.8.0» és buit, no es comprova
ldconfig: el fitxer «/lib/libsyndication.so.4» és buit, no es comprova
ldconfig: el fitxer «/lib/libkxmlrpcclient.so.4» és buit, no es comprova
ldconfig: el fitxer «/lib/libkholidays.so» és buit, no es comprova
ldconfig: el fitxer «/lib/libgpgme++.so.2» és buit, no es comprova
ldconfig: el fitxer «/lib/libqrencode.so.3.3.1» és buit, no es comprova
ldconfig: el fitxer «/lib/libqjson.so» és buit, no es comprova
ldconfig: el fitxer «/lib/libakonadi-kde.so» és buit, no es comprova
ldconfig: el fitxer «/lib/libGLESv1_CM.so» és buit, no es comprova
ldconfig: el fitxer «/lib/libktnef.so» és buit, no es comprova
ldconfig: el fitxer «/lib/libkimap.so» és buit, no es comprova
ldconfig: el fitxer «/lib/libakonadi-kabc.so.4» és buit, no es comprova
ldconfig: el fitxer «/lib/libsensors.so.4» és buit, no es comprova
ldconfig: el fitxer «/lib/libkpimutils.so» és buit, no es comprova
ldconfig: el fitxer «/lib/libkcal.so.4» és buit, no es comprova
ldconfig: el fitxer «/lib/libkpimtextedit.so.4» és buit, no es comprova
ldconfig: el fitxer «/lib/libakonadi-filestore.so.4.9.0» és buit, no es comprova
ldconfig: el fitxer «/lib/libcln.so.6.0.2» és buit, no es comprova
ldconfig: el fitxer «/lib/libkpimtextedit.so» és buit, no es comprova
ldconfig: el fitxer «/lib/libkxmlrpcclient.so» és buit, no es comprova
ldconfig: el fitxer «/lib/libmicroblog.so.4.8.0» és buit, no es comprova
ldconfig: el fitxer «/lib/libmailtransport.so» és buit, no es comprova
ldconfig: el fitxer «/lib/libkcalcore.so» és buit, no es comprova
ldconfig: el fitxer «/lib/libakonadiprotocolinternals.so.1.8.0» és buit, no es comprova
ldconfig: el fitxer «/lib/libgpgme++-pthread.so» és buit, no es comprova
ldconfig: el fitxer «/lib/libkabc.so» és buit, no es comprova
ldconfig: el fitxer «/lib/libkpimidentities.so.4.8.0» és buit, no es comprova
ldconfig: el fitxer «/lib/libakonadi-filestore.so.4» és buit, no es comprova
ldconfig: el fitxer «/lib/libkldap.so.4.8.0» és buit, no es comprova
ldconfig: el fitxer «/lib/libakonadi-notes.so.4» és buit, no es comprova
ldconfig: el fitxer «/lib/libkcalutils.so.4.8.0» és buit, no es comprova
ldconfig: el fitxer «/lib/libkmime.so.4» és buit, no es comprova
ldconfig: el fitxer «/lib/libakonadi-contact.so.4» és buit, no es comprova
ldconfig: el fitxer «/lib/libprison.so.0» és buit, no es comprova
ldconfig: el fitxer «/lib/libkcalutils.so.4» és buit, no es comprova
ldconfig: el fitxer «/lib/libkontactinterface.so» és buit, no es comprova
ldconfig: el fitxer «/lib/libsensors.so.4.3.2» és buit, no es comprova
ldconfig: el fitxer «/lib/libkpimidentities.so.4» és buit, no es comprova
ldconfig: el fitxer «/lib/libktnef.so.4.8.0» és buit, no es comprova
ldconfig: el fitxer «/lib/libqalculate.so.5» és buit, no es comprova
ldconfig: el fitxer «/lib/libkabc.so.4» és buit, no es comprova
ldconfig: el fitxer «/lib/libmaildir.so.4.9.0» és buit, no es comprova
ldconfig: el fitxer «/lib/libakonadi-xml.so.4» és buit, no es comprova
ldconfig: el fitxer «/lib/libkcalutils.so» és buit, no es comprova
ldconfig: el fitxer «/lib/libkabc_file_core.so.4.8.0» és buit, no es comprova
ldconfig: el fitxer «/lib/libkabc.so.4.8.0» és buit, no es comprova
ldconfig: el fitxer «/lib/libqimageblitz.so» és buit, no es comprova
ldconfig: el fitxer «/lib/libkresources.so» és buit, no es comprova
ldconfig: el fitxer «/lib/libqgpgme.so» és buit, no es comprova
ldconfig: el fitxer «/lib/libkmime.so.4.8.0» és buit, no es comprova
ldconfig: el fitxer «/lib/libGLESv1_CM.so.1» és buit, no es comprova
ldconfig: el fitxer «/lib/libqalculate.so.5.0.0» és buit, no es comprova
ldconfig: el fitxer «/lib/libkresources.so.4» és buit, no es comprova
ldconfig: el fitxer «/lib/libqscintilla2.so» és buit, no es comprova
ldconfig: el fitxer «/lib/libakonadi-calendar.so» és buit, no es comprova
ldconfig: el fitxer «/lib/libGLESv2.so» és buit, no es comprova
ldconfig: el fitxer «/lib/libcln.so» és buit, no es comprova
ldconfig: el fitxer «/lib/libakonadi-notes.so» és buit, no es comprova
ldconfig: el fitxer «/lib/libkimap.so.4.8.0» és buit, no es comprova
How I have to make the Chroot tmpfs? I will compile cinnamon into the chroot.
Thank you for everything.
WorMzy wrote:
I don't know what it is, and how I have it installed.
Nevermind, pkgfile tells me that it's part of gobject-introspection. Try reinstalling that package. You might want to reinstall python2, it shouldn't be complaining about parenthesis there.
I will try to build everything in a clean chroot. I have 8Gb of ram, so enough.
You need disk space for the chroot. Approximately 1GB per (clean) chroot (e.g. /var/lib/archbuild/extra-86_64/root), potentially up to several GB for a "dirty" chroot. RAM is only necessary if you decide to make the "dirty" chroot (/var/lib/archbuild/extra-86_64/$username) into a tmpfs. -
I know the reason is that PL/SQL is pre-compilation, so now dbVersion < '9.3.350', even if I don't need get REFDESIG_ID_SEQ.nextval ,
it will also cause this compilation error. So my question is how should I code that?
When dbVersion < '9.3.350' , no sequence REFDESIG_ID_SEQ, just print '1####';
else get REFDESIG_ID_SEQ.nextval , then print '2####'
But now even if dbVersion < '9.3.350', it will cause compilation error[ORA-02289: sequence does not exist] .
How to resolve this? Thanks a lot.
declare
maxid number;
nextid number;
agileid number;
v_date date;
dbVersion varchar(8):=0;
begin
select substr(value,1,7) into dbVersion from propertytable where parentid = 5001 and propertyid=37;
DBMS_OUTPUT.PUT_LINE(dbVersion);
if (dbVersion < '9.3.350') then
DBMS_OUTPUT.PUT_LINE('1####');
else
DBMS_OUTPUT.PUT_LINE('2####');
select REFDESIG_ID_SEQ.nextval into agileid from dual;
end if;
end;In my DB, If dbVersion < '9.3.350' , no sequence REFDESIG_ID_SEQ
When dbVersion >= '9.3.350' ,sequence REFDESIG_ID_SEQ will exist,
Now my dbVersion < '9.3.350' , and this pl/sql also cause this error.
SO how should I to resolve it ?
Now I need a test case, if dbVersion < '9.3.350' , then print '1####';
else , get REFDESIG_ID_SEQ.nextval firstly , then print '2####'
How should I code?Thanks a lot. -
Compiler error when useing switch statements in an inner class
I have defined several constants in a class and want to use this constans also in an inner class.
All the constants are defined as private static final int.
All works fine except when useing the switch statement in the inner class. I get the compiler error ""constant expression required". If I change the definition from private static final to protected static final it works, but why?
What's the difference?
Look at an example:
public class Switchtest
private static final int AA = 0;
protected static final int BB = 1;
private static int i = 0;
public Switchtest()
i = 0; // <- OK
switch(i)
case AA: break; //<- OK, funny no problem
case BB: break; //<- OK
default: break;
private class InnerClass
public InnerClass()
i = 0; // <- OK: is accessible
if (AA == i) // <- OK: AA is seen by the inner class; i is also accessible
i = AA + 1;
switch(i)
case AA: break; // <- STRANGE?! Fail: Constant expression required
case BB: break; // <- OK
default: break;
}Thank's a lot for an explanation.Just a though:
Maybe some subclass of Switchtest could decalare its own variable AA that is not final, but it can not declare its own BB because it is visible from the superclass. Therefore the compiler can not know for sure that AA is final. -
Compilation error in PL/SQL
Hi All,
Please find the strange query situation in PLSQL.
If i run the query without PLSQL block (i.e. declar begin end) it runs well and insert data
in table but if put the same query in PLSQL block it gives compilation error.
Following is the spool
SQL> select * from v$version;
BANNER
Oracle8i Enterprise Edition Release 8.1.7.4.0 - Production
PL/SQL Release 8.1.7.4.0 - Production
CORE 8.1.7.0.0 Production
TNS for IBM/AIX RISC System/6000: Version 8.1.7.4.0 - Production
NLSRTL Version 3.4.1.0.0 - Production
SQL> insert into smcbom_load_hours_temp
2 select data_set_name,deptclass,dept,smcbom_flex_budget.get_period(v_date) v_period,sum(v_hr),-1,sysdate,-1,sysdate
3 from (
4 select plan_level,sp.data_set_name,
5 sp.value1,smcbom_flex_budget.calculate_period_days(sp.period1),inweight ,
6 usagerate ,operationseq,percent,
7 sbov.group_id,sp.alloy,sp.planner_code,
8 sbov.days,sbov.totaloffsetdays,deptclass,dept,
9 decode(plan_level,1,(sp.value14/smcbom_flex_budget.calculate_period_days(sp.period14)) * (percent/100) * inweight * usagerate *
10 (SELECT MAX(INWEIGHT)
11 FROM SMCBOM_BOM_OPERATION_VIEW
12 WHERE ALLOY=sbov.alloy
13 AND PLANNER_CODE=sbov.planner_code
14 AND PLAN_LEVEL = 0
15 AND GROUP_ID = sbov.group_id ),
16 0,(sp.value14/smcbom_flex_budget.calculate_period_days(sp.period14)) * (percent/100) * inweight * usagerate ,
17 1) v_hr,
18 smcbom_flex_budget.get_start_date(sp.period14)+sbov.totaloffsetdays v_date,
19 sum(-sbov.totaloffsetdays)
20 over (partition by sp.alloy,sp.planner_code,sbov.group_id
21 order by plan_level asc,operationseq desc) new_offset
22 from smcbom_bom_operation_view sbov,smcbom_sales_prod_forecasts sp
23 where sbov.alloy= sp.alloy
24 and sbov.planner_code=sp.planner_code
25 and group_id=521136
26 )
27 group by data_set_name,deptclass,dept,smcbom_flex_budget.get_period(v_date);
23 rows created.
SQL> commit;
Commit complete.
SQL> declare
2 begin
3 insert into smcbom_load_hours_temp
4 select data_set_name,deptclass,dept,smcbom_flex_budget.get_period(v_date) v_period,sum(v_hr),-1,sysdate,-1,sysdate
5 from (
6 select plan_level,sp.data_set_name,
7 sp.value1,smcbom_flex_budget.calculate_period_days(sp.period1),inweight ,
8 usagerate ,operationseq,percent,
9 sbov.group_id,sp.alloy,sp.planner_code,
10 sbov.days,sbov.totaloffsetdays,deptclass,dept,
11 decode(plan_level,1,(sp.value14/smcbom_flex_budget.calculate_period_days(sp.period14)) * (percent/100) * inweight * usagerate *
12 (SELECT MAX(INWEIGHT)
13 FROM SMCBOM_BOM_OPERATION_VIEW
14 WHERE ALLOY=sbov.alloy
15 AND PLANNER_CODE=sbov.planner_code
16 AND PLAN_LEVEL = 0
17 AND GROUP_ID = sbov.group_id ),
18 0,(sp.value14/smcbom_flex_budget.calculate_period_days(sp.period14)) * (percent/100) * inweight * usagerate ,
19 1) v_hr,
20 smcbom_flex_budget.get_start_date(sp.period14)+sbov.totaloffsetdays v_date,
21 sum(-sbov.totaloffsetdays)
22 over (partition by sp.alloy,sp.planner_code,sbov.group_id
23 order by plan_level asc,operationseq desc) new_offset
24 from smcbom_bom_operation_view sbov,smcbom_sales_prod_forecasts sp
25 where sbov.alloy= sp.alloy
26 and sbov.planner_code=sp.planner_code
27 and group_id=521136
28 )
29 group by data_set_name,deptclass,dept,smcbom_flex_budget.get_period(v_date);
30 end;
31 /
(SELECT MAX(INWEIGHT)
ERROR at line 12:
ORA-06550: line 12, column 2:
PLS-00103: Encountered the symbol "SELECT" when expecting one of the following:
( - + mod not null others <an identifier>
<a double-quoted delimited-identifier> <a bind variable> avg
count current exists max min prior sql stddev sum variance
execute forall time timestamp interval date
<a string literal with character set specification>
<a number> <a single-quoted SQL string>
ORA-06550: line 22, column 6:
PLS-00103: Encountered the symbol "(" when expecting one of the following:
, from
SQL> spool off;In some versions of Oracle (certainly all of the 8.x versions and earlier, and possibly some of the earlier 9 versions) the SQL parsers in the SQL engine and in the PL/SQL engine were different. Some features that worked directly in SQL did not work in PL/SQL. Scalar sub-queries were one of those things.
You have three options. You can try to re-write the insert statement to eliminate the PL/SQL unimplemented feature. You can create a view in the database for the SELECT part of the insert statement then use that view in the insert. finally, and least desirable, you can build the whole statment as a string, and use EXECUTE IMMEDIATE to run it in PL/SQL.
HTH
John -
An XJC compilation error - Could not load class (..) for type cvsversion
I've got a strange compilation error using NetBeans 4.0 (I'd guess the version does not matter here) and Ant 1.6.2. When the following task is executed,
<target name="compile_ofx_schema">
<antcall target="clean-ofx"/>
<delete dir="${ofx-jaxb-src.dir}"/>
<mkdir dir="${ofx-jaxb-src.dir}" />
<xjc schema="${schema.dir}/ofx102.xsd" package="com.xxx.ofx102" target="${ofx-jaxb-src.dir}">
<arg value="-nv" />
<arg value="-extension" />
</xjc>
</target>
I get the error from NetBeans console,
Class org.xml.sax.SAXException loaded from parent loader (parentFirst)
Class java.io.IOException loaded from parent loader (parentFirst)
D:\appserver\build.xml:797: unable to parse the schema. Error messages should have been provided
at com.sun.tools.xjc.XJCTask._doXJC(XJCTask.java:334)
at com.sun.tools.xjc.XJCTask.doXJC(XJCTask.java:283)
at com.sun.tools.xjc.XJCTask.execute(XJCTask.java:227)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
at org.apache.tools.ant.Task.perform(Task.java:364)
at org.apache.tools.ant.Target.execute(Target.java:341)
at org.apache.tools.ant.Target.performTasks(Target.java:369)
at org.apache.tools.ant.Project.executeTarget(Project.java:1214)
at org.apache.tools.ant.Project.executeTargets(Project.java:1062)
at org.apache.tools.ant.module.bridge.impl.BridgeImpl.run(BridgeImpl.java:217)
at org.apache.tools.ant.module.run.TargetExecutor.run(TargetExecutor.java:236)
at org.netbeans.core.execution.RunClassThread.run(RunClassThread.java:125)
BUILD FAILED (total time: 4 seconds)
Could not load class (org.apache.tools.ant.tasksdefs.cvslib.CvsVersion) for type cvsversion
Could not load class (org.apache.tools.ant.tasksdefs.cvslib.CvsVersion) for type cvsversion
And when I run the Ant task from the command line, I don't get the error at all.
Any help is greatly appreciated.That was a great finding from you. Thank you.
I followed your alternative approach and updated the ant.jar file. The "Could not load class..." error went away but the stack trace still remains. Now I am clueless again since I have ant on the debug mode and can't find any more useful info.
Class com.sun.tools.xjc.reader.internalizer.LocatorTable loaded from ant loader (parentFirst)
Class java.util.HashSet loaded from parent loader (parentFirst)
Class javax.xml.parsers.DocumentBuilderFactory loaded from parent loader (parentFirst)
Couldn't load Resource org/netbeans/core/xml/DOMFactoryImpl.class
Couldn't load ResourceStream for META-INF/services/javax.xml.parsers.DocumentBuilderFactory
Class org.apache.crimson.jaxp.DocumentBuilderFactoryImpl loaded from parent loader (parentFirst)
Class javax.xml.parsers.SAXParserFactory loaded from parent loader (parentFirst)
Couldn't load Resource org/netbeans/core/xml/SAXFactoryImpl.class
Couldn't load ResourceStream for META-INF/services/javax.xml.parsers.SAXParserFactory
Class org.apache.crimson.jaxp.SAXParserFactoryImpl loaded from parent loader (parentFirst)
Class javax.xml.parsers.DocumentBuilder loaded from parent loader (parentFirst)
Class java.util.Map loaded from parent loader (parentFirst)
Class javax.xml.parsers.SAXParser loaded from parent loader (parentFirst)
Finding class com.sun.tools.xjc.reader.xmlschema.parser.XMLSchemaInternalizationLogic$ReferenceFinder
Loaded from D:\bbw\build\Common_3.6\Packaged\appserver\lib\jaxb\jaxb-xjc.jar com/sun/tools/xjc/reader/xmlschema/parser/XMLSchemaInternalizationLogic$ReferenceFinder.class
Finding class com.sun.tools.xjc.reader.internalizer.AbstractReferenceFinderImpl
Loaded from D:\bbw\build\Common_3.6\Packaged\appserver\lib\jaxb\jaxb-xjc.jar com/sun/tools/xjc/reader/internalizer/AbstractReferenceFinderImpl.class
Class org.xml.sax.helpers.XMLFilterImpl loaded from parent loader (parentFirst)
Class com.sun.tools.xjc.reader.internalizer.AbstractReferenceFinderImpl loaded from ant loader (parentFirst)
Class com.sun.tools.xjc.reader.xmlschema.parser.XMLSchemaInternalizationLogic$ReferenceFinder loaded from ant loader (parentFirst)
Class org.xml.sax.XMLFilter loaded from parent loader (parentFirst)
Finding class com.sun.tools.xjc.reader.internalizer.VersionChecker
Loaded from D:\bbw\build\Common_3.6\Packaged\appserver\lib\jaxb\jaxb-xjc.jar com/sun/tools/xjc/reader/internalizer/VersionChecker.class
Class com.sun.tools.xjc.reader.internalizer.VersionChecker loaded from ant loader (parentFirst)
Finding class com.sun.tools.xjc.reader.internalizer.DOMBuilder
Loaded from D:\bbw\build\Common_3.6\Packaged\appserver\lib\jaxb\jaxb-xjc.jar com/sun/tools/xjc/reader/internalizer/DOMBuilder.class
Finding class com.sun.xml.bind.marshaller.SAX2DOMEx
Loaded from D:\bbw\build\Common_3.6\Packaged\appserver\lib\jaxb\jaxb-impl.jar com/sun/xml/bind/marshaller/SAX2DOMEx.class
Class org.xml.sax.ContentHandler loaded from parent loader (parentFirst)
Class com.sun.xml.bind.marshaller.SAX2DOMEx loaded from ant loader (parentFirst)
Class com.sun.tools.xjc.reader.internalizer.DOMBuilder loaded from ant loader (parentFirst)
Class java.util.Stack loaded from parent loader (parentFirst)
Class org.w3c.dom.Document loaded from parent loader (parentFirst)
Class org.xml.sax.XMLReader loaded from parent loader (parentFirst)
Class org.w3c.dom.Node loaded from parent loader (parentFirst)
Class org.w3c.dom.Element loaded from parent loader (parentFirst)
Class javax.xml.parsers.ParserConfigurationException loaded from parent loader (parentFirst)
Class org.xml.sax.SAXException loaded from parent loader (parentFirst)
Class java.io.IOException loaded from parent loader (parentFirst)
D:\bbw\build\Common_3.6\Packaged\appserver\build.xml:799: unable to parse the schema. Error messages should have been provided
at com.sun.tools.xjc.XJCTask._doXJC(XJCTask.java:334)
at com.sun.tools.xjc.XJCTask.doXJC(XJCTask.java:283)
at com.sun.tools.xjc.XJCTask.execute(XJCTask.java:227)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
at org.apache.tools.ant.Task.perform(Task.java:364)
at org.apache.tools.ant.Target.execute(Target.java:341)
at org.apache.tools.ant.Target.performTasks(Target.java:369)
at org.apache.tools.ant.Project.executeTarget(Project.java:1214)
at org.apache.tools.ant.Project.executeTargets(Project.java:1062)
at org.apache.tools.ant.module.bridge.impl.BridgeImpl.run(BridgeImpl.java:217)
at org.apache.tools.ant.module.run.TargetExecutor.run(TargetExecutor.java:236)
at org.netbeans.core.execution.RunClassThread.run(RunClassThread.java:125)
BUILD FAILED (total time: 1 second)
Any suggestions? BTW, I did not upgrade NetBeans to v5.5 due that my code is still JDK1.4 based. -
i get this error when i try to deploy a web service. is there a way to debug the oc4j compilation process?
it's behaving VERY strange.. everything is ok if the webmethod is returning a class of name: "Class1", but if i rename it to "HolidayDto" i get this error.the whole error i've got was: error deploying ear: compilation error occurred or something similar...
the problem was, that the HolidayDto had a property of type: java.util.List. i'm aware of the fact that WS methods cannot work with such types, but there surely are better error messages for this than: "blah, blah: compilation error occurred"
anyway when i've changed the property name from "reviews" to "reviewsList" everything started working..
what i still dont understand why it worked when the class name of the particular class was Class1.. strange -
Compile error in adjacency matrix
Hello, I'm getting a strange compile error in my fileStream constructor
also I'm having trouble accessing nodes.
Any advice is much much appreciated and will be rewarded as such
cheers
mport java.io.*;
import java.util.*;
class AdjMatrix
private int [][] matrix;
private int num_vertices;
private final int inf = Integer.MAX_VALUE;
public AdjMatrix(int num_vertices)
this.num_vertices = num_vertices;
matrix = new int[num_vertices][num_vertices];
// let's assume that nodes are adjacent to themselves
for (int vertex = 0; vertex < num_vertices; vertex++)
for (int other_vertex = 0; other_vertex < num_vertices; other_vertex++)
if (other_vertex == vertex)
matrix[vertex][other_vertex] = 0;
else
matrix[vertex][other_vertex] = inf;
public void addEdge(int vertex_from, int vertex_to, int cost)
matrix[vertex_from][vertex_to] = cost;
public void addEdge(int vertex_from, int vertex_to)
addEdge(vertex_from, vertex_to, 0);
public void addBidirectedEdge(int vertex_one, int vertex_two, int cost)
addEdge(vertex_one, vertex_two, cost);
addEdge(vertex_two, vertex_one, cost);
public void addBidirectedEdge(int vertex_one, int vertex_two)
addEdge(vertex_one, vertex_two, 0);
addEdge(vertex_two, vertex_one, 0);
public void removeEdge(int vertex_from, int vertex_to)
matrix[vertex_from][vertex_to] = inf;
public void removeBidirectedEdge(int vertex_one, int vertex_two)
matrix[vertex_one][vertex_two] = inf;
matrix[vertex_two][vertex_one] = inf;
public int getEdge(int vertex_from, int vertex_to)
return matrix[vertex_from][vertex_to];
class FileStream extends AdjMatrix {
double answer;
String line;
AdjMatrix theMatrix;
int total;
public FileStream(String fileName) {
fileName = "Test.txt";
try {
FileReader fileRead = new FileReader(fileName);
BufferedReader br = new BufferedReader(fileRead);
while((line = br.readLine()) !=null) {
StringTokenizer st = new StringTokenizer(line, ",");
total++;
for(int i=0; i<st.countTokens(); i++){
for(int j=0; j<st.countTokens(); j++) {
int weight = Integer.parseInt(st.nextToken());
theMatrix.addEdge(i,j,weight);
br.close();
catch(IOException exc) {
System.out.println("File not found!");
//System.out.println("The total in [Test.txt] is: " +total);
}class FileStream extends AdjMatrix {
double answer;
String line;
AdjMatrix theMatrix;
int total;
public FileStream(String fileName) {
Since you don't specify which constructor of AdjMatrix to use in the contruction of FileStream the compiler is trying to use the default constructor of AdjMatrix BUT you don't have one!
Possible solutions -
1) Define a default constructor in AdjMatrix.
2) Use the public AdjMatrix(int num_vertices) constructor by using
public FileStream(String fileName) {
super(10); // or what ever size you think is appropriate3) Change AdjMatrix to use so as to use dynamic arrays (ArrayList?) instead of having a fixed dimension.
4) MakeFile stream a factory that does not extend AdjMatrix but has a method that returns an AdjMatrix based on a filename argument.
e.g.
class FileStreamFactory
public AdjMatrix createFromFile(String filename)
// Parse the file to get the size
AdjMatrix theMatrix = new AdMatrix(the size you parsed);
// Fill in anything else you need to
return theMatrix ;
}You would use this by creating a factory and then using it to create your AdjMatrix.
It should be obvious that I prefer approach 4.
Have fun! -
"ORA-24344: success with compilation error" in beginDDL
Hello,
I'm facing a really strange problem. When i try to use dbms_wm.beginDDL in one of my versioned tables, i get the error:
ORA-24344: success with compilation error
ORA-06512: "WMSYS.LT", line 12178
ORA-06512: line 2
I just get the error if i run the procedure from SQLPlus.
Using PLSQL Developer, for example, I get a normal execution but the LTS table it's not created and the state of the table stays 'VERSIONED'.
I used this procedure other times in the past and there were no problems.
Trying to identify the cause of the error, i've tried:
(1) - run dbms_wm.beginDDL for all the other tables - No Problem
(2) - verifiy if there were invalid objects - All valid
(3) - verify the error tables for more details (user_, dba_, user_wm_vt_) - No entries
(4) - generate a trace file, to search for abnormal executions - Apparently nothing really strange (but obviously I don't know what was supposed to happen)
Any possible reasons for this to happen?
Any ideas?
Some help would be welcome.
Best regards,
Pedro LourençoHi Noel,
I just found the problem...
I have a trigger defined on the table that uses a synonym for another user table.
That synomym was dropped, so the trigger was invalid.
I didn't notice the problem because the trigger was disabled, so the WM$ procedure wasn't being generated, and there were no "visible errors".
Recreating the synomyn, the problem was solved.
Thanks for your help!
Regards,
Pedro Lourenço -
SSUS 2012 Script Component (VB) Build But Still Has Compile Error
The title says it all really.
The Script Component builds without error but when I close the editor (and when I execute the package), I get a message saying that there is a compile error. There is of course a big red "X on the script component. No errors are indicated in the edit
window or when building the script. Can anyone help? this is really holding me up.
The script has been copied from a working SSIS 2008 package. It uses the report execution web method. I have successfully changed the web reference to ReportExcution2010, there doesn't seem to be a RepprtExcution2012.
R CampbellIt's probably best to close thread and that I start a new one. I think that I have gone off on a tangent here. Yes SSIS isn't doing much of a job in reporting errors but my main concern is the error itself.
I am trying to port an SSIS Script Task from SQL 2008 to SQL 2012. Is uses the ReportExecution2005 web service to run SSRS reports. The really strange thing is that, even though the same web reference is used, different methods seem
to be available in SQL 2008 and SQL 2012. This doesn't sound right to me, if you refer to the same Web Service you should see the same metros or am I wrong about that.
For example in SQL 2008 there is ReportExecutionService
object but on the SQL 2012 to service there only seems to be
ReportExecutionServiceSOAPClient.
R Campbell -
Help- Components Throwing Compile Errors
Thank you for reading my issue. I am using Flash CS3.
Recently, all my projects began throwing compile errors for
standard component AS3 code.
UI Component, FLVPlayback.
I have uninstalled and reinstalled Flash CS3, but to no
avail. Problem persists
I keep getting errors involving "QNAN", which I think
involves trapping for a non-numeric value, or something.
As a test, I created a new Flash doc, placed an instance of
FLVPlayback on the stage, pointed it to a .FLV file in the same
directory.
Errors on compile:
1093: Syntax error.
1084: Syntax error: expecting rightparen before QNAN.
1093: Syntax error.
1084: Syntax error: expecting rightparen before QNAN.
And so on, I get 5 sets of the same errors for different
functions.
The first offending function above reads:
function queueCmd(param1:VideoPlayerState, param2:Number,
param3:Number = 1.#QNAN) : void
if (param1.cmdQueue == null)
param1.cmdQueue = new Array();
}// end if
param1.cmdQueue.push(new QueuedCommand(param2, null, false,
param3));
return;
}// end function
I get similar errors from my UI component AS3 as well.
I have not touched the shipped AS3 for these components. What
gives?
Any ideas?
Thanks
TimThanks, by the way to everyone who has offered thoughts so
far.
xchanin - I've encountered issues with the FLVPlayback
component as well as various of the UI components.
I tried some example applications (from the web) not too long
ago and this issue popped up shortly there after.
But, I'm having issues with even a simple Flash with a single
FLVPlayback instance and one .flv.
There is nothing in the class path for my test file and the
root .as files open from the Flash install when I click the compile
errors in the output window.
So, it really looks like I somehow corrupted those files. I
read a post somewhere that someone had "strange invisible
characters" show up in their .as that were throwing errors.
I thought a clean install would do the trick.
I may completely isolate the example files I was using and
try another reinstall... that's about all I can think of at the
moment.
This has been a couple week search for a solution. I have a
real project coming up an need to solve this.
Thanks for any input! (I assume I can't call Adobe for an
assist as I'm still on CS3 ;)
Tim -
Hello
I have a problem with my jsp developement. When i create a jsp (with no beans) i test it and it runs fine (not good but fine), then when I test it with multiple users at time, it generate a jsp compilation error ie. "missing term }" and I can not figure out why it is getting that error, it has been compilated before! so it should not generate a compilation error, becouse i'm not editing the jsp source. I think that every time the jsp is requested the virtual machine is re-compiling it, but is only what i thing and i don't know why... can any body help me? please.
I apologize for my bad english
Thank you for your time reading this.Sorry becouse i can't be more espesific with the error that i get, that error is complete apears in a complete randomic way, I mean taht it apears when nerver is expected or doesn't apear when is expected, only thing that i got of that error is that the compiler some time says that are mising semi-colon (;), some time says that are mising quotation marks (") or are mising }, the error is no the same allways no mater the situation, I can run the jsp in my pc but the error doesn't apear, thats very strange becouse the compilation error apear after the jsp was executed with no errors.
this is my jsp:
<%@ page import="java.util.Calendar,java.text.SimpleDateFormat,java.util.Date,java.util.Stack,java.util.Enumeration, java.util.Hashtable,java.sql.*, java.util.Vector" %>
<%@ include file="../incs/dbpool_inc.jsp" %>
<%@ include file="funciones.jsp"%><html>
<head>
<title>Resolver preguntas</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link href="../css/0001.css" rel="stylesheet" type="text/css">
</head>
<body>
<% //to get user data from the session.
String userid = session.getAttribute("idu") != null ? (String)session.getAttribute("idu") : "";
String asign = session.getAttribute("idHomeAssignatura") != null ? (String)session.getAttribute("idHomeAssignatura"): "";
String idcuest = session.getAttribute("idcuest") != null ? (String)session.getAttribute("idcuest") : "";
String secuenc = session.getAttribute("secuenc") != null ? (String)session.getAttribute("secuenc") : "";
String secuens = request.getParameter("secuens") != null ? request.getParameter("secuens") : "0";
//to know if it's aloww to save cahnges in the database
boolean guardar = request.getParameter("guardar") != null ? (request.getParameter("guardar")).equals("si")? true: false :false;
if(userid.equals("")|| asign.equals("")){//if 1
out.println("</head><body><font face=\"Arial\" size=\"2\" color=\"#000000\"><b>El tiempo de conexión ha expirado. Para ingresar de nuevo al sistema haga click aquí.</b></font></body></html>");
}//fin if 1
else{//else de if 1
try{// try 1
Connection conn = dbpool.getConnection();
Statement stmtt = conn.createStatement();
Statement stmtmod = conn.createStatement();
Statement stmtresp = conn.createStatement();
ResultSet rsmodul = stmtmod.executeQuery("select id_modulo from eit_cuestxmat where id_cuestionario="+idcuest);
String modulo = rsmodul.next()? rsmodul.getString("id_modulo"): "";
rsmodul.close();
stmtmod.close();
int secuencia1 = Integer.parseInt(secuens);
int secuencia2 = Integer.parseInt(secuenc)+1;
secuenc = (secuencia1 == secuencia2)? String.valueOf((Integer.parseInt(secuenc)+1)): secuenc;
session.setAttribute("secuenc", secuenc);
if(esAlumno(userid, stmtt, asign)){//if 2
if(guardar){//if 2.0
String idpreg1 = request.getParameter("idpregunta") != null ? request.getParameter("idpregunta") : "";
ResultSet rstipop = stmtt.executeQuery("select tipo from eit_pregunta where id_pregunta="+idpreg1);
String tipop1 = rstipop.next()? rstipop.getString("tipo") : "";
rstipop.close();
String respuesta = "N/A", correspondencia ="";
String restado="n";
String rcorrecta = "n";
if(tipop1.equals("selec")){
correspondencia = request.getParameter("rprevia") != null? request.getParameter("rprevia") : "-1";
ResultSet rscorrecta = stmtt.executeQuery("select escorrecta from eit_opciones where id_pregunta="+
idpreg1+" and id_opcion="+correspondencia+" and escorrecta like 's'");
if(rscorrecta.next()){
rcorrecta = "s";
rscorrecta.close();
else{
if(tipop1.equals("empar")){
ResultSet rsempar = stmtt.executeQuery("select escorrecta from eit_opciones where id_pregunta="+
idpreg1+ "order by orden");
int corres = 0;
int correctas = 0;
while(rsempar.next()){
String resp = request.getParameter("selopc"+String.valueOf(corres+1)) != null? request.getParameter("selopc"+String.valueOf(corres+1)) : "";
correspondencia=correspondencia+((corres == 0)? "":",")+resp;
correctas = correctas + (resp.equals(rsempar.getString("escorrecta"))? 1 : 0);
corres++;
rcorrecta = String.valueOf(correctas);
rsempar.close();
else{
if(tipop1.equals("complet")){
ResultSet rscomplet= stmtt.executeQuery("select correspondencia from eit_opciones where id_pregunta="+idpreg1);
String complet = rscomplet.next()? rscomplet.getString("correspondencia"):"";
rscomplet.close();
String complet1 = "";
int idxcar = complet.indexOf("$");
respuesta = request.getParameter("comp0") != null ? request.getParameter("comp0") : "";
correspondencia = request.getParameter("comp1") != null ? request.getParameter("comp1") : "";
int corrc =0;
if(idxcar>=0){
complet1 = complet.substring((idxcar+1),complet.length());
complet = complet.substring(0, idxcar);
corrc = (respuesta.equalsIgnoreCase(complet))? 1 : 0;
corrc = (correspondencia.equalsIgnoreCase(complet1))? (corrc+1) : corrc;
rcorrecta = (corrc==2)? "s": (corrc==1)? "m": "n";
}else{
corrc=(respuesta.equalsIgnoreCase(complet))? 1 : 0;
rcorrecta = (corrc==1)? "s": "n";
else{
if(tipop1.equals("abierta")){
respuesta = request.getParameter("respuesta") != null? request.getParameter("respuesta") : "";
String guardarResp = "insert into eit_respuesta(id_pregunta, id_cuestionario, id_materia, id_modulo"+
", respuesta, correspondencia, rcorrecta, restado, sec_pregunta, codest)"+
" values ("+idpreg1+", "+idcuest+", '"+asign+"', "+modulo+", '"+respuesta+"', '"+correspondencia+"', '"+rcorrecta+"', '"+restado+"', "+
String.valueOf((Integer.parseInt(secuenc)-1))+", "+userid+")";
String sqlexistencia = "select id_pregunta from eit_respuesta where codest ="+userid+" and id_cuestionario="+idcuest+" and id_materia="+
asign+" and id_modulo="+modulo+" and id_pregunta="+idpreg1;
boolean existeResp = (stmtt.executeQuery(sqlexistencia)).next();
String editarResp = "update eit_respuesta set respuesta='"+respuesta+"', correspondencia='"+correspondencia+"', "+
"rcorrecta='"+rcorrecta+"', restado='"+restado+
"' where codest ="+userid+" and id_cuestionario="+idcuest+" and id_materia like '"+
asign+"' and id_modulo="+modulo+" and id_pregunta="+idpreg1;
//if the page is editing execute string editarResp else execute string guardarResp
stmtt.executeUpdate(existeResp? editarResp:guardarResp);
String sqlbpu="select p.enunciado, p.tipo, p.titulo, p.id_pregunta from eit_pregunta p, eit_prexcuest pxc where pxc.id_cuestionario="+idcuest+" and pxc.id_pregunta = p.id_pregunta and pxc.secuenc= "+String.valueOf(secuenc);//bupu: buscar pregunta cuestionario
//System.out.println("resolvpreg.jsp "+sqlbpu);
ResultSet rsbpu = stmtt.executeQuery(sqlbpu);
if(rsbpu.next()){ // if 2.1
String enunciado = rsbpu.getString("enunciado");
String tipo = rsbpu.getString("tipo");
String titulo = rsbpu.getString("titulo");
String idpreg = rsbpu.getString("id_pregunta");
%>
<h1 align="center"><font color="#0033CC" face="Arial, Helvetica, sans-serif"><%=titulo%></font></h1><br>
<p align="left"><font face="Arial, Helvetica, sans-serif">
<strong>Enunciado:</strong> <%=enunciado%>. </font><br>
<%
String sqlrespuesta = "select respuesta, correspondencia from eit_respuesta where id_pregunta="+idpreg+
" and id_cuestionario = "+idcuest+" and id_materia like '"+asign+"' and id_modulo="+modulo+" and codest= "+userid;
ResultSet rsrespuesta = stmtresp.executeQuery(sqlrespuesta);
String sqlopcs= "select opcion, escorrecta, correspondencia, orden from eit_opciones where id_pregunta ="+idpreg+"order by orden";
ResultSet rsops = stmtt.executeQuery(sqlopcs);
%>
<%String letras = "ABCDEFGHIJKLMNOPQRSTUVWXYZ";
Vector opciones = new Vector();
Object obj[] = new Object[4];
while(rsops.next()){
obj[0] = rsops.getString("opcion");
obj[1] = "";
obj[2] = rsops.getString("correspondencia");
obj[3] = rsops.getString("orden");
opciones.addElement(obj.clone());
rsops.close();
%>
<form action="resolverpreg.jsp" method="post" name="Correspondencias">
<%
String respEmpar = "";
String respuestap="";
String respcorres[] = {"",""};
if(rsrespuesta.next()){
respuestap = rsrespuesta.getString("respuesta");
respEmpar = rsrespuesta.getString("correspondencia");
respcorres[0]= respuestap;
respcorres[1]= respEmpar;
rsrespuesta.close();
if (tipo.equals("empar")){
%>
<%@ include file="resolvempar.jsp"%>
<%}//fin if tipoPreg = 'emapar'
else{
if(tipo.equals("selec")){
%> <%@ include file="reslovselec.jsp"%>
<%}//fin if tipopreg = 'select'
else{
if(tipo.equals("complet")){%>
<%@include file="resolvcomplet.jsp"%>
<%}//fin if tipopreg='complet'
else{
if(tipo.equals("abierta")){%>
<%@include file="resolvabierta.html"%>
<%}//fin if tipopreg='abierta'
else{%>
<span class="titolForum">Error: no se ingresó ningún tipo de pregunta
o se est� accediendo en forma errónea a este sitio.</span>
<%}//fin else de tipopregunta = 'abierta'%>
<%}//fin else tipopreg='complet'%>
<%}// fin else de tipopreg = 'select'%>
<%}//fin else de tipoPreg = 'emapar'%>
<br>
<input name="idpregunta" type="hidden" value="<%=idpreg%>">
<input name="guardar" type="hidden" value="si">
<input name="secuens" type="hidden" value="<%=(1+(Integer.parseInt(secuenc)))%>">
<input type="submit" name="continuar" value="Continuar">
</form>
<% rsbpu.close();
}//fin 2.1
else{%>
Ha terminado de realizar la prueba<br>
<a href="elejCuestion.jsp">Continuar</a>
<%}
}// fin if 2
stmtt.close();
stmtresp.close();
conn.close();
}// fin try 1
catch(Exception expt){
out.println("Error: "+expt);
}//fin eles de if 1
%>
</body>
</html> -
Always get same compilation error.. Does'nt matter whatever i write in code
Hi All,
I am getting strange error while compiling my pl/sql code.. it always gives me error
SQL> SHOW ERR
ERROR:
ORA-00942: table or view does not exist
..I always get this error. In sample piece of code , i dont have any table also
SQL> SELECT * FROM V$VERSION ;
BANNER
Oracle9i Enterprise Edition Release 9.2.0.5.0 - 64bit Production
PL/SQL Release 9.2.0.5.0 - Production
CORE 9.2.0.6.0 Production
TNS for Solaris: Version 9.2.0.5.0 - Production
NLSRTL Version 9.2.0.5.0 - Production
SQL> Create or replace FUNCTION check_cid IS
BEGIN
dbms_output.put_line("CHAL");
EXCEPTION
WHEN OTHERS THEN
dbms_output.put_line("GHODA");
END check_cid;
2 3 4 5 6 7 8
Warning: Function created with compilation errors.
SQL> SQL> show err
ERROR:
ORA-00942: table or view does not exist
SQL> Create or replace FUNCTION check_cid RETURN NUMBER IS
stat_res NUMBER;
BEGIN
stat_res := 1;
dbms_output.put_line("CHAL");
RETURN stat_res;
EXCEPTION
WHEN OTHERS THEN
dbms_output.put_line("GHODA");
END check_cid;
/ 2 3 4 5 6 7 8 9 10 11
Warning: Function created with compilation errors.
SQL> SHOW ERR
ERROR:
ORA-00942: table or view does not exist
SQL> Create or replace FUNCTION check_cid() RETURN NUMBER IS
stat_res NUMBER;
BEGIN
stat_res := 1;
dbms_output.put_line("CHAL");
RETURN stat_res;
EXCEPTION
WHEN OTHERS THEN
dbms_output.put_line("GHODA");
END check_cid;
/ 2 3 4 5 6 7 8 9 10 11
Warning: Function created with compilation errors.
SQL> SHOW ERR
ERROR:
ORA-00942: table or view does not existThe error message is correct.
You are using double quotes instead of single quotes.
Identifiers (table names, column names etc) with special characters should be enclosed by double quotes, so PL/SQL thinks you are using an identifier and can't find it.
Please replace the double quotes by single quotes.
Please also make sure you always try to iron out simple compilation errors yourself, so you become independent, and don't need to ask for the assistance of volunteers.
Optionally, increase your intake of coffee, and/or buy (better) glasses ;)
Sybrand Bakker
Senior Oracle DBA
Maybe you are looking for
-
Crystal report authetication problem
Dear experts, I have problem in my one of client regarding Crystal reports. crystal reports working fine in all other client machine but only one client machine system give the database logon failed error. please guide me. Thanks In advance
-
My BB Torch 9860 freezes while it reboots and refuses to turn on
My BB torch 9860 froze 4 days back while a normal hard reboot. it refuses to turn on freezes and a particular spot on the bar while rebooting. i cant update the software or do nothing as it requires the fone to turn and it refuses to do so. Please he
-
CREATING SOLARIS 8 BRANDED ZONE
Attempting to configure a Solaris8 branded zone on a SunFireV125 (running Sol10_10/09). Got to the "zoneadm -z s8-zone boot" step and configuring for NIS when I received the following error: "The following error occurred while trying to set the netma
-
Using VoIP and can not send or receive fax. I am now also having problem scanning
I use VoIP for phone service. I can not send or receive faxes although the Fax Test Report Pass. Now I am having problem scanning. My main concern is with faxing.
-
Creating header in printout of ALV report in WD4A
Hi I have created one alv report in WD4A. When I click on the "print version" button, the report appears in pdf format. I want to create header on that pdf output. Please let me know how can i do that ? . it is coming on alv but not on pdf. The code