Pages

Tuesday, July 19, 2011

java.lang.UnsupportedOperationException: Remote JDBC disabled Error

Problem: I couldn't able to get the connection from the weblogic data source and I am getting the following exception  while creating the connection using ds.getConnection(). They are

Exception in thread "main" java.lang.UnsupportedOperationException: Remote JDBC disabled
    at weblogic.rjvm.ResponseImpl.unmarshalReturn(ResponseImpl.java:234)
    at weblogic.rmi.cluster.ClusterableRemoteRef.invoke(ClusterableRemoteRef.java:348)
    at weblogic.rmi.cluster.ClusterableRemoteRef.invoke(ClusterableRemoteRef.java:259)
    at weblogic.jdbc.common.internal.RmiDataSource_1035_WLStub.getConnection(Unknown Source)
    at edu.sfsu.oim11g.util.SfsuOimUtil.getConnection(SfsuOimUtil.java:152)
    at edu.sfsu.oim11g.db.dao.SfsuDataDao.getSfsuData(SfsuDataDao.java:23)
    at edu.sfsu.oim11g.db.dao.SfsuDataDao.main(SfsuDataDao.java:79)
Caused by: java.lang.UnsupportedOperationException: Remote JDBC disabled
    at weblogic.jdbc.common.internal.JDBCServerHelperImpl.<clinit>(JDBCServerHelperImpl.java:36)
    at weblogic.jdbc.common.internal.JDBCService.initialize(JDBCService.java:91)
    at weblogic.jdbc.common.internal.JDBCService.start(JDBCService.java:137)
    at weblogic.t3.srvr.SubsystemRequest.run(SubsystemRequest.java:64)
    at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:528)
    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
    at weblogic.work.ExecuteThread.run(ExecuteThread.java:178)


Solution:


1) Go to the Weblogic Domain Directory and edit the setDomainEnv.sh file
2) Modify WLS_JDBC_REMOTE_ENABLED value false to true.
WLS_JDBC_REMOTE_ENABLED="-Dweblogic.jdbc.remoteEnabled=true"
3) Restart the WebLogic Servers

No comments:

Post a Comment