My connector wants XA, Weblogic gives RMI
Hello,
First, yes I know Cloudscape may not be the best database for production and
XA, but anyway, I have to use it, and it supports XA.
Now my question :
I'm using WLS 6.1 SP1.
I defined a Cloudscape XA pool which seems to initialize well (the server
logs shows initial connections creations for the XA pool successfully). For
this pool, the driver classname I use is COM.cloudscape.core.XADataSource.
Over this pool I defined a Tx Data Source which some JNDI name, let's say
"MyXADataSource".
This works well and I can get and use connections from this "MyXADataSource"
datasource while I use it as a javax.sql.DataSource (from a BMP for
example).
However this DataSource is not XA. I mean that it does not implement
javax.sql.XADataSource (the concrete class is actually
weblogic.jdbc.common.internal.RmiDataSource). This is a problem for example
when a connector (let's say the BlackBoxXA sample connector) tries to use
this datasource as an XA datasource, leading to a ClassCastException.
So why the concrete weblogic.jdbc.common.internal.RmiDataSource class is not
an XA class ? Did I configure something wrong or forget something ?
Thanks for your help.
Jérôme.
Jérôme.
Hello,
First, yes I know Cloudscape may not be the best database for production and
XA, but anyway, I have to use it, and it supports XA.
Now my question :
I'm using WLS 6.1 SP1.
I defined a Cloudscape XA pool which seems to initialize well (the server
logs shows initial connections creations for the XA pool successfully). For
this pool, the driver classname I use is COM.cloudscape.core.XADataSource.
Over this pool I defined a Tx Data Source which some JNDI name, let's say
"MyXADataSource".
This works well and I can get and use connections from this "MyXADataSource"
datasource while I use it as a javax.sql.DataSource (from a BMP for
example).
However this DataSource is not XA. I mean that it does not implement
javax.sql.XADataSource (the concrete class is actually
weblogic.jdbc.common.internal.RmiDataSource). This is a problem for example
when a connector (let's say the BlackBoxXA sample connector) tries to use
this datasource as an XA datasource, leading to a ClassCastException.
So why the concrete weblogic.jdbc.common.internal.RmiDataSource class is not
an XA class ? Did I configure something wrong or forget something ?
Thanks for your help.
Jérôme.
Jérôme.
Similar Messages
-
DataSource is XA but Weblogic gives RMI
Hello,
First, yes I know Cloudscape may not be the best database for production and
XA, but anyway, I have to use it, and it supports XA.
Now my question :
I'm using WLS 6.1 SP1.
I defined a Cloudscape XA pool which seems to initialize well (the server
logs shows initial connections creations for the XA pool successfully). For
this pool, the driver classname I use is COM.cloudscape.core.XADataSource.
Over this pool I defined a Tx Data Source which some JNDI name, let's say
"MyXADataSource".
This works well and I can get and use connections from this "MyXADataSource"
datasource while I use it as a javax.sql.DataSource (from a BMP for
example).
However this DataSource is not XA. I mean that it does not implement
javax.sql.XADataSource (the concrete class is actually
weblogic.jdbc.common.internal.RmiDataSource). This is a problem for example
when a connector (let's say the BlackBoxXA sample connector) tries to use
this datasource as an XA datasource, leading to a ClassCastException.
So why the concrete weblogic.jdbc.common.internal.RmiDataSource class is not
an XA class ? Did I configure something wrong or forget something ?
Thanks for your help.
Jérôme.
Thanks Priscilla,
But, so, why the BlackBoxXA connector tries to cast the datasource it
lookups to XADataSource ?
Jérôme.
"Priscilla Fung" <[email protected]> a écrit dans le message de news:
[email protected]...
> Hi,
>
> The javax.sql.XADataSource, XAConnection interfaces are for container uses
> only, and are not exposed to applications. Applications should only see
and
> use javax.sql.DataSource and java.sql.Connection etc. Refer to the JDBC
2.0
> Standard Extension spec or JDBC 3.0 spec for more info.
>
> Regards,
> Priscilla
>
> Jérôme Beau <[email protected]> wrote in message
> news:[email protected]...
> > Hello,
> >
> > First, yes I know Cloudscape may not be the best database for production
> and
> > XA, but anyway, I have to use it, and it supports XA.
> >
> > Now my question :
> >
> > I'm using WLS 6.1 SP1.
> >
> > I defined a Cloudscape XA pool which seems to initialize well (the
server
> > logs shows initial connections creations for the XA pool successfully).
> For
> > this pool, the driver classname I use is
COM.cloudscape.core.XADataSource.
> >
> > Over this pool I defined a Tx Data Source which some JNDI name, let's
say
> > "MyXADataSource".
> >
> > This works well and I can get and use connections from this
> "MyXADataSource"
> > datasource while I use it as a javax.sql.DataSource (from a BMP for
> > example).
> >
> > However this DataSource is not XA. I mean that it does not implement
> > javax.sql.XADataSource (the concrete class is actually
> > weblogic.jdbc.common.internal.RmiDataSource). This is a problem for
> example
> > when a connector (let's say the BlackBoxXA sample connector) tries to
use
> > this datasource as an XA datasource, leading to a ClassCastException.
> >
> > So why the concrete weblogic.jdbc.common.internal.RmiDataSource class is
> not
> > an XA class ? Did I configure something wrong or forget something ?
> >
> > Thanks for your help.
> >
> > Jérôme.
> >
> >
>
>
-
Hello,
we are running WLS 6.1 SP2. The following code sometimes (rather rarely) throws
a NullPointerException:
Connection dbConnection = DBUtil.getDBConnection();//here we get the Connection
stmt = dbConnection.createStatement(ResultSet.TYPE_FORWARD_ONLY, ResultSet.CONCUR_UPDATABLE);//it's
where NPE happens
The error report says:
java.sql.SQLException:
java.lang.NullPointerException at
weblogic.jdbc.rmi.SerialConnection.createStatement(SerialConnection.java:396)
So, I think, this is something in WebLogic's code... Is this a known issue (I
couldn't find a similar report in the newsgroup)? Is there a workaround?
regards,
VitalyVitaly Sourikov wrote:
"Vitaly Sourikov" <[email protected]> wrote:
The patches that we use with SP2 are
CR061106_61sp2.jar
CR072612_61sp2.jar
CR077919_61sp2.jar
As far as we know, those fixes (or some of them) were not introduced in SP4. Are
there new versions of the patches for SP4?I have found that all these bugs are fixed in sp4, so no patches are needed if you
upgrade to 6.1sp4.
Joe
>
>
regards,
Vitaly
Hi Joseph,
Thank you for the reply. Unfortunately, we cannot move to SP3 or SP4
- they have
conflicts with other patches from WebLogic we use. This error happens
rather rarely.
In most of cases this very stuff works. But it would be intresing to
have this
patch for diagnostics, in case of future failures. Would you send it
to me, please?
Thank you in advance,
Vitaly
Joseph Weinstein <[email protected]> wrote:
Vitaly Sourikov wrote:
Hello,
we are running WLS 6.1 SP2. The following code sometimes (rather rarely)throws
a NullPointerException:
Connection dbConnection = DBUtil.getDBConnection();//here we get theConnection
stmt = dbConnection.createStatement(ResultSet.TYPE_FORWARD_ONLY, ResultSet.CONCUR_UPDATABLE);//it's
where NPE happens
The error report says:
java.sql.SQLException:
java.lang.NullPointerException at
weblogic.jdbc.rmi.SerialConnection.createStatement(SerialConnection.java:396)
So, I think, this is something in WebLogic's code... Is this a knownissue (I
couldn't find a similar report in the newsgroup)? Is there a workaround?Hi. The NPE is probably happening in the actual DBMS driver. What is
happening
is that the rmi driver is having to catch any non-SQLException, andthrow
a SQLException
with the message of the original exception. Unfortunately, the fullstacktrace
of the
original NPE is lost. If you want, I can send you a small diagnostic
patch, which will
just make the rmi object retain the whole original stacktrace in the
exception it throws,
and that will help lead to the real problem.
This may well be a bug that was fixed in sp3 or 4. Is it possible
for you to upgrade to
the latest stuff?
Joe
regards,
Vitaly -
ClassCastException: weblogic.jdbc.rmi.SerialResultSet
HI,
I am using WebLogic 6.0 SP2 connection pooling to get CLOB data from Oracle database.
It is working fine to get the connection and get non-CLOB data like string, but
when I retrieve the CLOB column in my program such as, theClob = ((oracle.jdbc.OracleResultSet)
rs).getCLOB(1),
Weblogic throws ClassCastException: weblogic.jdbc.rmi.SerialResultSet, does anybody
experience the same problem ? How can I get around this problem ?
Thanks
JohnHi,
I've got the same error. The only diference is that I read BLOBs out of the table
((oracle.jdbc.OracleResultSet)rset).getBLOB(1) from oracle.jdbc.OracleResultSet).
Best regards,
Kai
"John Chen" <[email protected]> wrote:
>
HI,
I am using WebLogic 6.0 SP2 connection pooling to get CLOB data from
Oracle database.
It is working fine to get the connection and get non-CLOB data like string,
but
when I retrieve the CLOB column in my program such as, theClob = ((oracle.jdbc.OracleResultSet)
rs).getCLOB(1),
Weblogic throws ClassCastException: weblogic.jdbc.rmi.SerialResultSet,
does anybody
experience the same problem ? How can I get around this problem ?
Thanks
John -
When I downloaded the new Firefox about a week or two ago all my bookmarks, and add-ons disappeared and I want you to give them back to me asap?
You shouldn't wait that long to ask advice. Firefox only keeps a (rotating) backup of bookmarks for the last 5 days that you started Firefox. So you may be out of luck.
You can check that you still use your old default profile that had your bookmarks.<br />
* http://kb.mozillazine.org/Recovering_a_missing_profile
* http://kb.mozillazine.org/Lost_bookmarks
* http://kb.mozillazine.org/Locked_or_damaged_places.sqlite
For the extension, see "Corrupt extension files": http://kb.mozillazine.org/Unable_to_install_themes_or_extensions
If you see disabled extensions that are not compatible on the next start in "Tools > Add-ons > Extensions" then click the "Find Updates" button to do a compatibility check. -
I have € 0.09 in my account and I can not buy anything with this value. I want to undo (give up) this value. What do I do?
Click here and request assistance.
(68968) -
Weblogic.jdbc20.rmi.SerialConnection fail to prepareCall()
Hi, I have a stateless session bean calling an oracle8i stored procedure. The java.sql.Connection is obtained via weblogic DataSource (non-transactional). and this line is failing:CallableStatement cstmt = conn.prepareCall(qstr);Start of the stack is this:java.sql.SQLException: java.lang.NullPointerException: at weblogic.jdbc20.rmi.SerialConnection.prepareCall(SerialConnection.java:44)I tested printing conn.toString() and it gave me "weblogic.jdbc20.rmi.SerialConnection@43074758", but any other method on this Connection object will fail.Yet, same program runs just fine in servlet. Any idea why? How does weblogic.jdbc20.rmi.SerialConnection come to into play? What is it?Any help is appreciated!Alan
Potluri wrote:
>
WLS 6.1 on Win 2000 and trying to connect Oracle database on remote Unix machine.Let me know if you're at the latest service pack level. This feels like a bug that
has been fixed...
Joe
>
Joseph Weinstein <[email protected]> wrote:
Potluri wrote:
Hi ,
I am using CallableStatement to update the database. When i tried tocreate the
callable statement it is throwing the following exception. can anysuggest some
solution for this....
java.sql.SQLException: java.lang.NullPointerException
at weblogic.jdbc.rmi.SerialConnection.prepareCall(SerialConnection.java:
106)
PotluriWhat version of the server are you running?
B.E.A. is now hiring! (12/14/01) If interested send a resume to [email protected]
DIRECTOR OF PRODUCT PLANS AND STRATEGY San Francisco, CA
E-SALES BUSINESS DEVELOPMENT REPRESENTATIVE Dallas, TX
SOFTWARE ENGINEER (DBA) Liberty Corner, NJ
SENIOR WEB DEVELOPER San Jose, CA
SOFTWARE ENGINEER (ALL LEVELS), CARY, NORTH CAROLINA San Jose, CA
SR. PRODUCT MANAGER Bellevue, WA
SR. WEB DESIGNER San Jose, CA
Channel Marketing Manager - EMEA Region London, GBR
DIRECTOR OF MARKETING STRATEGY, APPLICATION SERVERS San Jose, CA
SENIOR SOFTWARE ENGINEER (PLATFORM) San Jose, CA
E-COMMERCE INTEGRATION ARCHITECT San Jose, CA
QUALITY ASSURANCE ENGINEER Redmond, WA
Services Development Manager (Business Development Manager - Services) Paris, FRA; Munich, DEU
SENIOR SOFTWARE ENGINEER (PLATFORM) Redmond, WA
E-Marketing Programs Specialist EMEA London, GBR
BUSINESS DEVELOPMENT DIRECTOR - E COMMERCE INTEGRATION San Jose, CA
MANAGER, E-SALES Plano, TX -
Hi,
I'm trying to test a call RMI in WebLogic 10.3.6 but an error is generated...
String serviceAddress = "rmi://localhost:7001/BeanRemoteService";
Naming.lookup(serviceAddress);
java.rmi.ConnectIOException: error during JRMP connection establishment; nested exception is:
java.io.EOFException
at sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:286)
at sun.rmi.transport.tcp.TCPChannel.newConnection(TCPChannel.java:184)
at sun.rmi.server.UnicastRef.newCall(UnicastRef.java:322)
at sun.rmi.registry.RegistryImpl_Stub.lookup(Unknown Source)
at java.rmi.Naming.lookup(Naming.java:84)
Caused by: java.io.EOFException
at java.io.DataInputStream.readByte(DataInputStream.java:250)
at sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:228)
... 7 more
javax.naming.ServiceUnavailableException: error during JRMP connection establishment; nested exception is:
java.io.EOFException
I have a wlfullclient lib in the classpath...
Can anybody help me?If Naming.lookup() works, then you muist be binding the server using Naming.bind(). To lookup under the JNDI tree, you must bind the using JNDI, too.
jay allen wrote:
This test case uses the example classes in weblogic/examples/rmi/hello:
The rmi.hello classes are deployed on WL and the following code can connect
from a remote node and get a reference to the remote object.
try {
Hello_WLStub obj = ( Hello_WLStub )
Naming.lookup("t3://192.32.239.58:7511/HelloServer");
catch (Throwable t){
t.printStackTrace();
The following code, using WLInitialContext however, throws a
javax.naming.NameNotFoundException
Hashtable env = new Hashtable(5);
env.put(Context.INITIAL_CONTEXT_FACTORY,"weblogic.jndi.WLInitialContextFacto
ry");
env.put(Context.PROVIDER_URL,"t3://192.32.239.58:7511");
Context ctx = new InitialContext(env);
Hello_WLStub obj = ( Hello_WLStub )ctx.lookup("HelloServer");
here's the exception
javax.naming.NameNotFoundException: 'HelloServer'; remaining name
'HelloServer'
at
weblogic.rmi.extensions.AbstractRequest.sendReceive(AbstractRequest.java:76)
at
weblogic.jndi.toolkit.BasicWLContext_WLStub.lookup(BasicWLContext_WLStub.jav
a:246)
at
weblogic.jndi.toolkit.WLContextStub.lookup(WLContextStub.java:545)
at javax.naming.InitialContext.lookup(InitialContext.java:349)
at client2.main(client2.java:61)
Note, there hasn't been any security set up for weblogic.rmi or
weblogic.jndi, or the HelloImpl class. That is, 'everyone' has access.
Thanks,
Jay -
/weblog/ is fine; /weblog gives 404 error
We've customized our VM and CSS files so that our blog's appearance is very much our own. We're ready to publicize now, but have a concern:
http://<servername>/weblog
Gives a 404 error, while
http://<servername>/weblog/
is fine.
We're worried that when people link to us, they'll omit the trailing forward slash, and wind up with a broken link.
Is there any way to change the Blojsom default URL?Make sure you have mod_dir enabled in your server:
http://httpd.apache.org/docs/1.3/mod/mod_dir.html -
OIM LDAP connector for internal WebLogic LDAP?
Has anyone ever used OIM to manage internal LDAP for WebLogic? I'm considering it for compliance reasons.
Interesting thought, but how is the authentication realm configured in WLS for you? If it's just the default authentication provider in your security realm then you got only 3-4 odd users to manage (an overkill to use connector?). Make sure that you manage those account as service accounts from OIM, you don't want to corrupt out our domain by accident.
-Bikash -
I can't select the US area code i want. What gives...
I can't select the area code I want for my state. Im trying to get an Atlanta 404 number right now but only albany 229 numbers show up for Georgia. What gives SKYPE?
TThe separate section at the bottom with the grayscale bar is not color. That's that alpha channel control and adjusts the transparency of the clip. Use the color swatch to access the Apple color picker.
-
Why does the app store want me to give a credit card number to get a free app?
Hello; I've never used my apple account to purchase one thing, yet while I'm signed in to the app store, and I try to down load one of the free apps, I am asked to provide a credit card number. So my question is why must I give such info.? After all, I am not making a monetary purchase. Please explain, for I am confused. If one is required regardless, well , I guess I need to close my apple account, for I disagree with the practice.
I suppose you could think of it as establishing a formal account for general and future use. What usually happens is that your card is tested by charging a nominal amount to it (which is refunded within a day or two). Once that is established you will find a 'None' option will appear when you want to download a free app which indicates no payment.
All purchases made will be recorded on your purchase list whether paid for or not.
There is also a system to purchase without a credit card. See ...
Creating an iTunes Store, App Store, iBookstore, and Mac App Store account without a credit card -
What is the default log filename for connector logging in Weblogic 9.x?
According to the JCA 1.5 Specification -
The ApplicationServer manages the association of output stream with the ManagedConnectionFactory.
http://java.sun.com/javaee/5/docs/api/javax/resource/spi/ManagedConnectionFactory.html#setLogWriter(java.io.PrintWriter)
So setLogWriter() is called by WebLogic 9.x for the ManagedConnectionFactory.
My observation is that even if no <log-filename> is specified in weblogic-ra.xml of the resource adaptor , the value of the PrintWriter set on the ManagedConnectionFactory is not null
eg java.io.PrintWriter@404c51.
So my question is that in case no <log-filename> entry is specified in weblogic-ra.xml of the resource adaptor , what is the default value of the logfile to which the connector logging messages will be redirected?your home folder should have the permissions set as you state them.
Everything inside your home folder (like Music, Documents and others) should be more like
you: read&write
staff: no rights
everyone: no rights
but if you are the only user of your Mac, these settings have little importance to you.
to repair the permission boot into recovery (pressing command + R before you hear the start up sound. Then start Disk Utility from the Utility menu and choose Repair permissions. See this article for a detailed set of instructions. It's a little older, but still valid- -
Is this safe, why should I have to sign in with my google account? And why do I need to give access to my account?
What does that mean. I'm just asking how to use one of the products that I was encouraged to use by a Mozilla email. I was worried about the issue of safety and privacy of having to sign in with another companies account (Google) and give access to that account.
-
ClassCastException: weblogic.jdbc.rmi.SerialPreparedStatement
I am attempting to retrieve CLOBs and XMLTypes in a servelet from a 9i release
2 database. Using sampe code from oracle, I am getting ClassCastException when
I attempt to cast ...
oracle.jdbc.OraclePreparedStatement stmt =
(oracle.jdbc.OraclePreparedStatement) conn.prepareStatement( sql );
The connection pool sets up fine, no errors. I am getting the connection in the
servlet through the JNDI lookup ... (see code)
From the config.xml, the jdbc setup ...
<JDBCConnectionPool DriverName="oracle.jdbc.driver.OracleDriver"
InitialCapacity="3" MaxCapacity="10" Name="9iR2Pool"
Properties="user=kr;password=*****;dll=ocijdbc9;protocol=oci8"
Targets="myserver" URL="jdbc:oracle:oci8:@ora9i"/>
Has anyone done this before? Is there another way? Does bea have 9i release
2 jdbc drivers?
[huh.java]Hi Rick,
JDBC objects obtained via a connection pool
can not be cast to anything oracle.jdbc.*.
In order to use oracle-specific functions of
prepared statements you need to use oracle
extensions provided by weblogic. Documentation
and examples can be found here:
http://e-docs.bea.com/wls/docs61/jdbc/thirdparty.html#1043705
Regards,
Slava Imeshev
"Rick Bradshaw" <[email protected]> wrote in message
news:3d6cfa2c$[email protected]..
>
I am attempting to retrieve CLOBs and XMLTypes in a servelet from a 9irelease
2 database. Using sampe code from oracle, I am getting ClassCastExceptionwhen
I attempt to cast ...
oracle.jdbc.OraclePreparedStatement stmt =
(oracle.jdbc.OraclePreparedStatement) conn.prepareStatement( sql );
The connection pool sets up fine, no errors. I am getting the connectionin the
servlet through the JNDI lookup ... (see code)
From the config.xml, the jdbc setup ...
<JDBCConnectionPool DriverName="oracle.jdbc.driver.OracleDriver"
InitialCapacity="3" MaxCapacity="10" Name="9iR2Pool"
Properties="user=kr;password=*****;dll=ocijdbc9;protocol=oci8"
Targets="myserver" URL="jdbc:oracle:oci8:@ora9i"/>
Has anyone done this before? Is there another way? Does bea have 9irelease
2 jdbc drivers?
Maybe you are looking for
-
Search and replace string problems
Hi to all, I have problem with Search and replace string function. It shows me a wrong Value (Number) from 15 to 100 is everything OK (15=0, 30=1, 45=2, 100=3), but after 100 ........ Take look in VI and if you have any ideas post them please THX Igo
-
Photoshop CS5 won't open a PNG pct exported from Quicktime
I exported a move to still from Quicktime Pro, using the PNG compression settings, and when I try to open it in Photoshop CS5 I get the error message "Could not complete your request because the PICT contains data that is no longer supported in this
-
OBIEE v/s Cognos or Business objects
Can anyone tell me the main advantages of OBIEE over its competitors (Cognos, BO ...etc)?
-
Where does Safari store the full list of sites visited?
I have just started using Safari on my computer and noticed that it pulls down an immense list of site suggestions as soon as I start typing an URL. On closer inspection, these are all sites that I have visited in the past, with other browsers (IE an
-
I have an Macbook from 2006 which I udated 2010 to Snow Leopard now v10.6.8. I have Office for Mac 2004 installed. Something is wrong with the color sync tool and a message said that I have to update the BOOT-ROM version. ( Library/ColorSync/Profile