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.
> >
> >
>
>
Similar Messages
-
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.
-
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 -
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 -
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 -
I keep being asked to update my Safari but when I do a Software update it scans but never gives me a list and just says no new updates. Help please!
There are no updates to either OS 10.5.8 or Safari 5.0.6.
If you need a later version of Safari you must first upgrade your operating system to a later version of OS X. -
if you can help me please alguin
Adobe Creative Cloud because I do not get After Effects among others but I try to install software from the page but I give After Effects download shareware and says downloading but nothing comes give him retrying but nothing even leave the application of Adobe Creative but nothing helpWithout proper system info and otehr technical details nobody can tell you anything.
Mylenium -
I buy all of our movies on our apple TV that is associated with my apple ID. I want to put a movie on my wife's new iPad but it gives me a 90 day warning that she won't be able to download anything. Do we really have to buy two copies of the same movie? There has to be a way for one family to share movies on all of our devices.
Ahh, thank you! What a pain in the neck. I figure I must have been signed into his account at some other point in time, maybe after... watching a movie..? [Though, that'd be the iTunes store, right? Not the App Store.] Anyway, some situation must've occured where I absentmindedly updated and iPhoto is now tied up with his account.
I'll go ahead and contact support to see if they can get me sorted. I suppose I can just ask him for his password, but.. oh, you know, it's a temporary solution and I guess I was just hoping to easily get iPhoto properly associated with myself again. Thank you! -
When I plug in my iPod Classic, it is visible in My Computer, but iTunes gives an error message saying "The software required for this iPod is not installed corectly. Please reinstall iTunes to install the required software." It started completely randomly and now does it every time. I completely wiped out iTunes and reinstalled it via the intructions from this website, but it is still doing the same thing. Furthermore, when I go to Start, All Programs, the iTunes folder contains no data AND the desktop shortcup does nothing when clicked on. I have to go to Start, Run, and type in itunes.exe in order to run the program. Can anyone tell me what is going on?
Do one or more of the following
> Restart your computer
> Uninstall & Reinstall iTunes
> Reset iDevice (won't erase everything)
> Go to My Computer (windows xp) or Computer (windows vista & 7) and see if iDevice shows
> Restore the iDevice completely (will erase everything)
> Make sure the iTunes and/or iOS firmware is up-to-date.
The ones I cross over is the ones you don't have to do. This should help -
Trouble opening pdf's - I have received several pdf's from a friend via e-mail (Thunderbird). Some of them open just fine but others give me the message: "There was an error opening this document. The file is damaged and could not be repaired." My friend made sure that the files in question opened without issue on his computer (a PC). Further, I was able to open one of these "damaged" files on my Android phone, but I cannot open them on the Macbook Air. Any help would be greatly appreciated.
Back up all data.
Triple-click the line of text below to select it, the copy the selected text to the Clipboard (command-C):
/Library/Internet Plug-ins
In the Finder, select
Go ▹ Go to Folder
from the menu bar, or press the key combination shift-command-G. Paste into the text box that opens (command-V), then press return.
From the folder that opens, remove any items that have the letters “PDF” in the name. You may be prompted for your login password. Then quit and relaunch Safari, and test.
The "Silverlight" web plugin distributed by Microsoft can also interfere with PDF display in Safari, so you may need to remove it as well, if it's present.
If you still have the issue, repeat with this line:
~/Library/Internet Plug-ins
If you don’t like the results of this procedure, restore the items from the backup you made before you started. Relaunch Safari again. -
what do you need to do to get your pictures that you took awhile ago back on your iphone 4s after you just restored your phone it? it says "downloading" but wont give me any of my pictures back that i took awhile ago. I backed everythign up at the apple store while the person who helped me watched me do it. i have 1,796 pictures i took before i restored my phone, but it wont let me see them. it just says "downoading" and i will be devestated if all of my pictures are gone. please help me!
You would have received a prompt telling you that you didn't have sufficient space to beck up your phone if that was the case. Also, not everything on your phone is stored in the backup so you wouldn't need 11.7GB to back it up. You can see the size of your backup by going to Settings>iCloud>Storage & Backup>Manage Storage, tap the name of your phone under Backups and look under Options.
If it says "downloading" it's probably still downloading your pictures from iCoud. Check Settings>iCloud>Storage & Backup at the bottom to see the status of the restore process. -
It will play in iTunes but just gives a black screen when I try o email. I get an error message when I try to upload. Any Ideas?? I've already reinstalled OS X
Not sure if this Term is Relevant towards an iPhone but, my iPhone won't Post unless if it's plugged into a Charger.
-
i tried to update my iphone to ios 5 but it gives me error ( the network connection timed out )
If you don't tell us the error, we can't help you
Maybe you are looking for
-
Migrate report template 6i to 10g
Hi All I am working on Oracle Report 10g. but in my company I have one old template which was made in 6i. i have question that how to Migrate report template 6i to 10g? i have read in forum that i just have to compile template into 10g report. is tha
-
Mac Mail is continuously adjusting the "allow insecure authorization" option on it's own
I've already lost 3 clients due to a lack of timely email response, and I had no idea why Mac Mail was having issues connecting to my email server. I've spoken at length with my web hosting support, and it turns out the options in Mac Mail for "Autom
-
Hi, I am creating xml using query select xmlserialize(content(xmlelement(NOENTITYESCAPING "SOURCE_PROD_DESC",mis.description))) from mtl_system_items_b mis where mis.segment1='73324abcdef' and mis.organization_id=186; and in databse descr
-
Creating a Thread so that I don't wait on a Method?
Good Evening All! I have a simple java program that reads a file containing XML and then posts that XML to a webserver. When I run the program I would normally have about 5,000 xml "documents" in the file that need to be posted to the webserver. Toda
-
Driving MSI Dual Opteron Master2
So, there I was at the swap meet standing in front of this dual socket mainboard with a red printed circuit board. It was beautiful! And, I think it was calling to me faintly. It apeared to have never been removed from the wrapper and it was resting