ak_random
ak_random
2017-01-12 09:08

java程序通过VPN连接不到数据库,pl/sql可以正常访问

2
  • vpn

1、我的本机跟服务器不是局域网,我通过VPN连接,用pl/sql可以连接到服务器上的数据库,项目运行报错,连接不上数据库。
(程序中数据库连接配置跟net manager的配置是一致的)
2、用其它电脑尝试:(项目是SVN中的同一个项目,不存在差异)只有一台电脑程序是可以正常运行访问的,其它的电脑都会报错。
请问这是什么原因。错误信息如下:
ERROR: The Network Adapter could not establish the connection
一月 12, 2017 1:20:10 下午 com.opensymphony.xwork2.util.logging.commons.CommonsLogger error
严重: Exception occurred during processing request: Could not open Hibernate Session for transaction; nested exception is org.hibernate.exception.GenericJDBCException: Could not open connection
org.springframework.transaction.CannotCreateTransactionException: Could not open Hibernate Session for transaction; nested exception is org.hibernate.exception.GenericJDBCException: Could not open connection
at org.springframework.orm.hibernate4.HibernateTransactionManager.doBegin(HibernateTransactionManager.java:514)
at org.springframework.transaction.support.AbstractPlatformTransactionManager.getTransaction(AbstractPlatformTransactionManager.java:372)
at org.springframework.transaction.interceptor.TransactionAspectSupport.createTransactionIfNecessary(TransactionAspectSupport.java:417)
at org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:255)
at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:94)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:91)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
at com.sun.proxy.$Proxy13.txtYC_Ipcheck(Unknown Source)

  • 点赞
  • 回答
  • 收藏
  • 复制链接分享

4条回答