Unalbe to connect to IFS
Hi !
I'm new in the IFS world and I attenped to run the Hello World Sample.
My java source is compliling well, but a have this run-time exception :
Exception in thread main
"D:\Program Files\Oracle\JDeveloper 3.1\java1.2\jre\bin\javaw.exe" -mx50m -classpath "D:\hdr-ifs;D:\Program Files\Oracle\JDeveloper 3.1\lib\jdev-rt.zip;D:\Program Files\Oracle\JDeveloper 3.1\jdbc\lib\oracle8.1.6\classes12.zip;D:\Program Files\Oracle\JDeveloper 3.1\lib\connectionmanager.zip;C:\orant8i\Ifs\repos.jar;C:\orant8i\Ifs\webui.jar;C:\orant8i\Ifs\clientlib.jar;C:\orant8i\Ifs\cmdlineutils.jar;C:\orant8i\Ifs\cup.jar;C:\orant8i\Ifs\e mail.jar;C:\orant8i\Ifs\ftp.jar;C:\orant8i\Ifs\http.jar;C:\orant8i\Ifs\ntfs.jar;C:\orant8i\Ifs\utils.jar;C:\orant8i\Ifs\wcp.jar;C:\orant8i\Ifs\adk.jar;C:\orant8i\Ifs;D:\Program Files\Oracle\JDeveloper 3.1\java1.2\jre\lib\rt.jar" sword.Application1
java.lang.NoSuchMethodError
oracle.ifs.beans.LibrarySession oracle.ifs.beans.LibraryService.connect(oracle.ifs.common.Credential, oracle.ifs.common.ConnectOptions)
void sword.Application1.main(java.lang.String[])
Exception in thread main
Here is my sample code :
// Copyright (c) 2000 IDL
package sword;
import oracle.ifs.beans.*;
import oracle.ifs.common.*;
import java.util.*;
public class Application1 {
public Application1() {
public static void main(String[] args) {
new Application1();
try {
//Connect to the repository.
LibraryService ifsService = new LibraryService();
CleartextCredential me = new CleartextCredential("system", "manager");
ConnectOptions connectOpts = new ConnectOptions();
connectOpts.setLocale(Locale.getDefault());
connectOpts.setServiceName("IfsTools");
connectOpts.setServicePassword("ifssys");
LibrarySession ifsSession = ifsService.connect(me,connectOpts);
//Create a new DocumentDefinition and a new Document.
DocumentDefinition newDocDef = new DocumentDefinition(ifsSession);
newDocDef.setAttribute("NAME", AttributeValue.newAttributeValue("Hello_World.txt"));
newDocDef.setContent("Hello World");
Document doc = (Document) ifsSession.createPublicObject(newDocDef);
//Obtain the users home folder and add the new Document to it.
DirectoryUser thisUser = ifsSession.getDirectoryUser();
PrimaryUserProfile userProfile = ifsSession.getPrimaryUserProfile(thisUser);
Folder homeFolder = userProfile.getHomeFolder();
homeFolder.addItem(doc);
//Disconnect from the repository.
ifsSession.disconnect();
catch (IfsException ex) {
ex.setVerboseMessage(true);
ex.printStackTrace();
catch(Exception ex) {
ex.printStackTrace();
null
The entries in the CLASSPATH you posted above looks like they might be from iFS 1.0. (The directory they're being looked up from is C:\orant8i\Ifs) When did you install iFS into this directory? (iFS 1.1 gets installed into %ORACLE_HOME%\ifs1.1)
Also, the error you're seeing:
NoSuchMethodError: oracle.ifs.beans.LibrarySession oracle.ifs.beans.LibraryService.connect(oracle.ifs.common.Credential, oracle.ifs.common.ConnectOptions)
also makes me think you're using iFS 1.0 jars. (That method was added in iFS 1.1)
Similar Messages
-
Error IFS-20010 connecting to IFS from java class
Hello,
I try to connect to IFS from java program with sentences:
LibraryService ifsService = new LibraryService();
CleartextCredential me = new CleartextCredential("user", "password");
ConnectOptions connectOpts = new ConnectOptions();
connectOpts.setServiceName("ifsDefault");
connectOpts.setServicePassword("ifspassword");
LibrarySession ifsSession = ifsService.connect(me,connectOpts);
the class compile but not run because the error:
IFS-20010: Failed to get PropertiesResourceBundler ifsDefault.
The message errors documentation said:
This error occurs when attempting to start an Oracle iFS process by specifying a service properties file name that cannot be located by the Oracle iFS repository. The
parameter specified in the error is the name of the specified service properties file. The specified service properties file
must exist in the oracle.ifs.server.properties package
descending from one of the directories included in the
CLASSPATH setting for the process.
I don't understand what mean this, somebody yes?
Please give me any idea.
What can i do to solve this problem?
Thanks.
FABIANHi,
Make sure you have $ORACLE_HOME/ifs/settings in your classpath.
Good luck. -
Hi,
I have a web authentication module for verifying usernames and password which connects to Oracle database via IFS. I get following error when I try to login using my web application.
oracle.ifs.common.IfsException: IFS-21008: Login failure
oracle.ifs.common.IfsException: IFS-10170: Invalid name/credential
java.sql.SQLException: ORA-04031: unable to allocate 4096 bytes of sha
red memory ("shared pool","BEGIN :1 := DA1644$CM.IfsCre...","PL/SQL MP
CODE","BAMIMA: Bam Buffer")
at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java
:168)
at oracle.jdbc.oci8.OCIDBAccess.check_error(OCIDBAccess.java:1
597)
at oracle.jdbc.oci8.OCIDBAccess.executeFetch(OCIDBAccess.java:
1209)
at oracle.jdbc.oci8.OCIDBAccess.parseExecuteFetch(OCIDBAccess.
java:1321)
at oracle.jdbc.driver.OracleStatement.executeNonQuery(OracleSt
atement.java:1446)
at oracle.jdbc.driver.OracleStatement.doExecuteOther(OracleSta
tement.java:1371)
at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(Ora
cleStatement.java:1900)
at oracle.jdbc.driver.OraclePreparedStatement.executeUpdate(Or
aclePreparedStatement.java:363)
at oracle.jdbc.driver.OraclePreparedStatement.executeQuery(Ora
clePreparedStatement.java:314)
at oracle.ifs.server.IfsCredentialManager.checkCredential(IfsC
redentialManager.java:821)
at oracle.ifs.server.IfsCredentialManager.authenticate(IfsCred
entialManager.java:255)
at oracle.ifs.server.DirectoryService.authenticate(DirectorySe
rvice.java:515)
at oracle.ifs.server.S_LibraryService.connect(S_LibraryService
.java:1953)
at oracle.ifs.beans.LibraryService.connectLocal(LibraryService
.java:410)
at oracle.ifs.beans.LibraryService.connect(LibraryService.java
:280)
at com.valicert.docvault.core.IfsConnectionPool.createObject(I
fsConnectionPool.java:111)
at com.valicert.util.ObjectPool.get(ObjectPool.java:241)
at com.valicert.docvault.core.IfsConnectionPool.getConnection(
IfsConnectionPool.java:77)
at com.valicert.docvault.core.IfsSession.acquire(IfsSession.ja
va:176)
at com.valicert.docvault.auth.IfsNamePasswordAuthModule.login(
IfsNamePasswordAuthModule.java:70)
at com.valicert.api.auth.AuthenticationManager.login(Authentic
ationManager.java:165)
at com.valicert.docvault.core.Login.doLogin(Login.java:146)
at com.valicert.docvault.core.Login.doEvent(Login.java:99)
at com.valicert.docvault.core.BaseServlet.service(BaseServlet.
java:438)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:588
at org.apache.jserv.JServConnection.processRequest(JServConnec
tion.java:317)
at org.apache.jserv.JServConnection.run(JServConnection.java:1
88)
at java.lang.Thread.run(Thread.java:479)
Jan 24, 2001 5:02:08 PM(Thread-9): ERROR: Unable to connect to IFS.
Any pointers?Database configuration problem by the look of it. Check out ORA-04031 in oracle database error messages manual
-
I am currently trying to find a way to connect to IFS remotely and obtain a LibrarySession.
So far I have a 9i client installed and I have a file called service.properties (altered copy of IfsDefault.properties) in an identical file structure to that of the IFS server ('D:\oracle\ora90\9ifs\settings\oracle\ifs\server\properties').
I have altered the service.properties to include the following lines.
IFS.SERVICE.JDBC.Schema=myschema
IFS.SERVICE.JDBC.User=myuser
IFS.SERVICE.JDBC.CredentialManagerIfsSchema=myCredentialManager
IFS.SERVICE.JDBC.DatabaseUrl=jdbc:oracle:oci8:@myDbUrl
My problem is when I try to run the follwing code to connect to the LibraryService.
public LibraryService startService()
String serviceName = getServiceName();
String schemaPassword = getSchemaPassword();
LibraryService service = null;
try
service = LibraryService.findService(serviceName);
catch (Throwable e)
e.printStackTrace();
return service;
All this returns is:
oracle.ifs.common.IfsException: IFS-20100: Unable to find service (IfsDefault)
oracle.ifs.common.IfsException: IFS-20120: Invalid service name (serviceName)
at oracle.ifs.server.S_LibraryService.findService(S_LibraryService.java:1328)
Can anybody help, as the documentation is a little light on this topic.
Its gotta be worth it for a beer right?First off, what does your getServiceName() method return? It looks like it's returning "IfsDefault" which is bad, since your service configuration file is called "service.properties". (Meaning, the service name would be "service".)
Secondly, when you start up a new application (in a standalone JVM), you're not going to have any running LibraryService instances. So of course, LibraryService.findService is not going to find your service. So here's how you can obtain a connected LibrarySession to a 9iFS LibraryService:
public LibrarySession getLibrarySession( String username,
String password,
String service,
String schemaPassword )
throws IfsException
CleartextCredential cc =
new CleartextCredential(username, password);
ConnectOptions co = new ConnectOptions();
if( LibraryService.isServiceStarted(service) )
return LibraryService.findService(service).connect(cc, co);
else
return LibraryService.startService(
service, schemaPassword ).connect(cc, co);
} -
Connecting to iFS from a WF Java External function
People,
I have an external Java function activity. From within it, I want to make a connection to iFS using the iFS Java API. But I am getting the following error:
java.lang.UnsatisfiedLinkError: getRefHashCode
The iFS Java code is:
LibraryService service = new LibraryService();
CleartextCredential cred = new CleartextCredential(
vUsername, vPassword);
ConnectOptions options = new ConnectOptions();
options.setLocale(Locale.getDefault());
options.setServiceName(vServiceName);
options.setServicePassword(vServicePassword);
LibrarySession oSession = service.connect(cred, options);
I wonder that I have to put something more into the classpath of the Oracle Workflow Java Function Activity Agent, but I don't know what. Here is what I am calling:
C:\oracle\ora81\wf\admin>jre -classpath ";C:\oracle\ora81\wf\JRE11\lib\rt.jar;c:\oracle\ora81\wf\java;c:\oracle\ora81\wf\java\oracle\apps\fnd\wf\jar\wfjava.jar;c:\oracle\ora81\wf\xml\java\lib\xmlparserv2.jar;c:\oracle\ora81\wf\java\oracle\a
pps\fnd\wf\jar\wfapi.jar;c:\oracle\ora81\jdbc\lib\classes111.zip;c:\oracle\ora81\wf\java\oracle\apps\fnd\wf\jar\fndbalishare.jar;c:\oracle\ora81\wf\java\oracle\apps\fnd\wf\jar\fndewt.jar;c:\oracle\ora81\wf\oracle\java\apps\fnd\wf\jar\fndswing.jar;C:\oracle\ora81\ifs1.1\lib\adk.jar;C:\oracle\ora81\ifs1.1\lib\email.jar;C:\oracle\ora81\ifs1.1\lib\release.jar;C:\oracle\ora81\ifs1.1\lib\repos.jar;C:\oracle\ora81\ifs1.1\lib\utils.jar;C:\oracle\ora81\ifs1.1\custom_classes;C:\oracle\
ora81\ifs1.1\settings;C:\oracle\ora81\lib;C:\oracle\ora81\sqlj\lib\runtime.zip;C:\oracle\ora81\sqlj\lib\runtime11.zip;" -nojit oracle.apps.fnd.wf.WFFALsnr user/password@db
I'm using Oracle 8.1.7.0, Workflow 2.6.0 and iFS 1.1.9 on W2K.
Thanks for any help,
Daniel VieroSee
http://technet.oracle.com:89/ubb/Forum36/HTML/000173.html -
Has anyone connected to iFS from Perl or PHP
Hi,
I am evaluating iFS and we currently connect to Oracle 8i
through Perl and PHP. Is Java the only way to connect to iFS or
has anyone been able to do it through other scripting languages
such as Perl or PHP? Any help would be greatly appreciated,
thank you.Regarding PHP you may consider using the PHP-build in java
wrapper (--with-java). However, your code will be significant
harder to read, while basically doing the same than native java
code. It makes no sesnse to rewrite the ifs-java-API itself, as
it is good and complete (in contrast to the webui).
Best regards -
IFS-10620 when trying to connect to ifs (server side)
hi!
I have deployed the ifs-classes and -properties to the database (8.1.7).
To call the Java-API I used following Class (out of the Oracle documentation)
// Copyright (c) 2001 Oracle Corporation
import oracle.ifs.beans.LibraryService;
import oracle.ifs.beans.LibrarySession;
import oracle.ifs.common.CleartextCredential;
import oracle.ifs.common.ConnectOptions;
import oracle.ifs.common.IfsException;
import oracle.ifs.common.ParameterTable;
public class HelloIFSWorld implements Runnable
ParameterTable params=null;
String username=null;
String password=null;
String servicename=null;
String schemapassword=null;
public HelloIFSWorld(String[] args)
params=new ParameterTable(args);
username=params.getString("user","system");
password=params.getString("password","manager");
servicename=params.getString("service","IfsDefault");
schemapassword=params.getString("schemapassword","bravo");
System.out.println("Running with arguments:");
System.out.println("username="+username);
System.out.println("password="+password);
System.out.println("servicename="+servicename);
System.out.println("schemapassword="+schemapassword);
System.out.println("---------Results----------");
public static void main (String[] args)
new Thread(new HelloIFSWorld(args)).start();
public void run()
try
System.out.println("Obtaining LibraryService.");
LibraryService lsrvc=new LibraryService();
System.out.println("LibraryService obtained for Oracle iFS version:"+lsrvc.getVersionString());
System.out.println("Obtaining LibrarySession.");
CleartextCredential cr=new CleartextCredential(username,password);
System.out.println("Obtaining ConnectOptions.");
ConnectOptions cop=new ConnectOptions();
System.out.println("setting servicename.");
cop.setServiceName(servicename);
System.out.println("setting schemapassword.");
cop.setServicePassword(schemapassword);
System.out.println("connecting.");
LibrarySession session=lsrvc.connect(cr, cop);
System.out.println("LibrarySession obtained for user:"+session.getUser().getName());
catch(IfsException e )
e.printStackTrace();
When I try to connect to the IFS this message comes up (call_HelloIFSWorld is a PLSQL-Wrapper-Function ...):
SQL> exec call_HelloIFSWorld;
Running with arguments:
username=system
password=manager
servicename=IfsDefault
schemapassword=bravo
---------Results----------
Obtaining LibraryService.
LibraryService obtained for Oracle iFS version: 1.1.5.0.0
Obtaining LibrarySession.
Obtaining ConnectOptions.
setting servicename.
setting schemapassword.
connecting.
oracle.ifs.common.IfsException: IFS-10620: Unable to construct connection pool
at java.sql.DriverManager.getConnection(DriverManager.java:477)
at java.sql.DriverManager.getConnection(DriverManager.java:137)
at oracle.ifs.server.LibraryConnection.<init>(LibraryConnection.java:235)
at oracle.ifs.server.ConnectionPool.createLibraryConnection(ConnectionPool.java:576)
at oracle.ifs.server.ConnectionPool.<init>(ConnectionPool.java:321)
at oracle.ifs.server.S_LibraryService.<init>(S_LibraryService.java:912)
at oracle.ifs.server.S_LibraryService.startService(S_LibraryService.java:1129)
at oracle.ifs.beans.LibraryService.connectLocal(LibraryService.java:408)
at oracle.ifs.beans.LibraryService.connect(LibraryService.java:280)
at ifs_test.HelloIFSWorld.run(HelloIFSWorld.java:66)
PL/SQL procedure successfully completed.
SQL>
In the IfsDefault.properties I used
DatabaseUrl=jdbc:default:connection:
as connection descriptor
Now, what could be wrong?
RolandI don't think 'malware' is your issue. And probably not accurate to begin with.
PowerBook G4 would be running Tiger 10.4. I assume.
Your router/modem etc might be what you see.
When you log into your network equipment, harden it and make sure to change the defalt password, use something stronger (create and store in Keychain or another password manager).
AS much as I favor security I don't know of any WORM or router exploit, but there are always people that will look to do remote login.
If you ever use(s) a bittorrent client your IP got listed on P2P servers and you will see denial of service on your router/firewall.
NAS hard drives, printers, anything that can be shared?
And Apple has more than a few Networking Support articles.
Make sure your modem etc have the latest firmware, too. -
Connection to iFS from a remote station & .properties file syntax
Hello,
I want to make a java application (running on a simple NT workstation) that is able to connect onto the iFS-1.1.9 server (running on a different unix server).
So I copied all the necessary jar and zip files from the iFS server, installed JDK1.1.8 (would it work with JDK 1.3 since I have iFS-1.1.9 ?), put all necessary jar/zip files in the classpath and I was able to compile the sample program given in the iFS dev guide.
I know that I also need a "service.properties" file that is in oracle.ifs.server.properties directory in my CLASSPATH, that point is ok.
The fact is that I don't have a clue about the exact syntax of that file. I only have as an example the standard servers.properties file on my iFS server itself, but the "DatabaseUrl" attribute is probably not the same because in my case the service is running on a remote machine...
As a result, when I launch my java app on my workstation it says :
oracle.ifs.common.IfsException: IFS-10620: Unable to construct connection pool
oracle.ifs.common.IfsException: IFS-10633: Unable to create library connection
oracle.ifs.common.IfsException: IFS-10600: Unable to construct library connection
So is there anything I am missing ? Where can I find the definition and syntax of all attributes in the .properties file ?
Thanks in advance for any help.
Regards,
Arnaud.
null<BLOCKQUOTE><font size="1" face="Verdana, Arial, Helvetica">quote:</font><HR>Thanks to your advises, here is the simple properties file I created (only 3 lines) :
User=IFSSYS
DatabaseUrl=jdbc:oracle:oci8:haddock/tciDir
CredentialManagerIfsSchema=IFSSYS$CM
<HR></BLOCKQUOTE>
OK, so there are two problems. First of all, I should have explained better. You absolutely need ALL of the other properties in the new service properties file you have created. What I should have said in the last post was that the above three properties are the only ones you need to CHANGE. What you should do is copy IfsDefault.properties from the iFS installation ($OH/ifs1.1/settings/oracle/ifs/server/properties) to your NT machine, and then EDIT those three properties as you have specified above. And make sure to put it in the CLASSPATH correctly, under the same directory hierarchy.
The second problem is your JDBC database URL. The format for the OCI8 connect string using a TNS alias is as follows:
jdbc:oracle:oci8:@<tns_alias>
where <tns_alias> is a name you create with the Oracle Net8 Assistant (it should be on your NT machine under your Start menu: Oracle-<your_oracle_home>/Network Administration).
You should read the Net8 Administration Guide for more information about TNS aliases and how to use "thick" (OCI8) JDBC. -
After I compile following HelloWorld.java, I have gotten a lot of error reports.
How can I solve this probleme. I am expecting your help
Yiping
Following are reports and programme.
//reports
Obtaining LibraryService.
oracle.ifs.common.IfsException: IFS-20102: Unable to start service (IfsDefault)
oracle.ifs.common.IfsException: IFS-20122: Unable to construct service
oracle.ifs.common.IfsException: IFS-10620: Unable to construct connection pool
oracle.ifs.common.IfsException: IFS-10633: Unable to create library connection
oracle.ifs.common.IfsException: IFS-10600: Unable to construct library connection
java.sql.SQLException: Zeichensatz nicht unterst|tzt !!: DBConversion
void oracle.jdbc.dbaccess.DBError.throwSqlException(java.lang.String, java.lang.String, int)
void oracle.jdbc.dbaccess.DBError.throwSqlException(int, java.lang.Object)
void oracle.jdbc.dbaccess.DBError.check_error(int, java.lang.Object)
void oracle.jdbc.dbaccess.DBConversion.unexpectedCharset(short)
void oracle.jdbc.dbaccess.DBConversion.<init>(short, short, short)
oracle.jdbc.dbaccess.DBConversion oracle.jdbc.oci8.OCIDBAccess.logon(java.lang.String, java.lang.String, java.lang.String, java.util.Properties)
void oracle.jdbc.driver.OracleConnection.<init>(oracle.jdbc.dbaccess.DBAccess, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.util.Properties)
java.sql.Connection oracle.jdbc.driver.OracleDriver.getConnectionInstance(java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.util.Properties)
java.sql.Connection oracle.jdbc.driver.OracleDriver.connect(java.lang.String, java.util.Properties)
java.sql.Connection java.sql.DriverManager.getConnection(java.lang.String, java.util.Properties, java.lang.ClassLoader)
java.sql.Connection java.sql.DriverManager.getConnection(java.lang.String, java.lang.String, java.lang.String)
void oracle.ifs.server.LibraryConnection.<init>(long, oracle.ifs.server.S_LibraryService, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.io.PrintStream, int)
oracle.ifs.server.LibraryConnection oracle.ifs.server.ConnectionPool.constructLibraryConnection(int)
void oracle.ifs.server.ConnectionPool.createLibraryConnection()
void oracle.ifs.server.ConnectionPool.<init>(oracle.ifs.server.S_LibraryService, oracle.ifs.server.ConnectionPoolConfiguration)
void oracle.ifs.server.S_LibraryService.resetConnectionPools(boolean)
void oracle.ifs.server.S_LibraryService.<init>(java.lang.String, java.lang.String, oracle.ifs.common.AttributeValue[])
oracle.ifs.server.S_LibraryService oracle.ifs.server.S_LibraryService.startService(java.lang.String, java.lang.String, oracle.ifs.common.AttributeValue[])
oracle.ifs.beans.LibraryService oracle.ifs.beans.LibraryService.startService(java.lang.String, java.lang.String, oracle.ifs.common.AttributeValue[])
oracle.ifs.beans.LibraryService oracle.ifs.beans.LibraryService.startService(java.lang.String, java.lang.String)
void de.adstec.sam.adapter.ifs.HelloWorld.run()
void java.lang.Thread.run()
Process exited with exit code 0.
//Programm
package de.adstec.sam.adapter.ifs;
import oracle.ifs.beans.LibraryService;
import oracle.ifs.beans.LibrarySession;
import oracle.ifs.common.CleartextCredential;
import oracle.ifs.common.ConnectOptions;
import oracle.ifs.common.IfsException;
import oracle.ifs.common.ParameterTable;
public class HelloWorld implements Runnable
ParameterTable params = null;
String username = null;
String password = null;
String servicename = null;
String schemapassword = null;
public HelloWorld(String[] args)
params = new ParameterTable(args);
username = params.getString("user", "system");
password = params.getString("password","manager9ifs");
servicename = params.getString("service","IfsDefault");
schemapassword = params.getString("schemapassword","ifssys");
System.out.println("Running with arguments : ");
System.out.println(" username = " + username);
System.out.println(" password = " + password);
System.out.println(" servicename = " + servicename);
System.out.println(" schemapassword = " + schemapassword);
System.out.println("---------Results----------");
public static void main (String[] args)
new Thread(new HelloWorld(args)).start();
public void run()
try
System.out.println("Obtaining LibraryService.");
LibraryService lsrvc = LibraryService.startService(servicename,schemapassword);
System.out.println("LibraryService obtained for Oracle iFS version: " +
lsrvc.getVersionString());
System.out.println("Obtaining LibrarySession.");
CleartextCredential cr = new CleartextCredential(username,password);
ConnectOptions cop = new ConnectOptions();
LibrarySession session = lsrvc.connect(cr, cop);
System.out.println("LibrarySession obtained for user : " + session.getUser().getName());
catch(IfsException e )
e.printStackTrace();
//Classpath
W:\libs\external\Oracle\9ifs\adk.jar;W:\libs\external\Oracle\9ifs\email.jar;W:\libs\external\Oracle\9ifs\repos.jar;W:\libs\external\Oracle\9ifs\utils.jar;W:\libs\external\Oracle\9ifs\settings;C:\9ifs\jdbc\lib\classes12.zipyou can get the right name for ifsservice by starting
the ifsmgr
the right name are displayed
you shoud start the script on the ifs-Server
if you want to test the script
if you want to start from a other host as ifs-Server i don't known how it work -
Cannot connect to iFS through API
I have been trying with all diffrent combinations of user/password to connect to the iFS through the API but none of them seem to work. I have followed most of the replies already posted on the same. The following is the error that I get for some combination:
Exception in thread "main" oracle.ifs.common.IfsException: IFS-10620: Unable to
construct connection pool
oracle.ifs.common.IfsException: IFS-10633: Unable to create library connection
oracle.ifs.common.IfsException: IFS-10600: Unable to construct library connectio
n
java.sql.SQLException: ORA-01017: invalid username/password; logon denied
at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java)
at oracle.jdbc.oci8.OCIDBAccess.check_error(OCIDBAccess.java)
at oracle.jdbc.oci8.OCIDBAccess.logon(OCIDBAccess.java)
at oracle.jdbc.driver.OracleConnection.<init>(OracleConnection.java)
at oracle.jdbc.driver.OracleDriver.getConnectionInstance(OracleDriver.ja
va)
at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java)
at java.sql.DriverManager.getConnection(DriverManager.java:457)
at java.sql.DriverManager.getConnection(DriverManager.java:137)
at oracle.ifs.server.LibraryConnection.<init>(LibraryConnection.java:213
at oracle.ifs.server.ConnectionPool.createLibraryConnection(ConnectionPo
ol.java:576)
at oracle.ifs.server.ConnectionPool.<init>(ConnectionPool.java, Compiled
Code)
at oracle.ifs.server.S_LibraryService.<init>(S_LibraryService.java, Comp
iled Code)
at oracle.ifs.server.S_LibraryService.startService(S_LibraryService.java
:1139)
at oracle.ifs.beans.LibraryService.connectLocal(LibraryService.java:537)
at oracle.ifs.beans.LibraryService.connect(LibraryService.java:370)
at HelloWorld.main(HelloWorld.java:28)
For some other combinations I get the following error:
Exception in thread "main" oracle.ifs.common.IfsException: IFS-21008: Login fail
ure
oracle.ifs.common.IfsException: IFS-10170: Invalid name/credential
at oracle.ifs.server.IfsCredentialManager.checkCredential(IfsCredentialM
anager.java, Compiled Code)
at oracle.ifs.server.IfsCredentialManager.authenticate(IfsCredentialMana
ger.java:227)
at oracle.ifs.server.DirectoryService.authenticate(DirectoryService.java
:503)
at oracle.ifs.server.S_LibraryService.connect(S_LibraryService.java:1849
at oracle.ifs.beans.LibraryService.connectLocal(LibraryService.java:539)
at oracle.ifs.beans.LibraryService.connect(LibraryService.java:370)
at HelloWorld.main(HelloWorld.java:28)
Any help is appreciated...
Thanx
ViralViral, we may need to see:
- The code you're using to log in
- A description of the setup
- Whether you can get in using the same username/password through other protocols. -
Get users currently connected to iFS
Hello!
How can I get list of users who currently connected to iFS( not via SMB)?
Best regardsElvira,
Unfortunately I don't think there is. We wrote our own to manage concurrent users.
Regards
Chris Mayhew -
Hi I was trying to get the following sample program to work using JDK1.1.8
import oracle.ifs.beans.*;
import oracle.ifs.common.*;
import java.util.Locale;
public class ConnectionTester extends Object
public static LibrarySession testConnection()
throws IfsException
LibraryService service = new LibraryService();
CleartextCredential me = new CleartextCredential("system","manager");
ConnectOptions connect = new ConnectOptions();
connect.setLocale(Locale.getDefault());
connect.setServiceName("IfsDefault");
connect.setServicePassword("manager");
return service.connect(me,connect);
public static void main(String[] args)
try {
LibrarySession ifs = testConnection();
System.out.println("successfully connected to the database");
ifs.disconnect();
catch (IfsException e)
IfsException.setVerboseMessage(true);
e.printStackTrace();
I'm running it on the following
SunOS edtcprdsun18 5.7 Generic_106541-10 sun4u sparc SUNW,Ultra-250
IFS is installed on the same Box as is Oracle
8.1.6
The following is my CLASSPATH
/u2/brian/projects/src/ifstest:/u2/oracle816/OraHome1/ifs/settings:/u2/oracle816
/OraHome1/ifs/jre/lib/rt.jar:/u2/oracle816/OraHome1/ifs/jre/lib/i18n.jar:/u2/ora
cle816/OraHome1/jdbc/lib/classes111.zip:/u2/oracle816/OraHome1/lib/vbjorb.jar:/u
2/oracle816/OraHome1/lib/xmlparserv2.jar:/u2/oracle816/OraHome1/ifs/lib/repos.ja
r:/u2/oracle816/OraHome1/ifs/lib/email.jar:/u2/oracle816/OraHome1/ifs/lib/adk.ja
r:/u2/oracle816/OraHome1/ifs/lib/tools.jar:/u2/oracle816/OraHome1/ifs/lib/utils.
jar:/u2/oracle816/OraHome1/ifs/lib/release.jar:/u2/oracle816/OraHome1/assistants
/jlib/jnls.jar:/u2/oracle816/OraHome1/ifs/custom_classes:/u2/oracle816/OraHome1/
ifs/lib/oemadmin.jar:/u2/IAS/IAS_HOME/Apache/jdk/lib/classes.zip
This does include the JDBC Library
/u2/ora
cle816/OraHome1/jdbc/lib/classes111.zip
I'm getting the following error
java.lang.UnsatisfiedLinkError: no ocijdbc8 in shared library path
at java.lang.Throwable.<init>(Compiled Code)
at java.lang.Error.<init>(Compiled Code)
at java.lang.LinkageError.<init>(Compiled Code)
at java.lang.UnsatisfiedLinkError.<init>(Compiled Code)
at java.lang.Runtime.loadLibrary(Compiled Code)
at java.lang.System.loadLibrary(Compiled Code)
at oracle.jdbc.oci8.OCIDBAccess.logon(Compiled Code)
at oracle.jdbc.driver.OracleConnection.<init>(Compiled Code)
at oracle.jdbc.driver.OracleDriver.getConnectionInstance(Compiled Code)
at oracle.jdbc.driver.OracleDriver.connect(Compiled Code)
at java.sql.DriverManager.getConnection(Compiled Code)
at java.sql.DriverManager.getConnection(Compiled Code)
at oracle.ifs.server.LibraryConnection.<init>(Compiled Code)
at oracle.ifs.server.ConnectionPool.createLibraryConnection(Compiled Cod
e)
at oracle.ifs.server.ConnectionPool.<init>(Compiled Code)
at oracle.ifs.server.S_LibraryService.<init>(Compiled Code)
at oracle.ifs.server.S_LibraryService.startService(Compiled Code)
at oracle.ifs.beans.LibraryService.connectLocal(Compiled Code)
at oracle.ifs.beans.LibraryService.connect(Compiled Code)
at ConnectionTester.testConnection(Compiled Code)
at ConnectionTester.main(Compiled Code)
Can anybody help me with this? Thanks,
Bri<BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Mark_D_Drake():
Oops - sorry just noticed you are on Solaris.
Try LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$ORACLE_HOME/lib;export LD_LIBRARY_PATH<HR></BLOCKQUOTE>
Thanks a mill, that worked fine,
Brian
null -
Unalbe to connect Oracle D2K with oracle 10.2.0 database
hello,
i've installed Oracle10.2.0 database and oracle 10.2.0 forms and reports and connected to the databse successfully. But now i also installed Oracle D2K and provide the desired service name in its tnsnames.ora file but still unable to connect it with database.
Kindly suggest me what I am missing.
Thank you,
regards.I have been using Forms 6i (with PS 18) against 9.2.0.8 and 10g (R1 and R2) without any problem. Your issue with the connection might be because of the tnsnames.ora incompatibility. When the Forms 6i is installed, it installs 8.0.6.3 under the hood . So, instead of using the tnsnames.ora and sqlnet.ora that comes with the Forms 6i, set the TNS_ADMIN variable, and binary ftp the tnsnames.ora and sqlnet.ora from your database server (10gR2) instead. Then try again.
Hope this proves useful. -
All of a sudden I am unalbe to connect
I have been using a Linksys WRT160 N router wired connected to a Vista computer. I use a Verizon DSL modem, F 90-610015-06 for my internet connection. For the last two days I am unable to connect to the internet, either wirelessly or through my wired computer. When I bypass the router and connect my computer to the DSL modem I have no problem on the wired computer. I have tried to re-install the Linksys router software, but it is unable to recongnize an internet connection. Any suggewstions?
You need to reconfigure your router as per your ISP configuration.Click here for the instruction.
-
IFS-10620: Unable to construct connection pool exception
I am getting the "IFS-10620: Unable to construct connection pool" exception on the browser
when I try to run the Airport example from the "Writing an iFS Custom Renderer" http://technet.oracle.com/products/ifs/htdocs/xsl/index.htm
technical brief.
Technet tells me that in this case I should (a) run it under jdk 1.1.8, and
(b) have classes111.zip from the jdbc directory included in the classpath.
(c) DatabaseUrl field in IfsDefault.properties is defined properly.
I have modified one of the classes to output the relevant system parameters when
initialised, and I get the enclosed output in (a) on loading the servlet.
Together with paths (b) and classpath(c) settings,it seems that the requirements
are met but it still gives the error. Any suggestions of where we go wrong?
Oracle, IFS and JWS are installed on the same NT machine, and the iFS GUI works.
The value of the DatabaseUrl field was empty (juts "@", I then changed it to
"@machinename" but to no avail).
Thanks
Nikolay Mehandjiev
[email protected]
Enclosures
(a) output from the modified servlet on loading
javawebserver: java.version is 1.1.8
javawebserver: java.class.version is 45.3
javawebserver: java-vm.version is null
javawebserver: java.class.path is \Oracle\Ora81\ifs\settings;\Oracle\Ora81\ifs\j
re\lib\rt.jar;\Oracle\Ora81\ifs\jre\lib\i18n.jar;\Oracle\Ora81\jdbc\lib\classes1
11.zip;\Oracle\Ora81\lib\vbjorb.jar;\Oracle\Ora81\jlib\xmlparserv2.jar;\Oracle\O
ra81\ifs\lib\repos.jar;\Oracle\Ora81\ifs\lib\adk.jar;\Oracle\Ora81\ifs\lib\email
.jar;\Oracle\Ora81\ifs\lib\tools.jar;\Oracle\Ora81\ifs\lib\utils.jar;\Oracle\Ora
81\ifs\lib\release.jar;\Oracle\Ora81\assistants\jlib\jnls.jar;\Oracle\Ora81\ifs\
custom_classes;\Oracle\Ora81\ifs\webui_classes;\Oracle\Ora81\ifs\lib\http.jar;\O
racle\Ora81\ifs\lib\webui.jar;\Oracle\Ora81\ifs\lib\clientlib.jar;\Oracle\Ora81\
ifs\jws\lib\servlet.jar;\Oracle\Ora81\ifs\jws\lib\jst.jar;\Oracle\Ora81\ifs\jre\
lib\javac.jar;\Oracle\Ora81\ifs\settings;\Oracle\Ora81\ifs\jre\lib\rt.jar;\Oracl
e\Ora81\ifs\jre\lib\i18n.jar;\Oracle\Ora81\jdbc\lib\classes111.zip;\Oracle\Ora81
\lib\vbjorb.jar;\Oracle\Ora81\jlib\xmlparserv2.jar;\Oracle\Ora81\ifs\lib\repos.j
ar;\Oracle\Ora81\ifs\lib\adk.jar;\Oracle\Ora81\ifs\lib\email.jar;\Oracle\Ora81\i
fs\lib\tools.jar;\Oracle\Ora81\ifs\lib\utils.jar;\Oracle\Ora81\ifs\lib\release.j
ar;\Oracle\Ora81\assistants\jlib\jnls.jar;\Oracle\Ora81\ifs\custom_classes;\Orac
le\Ora81\ifs\webui_classes;\Oracle\Ora81\ifs\lib\http.jar;\Oracle\Ora81\ifs\lib\
webui.jar;\Oracle\Ora81\ifs\lib\clientlib.jar;\Oracle\Ora81\ifs\jws\lib\servlet.
jar;\Oracle\Ora81\ifs\jws\lib\jst.jar;\Oracle\Ora81\ifs\jre\lib\javac.jar;C:\Ora
cle\Ora81\ifs\jre\lib\rt.jar;C:\Oracle\Ora81\ifs\jre\lib\i18n.jar;C:\Oracle\Ora8
1\ifs\jre\lib\classes.zip;C:\Oracle\Ora81\ifs\jre\classes
javawebserver: java.library.path is null
(b) Path values
C:\Oracle\Ora81\ifs\bin>set PATH
Path="C:\Oracle\Ora81\ifs\bin";C:\Oracle\Ora81\bin;C:\jdk1.1.8\bin;C:\WINNT\syst
em32;C:\WINNT;C:\WINNT\system32\nls\ENGLISH;C:\WINNT\system32\nls;C:\Oracle\Ora8
1\orb\bin
PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH
(c) Classpath values
C:\Oracle\Ora81\ifs\bin>set CLASSPATH
CLASSPATH=Files\Exceed.nt\hcljrcsv.jar;C:\Oracle\Ora81\orb\classes\yoj.jar;C:\Or
acle\Ora81\orb\classes\share.zip;C:\Oracle\Ora81\jdbc\lib\classes111.zip
nullI have the same error when I try to connect from another machine to iFS.
oracle.ifs.common.IfsException: IFS-10620: Unable to construct connection pool
oracle.ifs.common.IfsException: IFS-10633: Unable to create library connection
oracle.ifs.common.IfsException: IFS-10600: Unable to construct library connectio
n
iFS API is working only with jdk1.1.8 ?
I'm just using your API and I can assure you that IfsDefault.properties is as you advice and inluded in classpath.
Please reply if you have any solution to this
Thank you verry much
Maybe you are looking for
-
Error in publishing crystal report
In /crystal/rptadmin I am getting this error when publishing crystal reports <report name> [<technical name>] 0000000004 Item 1 was not found in the collection. Has anyone experienced the same error before?
-
Error while transporting FIPP subtype : ZFIPP
Generation of programs and screens Transport request___: LH3K906965 System______________: LH4 tp path : tp Version and Release: 340.16.39 640 Generation of programs and screens for transport request LH3K906965 Only generates programs with
-
Mass changes for Vendor Email ID
Hi All, Any one have idea how to change the vendor mail id through LSMW or any other way. If it's LSMW please advise i couldn't able to do changes through LSMW because in FK02 recording email id filed is not appearing. Please replay. Regards,
-
When I purchased my iphone and ipad last week they told me I would connect the ipad to the internet through the phone but can get niether the phone nor the ipad to see the internet?
-
Hi, I'd like to install Oracle XE and I don't know if I have any problem with limitation. my O.S. is windows 2003 server with 1 GB ram. I have 8 user can access the database server concurrently I have tomcat installed on 8080 port , I Know that Oracl