Pavel,

we use Sybase ( 11.9.x ) almost exclusively with JConnect 5.2. A key thing
we found was that you need to pass the parameter ELIMINATE_010SM=true to the
driver to allow startup.


John

  <!-- JDBC -->
  <mbean code="org.jboss.jdbc.JdbcProvider"
name="DefaultDomain:service=JdbcProvider">
     <attribute
name="Drivers">org.hsql.jdbcDriver,org.enhydra.instantdb.jdbc.idbDriver,com.
sybase.jdbc2.jdbc.SybDriver</attribute>
  </mbean>

  <mbean code="org.jboss.jdbc.XADataSourceLoader"
name="DefaultDomain:service=XADataSource,name=CopyDB">
    <attribute name="PoolName">jdbc/CopyDB</attribute>
    <attribute
name="DataSourceClass">org.opentools.minerva.jdbc.xa.wrapper.XADataSourceImp
l</attribute>
    <attribute name="URL">-- insert your url
--:--port--?ELIMINATE_010SM=true</attribute>
    <attribute name="JDBCUser">user</attribute>
    <attribute name="Password">password</attribute>
    <attribute name="MaxSize">10</attribute>
    <attribute name="MinSize">0</attribute>
  </mbean>


-----Original Message-----
From: David Jencks [mailto:[EMAIL PROTECTED]]
Sent: 08 March 2002 17:14
To: [EMAIL PROTECTED]
Subject: Re: [JBoss-user] jboss 2.4.4 and sybase


This npe is usually caused by incorrect configuration, usually a bad url. 
I would write a little test program that attempts to connect using this
exact url.

david jencks

On 2002.03.08 11:50:27 -0500 Pavel Kolesnikov wrote:
> Hallo,
> 
> I'm trying to make work jboss 2.4.4 with sybase support (using 
> Sybase ASE 11.0.0.3 for linux), but it reports following exception
> on startup:
> 
> =================
> [INFO,SybaseDS] Starting
> [INFO,SybaseDS] XA Connection pool SybaseDS bound to java:/SybaseDS
> [ERROR,SybaseDS] Stopped
> java.lang.NullPointerException
>         at org.jboss.pool.jdbc.xa.XAPoolDataSource.getConnection(Unknown 
> Source)
>         at 
>
org.jboss.jdbc.XADataSourceLoader.startService(XADataSourceLoader.java:412)
>         at 
> org.jboss.util.ServiceMBeanSupport.start(ServiceMBeanSupport.java:103)
>         at java.lang.reflect.Method.invoke(Native Method)
>         at 
> com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
>         at 
> com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
> 
> etc...
> ================
> 
> I've copyied jConn2.jar from jConnnect 5.2 into $JBOSS_HOME/lib/ext,
> installed all SPs required by jConnect and put following lines into 
> jboss.jcml and standardjaws.xml:
> 
> 
> === jboss.jcml ===
>  <mbean code="org.jboss.jdbc.JdbcProvider"
> name="DefaultDomain:service=JdbcProvider">
>      <attribute
name="Drivers">com.sybase.jdbc2.jdbc.SybDriver,org.hsqldb.jdbcDriver,org.gjt
.mm.mysql.Driver</attribute>
>  </mbean>
> 
>    <mbean code="org.jboss.jdbc.XADataSourceLoader" 
> name="DefaultDomain:service=XADataSource,name=SybaseDS">
>     <attribute name="PoolName">SybaseDS</attribute>
>     <attribute
name="DataSourceClass">org.jboss.pool.jdbc.xa.wrapper.XADataSourceImpl</attr
ibute>
>     <attribute name="Properties"></attribute>
>     <atribute name="URL">jdbc:sybase:Tds:emental:7100/jurDirs</atribute>
>     <attribute name="JDBCUser">sa</attribute>
>     <attribute name="Password"></attribute>
> <!-- i've also tried <attribute name="Password" /> -->
>   </mbean>
> ================
> 
> == standardjaws.xml ==
> <?xml version="1.0" encoding="UTF-8"?>
> <jaws>
>     <datasource>java:/SybaseDS</datasource>
>     <type-mapping>Sybase</type-mapping>
>     <debug>false</debug>
> ======================
> 
> I'm 100% percent sure values given in jcml file are correct
> (isql -Usa -P -SEMENTAL connects successfully from the
> computer where my JBoss is running), my interface file contains 
> EMENTAL
>         query tcp ether emental 7100
>         master tcp ether emental 7100
> )
> so I suppose that JDBC URL given in my jcml file should
> be correct.
> 
> Do you have an idea what I'm doing wrong?
> 
> Thanks a lot,
> 
> Pavel
> 
> 
> 
> 
> _______________________________________________
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user
> 
> 

_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to