Sdordf.jar?
hi
The new "10.2.0.2 Fast Batch Loader for N-Triple Files" specifies to use "sdordf.jar" . I feel that jar file is missing from the download.
Thanks chandra
Hi Chandra,
sdordf.jar for the batch loader for 10.2.0.2 will be available at $ORACLE_HOME/md/lib/sdordf.jar in a 10.2.0.2 database installation - as indicated in the classpath of the README instructions. We will update the instructions to make that clearer. It is not intended to be part of the download (yes, the download package is a bit different from the 10.2.0.1 package which included a jar file).
Melli
Similar Messages
-
Batch loading with sdordf.jar.
Hi Guys
I have just tried a batch load with sdordf.jar.
In my first attempt there was a mistake in the n3 file.
After correcting the file and re running I now get the error.
Connecting to jdbc:oracle:thin:...........
Append mode
Copy existing data out
Just load triples into one column
Temporary table already exists!
java.sql.SQLException: ORA-00955: name is already used by an existing object
ORA-06512: at "MDSYS.SDO_RDF_INTERNAL", line 3326
ORA-06512: at "MDSYS.SDO_RDF_INTERNAL", line 3362
ORA-06512: at "MDSYS.RDF_APIS", line 786
ORA-06512: at line 1
Can anyone tell me what the name of this temporary table is, so that I can get rid of it.
Cheers
PhilHi Mellie
After having a little break I have installed the jena patch during which I had to drop the network and model created before.
I tried running a batch load as before but I still get the error message saying the temporary table already exists.
I tried the clean up routine as suggested but get the error.
SQL> exec sdo_rdf.cleanup_batch_load('researchdata')
BEGIN sdo_rdf.cleanup_batch_load('researchdata'); END;
ERROR at line 1:
ORA-13199: Batch load cleanup failed. ORA-00942: table or view does not exist
ORA-06512: at "MDSYS.MD", line 1723
ORA-06512: at "MDSYS.MDERR", line 17
ORA-06512: at "MDSYS.SDO_RDF", line 1016
ORA-06512: at "MDSYS.SDO_RDF", line 1022
ORA-06512: at line 1
I run it as mdsys as you said.
Any other suggestions?
Cheers
Phil -
Hello,
This is my first time posting here, I hope I have put it in the right section.
I was told that in order to have SPARQL with Oracle, I should use either APEX or SQL Developer, and not to install Oracle Enterprise. (I have never worked with it, and am a bit lost).
Is it possible to write SPARQL queries in this manner? Which is recommended for a beginner that only knows basics of SQL? Which has a more user-friendly interface?
I would very much appreciate the help.
Thank you :)
Edited by: user13098869 on 14-Nov-2010 02:39Hi
APEX - Oracle Application Express is a no-cost option of the Oracle database.
SQL Developer is a tool that connects to the database to execute queries and PLSQL code
I do not know how APEX or SQL Developer would work with SPARQL.
One way to work with SPARQL with Oracle is using the Jena Adaptor. This is a set of tasks you would need to perform:
1. Install Oracle Database Enterprise Edition
2. Configure the database to use Semantic Technologies
3. Install JDK
4. Install Jena
5. Install Jena Adaptor
6. Review Jena Adaptor Demos that include SPARQL examples
Jena Adaptor Tutorial:
http://download.oracle.com/otndocs/tech/semantic_web/pdf/semtech11gr2_jenaadapt-tl.pdf
From Test8.java on you can see some SPARQL examples
This is the Oracle Semantic Technologies Web Page:
http://www.oracle.com/technetwork/database/options/semantic-tech/index.html
This is my scratch pad that I used when doing these tasks in case it helps:
1. Install 11.2.0.2.0
and
2. Create database at time of installation.
3. Create tablespace for Semantics:
create tablespace RDF_TABLESPACE
datafile '/.../rdf01.dbf' size 2000M
autoextend on next 2000M maxsize 16000M;
4. Setup Semantic Technologies:
sqlplus / as sysdba
@?/md/admin/catsem
exec sem_apis.create_sem_network('RDF_TABLESPACE');
5. Place files in working directory:
JDK: jdk-6u22-linux-x64.bin
Jena: jena-2.6.3.zip
Jena Adaptor ./JenaAdaptor/jena_adaptor_for_release11.2.zip
6. Unzip files:
unzip jena-2.6.3.zip
cd JenaAdaptor
unzip jena_adaptor_for_release11.2.zip
7. Install JDK:
chmod u+x jdk-6u22-linux-x64.bin
./jdk-6u22-linux-x64.bin
answer: yes
8. You should have in your working directory:
Wdir> ls -l
total 70388
drwxr-xr-x 8 ... Jena-2.6.2/
drwxr-xr-x 7 ... JenaAdaptor/
-rwxr--r-- 1 ... jdk-1_5_0_21-linux-i586.bin*
drwxr-xr-x 9 ... jdk1.5.0_21/
-rw-r--r-- 1 ... jena-2.6.2.zip
9. Copy files:
a. Copy ojdbc5.jar into <Jena_DIR>/lib (Linux) or <Jena_DIR>\lib (Windows). (ojdbc5.jar is in
$ORACLE_HOME/jdbc/lib or %ORACLE_HOME%\jdbc\lib.)
cp $ORACLE_HOME/jdbc/lib/ojdbc5.jar .../Jena-2.6.2/lib
b. Copy sdordf.jar into <Jena_DIR>/lib (Linux) or <Jena_DIR>\lib (Windows). (sdordf.jar is in
$ORACLE_HOME/md/jlib or %ORACLE_HOME%\md\jlib.)
cp $ORACLE_HOME/md/jlib/sdordf.jar .../Jena-2.6.2/lib
c. Copy sdordfclient.jar. It is in Work_dir/JenaAdpator/jar
cp .../JenaAdaptor/jar/sdordfclient.jar .../user/Jena-2.6.2/lib
10. Environmental variables:
export JAVA_HOME=.../user/jdk1.5.0_21/bin
export PATH=.../user/jdk1.5.0_21/bin:$PATH
11. To compile the examples:
copy the *.java examples to JENA_DIR/lib
cp .../user/JenaAdaptor/examples/*.java .../user/Jena-2.6.2/lib
-- To compile:
cd .../user/Jena-2.6.2/lib
javac -classpath ./:./jena-2.6.2.jar:./sdordfclient.jar:./ojdbc5.jar:slf4j-api-1.5.6.jar:log4j-
1.2.13.jar:slf4j-log4j12-1.5.6.jar:arq-2.8.1.jar:xercesImpl-2.7.1.jar Test.java
-- To run:
cd .../user/JenaAdaptor/examples
java -classpath ./:./jena-2.6.2.jar:./sdordfclient.jar:./ojdbc5.jar:slf4j-api-1.5.6.jar:log4j-
1.2.13.jar:slf4j-log4j12-1.5.6.jar:arq-2.8.1.jar:xercesImpl-2.7.1.jar:iri-0.7.jar:icu4j-3.4.4.jar
Test jdbc:oracle:thin:@caosspc46.ca.oracle.com:1521:orcl1102 rdfusr rdfusr Family
You should see:
| f | k |
=========================================================
| <http://example.com/John> | <http://example.com/Mary> |
Regards!
Jorge -
Problems setting up Semantic tech in Orac le 11G running Linux.
Hi Every1,
Am a novice at this Semantic Techno stuff and am trying to overcome that. Am trying to set up an 11G semantic tech baseline on a Linux box and am having difficulties getting everything loaded. Here is where I am at:
1. Installed JDK V5.
2. Installed Oracle 11Gr2 w/spatial and partitioning.
3. Installed Jena V 2.6.2 (jena-2.6.2.zip) IAW Oracle Semantic Technologies Developers guide.
4. Installed Jena Adaptor (jena_adaptor_for_release11-2.zip) IAW Oracle Semantic Technologies Developers guide.
5. Installed Oracle WebLogic Server 11g Release 1(10.3.1).
6. Installed Java 6.1.
7. Installed Joseki 3.4.0 IAW Oracle Semantic Technologies Developers guide.
8. Created J2EE data source in WebLogic Server admin console IAW Oracle Semantic Technologies Developers guide.
9. Completed the autodeploy tasks IAW Oracle Semantic Technologies Developers guide.
10. Restarted WebLogic Server.
11. Attempted to verify the deployment via web browser (http://localhost.localdomain:7001/joseki) and received an Error 404—Not Found From RFC 2068 message vice the Oracle SPARQL Service Endpoint page as expected.
Am at a loss … can anyone identify where I went wrong and how to fix this problem?Here are the steps I used loading Joseki.
1. Download and Install Oracle WebLogic Server 11g Release 1 (10.3.1). For details, see http://www.oracle.com/technology/products/weblogic/.
2. Ensure that you have Java 1.6 installed, because it is required by Joseki 3.4.0.
3. Download Joseki 3.4.0 (joseki-3.4.0.zip) from http://sourceforge.net/projects/joseki/files/Joseki-SPARQL/.
4. Unpack joseki-3.4.0.zip into a temporary directory. For example:
mkdir /tmp/joseki
cp joseki-3.4.0.zip /tmp/joseki
cd /tmp/joseki
unzip joseki-3.4.0.zip
5. Ensure that you have downloaded and unzipped the Jena Adaptor for Oracle Database, as explained in Section 7.1.
6. Create a directory named joseki.war at the same level as the jena_adaptor directory, and go to it. For example:
mkdir /tmp/joseki.war
cd /tmp/joseki.war
7. Copy necessary files into the directory created in the preceding step:
cp /tmp/jena_adaptor/joseki/* /tmp/joseki.war
cp -rf /tmp/joseki/Joseki-3.4.0/webapps/joseki/StyleSheets /tmp/joseki.war
8. Create directories and copy necessary files into them, as follows:
mkdir /tmp/joseki.war/WEB-INF
cp /tmp/jena_adaptor/web/* /tmp/joseki.war/WEB-INF
mkdir /tmp/joseki.war/WEB-INF/lib
cp /tmp/joseki/Joseki-3.4.0/lib/*.jar /tmp/joseki.war/WEB-INF/lib
cp /tmp/jena_adaptor/jar/*.jar /tmp/joseki.war/WEB-INF/lib
cp $ORACLE_HOME/md/jlib/sdordf.jar /tmp/joseki.war/WEB-INF/lib
cp $ORACLE_HOME/jdbc/lib/ojdbc6.jar /tmp/joseki.war/WEB-INF/lib
Note that in the last command, you can specify ojdbc6.jar instead of ojdbc5.jar if you are using JDK 6.
9. Using the WebLogic Server Administration console, create a J2EE data source named OracleSemDS. During the data source creation, you can specify a user and password for the database schema that contains the relevant semantic data against which SPARQL queries are to be executed.
If you need help in creating this data source, see Section 7.2.1, "Creating the
Required Data Source Using WebLogic Server".
7.2.1 Creating the Required Data Source Using WebLogic Server
If you need help creating the required J2EE data source using the WebLogic Server admin console, you can follow these steps:
1. Login to: http://<hostname>:7001/console
2. In the Domain Structure panel, click Services.
3. Click JDBC
4. Click Data Services.
5. In the Summary of JDBC Data Sources panel, click New under the Data Sources table.
6. In the Create a New JDBC Data Source panel, enter or select the following values.
Name: OracleSemDS
JNDI Name: OracleSemDS
Database Type: Oracle
Database Driver: Oracle's Driver (Thin) For Instance Connections Versions: 9.0.1,9.2.0,10,11
7. Click Next twice.
8. In the Connection Properties panel, enter the appropriate values for the Database Name, Host Name, Port, Database User Name (schema that contains semantic data), Password fields.
DATABASE NAME: orcl
HOST NAME: orcl.localdomain
PORT: 1521
DATABASE USWER NAME: nciuser
PASSWORD: <password>
CONFIRM PASSWORD: <password>
9. Click Next.
10. Select (check) the target server or servers) to which you want to deploy this OracleSemDS data source.
11. Click Finish.
You should see a message that all changes have been activated and no restart is necessary.
10. Go to the autodeploy directory of WebLogic Server and copy files, as follows.(For information about auto-deploying applications in development domains, see: http://download.oracle.com/docs/cd/E11035_01/wls100/deployment/autodeploy.html)
cd <domain_name>/autodeploy
cp -rf /tmp/joseki.war <domain_name>/autodeploy
In the preceding example, <domain_name> is the name of a WebLogic Server domain.
Note that while you can run a WebLogic Server domain in two different modes, development and production, only development mode allows you use the auto-deployment feature.
11. Check the files and the directory structure, as in the following example:
autodeploy/% ls -1R ./joseki.war/
./joseki.war:
application.xml
index.html
joseki-config.ttl
StyleSheets/
update.html
WEB-INF/
xml-to-html.xsl
./joseki.war/StyleSheets:
joseki.css
./joseki.war/WEB-INF:
lib/
web.xml
./joseki.war/WEB-INF/lib:
arq-2.8.0.jar
arq-2.8.0-tests.jar
icu4j-3.4.4.jar
iri-0.7.jar
jena-2.6.2.jar
jenatest-2.6.2.jar
jetty-6.1.10.jar
jetty-util-6.1.10.jar
joseki-3.4.0.jar
junit-4.5.jar
log4j-1.2.12.jar
lucene-core-2.3.1.jar
ojdbc5.jar
sdordfclient.jar
sdordf.jar
servlet-api-2.5-6.1.10.jar
servlet-api-2.5.jar
slf4j-api-1.5.6.jar
slf4j-log4j12-1.5.6.jar
stax-api-1.0.1.jar
wstx-asl-3.2.9.jar
xercesImpl-2.7.1.jar
12. Start or restart WebLogic Server.
13. Verify your deployment by using your Web browser to connect to a URL in the following format (assume that the Web application is deployed at port 7001): http://<hostname>:7001/joseki
You should see a page titled Oracle SPARQL Service Endpoint using Joseki, and the first text box should contain an example SPARQL query.
This is where I got the http error message instead of the Oracle SPARQL Service Endpoint using Joseki screen. -
Cannot Create RDF View in R2RML Conversion Example
Hi All,
In a project I want to do a R2RML conversion. I folowed below steps according to 12c Release 1 tutorial.
1. Create a stage table with below command.
CREATE TABLE stage_table_name(
RDF$STC_sub varchar2(4000) not null,
RDF$STC_pred varchar2(4000) not null,
RDF$STC_obj varchar2(4000) not null,
RDF$STC_graph varchar2(4000)
2. Grant select and insert this stage table for user MDSYS
GRANT SELECT, INSERT ON STAGETAB TO MDSYS;
3. Load r2rml mapping to this stage table with running below java code.
Oracle oracle = new Oracle (connectionUrl, user, password);
GraphOracleSem graph = new GraphOracleSem(oracle, modelName);
FileInputStream is = new FileInputStream(mappingFile);
graph.getBulkUpdateHandler().prepareBulk(is,//inputstream
"http://example.com", // base URI
"TTL", // data file type: can be RDF/XML, N-TRIPLE, etc.
"rdf_users", // tablespace
null, // flags
null, // listener
stageTableName// staging table name.
graph.close();
oracle.dispose();
4. Create RDF View with this stage table to execute below command.
BEGIN
sem_apis.create_rdfview_model(
model_name => 'rdf_view_name',
tables => NULL,
r2rml_table_owner => 'user',
r2rml_table_name => 'stage_table_name'
END;
I performed first 3 steps successfully. Stage table has been created and r2rml mapping has been loaded to this stage table. But in the last step there is an error like this;
[Error] Execution (1: 3): ORA-00904: "CHILDCOL$RDFTERM": invalid identifier
ORA-06512: at "MDSYS.SDO_RDF_INTERNAL", line 14308
ORA-06512: at "MDSYS.SDO_RDF", line 3616
ORA-06512: at "MDSYS.RDF_APIS", line 1253
ORA-06512: at line 2
How can I solve this problem?
ThanksHi Pinar,
I created the same staging table, loaded up exactly the same mapping file, run the create_rdfview_model, and
could not reproduce the problem.
Note that I created the "staging_table_name" under schema SCOTT. And these are the commands I used.
public class Test2616990
public static void main(String[] args) throws Exception
String szJdbcURL = args[0];
String szUser = args[1];
String szPasswd = args[2];
String szModelName = args[3];
Oracle oracle = new Oracle(szJdbcURL, szUser, szPasswd);
ModelOracleSem model = ModelOracleSem.createOracleSemModel(oracle, szModelName);
GraphOracleSem graph = model.getGraph();
FileInputStream is = new FileInputStream("map.rdf");
graph.getBulkUpdateHandler().prepareBulk(is,//inputstream
"http://example.com", // base URI
"N3", // data file type: can be RDF/XML, N-TRIPLE, etc.
"SYSAUX", // tablespace
null, // flags
null, // listener
"stage_table_name" // staging table name.
model.close();
oracle.dispose();
alwu:lib/% cat run.sh
java -classpath ./classes:jena-arq-2.9.2.jar:jena-core-2.7.2.jar:jena-iri-0.9.2.jar:log4j-1.2.16.jar:ojdbc6.jar:sdordfclient.jar:sdordf.jar:slf4j-api-1.6.4.jar:slf4j-simple-1.6.4.jar:xercesImpl-2.10.0.jar:xml-apis-1.4.01.jar Test2616990 jdbc:oracle:thin:@<host>:1521:rel12101 scott <password> zhe1
BEGIN
sem_apis.create_rdfview_model(
model_name => 'rdf_view_name',
tables => NULL,
r2rml_table_owner => 'SCOTT',
r2rml_table_name => 'STAGE_TABLE_NAME'
END;
SQL> 2 3 4 5 6 7 8 9
PL/SQL procedure successfully completed.
Hope it helps,
Zhe Wu -
Installation of IPC AP 7.0 Jar is getting Failed when uploading in CRM
Hello Experts,
we did some changes in the previosly uploded version of IPC AP 7.0 customer user exit Jar file in eclipse.
While uploading the new modified jar through transaction /SAPCND/UE_DEV in CRM we are getting error :" installation of module <Jar file name > has failed ".
when we checked the logs in SM 53 we seen the below mentioned error:
Message: Exception of type com.sap.sql.log.OpenSQLException caught: Exception of type com.sap.sql.sqlparser.CommonSQLParserException: - statement "DELETE FROM "SVMCRT_MOD_TR_T" WHERE "MODULE_NAME" LIKE ? ESCAPE ^ (reason: Modification of ABAP tables is not permit ted)" is not supported
caught: - statement "DELETE FROM "SVMCRT_MOD_TR_T" WHERE "MODULE_NAME" LIKE ? ESCAPE ^ (reason: Modification of ABAP tables is not permitted)" is not supported
--> com.sap.sql.log.OpenSQLException: Exception of type com.sap.sql.sqlparser.CommonSQLParserException: - statement "DELETE FROM "SVMCRT_MOD_TR_T" WHERE "MODULE_NAME" LIKE ? ESCAPE '^' (reason: Modification of ABAP tables is n" is not suppor ted
caught: - statement "DELETE FROM "SVMCRT_MOD_TR_T" WHERE "MODULE_NAME" LIKE ? ESCAPE '^' (reason: Modification of ABAP tables is not permitted)" is not supported
at com.sap.sql.log.Syslog.createAndLogOpenSQLException(Ljava/lang/Class;Ljava/lang/String;[Ljava/lang/Object;)Lcom/sap/sql/log/OpenSQLException;(Syslog.java:85)
at
if required i can post the complete stack trace.
any inputs/suggestions are most welcome.
Thanks & regards,
SiddharthHi Mark,
Yesterday after Posting the thread we found the same Note ,Issue occured because of JAVA write access was not enabled on the table ,After enabling it as mentioned in SAP Note, Jar file get successfully uploaded.
Thanks for your Help also.
Regards,
Siddharth -
Application working under NetBeans but not as a *.jar file
Hello,
recently I found a little problem. I wrote application that shows all available ports in my computer. When I am running this applications under NetBeans it works with no problem - finds all available ports. Then I am building it to the *.jar file. Application is working with no problem but command:
Enumeration PortIds = CommPortIdentifier.getPortIdentifiers();
is not returning any identifiers - PortIds is empty.
Anyone knows a solution for this type of problems? ThanksHi Venkatesh,
Few questions.
1. What is your JDeveloper version? (Always better to post your JDev version along with the question, which would help us to help you better).
2. Did you try adding webserviceclient.jar to the classpath? (Search in your JDev installation directory for the location of this jar file).
-Arun -
.jar file is not working properly :developed in NETBEANS
Hi Gurus,
i am using NETBEANS IDE 7.2.
i am developing a project that interacts with databases 10g and COM ports of machine , these all processes are performed by .bat file which i am trying to run from jFramform , code works perfectly .bat file is also called perfectly when i run the project using F6 from the NETBEANS, for testing i placed some dialogue boxes on the form to test it ,
but when i run executable .jar file , form run successfully and dialogue box works perfectly but .bat file is not called by executable .jar file.
this is how i call the .bat file...
String filePath = "D:/pms/Libraries/portlib.bat";
try {
Process p = Runtime.getRuntime().exec(filePath);
} catch (Exception e) {
e.printStackTrace();
and below is the contents of portlib.bat file
java -jar "D:\SMS\SMS\dist\SMS.jar"
you must probably ask why i am calling a .jar file using .bat file .
reason is that this .jar project sends message using GSM mobile , System.exit(); is compulsory to complete a job and then do the next one ,
if i use the same file to execute this job it makes exit to entire the application (hope you can understand my logic).
that's why i use extra .jar file in .bat file , when single job is completed .bat exits itself and new command is given.
Problem is that code is working perfectly in NETBEANS when i run the project but when i run .jar then .bat file is not working ,
thanks.Thanks Sir ,
You need to first test an example that works like the one in the article.
There are plenty of other examples on the web - find one you like:
http://javapapers.com/core-java/os-processes-using-java-processbuilder/
I tried this one.
try {
ProcessBuilder dirProcess = new ProcessBuilder("D:/SMS/SMS/Send_message.bat");
File commands = new File("D:/SMS/SMS/Send_message.bat");
File dirOut = new File("C:/process/out.txt");
File dirErr = new File("C:/process/err.txt");
dirProcess.redirectInput(commands);
dirProcess.redirectOutput(dirOut);
dirProcess.redirectError(dirErr);
dirProcess.start();
} catch (IOException ex) {
Logger.getLogger(mainform.class.getName()).log(Level.SEVERE, null, ex);
as instructed in the article i compiled both the projects at same version or sources and libraries which is 1.7
here is my version details
C:\>javac -version
javac 1.7.0_07
C:\>java -version
java version "1.7.0_07"
Java(TM) SE Runtime Environment (build 1.7.0_07-b11)
Java HotSpot(TM) Client VM (build 23.3-b01, mixed mode, sharing)
inside the NETBEANS IDE c:\process\err.txt remains empty and code works perfectly , but when I run executable .jar file( by double clicking on that file in dist directry) then c:\process\err.txt becomes full with this error text and there is no response from calling D:\SMS\SMS\send_message.bat
here is the error text
java.lang.UnsupportedClassVersionError: sms/SMSMAIN (Unsupported major.minor version 51.0)
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(Unknown Source)
at java.security.SecureClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.access$100(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
Exception in thread "main"
here is /SMS/SMS
unknown source ? -
Unable to load database driver from my applet's jar file
I'm trying to set up an applet that will talk to a MySQL database. I have no problem connecting to the database as I'm developing the code ("un-jarred"), but when I create a jar file of my code to test through a web browser, I cannot connect to the database due to the usual ClassNotFoundException. I have included mysql-connector-java-3.1.12-bin.jar (the current driver) in the jar, but I don't know if I'm supposed to supply some info through an attribute to the applet tag to let it know that the jar contains the driver it needs or if I have to call the driver differently in my code.
Any help is appreciated, thanks.The simplest approach is always the best. :)Abso-lutely.
Awesome, that worked perfectly. I Included the extra
jar file in the applet tag and now my applet makes
some sweet lovin' to the database.And you have succeeded where thousands have failed. Congratulations. -
Crystal Report not works in JAR File
I'm using Eclipse All in one, which includes Crystal Reports.. I Connected my Java program with Crystal Reports and its working properly. Now my problem is that the Report is not working in JAR files.. It throws some exception as
"com.crystaldecisions.sdk.occa.report.lib.ReportSDKException: com.businessobjects
com.businessobjects.reports.sdk.JRCCommunicationAdapter---- Error code:-2147215357 Error code name:internal"
Whats the Error.. I don't know. I think that i may missed some CLASSPATH Files. The included CLASSPATH Files are:
ReportViewer.jar
jrcerom.jar
Concurrent.jar
CrystalCharting.jar
CrystalCommon.jar
CrystalContentModels.jar
CrystalExporters.jar
CrystalExportingBase.jar
CrystalFormulas.jar
CrystalQueryEngine.jar
CrystalReportEngine.jar
CrystalReportingCommon.jar
icu4j.jar
keycodeDecoder.jar
log4j.jar
MetafileRenderer.jar
rasapp.jar
rascore.jar
rpoifs.jar
Serialization.jar
URIUtil.jar
xercesImpl.jar
xml-apis.jar
and the mysql-connector jar file
Anybody help me please...Unable to load database connector
'com.crystaldecisions.reports.queryengine..driverImpl.
DriverLoader
now you have any idea.. pleaseIs that a typo where you have two periods below?
queryengine..driverImplOther than that I don't think anybody here can help you with that. If your classpath includes all necessary JAR files and you are able to access all your resources from within your application JAR file, then I imagine there is a problem with the third-party crystal decisions JAR file or how you are attempting to use it.
My advice to you is to try and contact support with the vendor or provider of this API or possibly try posting on a support forum on their website to see if somebody can help you there. -
How to use one ODSI project artifact as jar for other ODSI project?
Hi,
I am working on multiple ODSI proejcts in Same Server. My problem is how to call one projects resources in other ODSI project. I need this as Some of Data Services read the data from more then one database. The projects are in seprate Dataspace projects but they are deployed in same server. When I try to export artifacts from one projects and include them as Jar in other projects I am not able to see any Data service methods so unable to call any method of one project in other project. Please advise how to recsolve this problem.
Thankyou in advance.
RahulIf you already have a case open, it's polite if you mention that - so I don't have to answer the same questions to support and also to this forum. Likewise, when you get an answer to your question on this forum, you can tell support. So they don't keep looking for something you already have the answer to. Cuts down on the duplication of effort.
You have one project. You add more files to it (regardless of how you add them - by creating files with the editor, by using a wizard or by importing files from another project), you still have only one project.
If you had some other project that you exported the files from - that project is still there - but the original project does not know or care about it.
Edited by: mikereiche on Jun 21, 2010 1:55 PM -
How to modify a specific class in jar file ?
I've downloaded a jar file for applet, the jar file works fine... but when I extract a specific class file from the jar file and just recompie it from my IDE (Eclipse) without even making any change and then compress again jar class files including the new modified class file instead of the old one (without any modifications to other classes)... then I get
(NoSuchMethodError ) exception whenever methods of other classes are invoked from within the modified class !!
...The manifist file of the jar file reads the following line
Created-By: 1.4.0_01 (Sun Microsystems Inc.)
I thought it means that jar class files were built using JDK 1.4.0_01 ...I used JDK 1.5.0_01 in my IDE...
I thought JRE incompatiblity was the reason of the problem so I downloaded JRE 1.4.0_01 and used it to build this class file... but i got the same exception..
so what is the main reason of the problem ? ...should I make changes to IDX files accompanying applet jar files ??
If no, then how can I overcome this problem and be able to change and rebuild a specific class from this jar file ?
(I cannot rebuild all classes in jar because there are errors I cannot resolve !!)Could you please clarify: do you want to run your project or a project from an independent jar?
In the first case just select Run Project from the project context menu or select a class with main method and click Run File in the class context menu.
Regarding the second case:
- I don't think there is such a feature in the IDE (running third party jars is not an IDE function). Could you explain why you need this? -
How to load a Jar file in the class path?
How to load a Jar file which contains class files, images, etc.. in the classpath without using URLClassLoader.
You don't "load" jars. If it's on the classpath, you can obtain individual resources from it using various methods on either Class or ClassLoader. Do you mean "how to add a jar to the classpath at runtime"? Can't be done without using a classloader, typically URLClassLoader or a subclass thereof. Why you want to not use the proven method is beyond me. Presumably because you don't understand classloading. In which case, forget it.
-
Loading jar files at execution time via URLClassLoader
Hello�All,
I'm�making�a�Java�SQL�Client.�I�have�practicaly�all�basic�work�done,�now�I'm�trying�to�improve�it.
One�thing�I�want�it�to�do�is�to�allow�the�user�to�specify�new�drivers�and�to�use�them�to�make�new�connections.�To�do�this�I�have�this�class:�
public�class�DriverFinder�extends�URLClassLoader{
����private�JarFile�jarFile�=�null;
����
����private�Vector�drivers�=�new�Vector();
����
����public�DriverFinder(String�jarName)�throws�Exception{
��������super(new�URL[]{�new�URL("jar",�"",�"file:"�+�new�File(jarName).getAbsolutePath()�+"!/")�},�ClassLoader.getSystemClassLoader());
��������jarFile�=�new�JarFile(new�File(jarName));
��������
��������/*
��������System.out.println("-->"�+�System.getProperty("java.class.path"));
��������System.setProperty("java.class.path",�System.getProperty("java.class.path")+File.pathSeparator+jarName);
��������System.out.println("-->"�+�System.getProperty("java.class.path"));
��������*/
��������
��������Enumeration�enumeration�=�jarFile.entries();
��������while(enumeration.hasMoreElements()){
������������String�className�=�((ZipEntry)enumeration.nextElement()).getName();
������������if(className.endsWith(".class")){
����������������className�=�className.substring(0,�className.length()-6);
����������������if(className.indexOf("Driver")!=-1)System.out.println(className);
����������������
����������������try{
��������������������Class�classe�=�loadClass(className,�true);
��������������������Class[]�interfaces�=�classe.getInterfaces();
��������������������for(int�i=0;�i<interfaces.length;�i++){
������������������������if(interfaces.getName().equals("java.sql.Driver")){
����������������������������drivers.add(classe);
������������������������}
��������������������}
��������������������Class�superclasse�=�classe.getSuperclass();
��������������������interfaces�=�superclasse.getInterfaces();
��������������������for(int�i=0;�i<interfaces.length;�i++){
������������������������if(interfaces[i].getName().equals("java.sql.Driver")){
����������������������������drivers.add(classe);
������������������������}
��������������������}
����������������}catch(NoClassDefFoundError�e){
����������������}catch(Exception�e){}
������������}
��������}
����}
����
����public�Enumeration�getDrivers(){
��������return�drivers.elements();
����}
����
����public�String�getJarFileName(){
��������return�jarFile.getName();
����}
����
����public�static�void�main(String[]�args)�throws�Exception{
��������DriverFinder�df�=�new�DriverFinder("D:/Classes/db2java.zip");
��������System.out.println("jar:�"�+�df.getJarFileName());
��������Enumeration�enumeration�=�df.getDrivers();
��������while(enumeration.hasMoreElements()){
������������Class�classe�=�(Class)enumeration.nextElement();
������������System.out.println(classe.getName());
��������}
����}
It�loads�a�jar�and�searches�it�looking�for�drivers�(classes�implementing�directly�or�indirectly�interface�java.sql.Driver)�At�the�end�of�the�execution�I�have�found�all�drivers�in�the�jar�file.
The�main�application�loads�jar�files�from�an�XML�file�and�instantiates�one�DriverFinder�for�each�jar�file.�The�problem�is�at�execution�time,�it�finds�the�drivers�and�i�think�loads�it�by�issuing�this�statement�(Class�classe�=�loadClass(className,�true);),�but�what�i�think�is�not�what�is�happening...�the�execution�of�my�code�throws�this�exception
java.lang.ClassNotFoundException:�com.ibm.as400.access.AS400JDBCDriver
��������at�java.net.URLClassLoader$1.run(URLClassLoader.java:198)
��������at�java.security.AccessController.doPrivileged(Native�Method)
��������at�java.net.URLClassLoader.findClass(URLClassLoader.java:186)
��������at�java.lang.ClassLoader.loadClass(ClassLoader.java:299)
��������at�sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:265)
��������at�java.lang.ClassLoader.loadClass(ClassLoader.java:255)
��������at�java.lang.ClassLoader.loadClassInternal(ClassLoader.java:315)
��������at�java.lang.Class.forName0(Native�Method)
��������at�java.lang.Class.forName(Class.java:140)
��������at�com.marmots.database.DB.<init>(DB.java:44)
��������at�com.marmots.dbreplicator.DBReplicatorConfigHelper.carregaConfiguracio(DBReplicatorConfigHelper.java:296)
��������at�com.marmots.dbreplicator.DBReplicatorConfigHelper.<init>(DBReplicatorConfigHelper.java:74)
��������at�com.marmots.dbreplicator.DBReplicatorAdmin.<init>(DBReplicatorAdmin.java:115)
��������at�com.marmots.dbreplicator.DBReplicatorAdmin.main(DBReplicatorAdmin.java:93)
Driver�file�is�not�in�the�classpath�!!!�
I�have�tried�also�(as�you�can�see�in�comented�lines)�to�update�System�property�java.class.path�by�adding�the�path�to�the�jar�but�neither...
I'm�sure�I'm�making�a/some�mistake/s...�can�you�help�me?
Thanks�in�advice,
(if�there�is�some�incorrect�word�or�expression�excuse�me)Sorry i have tried to format the code, but it has changed to �... sorry read this one...
Hello All,
I'm making a Java SQL Client. I have practicaly all basic work done, now I'm trying to improve it.
One thing I want it to do is to allow the user to specify new drivers and to use them to make new connections. To do this I have this class:
public class DriverFinder extends URLClassLoader{
private JarFile jarFile = null;
private Vector drivers = new Vector();
public DriverFinder(String jarName) throws Exception{
super(new URL[]{ new URL("jar", "", "file:" + new File(jarName).getAbsolutePath() +"!/") }, ClassLoader.getSystemClassLoader());
jarFile = new JarFile(new File(jarName));
System.out.println("-->" + System.getProperty("java.class.path"));
System.setProperty("java.class.path", System.getProperty("java.class.path")+File.pathSeparator+jarName);
System.out.println("-->" + System.getProperty("java.class.path"));
Enumeration enumeration = jarFile.entries();
while(enumeration.hasMoreElements()){
String className = ((ZipEntry)enumeration.nextElement()).getName();
if(className.endsWith(".class")){
className = className.substring(0, className.length()-6);
if(className.indexOf("Driver")!=-1)System.out.println(className);
try{
Class classe = loadClass(className, true);
Class[] interfaces = classe.getInterfaces();
for(int i=0; i<interfaces.length; i++){
if(interfaces.getName().equals("java.sql.Driver")){
drivers.add(classe);
Class superclasse = classe.getSuperclass();
interfaces = superclasse.getInterfaces();
for(int i=0; i<interfaces.length; i++){
if(interfaces[i].getName().equals("java.sql.Driver")){
drivers.add(classe);
}catch(NoClassDefFoundError e){
}catch(Exception e){}
public Enumeration getDrivers(){
return drivers.elements();
public String getJarFileName(){
return jarFile.getName();
public static void main(String[] args) throws Exception{
DriverFinder df = new DriverFinder("D:/Classes/db2java.zip");
System.out.println("jar: " + df.getJarFileName());
Enumeration enumeration = df.getDrivers();
while(enumeration.hasMoreElements()){
Class classe = (Class)enumeration.nextElement();
System.out.println(classe.getName());
It loads a jar and searches it looking for drivers (classes implementing directly or indirectly interface java.sql.Driver) At the end of the execution I have found all drivers in the jar file.
The main application loads jar files from an XML file and instantiates one DriverFinder for each jar file. The problem is at execution time, it finds the drivers and i think loads it by issuing this statement (Class classe = loadClass(className, true);), but what i think is not what is happening... the execution of my code throws this exception
java.lang.ClassNotFoundException: com.ibm.as400.access.AS400JDBCDriver
at java.net.URLClassLoader$1.run(URLClassLoader.java:198)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:186)
at java.lang.ClassLoader.loadClass(ClassLoader.java:299)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:265)
at java.lang.ClassLoader.loadClass(ClassLoader.java:255)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:315)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:140)
at com.marmots.database.DB.<init>(DB.java:44)
at com.marmots.dbreplicator.DBReplicatorConfigHelper.carregaConfiguracio(DBReplicatorConfigHelper.java:296)
at com.marmots.dbreplicator.DBReplicatorConfigHelper.<init>(DBReplicatorConfigHelper.java:74)
at com.marmots.dbreplicator.DBReplicatorAdmin.<init>(DBReplicatorAdmin.java:115)
at com.marmots.dbreplicator.DBReplicatorAdmin.main(DBReplicatorAdmin.java:93)
Driver file is not in the classpath !!!
I have tried also (as you can see in comented lines) to update System property java.class.path by adding the path to the jar but neither...
I'm sure I'm making a/some mistake/s... can you help me?
Thanks in advice,
(if there is some incorrect word or expression excuse me) -
Error while updating a jar file
I am trying to update a jar file using teh following command
jar -uf project.jar fileMy.prop
however while doing that i get the following error
java.io.IOException: Error in writing existing jar file
at sun.tools.jar.Main.run(Main.java:179)
at sun.tools.jar.Main.main(Main.java:904)Perhaps some process (your java program perhaps) is still running that has the file open still? You'll need to shut down the process(es) that have it open. Or you don't have proper rights to the directory/file. Not a java issue.
Maybe you are looking for
-
Need negative quantity non-inventory items on Credit Memo
Version: (2007A) Description of requirements: (Please provide a detailed description) Our customer issues many invoices with a negative quantity line item for a miscellaneous non-inventory item. These non-inventory items are used to reduce the amount
-
Can Acrobat create a PDF using the same page numbers as FrameMaker?
I'm using FrameMaker 10 on Windows 7 and Acrobat Pro 9. I know I can set the page numbers after I create the PDF (Advanced > Document Processing > Page Numbering), but is there any way to tell Acrobat (or Distiller) to do this automatically based on
-
I am an immigration attorney and have an online immigration program I use daily. Since the last upgrade of Firefox, the immigration forms (adobe acrobat) for my clients do not load correctly. I get a message that the forms may not display correctly w
-
How to add a time delay of microsecond in labview 2011
can you please help me, how to add a time delay of microseconds in labview 2011 version . I expect a helpful replies
-
Is there any BAPI or FM to pack Materials into Handling unit in INB Deliver
HI, I would appreciate if any one can throw some light or FM or BAPI with some sample data to pack material into handling units in a inbound delivery (VL32n). Regards PRasad