Problem using CORBA clients with RMI/EJB servers..!!!???

Hi,
I have a question on using EJB / or RMI servers with CORBA clients using
RMI-IIOP transport, which in theory should work, but in practice has few
glitches.
Basically, I have implemented a very simple server, StockTreader, which
looks up for a symbol and returns a 'Stock' object. In the first example, I
simplified the 'Stock' object to be a mere java.lang.String, so that lookup
would simply return the 'synbol'.
Then I have implemented the above, as an RMI-IIOP server (case 1) and a
CORBA server (case 2) with respective clients, and the pair of
client-servers work fine as long as they are CORBA-to-CORBA and RMI-to-RMI.
But the problem arises when I tried using the RMI server (via IIOP) with the
CORBA client, when the client tries to narrow the object ref obtained from
the naming service into the CORBA idl defined type (StockTrader) it ends up
with a class cast exception.
This is what I did to achieve the above results:
[1] Define an RMI interface StockTrader.java (extending java.rmi.Remote)
with the method,
public String lookup( String symbol) throws RMIException;
[2] Implement the StorckTrader interface (on a PortableRemoteObject derived
class, to make it IIOP compliant), and then the server to register the stock
trader with COS Naming service as follows:
String homeName =....
StockTraderImpl trader =new StockTraderImpl();
System.out.println("binding obj <" homeName ">...");
java.util.Hashtable ht =new java.util.Hashtable();
ht.put("java.naming.factory.initial", args[2]);
ht.put("java.naming.provider.url", args[3]);
Context ctx =new InitialContext(ht);
ctx.rebind(homeName, trader);
[3] Generate the RMI-IIOP skeletons for the Implementation class,
rmic -iiop stock.StockTraderImpl
[4] generate the IDL for the RMI interface,
rmic -idl stock.StockTraderImpl
[5] Generate IDL stubs for the CORBA client,
idlj -v -fclient -emitAll StockTraderImpl.idl
[6] Write the client to use the IDL-defined stock trader,
String serverName =args[0];
String symList =args[1];
StockClient client =new StockClient();
System.out.println("init orb...");
ORB orb =ORB.init(args, null);
System.out.println("resolve init name service...");
org.omg.CORBA.Object objRef
=orb.resolve_initial_references("NameService");
NamingContext naming =NamingContextHelper.narrow(objRef);
... define a naming component etc...
org.omg.CORBA.Object obj =naming.resolve(...);
System.out.println("narrow objRef: " obj.getClass() ": " +obj);
StockTrader trader =StockTraderHelper.narrow(obj);
[7] Compile all the classes using Java 1.2.2
[8] start tnameserv (naming service), then the server to register the RMI
server obj
[9] Run the CORBA client, passing it the COSNaming service ref name (with
which the server obj is registered)
The CORBA client successfully finds the server obj ref in the naming
service, the operation StockTraderHelper.narrow() fails in the segment
below, with a class cast exception:
org.omg.CORBA.Object obj =naming.resolve(...);
StockTrader trader =StockTraderHelper.narrow(obj);
The <obj> returned by naming service turns out to be of the type;
class com.sun.rmi.iiop.CDRInputStream$1
This is of the same type when stock trader object is registered in a CORBA
server (as opposed to an RMI server), but works correctly with no casting
excpetions..
Any ideas / hints very welcome.
thanks in advance,
-hari

On the contrary... all that is being said is that we needed to provide clearer examples/documentation in the 5.1.0 release. There will be no difference between the product as found in the service pack and the product found in the 5.1.1. That is, the only substantive will be that 5.1.1 will also
include the examples.
"<=one way=>" wrote:
With reference to your and other messages, it appears that one should not
expect that WLS RMI-IIOP will work in a complex real-life system, at least
not now. In other words, support for real-life CORBA clients is not an
option in the current release of WLS.
TIA
"Eduardo Ceballos" <[email protected]> wrote in message
news:[email protected]...
We currently publish an IDL example, even though the IDL programmingmodel in Java is completely non-functional, in anticipation of the support
needs for uses who need to use IDL to talk to the Weblogic server,
generically. This example illustrates the simplest connectivity; it does not
address how
to integrate CORBA and EJB, a broad topic, fraught with peril, imo. I'llnote in passing that, to my knowledge, none of the other vendors attempt
this topic either, a point which is telling if all the less happy to hear.
For the record then, what is missing from our distribution wrt RMI-IIOPare a RMI-IIOP example, an EJB-IIOP example, an EJB-C++. In this you are
correct; better examples are forth coming.
Still, I would not call our RMI-IIOP implementation fragile. I would saythat customers have an understandably hard time accepting that the IDL
programming model is busted; busted in the sense that there are no C++
libraries to support the EJB model, and busted in the sense that there is
simply no
support in Java for an IDL interface to an EJB. Weblogic has nothing to doit being busted, although we are trying to help our customers deal with it
in productive ways.
For the moment, what there is is a RMI (over IIOP) programming model, aninherently Java to Java programming model, and true to that, we accept and
dispatch IIOP request into RMI server objects. The way I look at it is this:
it's just a protocol, like HTTP, or JRMP; it's not IDL and it has
practically nothing to do with CORBA.
ST wrote:
Eduardo,
Can you give us more details about the comment below:
I fear that as soon as the call to narrow succeeds, the remainingapplication will fail to work correctly because it is too difficult ot
use an idl client in java to work.It seems to me that Weblogic's RMI-IIOP is a very fragile
implementation. We
don't need a "HelloWorld" example, we need a concrete serious example(fully
tested and seriously documented) that works so that we can get a betteridea
on how to integrate CORBA and EJB.
Thanks,
Said
"Eduardo Ceballos" <[email protected]> wrote in message
news:[email protected]...
Please post request to the news group...
As I said, you must separate the idl related classes (class files and
java
files) from the rmi classes... in the rmic step, you must set a newtarget
(as you did), emit the java files into that directory (it's not clearyou
did this), then remove all the rmi class files from the class path... ifyou
need to compile more classes at that point, copy the java files to theidl
directly is you must, but you can not share the types in any way.
I fear that as soon as the call to narrow succeeds, the remainingapplication will fail to work correctly because it is too difficult otuse
an idl client in java to work.
Harindra Rajapakshe wrote:
Hi Eduardo,
Thanks for the help. That is the way I compiled my CORBA client, by
separating the IDL-generated stubs from the RMI ones, but still I
get a
CORBA.BAD_PARAM upon narrowing the client proxy to the interfacetype.
Here's what I did;
+ Define the RMI interfaces, in this case a StockTrader interface.
+ Implement RMI interface by extendingjavax.rmi.PortableRemoteObject
making
it IIOP compliant
+ Implemnnt an RMI server, and compile using JDK1.2.2
+ use the RMI implementation to generate CORBA idl, using RMI-IIOPplugin
utility rmic;
rmic -idl -noValueMethods -always -d idl stock.StockTraderImpl
+ generate Java mappings to the IDL generated above, using RMI-IIOPplugin
util,
idlj -v -fclient -emitAll -tf src stocks\StockTrader.idl
This creates source for the package stock and also
org.omg.CORBA.*
package, presumably IIOP type marshalling
+ compile all classes generated above using JDK1.2.2
+ Implement client (CORBA) using the classes generated above, NOTthe
RMI
proxies.
+ start RMI server, with stockTrader server obj
+ start tnameserv
+ start CORBA client
Then the client errors when trying to narrow the obj ref from the
naming
service, into the CORBA IDL defined interface using,
org.omg.CORBA.Object obj =naming.resolve(nn);
StockTrader trader =StockTraderHelper.narrow(obj); // THIS
ERRORS..!!!
throwing a CORBA.BAD_PARAM exception.
any ideas..?
Thanks in advance,
-hari
----- Original Message -----
From: Eduardo Ceballos <[email protected]>
Newsgroups: weblogic.developer.interest.rmi-iiop
To: Hari Rajapakshe <[email protected]>
Sent: Wednesday, July 26, 2000 4:38 AM
Subject: Re: problem using CORBA clients with RMI/EJBservers..!!!???
Please see the post on june 26, re Errors compiling... somewherein
there,
I suspect, you are referring to the rmi class file when you are
obliged
to
completely segregate these from the idl class files.
Hari Rajapakshe wrote:
Hi,
I have a question on using EJB / or RMI servers with CORBA
clients
using
RMI-IIOP transport, which in theory should work, but in practice
has
few
glitches.
Basically, I have implemented a very simple server,
StockTreader,
which
looks up for a symbol and returns a 'Stock' object. In the firstexample, I
simplified the 'Stock' object to be a mere java.lang.String, so
that
lookup
would simply return the 'synbol'.
Then I have implemented the above, as an RMI-IIOP server (case
1)
and a
CORBA server (case 2) with respective clients, and the pair of
client-servers work fine as long as they are CORBA-to-CORBA andRMI-to-RMI.
But the problem arises when I tried using the RMI server (via
IIOP)
with
the
CORBA client, when the client tries to narrow the object ref
obtained
from
the naming service into the CORBA idl defined type (StockTrader)
it
ends
up
with a class cast exception.
This is what I did to achieve the above results:
[1] Define an RMI interface StockTrader.java (extending
java.rmi.Remote)
with the method,
public String lookup( String symbol) throws RMIException;
[2] Implement the StorckTrader interface (on a
PortableRemoteObject
derived
class, to make it IIOP compliant), and then the server to
register
the
stock
trader with COS Naming service as follows:
String homeName =....
StockTraderImpl trader =new StockTraderImpl();
System.out.println("binding obj <" homeName ">...");
java.util.Hashtable ht =new java.util.Hashtable();
ht.put("java.naming.factory.initial", args[2]);
ht.put("java.naming.provider.url", args[3]);
Context ctx =new InitialContext(ht);
ctx.rebind(homeName, trader);
[3] Generate the RMI-IIOP skeletons for the Implementation
class,
rmic -iiop stock.StockTraderImpl
[4] generate the IDL for the RMI interface,
rmic -idl stock.StockTraderImpl
[5] Generate IDL stubs for the CORBA client,
idlj -v -fclient -emitAll StockTraderImpl.idl
[6] Write the client to use the IDL-defined stock trader,
String serverName =args[0];
String symList =args[1];
StockClient client =new StockClient();
System.out.println("init orb...");
ORB orb =ORB.init(args, null);
System.out.println("resolve init name service...");
org.omg.CORBA.Object objRef
=orb.resolve_initial_references("NameService");
NamingContext naming=NamingContextHelper.narrow(objRef);
... define a naming component etc...
org.omg.CORBA.Object obj =naming.resolve(...);
System.out.println("narrow objRef: " obj.getClass() ":"
+obj);
StockTrader trader =StockTraderHelper.narrow(obj);
[7] Compile all the classes using Java 1.2.2
[8] start tnameserv (naming service), then the server to
register
the
RMI
server obj
[9] Run the CORBA client, passing it the COSNaming service ref
name
(with
which the server obj is registered)
The CORBA client successfully finds the server obj ref in the
naming
service, the operation StockTraderHelper.narrow() fails in thesegment
below, with a class cast exception:
org.omg.CORBA.Object obj =naming.resolve(...);
StockTrader trader =StockTraderHelper.narrow(obj);
The <obj> returned by naming service turns out to be of the
type;
class com.sun.rmi.iiop.CDRInputStream$1
This is of the same type when stock trader object is registeredin a
CORBA
server (as opposed to an RMI server), but works correctly with
no
casting
excpetions..
Any ideas / hints very welcome.
thanks in advance,
-hari

Similar Messages

  • Problem using VB Client with a JAVA Webservice

    Hi people!
    I'm using JDeveloper (9.0.3) to create a JAVA Webservice on OC4J container. I followed tutorial of Oracle and I got to execute my webservice, including I can invoke my methods by HTTP using HTML forms.
    I need to invoke my methods using a VB Client with MIcrosoft SOAP ToolKit. My VB code is:
    Function autenticar(login As String, senha As String)
    Dim ObjWS As New MSSOAPLib30.SoapClient30
    Dim retorno As Variant
    Call ObjWS.MSSoapInit("http://10.71.200.40:8888/iSimp-Web-Root/br.gov.anp.isimp.controleVersao.ControleVersaoEJB?WSDL")
    retorno = ObjWS.autentica(login, senha)
    autenticar = retorno
    End Function
    My webservice publish a method called autentica that receives two parameters (a login and a password) and authenticates to obtain access to my system.
    When I try to execute this function, I got this message error:
    No deserializer found to deserialize a ":login" using encoding style "http://schemas.xmlsoap.org/soap/encoding/". [java.lang.illegalArgumentException]
    Anyone knows what is this error?

    If you could post what solved your problem that would be useful for others that run into the same issue. Thanks if possible!
    Mike.

  • Problem using instant client with Win 7

    Hi,
    I have a Powerbuilder application that runs very well with Win XP and Oracle client 8 to 10.
    With new computers (Win 7), we try to use instant client... but there are problems with accents ! In fact, all accents are replaced by a "¿" in the database.
    It only appears when we are using our programs from a Win 7 machine with instant client.
    Do you know if there is something to configure to solve this problem ?
    Best regards.

    user1931557 wrote:
    Hi,
    I have a Powerbuilder application that runs very well with Win XP and Oracle client 8 to 10.
    With new computers (Win 7), we try to use instant client... but there are problems with accents ! In fact, all accents are replaced by a "¿" in the database.
    It only appears when we are using our programs from a Win 7 machine with instant client.
    Do you know if there is something to configure to solve this problem ?
    Best regards.
    If the characters only appear on certain clients, then they are NOT being "replaced ... in the database".  What you are seeing is an issue with presentation, not data.

  • Using JNI with RMI/EJB.

    Hi,
    I am using JNI to interface with a c application.
    The problem is that c application is thread safe.
    Since i need to use this interface from RMI/EJB,
    multiple calls will be made simultaneosly on the
    c application.
    Will anyone tell me how do i handle this scenario?
    Thanks in Advance.
    Robin

    Is the ejb expect immediate result from the c application?
    If yes, I don't know. Perhaps you need to redesign your business logic so it will not expect immediate result from c.
    If no, then make a layer between the ejb and c. The layer would be message queuer application with JMS receiver. EJB will send JMS to the JMS receiver when it needs to execute c. You can queue the message so c application is executed without overlap. If the EJB expect the result from c, then the queuer can send it back using JMS.

  • Can BEA JMS C APIs be used to communicate with other JMS servers?

    Hello,
              Can BEA JMS C APIs be used to communicate with other JMS servers?
              If yes, is it enough to download, compile the JMS C APIs, and link the C applications to the libraries (shared or static) produced?
              If not, can you point me to an open source framework that can be used to enable C applications to communicate with JMS servers?
              I have HP-UX server that has both C and Java compilers (Java 1.5).

    The JMS C client is a pre-compiled library - we don't supply the source - so C applications link to it. If I recall correctly, there is an HP version. The C client library is actually thin layer that uses JNI to directly invoke a Java JMS client running in an embedded JVM.
              The library might work with other vendor's Java JMS clients, but BEA does not officially support this usage.
              Tom

  • Problem using SQL Loader with ODI

    Hi,
    I am having problems using SQL Loader with ODI. I am trying to fill an oracle table with data from a txt file. At first I had used "File to SQL" LKM, but due to the size of the source txt file (700MB), I decided to use "File to Oracle (SQLLDR)" LKM.
    The error that appears in myFile.txt.log is: "SQL*Loader-101: Invalid argument for username/password"
    I think that the problem could be in the definition of the data server (Physical architecutre in topology), because I have left blank Host, user and password.
    Is this the problem? What host and user should I use? With "File to SQL" works fine living this blank, but takes to much time.
    Thanks in advance

    I tried to use your code, but I couldn´t make it work (I don´t know Jython). I think the problem could be with the use of quotes
    Here is what I wrote:
    import os
    retVal = os.system(r'sqlldr control=E:\Public\TXTODI\PROFITA2/Profita2Final.txt.ctl log=E:\Public\TXTODI\PROFITA2/Profita2Final.txt.log userid=MYUSER/myPassword @ mySID')
    if retVal == 1 or retVal > 2:
    raise 'SQLLDR failed. Please check the for details '
    And the error message is:
    org.apache.bsf.BSFException: exception from Jython:
    Traceback (innermost last):
    File "<string>", line 5, in ?
    SQLLDR failed. Please check the for details
         at org.apache.bsf.engines.jython.JythonEngine.exec(JythonEngine.java:146)
         at com.sunopsis.dwg.codeinterpretor.k.a(k.java)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.scripting(SnpSessTaskSql.java)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.execScriptingOrders(SnpSessTaskSql.java)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.execScriptingOrders(SnpSessTaskSql.java)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTaskTrt(SnpSessTaskSql.java)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSqlC.treatTaskTrt(SnpSessTaskSqlC.java)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTask(SnpSessTaskSql.java)
         at com.sunopsis.dwg.dbobj.SnpSessStep.treatSessStep(SnpSessStep.java)
         at com.sunopsis.dwg.dbobj.SnpSession.treatSession(SnpSession.java)
         at com.sunopsis.dwg.cmd.DwgCommandSession.treatCommand(DwgCommandSession.java)
         at com.sunopsis.dwg.cmd.DwgCommandBase.execute(DwgCommandBase.java)
         at com.sunopsis.dwg.cmd.e.i(e.java)
         at com.sunopsis.dwg.cmd.h.y(h.java)
         at com.sunopsis.dwg.cmd.e.run(e.java)
         at java.lang.Thread.run(Unknown Source)

  • Best way to use CORBA 3 with Oracle

    Hi, developers,
    I was using Oracle 8i JVM with my CORBA server deployed without any problems. That was CORBA 2 with old BOA.
    Now I have to implement CORBA 2.3 (I've met the "valuetype" in my new IDL definition). I've successfully compiled the IDL file with JDeveloper 9i (which uses the Visibroker's 4 idl2java compiler). The output was the heap of *.java including *POA.java files. I can not deploy them even when I use the Oracle9i database server.
    1) Can anybody show me the way (or multiple ways) to create and to run the CORBA server with POA in the Oracle environment.
    2) Is it possible to compile the IDL file (with valuetype statement) with -boa option and to use the output as it is shown in examples included in database server.
    3) Are there any good links to find the documentation which could describe the CORBA client/server developing process with the help of JDeveloper.
    Thanks in advance,
    Andrew

    Forget about using Corba with an oracle product.
    I tried to connect a C++ corba client. It is supposed to work. But the guys who wrote the implementation don't work for Oracle anymore. The samples can't be compiled or linked because they use an old ORB.
    Oracle support doesn't want to answer with a working solution (even if we PAY for support).
    It is probably possible to use an old version of corba with java. I won't be surprised if it is dropped from a future version of the db or application server.
    Try to use another solution (ejb, webservice, ...)
    Good luck,
    Jean-Paul

  • Using BC4J Components with different App Servers

    Can we use BC4J with 3rd party Application Servers (WebSphere, Weblogic, iPlanet etc)?
    If so any advantages (Performance, Implementation, installation) in using these components with Oracle iAS?
    Thanks
    null

    BC4J allows different ways of deploying your application.
    1) Local Mode : where your client application and BC4J application are colocated togther and running in the same VM
    2) As a EJB session bean
    3) As a corba server object.
    Using the Local mode deployment option you can deploy the BC4J application to any appservers (weblogic, websphere, iplanet) as long as they have standard VM and if your client application is JSP or Servlet then the appservers need a JSP or Servlet engine.
    In JDeveloper 3.1 you can deploy BC4J applicaiton as EJB session bean to Oracle8i
    In JDeveloper 3.2 ( which will released in next few weeks) you can deploy BC4J application as EJB session bean to Oracle8i , Oracle iAS and weblogic .
    iAS comes preconfigured with BC4J runtime by default
    raghu

  • Problem using iPad mirroring with an Apple TV and 4:3 Projector

    I'm a teacher and I've been using my iPad 2 in the classroom for about a year and a half. I would use Apple's VGA Adapter to connect to my projector, which worked fine. I just didn't like being tied down, and the dock connector would come loose very easily and lose connection to the projector, which interrupted the flow of the lesson.
    So this summer, I got an Apple TV and a projector with an HDMI port so I could start using Airplay Mirroring to get the iPad screen onto the projector. But I'm having trouble with the aspect ratio. Forgive my drawing, but the genius at the Apple store had a hard time understanding my explanation, so I'm hoping this will help show what I mean.
    My projector (ViewSonic DLP PJD5133) can be set to either a 4:3 or 16:9 aspect ratio (4:3, 800x600 is the native resolution). My projector screen in the front of the classroom is 4:3, so when the projector is set to 4:3, the image fills up the screen (which is what I want - it needs to be as big as possible so the entire class can see it clearly; plus it means all the output pixels are being used). When the projector is set to 16:9, the image is letterboxed (not ideal unless I'm showing a widescreen video or image).
    The Apple TV's native aspect ratio is widescreen, and the iPad's native aspect ratio is 4:3, so if you use Airplay mirroring on a widescreen TV, the Apple TV will pillarbox the image (add horizontal black bars on each side), so that the image will not be stretched/distorted. (I know that it will show widescreen videos and a few widescreen-ready apps without the pillarbox, but the apps I use in class - Keynote, Noteshelf, etc. - don't fall in that category). The effect on my projector screen is a tiny 4:3 image taking up half the area it would have taken if I had used the VGA connection.
    So in the Apple TV, I went to Settings>Audio & Video>TV resolution, and chose 800x600 60Hz (the max 4:3 resolution for my projector). Since the Apple TV is natively widescreen, it seems to accomplish this change be stretching the image vertically; but it basically works because the Apple TV home screen fills up the projector screen. However, when I turn on Airplay Mirroring on my iPad, the image does not fill up the screen. The Apple TV still puts a pillarbox on the image, so I end up with a distorted, square image of my iPad screen. It's the right height - the max 600 pixels for my projector - but it's not as wide as it should/could be.
    Is there a setting that I'm missing? I understand that the Apple TV has to stretch its home screen image to accommodate the 4:3 resolution, but I think it should be smart enough to realize that if it's receiving a 4:3 image from the iPad and sending it out to a 4:3 TV, it doesn't need to pillarbox the image.
    Before you answer - this is not a problem with the projector settings, and my Apple TV is not defective. You could simulate what's happening on your Apple TV, even if it's hooked up to a widescreen TV. In the Apple TV settings, change the TV Resolution to 800x600 as mentioned above (or any other of the 4:3 options). Now go to the Apple TV home screen, and note the amount of space the image is taking up on your screen (on a widescreen TV, it will be pillarboxed, and it will look like it's been squished horizontally). Then turn on Airplay mirroring on the iPad, and you'll see that the iPad image does not have the same width as the Apple TV home screen and it looks square/squished.
    Also, while my projector does have a zoom function, it will not magnify the small iPad mirror image correctly (if I were to leave the Apple TV and projector on a 16:9 setting). It cuts off the top and sides. But even if it didn't crop the image, it's a digital zoom, so that option still won't fix the fact that I'm not getting a full 800x600 image on the projector. The same problem would apply if I were to move the projector farther away from the screen (so that the widescreen image takes up the full height of the projector screen, while spilling off the sides). I'll still have a lower resolution image, which isn't ideal since I'm often showing text on the screen through Keynote. Also, widescreen videos wouldn't fit on the screen, and I can't move the projector easily because it's fixed to the ceiling.
    Sorry for the long explanation. Any ideas? I'd really appreciate some insight.

    We have the same problem, and not only with ipads. Macbook Air is doing something similar. it can only use airplay with 1080 and 720 resolution, so the image is squeezed on a 4:3 projector. We use AppleTV 3 and Mountain Lion OS. We use ATVPRO from Kanex.
    Apple must get its act together and fix this, they promise gold and green forests, but nothing works.
    DO SOMETHING!

  • Problem synchronizing windows clients with solaris 10 NTP server

    Hello everyone,
    I realyy need help on the following:
    I tried to synchronize windows 2003 as client with NTP server running in Solaris 10
    My Time Zone in the NTP server is GMT+3, and in my windows is also set to GMT+3
    When I start NTP server and clients , I got 6 hours delay between the clients and the server
    I tried to synchronize the Solaris server with another solaris system, the synchronization is working fine
    Your help
    Regards
    Hakim Fourar

    True (but only for later releases). But since he mentioned getting a 6 hour offset after starting them, that makes me think that the systems are communicating, and that the time zones are incorrect.
    This is easily verified by using 'ntpq -p' and 'date ; date -u'. The first will show if the client thinks it is synchronized to a server (and what the UTC offset is in miliseconds). The second will show the date in the default timezone and in UTC.
    If you're not using POSIX, you'd think that GMT+XX meant east of UTC, but for POSIX, it means west of UTC.
    Darren

  • How to use Instant Client with JDBC?

    I unzipped all the *.zip (basic, JDBC Supplement, ODBC, SQLPlus) to a clean directory and added it to my env PATH variable.
    SQLPlus is working, but when I try via OCI JDBC I get:
    Exception in thread "main" java.lang.UnsatisfiedLinkError: t2cCreateState
    at oracle.jdbc.driver.T2CConnection.t2cCreateState(Native Method)
    at oracle.jdbc.driver.T2CConnection.logon(T2CConnection.java:341)
    at oracle.jdbc.driver.PhysicalConnection.<init>(PhysicalConnection.java:347)
    at oracle.jdbc.driver.T2CConnection.<init>(T2CConnection.java:139)
    at oracle.jdbc.driver.T2CDriverExtension.getConnection(T2CDriverExtension.java:79)
    at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:549)
    at java.sql.DriverManager.getConnection(DriverManager.java:512)
    at java.sql.DriverManager.getConnection(DriverManager.java:140)
    at ConnectionExample.jdbcOCIDriver(ConnectionExample.java:379)
    at ConnectionExample.main(ConnectionExample.java:463)
    can anyone help?

    Thanks,
    I had the same problem on Windows 2000 with Tomcat 5.0 and Oracle 10's ojdbc14.jar.
    As I read your answer, I edited catalina.bat and added java.library.path to the Oracle10 client directory, where the ocijdbc10.dll was:
    -Djava.library.path="C:\Oracle\product\10.1.0\Client_1\BIN"
    Then I got exception:
    java.lang.UnsatisfiedLinkError: t2cCreateState
    , so I installed InstantClient from Oracle of the same version, and reset the path:
    -Djava.library.path="C:\Oracle\instantclient10_1"
    After that started to works fine. As you see, there is internal uncompatibility within Oracle's different drivers... I hope I could help somebody with this information.
    johnnyco

  • Problem using application client for local stateful session bean

    Hi,
    I have deployed a local stateful session bean in Sun J2EE 1.4 application server.
    On running the applclient for the stateful session bean application client i get the following error:
    Warning: ACC006: No application client descriptor defined for: [null]
    cant we use application client for local stateful session beans. becoz the application runs smoothly when i changed the stateful sesion bean to remote.

    Hi,
    No, an ejb that exposes a local view can only be accessed by an ejb or web component packaged within the same application. Parameters and return values for invocations through the ejb local view are passed by reference instead of by value. That can't work for an application client since it's running in a separate JVM.
    --ken                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Problem using Time Machine with Seagate BackUp Plus Pls HELP!!

    I have a late 2006 iMac (running OS 10.5.8) & am trying to back up using Time Machine with a new Seagate BackUp Plus drive. When I select the Seagate drive in Time Machine it tells me I msut first erase the (Seagate) disk. When I hit ERASE, I get a Time Machine error : COULD NOT UNMOUNT DISK. I see from various posts that 10,5 & 10,6 have issues with some external drives so want to upgrade to Mavericks (to get around this incompatibility issue): HOwever apparently my iMac is too old (by 1 year) to allow this. Can anyone give me any advice on how to get my iMac content backed up via Time Machine using the Seagate BackUP PLus drive I  bought (becasue it is supposedly "compatible with PCs & Macs".
    Thank you!!
    Wendy

    Your Seagate drive should work just fine. If it doesn't have any important data on it, try re-formatting it with Disk Utility to blank it out. Or run the Disk verify/repair and see if you can get it to fix any problems.
    I have a Drobo FS too. You probably need a firmware update, they issued one a while back to fix problems with Time Machine. Use the Dashboard or download it from their support site, http://www.drobo.com/support/updates.php
    Just curious how long you let it run after it "stalled". If it is a big file it could just be taking a while to copy over, do you see activity lights on the USB drive? The first time you use time machine let it run overnight, it's going to take a while, after that it will update quickly.
    While you're at it, you might want to verify your start-up disk too with Disk Utility.

  • Any problem using PC fonts with Fontbook?

    Hi all.
    Are there any potential issues using PC fonts with Fontbook? I've downloaded a free internet font, ran the "Validate File" option, then loaded the font into Fontbook. Afterwards, I also ran "Validate Font" and it checked out okay.
    It seems to be working, but I'm wondering if there is cause for concern that maybe down the line something funny will happen?
    Any insight into this?
    B.

    It seems to be working, but I'm wondering if there is cause for concern that maybe down the line something funny will happen?
    No, a font is just a font. All PC .ttf and .ttc fonts work in OS X. Windows Type 1 PostScript fonts (the ones with matching .pfb and .pfm extensions) do not.
    The only real problem with free fonts is that the majority of them are not made well and can cause various problems because of it. Read section 14 of Font Management in OS X to see what those issues can be.
    The link, or one of the links above directs you to my personal web site. While the information is free, it does ask for a contribution. As such, I am required by Apple's rules for these discussions to include the following disclaimer.
    I may receive some form of compensation, financial or otherwise, from my recommendation or link.

  • Problems using TFS 2008 with RoboHelp 11?

    Adobe has not been able to resolve our company's connection problem with SharePoint thus far.
    We do know that we can use TFS 2008 with RoboHelp because they have done that in the past.  We are on RH11.
    We need to know...Has anyone experienced any problems with using TFS 2008 with RH11?  If so, what kind of problem(s)?

    I've used TFS 2008/2010/2012 with RoboHelp without problems so far. You will always get the check in dialog, but that is the way it works, not a problem. This will become annoying when you are relocating lots of topics, since you will have to check in files a lot during these operations. But otherwise it works perfect in my experience.
    As long as you make sure you have the 32 bit MSSCCI provider for the correct TFS version (MSSCCI 2008 for TFS 2008), you should be fine.

Maybe you are looking for

  • Problem in add row button in apex3.2

    Hi All, I have a requirement in tabular form in apex3.2 in which when i click the add row button the add row function is working and 1 row is loaded. again when i click the add row button it should load multiple rows according to my number of click.

  • Problem with Release Semaphore Reference

    I wrote a simple routine to try to understand how semaphores work (see the attached vi).  In this routine, I have 2 LEDs that I want to blink for 5 sec each (independant of one another).  I assumed the opperation would be the same regardless of which

  • SQL Query of an OWB map (row based)

    If I trace a session, execute an OWB map (row based), will the trace file contain the actual SQL query ? The problem with me is that when I am executing this row -based OWB map, it is throwing me an error CursorFetchMapTerminationRTV20007 BUT ( plus

  • Need to run MRP

    While working on md04, i have created the sale order to the planned & further to prod order. Can anyone let me know how to realease the prod order for production Tkx Preet

  • Reference a document in the material master

    I'm wondering if anyone can suggest a way that we can do the following.... We basically want to have a field/location in the Material Master that will reference a document stored somewhere on a network server and in turn, display and print on the PO