Ifs and rmi

hi,
i wrote a rmi-server which accesses the ifs-repositry and retrievs the folderlist (similar to the "jdb error" post). now i can call the server-method "RmiServer.list(...)" which returns a string containing some folder-names. but: trying to call that RmiServer.list() one more time causes the client to hang. i took a look at the servers thread dump and notices one differenc in the thread-lists before and after the ifs-access.
one thread seems to loop/deadlock/hang/../?.
here is the thread dump after the ifs-call:
Full thread dump:
"LeaseChecker" (TID:0xec99eb90, sys_thread_t:0x154888, state:CW, thread_t: t@12, sp:0xef080ea0 threadID:0xef081dd8, stack_base:0xef081d6c, stack_size:0x20000) prio=5
sun.rmi.transport.DGCImpl$LeaseChecker.run(DGCImpl.java:303)
java.lang.Thread.run(Thread.java)
"KeepAlive" (TID:0xec99d528, sys_thread_t:0x108020, state:CW, thread_t: t@9, sp:0xef110ea0 threadID:0xef111dd8, stack_base:0xef111d6c, stack_size:0x20000) prio=5
sun.rmi.transport.KeepAlive.run(ObjectTable.java:182)
java.lang.Thread.run(Thread.java)
"Reaper" (TID:0xec99d568, sys_thread_t:0xe2d28, state:CW, thread_t: t@7, sp:0xef140e40 threadID:0xef141dd8, stack_base:0xef141d6c, stack_size:0x20000) prio=5
sun.rmi.transport.Reaper.run(ObjectTable.java:199)
java.lang.Thread.run(Thread.java)
"TCP Accept-1" (TID:0xec99d198, sys_thread_t:0xf5e10, state:CW, thread_t: t@6, sp:0xef170ea0 threadID:0xef171dd8, stack_base:0xef171d6c, stack_size:0x20000) prio=5
sun.rmi.transport.tcp.TCPTransport.retryServerSocket(TCPTransport.java:344)
sun.rmi.transport.tcp.TCPTransport.run(TCPTransport.java:430)
java.lang.Thread.run(Thread.java)
"SIGQUIT handler" (TID:0xec9982a0, sys_thread_t:0x8b3b8, state:R, thread_t: t@5, sp:0xef1f1af0 threadID:0xef1f1dd8, stack_base:0xef1f1d6c, stack_size:0x20000) prio=0 current thread
"Finalizer thread" (TID:0xec998088, sys_thread_t:0x8b328, state:CW, thread_t: t@4, sp:0xef341a30 threadID:0xef341dd8, stack_base:0xef341d6c, stack_size:0x20000) prio=1
"main" (TID:0xec9980b0, sys_thread_t:0x724f8, state:CW, thread_t: t@1, sp:0xefffdad8 threadID:0x24190, stack_base:0x0, stack_size:0x800000) prio=5
Monitor Cache Dump:
<unknown key> (0x154888): <unowned>
Waiting to be notified:
"LeaseChecker" (0x154888)
<unknown key> (0xf5e10): <unowned>
Waiting to be notified:
"TCP Accept-1" (0xf5e10)
sun.rmi.transport.tcp.TCPTransport@EC99CEF8/ECA883D8: owner "TCP Accept-1" (0xf5e10, 1 entry)
<unknown key> (0xe2d28): <unowned>
Waiting to be notified:
"Reaper" (0xe2d28)
<unknown key> (0x108020): <unowned>
Waiting to be notified:
"KeepAlive" (0x108020)
Registered Monitor Dump:
Thread queue lock: owner "SIGQUIT handler" (0x8b3b8, 1 entry)
Waiting to be notified:
"main" (0x724f8)
Name and type hash table lock: <unowned>
String intern lock: <unowned>
JNI pinning lock: <unowned>
JNI global reference lock: <unowned>
BinClass lock: <unowned>
Class loading lock: <unowned>
Java stack lock: <unowned>
Code rewrite lock: <unowned>
Heap lock: <unowned>
Has finalization queue lock: <unowned>
Finalize me queue lock: <unowned>
Waiting to be notified:
"Finalizer thread" (0x8b328)
Monitor registry: owner "SIGQUIT handler" (0x8b3b8, 1 entry)
comparing the thread dumps before and after the ifs-access differs in one thread: the rmi thread "TCP Accept-1". above shown is the dump afterwards. before ifs-access the "TCP Accept-1" thread stack is as follows:
"TCP Accept-1" (TID:0xec99d198, sys_thread_t:0xf5e10, state:R, thread_t: t@6, sp:0xef171040 threadID:0xef171dd8, stack_base:0xef171d6c, stack_size:0x20000) prio=5
java.net.PlainSocketImpl.accept(PlainSocketImpl.java:379)
java.net.ServerSocket.implAccept(ServerSocket.java:198)
java.net.ServerSocket.accept(ServerSocket.java:181)
sun.rmi.transport.proxy.HttpAwareServerSocket.accept(HttpAwareServerSocket.java:70)
sun.rmi.transport.tcp.TCPTransport.run(TCPTranspo rt.java:376)
java.lang.Thread.run(Thread.java)
server-system: solaris 2.6, jdk: ifs' own jdk.
client-system: nt-4.0, jdk: sun jdk 1.1.6
i would be very happy for any help, so thanks in advice,
alex

I don't think we (Oracle) can invest the amount of time it would take to help you with this problem, since it involves RMI, which is not an Oracle product.
My only (somewhat uninformed) thoughts are that there may be problems with the RMI itself.
We have seen many problems with JDK 1.1.6, and recommend you using JDK 1.1.8.
Perhaps that might help.

Similar Messages

  • Oracle ifs and BEA weblogic

    Oracle ifs and BEA weblogic
    We have one application server with weblogic and and ifs 1.0.9 , and one db server with Oracle 8.1.7.
    with the following configuration:
    Web server
    appl server with weblogic 6.0 and ifs 1.1.9
    Oracle 8i Enterprise with interMedia text
    We need to use the iFS API call for our application.
    As I know, weblogic 6.0 support JDK1.3 but ifs 1.1.9 supports up to JDK1.2.
    Is this configuration possible?
    Any conflict if two version JDK co-exist inside same machine?
    Any suggestion?
    If I separate the appl. server into two machines, that is,
    one server installed with weblogic, the other one installed with ifs.
    How could I make use the ifs API call from appl. server?
    Is there any configuration guides for this setting?
    Thanks a lot.
    null

    <BLOCKQUOTE><font size="1" face="Verdana, Arial, Helvetica">quote:</font><HR>Originally posted by Luis:
    The iFS API is 100% pure Java. You can use it from any other Java application, be it JSP, EJB, or a standalone application.
    So it really comes down to the CLASSPATH. The iFS API is split among a set of .jar files, and some of the configuration information is stored in .properties files that are outside of these .jar files. All of this stuff needs to be in the CLASSPATH of whatever JVM is calling the iFS API.
    The iFS API uses the Oracle JDBC driver to communicate with the Oracle database. This is another requirement. You can't use another JDBC driver; you have to use ours.
    So again, it's all about configuration.<HR></BLOCKQUOTE>
    Would you mind to share more detail on configurating weblogic to integrate the iFS API?
    null

  • Difference Between JMS and RMI

    Difference Between JMS and RMI in J2EE Technologies

    STFW
    JMS - http://www.google.co.za/search?hl=en&q=what+is+jms&meta=
    RMI - http://www.google.co.za/search?hl=en&q=what+is+rmi&meta=

  • Transactions accross iFS and 'normal' database

    I want to do a combined transaction where file operations are combined with normal table data transactions - for instance I would like to delete a file and at the same time insert a row in my log-table (this is just an example :-)).
    The documentation is quite unhelpful here as it gives me no description on how to do this. Has anybody out there tries this ?
    Thanks in advance
    Jacob

    Hi,
    Is there a way to do something like this? I need to update a field in another schema on the same database as IFS, based on a action that happens in IFS.
    <BLOCKQUOTE><font size="1" face="Verdana, Arial, Helvetica">quote:</font><HR>Originally posted by Jacob Due (jcd@ramboll:
    Tkanks for the input but I really want a more general approach :-) - using a trigger will make something happen allways (I might have application functionality that should not trigger any action other than the iFS action), and I really do not like having my application code in database triggers. So what I whish for is that I can somehow have a shared transaction spanning across the iFS and the normal database with full two phase commit.
    <HR></BLOCKQUOTE>
    null

  • Differnce between RPC and RMI

    Hello,
    Can anyone please tell me in detail the difference between RPC and RMI? If possible can you pls give examples?
    Thanks in advance.
    KiranJyot

    Thank you for the reply.
    Yes, I did google about this. But, it was not clear to me. I did ATM application using both RPC and RMI. Even though, it worked fine and did not lose points in my assignments, unfortunately the concepts were not clear.
    Can you please explain me what does it meant by - there is objects involved in RMI. In RPC, invoking functions is done through a proxy function. It will be great if you can explain it using ATM application.
    Regards,
    KiranJyothi

  • Using Applets and RMI on WL6 - Error marshaling transport header; nested exception is:  - java.io.EOFException

    I have a project that I am porting from WL5.1 to WL6. It was working fine
    in WL5.1
    but cannot get it working in WL6. So, I went back to the HelloWorld
    example to
    see if I could get it working. The problem I am having is basically getting
    applet to
    talk to a server via RMI. The applet works fine alone and RMI works fine
    alone.
    I can't get the applet to talk to the server via RMI.
    I am trying to get the "HelloWorld" applet example in WL6 working with RMI.
    I previously had the same app working in WL5.1 with SP9 but cannot get it
    working in WL6.
    I am running WebLogic Server 6.0 with SP2.
    I have registered a startup class in the WebLogic console
    named "HelloServer". When starting up the server, it states
    that the HelloImpl class has been registered as "HelloServer".
    When starting up the client applet I get the following error:
    java.rmi.MarshalException: Error marshaling transport header; nested
    exception is:
    java.io.EOFException
    These are two different methods of looking up the same object.
    The exception occurs at the "lookup" method call in both cases.
    "myserver" is the name of my machine that WL is running on.
    7001 is the port that WL is using.
    Registry reg = LocateRegistry.getRegistry("myserver", 7001);
    obj = (Hello)reg.lookup("HelloServer");
    or...
    obj = (Hello)weblogic.rmi.Naming.lookup("rmi://" +
    getCodeBase().getHost() + ':' + port + "/HelloServer");
    I previously ran this same program under WL5.1 SP9 and everything works
    fine.
    I defined the startupClass in the weblogic.properties file in WL5.1
    Can anyone tell my what is causing this exception and how to correct the
    problem?
    Thanks
    Terry Antle

    "Terry Antle" <[email protected]> writes:
    These are two different methods of looking up the same object.
    The exception occurs at the "lookup" method call in both cases.
    "myserver" is the name of my machine that WL is running on.
    7001 is the port that WL is using.
    Registry reg = LocateRegistry.getRegistry("myserver", 7001);
    obj = (Hello)reg.lookup("HelloServer");
    or...
    obj = (Hello)weblogic.rmi.Naming.lookup("rmi://" +
    getCodeBase().getHost() + ':' + port + "/HelloServer");
    I previously ran this same program under WL5.1 SP9 and everything works
    fine.
    I defined the startupClass in the weblogic.properties file in WL5.1
    Can anyone tell my what is causing this exception and how to correct the
    problem?I don't know what the problem is but you shouldn't be using either of
    these methods for looking up RMI objects - you should use JNDI instead.
    Thanks
    andy

  • Jini and Rmi utilisation for a particulary case..

    I have to write a application which is going to connect our server to different hospitals infromatque system.
    The application would provide a user interface in hospital side wich is going to make them able to send us a inventory file(fromated differently for each hospital with their own informatiqe system).
    The application have also to change the the file format befor stored in our data-base(each information have to go to different table)
    My supervisor ask me to look Jini and Rmi technologie for this application..
    So far i read some information about both technologie..but still i'm wondering my self is Jini or Rmi have a real use in this case.
    If your are masterd in those technologie and java networking device woud you help me up ?
    Could you tell me if those technologie have to be realy use in this case or there is other solution with java programming.
    Thank's
    Astiage Ghassemian

    Jini is a high level framework that a computer to easily locate a service provider in a network and get the service. So your case does not need such a framework because in your case, just like most of todays application, the service is provided only by your server and you know where it is and what it does. You just need something a one level lower than Jini that actually does the communication - RMI. Jini runs only top of any other lower level protocol including RMI. Detailed description of Jini:
    Jini technology is an architecture for the construction of systems from objects and networks. The Jini architecture lets programs use services in a network without knowing anything about the wire protocol that the service uses. One implementation of a service might be XML-based, and another RMI-based, and a third CORBA-based. The client is, in effect, taught by each service how to talk to it. A service is defined by its programming API, declared as a Java programming language interface.
    When a service is plugged into a network of Jini technology-enabled services and/or devices, it advertises itself by publishing a Java programming language object that implements the service API. This object's implementation can work in any way the service chooses. The client finds services by looking for an object that supports the API. When it gets the service's published object, it will download any code it needs in order to talk to the service, thereby learning how to talk to the particular service implementation via the API. The programmer who implements the service chooses how to translate an API request into bits on the wire using UPnP, RMI, CORBA, or a private protocol.
    In other words, the Jini architecture uses objects that move around the network to make each service, as well as the entire network of services, adaptable to new strategies over time.

  • Running ifs and ctx as service

    I am trying to run ctx and ifs as a service so that I can log off the administrator. I have created a service using the windows2000 resource toolkit, and start ifs and ctx in a .bat file for the service to run. I added two dependencies to the service: OracleTNSListener and OracleServiceORCL817. I get these errors in the log files:
    **Ctx Error**
    11-14-04 08/27/02 === OCO server startup ===
    11-14-04 08/27/02 Initialized CORE
    11-14-12 08/27/02 === Server failure ===
    11-14-13 08/27/02 DRG-11100: unable to connect to the database
    11-14-13 08/27/02 ORA-12560: TNS:protocol adapter error
    11-14-14 08/27/02 Fail to OCIServerAttach...
    11-14-15 08/27/02 === Server shutting down ===
    **Agents and protocol log **
    Tue Aug 27 11:00:08 CDT 2002
    IfsException in starting ServerManager; FATAL
    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: ORA-12560: TNS:protocol adapter error
    Server Manager exiting.
    My question is if it is even possible to do this and if so why don't these start?
    ** File Service runs**
    call c:\oracle\ora817\ifs1.1\bin\ifsstart.bat
    call c:\oracle\ora817\bin\ctxsrv -user ctxsys/ctxsys -log c:\oracle\ifsconfig\ctxm.log
    Urgently need advice.

    If you have database and iFS on one computer, your problem is probably the sequence of starting services.
    You probably don't have database or/and listener started by the time you start iFS.
    Maybe the solution is to modify your scripts to check that database is started or to wait some time before starting iFS.
    Alexandre

  • Corba,RMI and RMI-IIOP

    Can someone help me understand and analyze the marshaling techniques of CORBA, RMI and RMI-IIOP??

    RMI/JRMP is easy, just read the RMI Specification:
    http://java.sun.com/j2se/1.5.0/docs/guide/rmi/spec/rmi-protocol.html
    CORBA is not so easy. Find the GIOP and IIOP specifications at http://www.omg.org

  • Making choice between socket and RMI

    I never use RMI, but i am familiar to socket programming. i want to write an online game, I know that use RMI will easy than use socket, could anyone tell me what factors will affect the choice between using socket and RMI if don't consider which one i am familiar ?
    thanks
    jacky

    I would consider the amount of traffic your online game is going to be generating. Obviously, if the traffic is the bottleneck, you will want to optimize it as much as possible.
    I can see that if you are familiar with sockets and socket programming, where this is very appealing because after all, you can't get much faster than raw sockets. Also, the Java APIs around sockets are much easier than the equivalent BSD Socket C/C++ libraries.
    Still, RMI has much more to offer.
    o It is relatively easy to set up a connection
    o exceptions will be thrown when problems occur
    o serializing classes is so easy it's laughable
    o If performance becomes an issue, you can (as the previous poster suggests) create your own custom socket factory which optimizes the used bandwidth. Options here include compression if you have the CPU cycles to spare.
    o There are mechanisms in place for working RMI over firewalls
    Many of the things that RMI offers, you might find yourself re-writing in your own socket-based API. Personally, I would choose RMI.

  • IFS and iAS (OAS)

    We currently use OAS as our web server. All pages are dynamically generated and stored on our Oracle 8i database. My question is this: Is there a way to connect from my OAS web page to iFS and be authenticated to iFS with the username/password combination I entered to access the web site?

    Joe
    Here's the JspLogin class I used in a demo once. It implements the IfsHttpLogin interface.
    Once you've instantiated it you'll need to connect to the repository and obtain a LibrarySession interface and then invoke the setSession() method on the JspLogin object.
    The code will look something like this
    LibraryService ifsService = new LibraryService();
    CleartextCredential me = new CleartextCredential(username,password);
    ConnectOptions connect = new ConnectOptions();
    connect.setLocale(Locale.getDefault());
    connect.setServiceName(service);
    connect.setServicePassword(schemaPassword);
    LibrarySession ifsSession = ifsService.connect(me,connect);
    if (DEBUG) {
    Alert.log("JspUtilities.obtainSession: Session Created.");
    JspLogin login = new JspLogin();
    login.setSession(ifsSession);
    httpSession.putValue(IFSHTTPLOGIN,login);
    Note IFSHTTPLOGIN is defined as follows
    public static final String IFSHTTPLOGIN = "IfsHttpLogin";
    I used this code once in a demo. I've not tested that the Login object this creates will allow the complete iFS WebUI to run. This code is definitely supplied as is, with no warranties or anything else for that matter.
    Regards
    MDD
    package ifs.demo.common.jsp;
    import oracle.ifs.beans.DirectoryUser;
    import oracle.ifs.beans.FolderPathResolver;
    import oracle.ifs.beans.LibrarySession;
    import oracle.ifs.beans.LibraryService;
    import oracle.ifs.common.IfsException;
    import oracle.ifs.adk.security.IfsHttpLogin;
    import javax.servlet.http.HttpSessionBindingListener;
    import javax.servlet.http.HttpSessionBindingEvent;
    public class JspLogin implements IfsHttpLogin
    private LibrarySession m_IfsSession;
    private FolderPathResolver m_Resolver;
    // Default constructor required by the jsp spec for the USEBEAN tag
    public JspLogin() throws IfsException
    public void setSession(LibrarySession ifsSession)
    throws IfsException
    m_IfsSession = ifsSession;
    m_Resolver = new FolderPathResolver(ifsSession);
    m_Resolver.setRootFolder();
    public LibrarySession getSession()
    return m_IfsSession;
    public FolderPathResolver getResolver()
    return m_Resolver;
    public void valueBound(HttpSessionBindingEvent parm1) {
    public void valueUnbound(HttpSessionBindingEvent parm1) {
    }

  • IFS and Excel Documents

    Good Morning,
    I am new to working with iFS. My questions revolves around placing excel documents into iFS. We want to place excel spreadsheets into iFS and then we want to read the data from the excel sheet into the database. Is this possible?

    could you explain exactly what you mean? do you mean parsing the contents of the excel spreadsheet (into CSV for example)?

  • IFS and EJB

    I want to develop an EJB session bean that utilizes the IFS Java API. Is this a supported configuration. Are there any examples of IFS and EJB.
    Thanks,
    Brian
    null

    There are two ways to search by 'section' in XML documents.
    First, if you define an iFS content type whose name and structure matches the schema of your XML document, the iFS SimpleXMLParser will automatically decompose the XML document and store each section as attributes on the iFS object. Refer to the Oracle iFS Developer's Guide for instructions on creating new content types and parsing XML instances.
    Second, you can store XML documents in iFS without parsing the XML using the Web UI upload via browse interface. Oracle iFS 1.0 is configured so that it uses interMedia text to index the XML document. Subsequently, you'll be able to execute content searches for the document using section criteria (e.g. content contains 'interMedia' within 'Title').

  • IFS and Highlight

    Is it possible to create a Highlight for a Context Search within iFS and how i do them?
    I got a SearchResultObject and would like to create and display a highlight on each result object.
    Thanks for all contribute.
    Stefano.

    There are two ways to search by 'section' in XML documents.
    First, if you define an iFS content type whose name and structure matches the schema of your XML document, the iFS SimpleXMLParser will automatically decompose the XML document and store each section as attributes on the iFS object. Refer to the Oracle iFS Developer's Guide for instructions on creating new content types and parsing XML instances.
    Second, you can store XML documents in iFS without parsing the XML using the Web UI upload via browse interface. Oracle iFS 1.0 is configured so that it uses interMedia text to index the XML document. Subsequently, you'll be able to execute content searches for the document using section criteria (e.g. content contains 'interMedia' within 'Title').

  • IFS and Portal repositories

    I need to craft a content management solution using both iFS and portal and whilst I thought this would be easy - it isn't. Why do iFS and Portal use different document repositories?? (they should either be the same - or at least be configurable to be the same!!). I know that you can extend iFS but I'm noJava expert so wouldn't have a clue how to go about it.
    Has anyone written anything for iFS that would allow me to read and write documents to the Portal repositories?? If so would you be willing to share the information.
    Thanks
    Tim

    The following thread, http://technet.oracle.com:89/ubb/Forum36/HTML/001021.html,
    confirms Oracle are looking at integrating but with no timelines. I agree customising Portal to us iFS as for it's doc mgnt is an ideal solution. It is something that we are currently embarking on and will let you know how it goes.
    Bernard

Maybe you are looking for

  • Multiple selection - VBA

    Hello All, first of all, I hope that my English will be understandable. Description: I must create a report for sales orders by planned deliver date. Most of info what I need are in VBAP, but there is no delivery date there, only in VBAK. I download

  • RMAN script problem to create logical standby database !

    Dear Friends , I am using Oracle10g database . I want to create a logical standby database . I create two database : Primary : orcl standby : orclsby1 Every steps I followed successfully , but when I am going to create "standby database" from "primar

  • Rental won't play

    Downloaded a rental movie on my MacBook Air. Download completed. But when I try to play, it errors: We could not complete your iTunes Store request. An unknown error occured (-42110). There was an error in the iTunes Store. Please try again later. Ge

  • WHT Code with Tax Slabs

    Dear All, I need to configure a tax code in the system as per following three conditions: No..Condition...................................... .Rate 1...Gross Amount (GA) <= 150,000........0% 2...GA > 150,000 and GA < 400,000.......5% 3...GA > 400,000

  • Idoc ORDERS returned by PI with message "External Error Header Received"

    Hello, I would appreciate if somebody can help on this : I'm sending idocs ORDERS05 from R/3 4.6C to PI 7.01. Idocs are generated and sent successfully from R/3 but are not generated in PI. From R/3, Idocs are visibible in T BD87 and are classified u