Estoy desarrollando una aplicación de escritorio con NetBeans 6.9.1. Está montada en WAMP en una LAN diferente a la que estoy. Desde dentro de la misma LAN funciona a la perfección. Además, desde otra LAN (donde desarrollé la aplicación) e incluso desde mi casa, funciona perfectamente. Ahora bien. Le pedí a un amigo de Perú que probara acceder a la aplicación y no puede conectarse. Estoy usando Hibernate y Postgres. Acá les imprimo el StackTrace que le da a mi amigo:
Código Javascript:
Ver original
... 28/12/2010 11:36:19 AM org.hibernate.cfg.HbmBinder bindCollectionSecondPass INFO: Mapping collection: Entidades.Localizaciones.bieneses -> bienes 28/12/2010 11:36:19 AM org.hibernate.cfg.HbmBinder bindCollectionSecondPass INFO: Mapping collection: Entidades.Secciones.bieneses -> bienes 28/12/2010 11:36:19 AM org.hibernate.cfg.HbmBinder bindCollectionSecondPass INFO: Mapping collection: Entidades.Rubros.bieneses -> bienes 28/12/2010 11:36:19 AM org.hibernate.cfg.HbmBinder bindCollectionSecondPass INFO: Mapping collection: Entidades.Cuentas.rubrosesForCuentaaa -> rubros 28/12/2010 11:36:19 AM org.hibernate.cfg.HbmBinder bindCollectionSecondPass INFO: Mapping collection: Entidades.Cuentas.rubrosesForCuenta -> rubros 28/12/2010 11:36:19 AM org.hibernate.cfg.HbmBinder bindCollectionSecondPass INFO: Mapping collection: Entidades.Cuentas.seccioneses -> secciones 28/12/2010 11:36:19 AM org.hibernate.connection.DriverManagerConnectionProvider configure INFO: Using Hibernate built-in connection pool (not for production use!) 28/12/2010 11:36:19 AM org.hibernate.connection.DriverManagerConnectionProvider configure INFO: Hibernate connection pool size: 20 28/12/2010 11:36:19 AM org.hibernate.connection.DriverManagerConnectionProvider configure INFO: autocommit mode: false 28/12/2010 11:36:19 AM org.hibernate.connection.DriverManagerConnectionProvider configure INFO: using driver: org.postgresql.Driver at URL: jdbc:postgresql://190.136.183.32:5432/bienes 28/12/2010 11:36:19 AM org.hibernate.connection.DriverManagerConnectionProvider configure INFO: connection properties: {user=postgres, password=****} 28/12/2010 11:41:19 AM org.hibernate.cfg.SettingsFactory buildSettings ADVERTENCIA: Could not obtain connection metadata java.net.SocketException: Malformed reply from SOCKS server org.postgresql.util.PSQLException: El intento de conexión falló. at org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(ConnectionFactoryImpl.java:137) at org.postgresql.core.ConnectionFactory.openConnection(ConnectionFactory.java:66) at org.postgresql.jdbc2.AbstractJdbc2Connection.<init>(AbstractJdbc2Connection.java:124) at org.postgresql.jdbc3.AbstractJdbc3Connection.<init>(AbstractJdbc3Connection.java:30) at org.postgresql.jdbc3.Jdbc3Connection.<init>(Jdbc3Connection.java:24) at org.postgresql.Driver.makeConnection(Driver.java:386) at org.postgresql.Driver.connect(Driver.java:260) at java.sql.DriverManager.getConnection(Unknown Source) at java.sql.DriverManager.getConnection(Unknown Source) at org.hibernate.connection.DriverManagerConnectionProvider.getConnection(DriverManagerConnectionProvider.java:110) at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:84) at org.hibernate.cfg.Configuration.buildSettings(Configuration.java:2009) at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1292) at Entidades.HibernateUtil.addConfigFile(HibernateUtil.java:63) at Fuentes.Main.main(Main.java:44) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at com.sun.javaws.Launcher.executeApplication(Unknown Source) at com.sun.javaws.Launcher.executeMainClass(Unknown Source) at com.sun.javaws.Launcher.doLaunchApp(Unknown Source) at com.sun.javaws.Launcher.run(Unknown Source) at java.lang.Thread.run(Unknown Source) Caused by: java.net.SocketException: Malformed reply from SOCKS server at java.net.SocksSocketImpl.readSocksReply(Unknown Source) at java.net.SocksSocketImpl.connect(Unknown Source) at java.net.Socket.connect(Unknown Source) at java.net.Socket.connect(Unknown Source) at java.net.Socket.<init>(Unknown Source) at java.net.Socket.<init>(Unknown Source) at org.postgresql.core.PGStream.<init>(PGStream.java:62) at org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(ConnectionFactoryImpl.java:77) ... 23 more 28/12/2010 11:41:19 AM org.hibernate.dialect.Dialect <init> INFO: Using dialect: org.hibernate.dialect.PostgreSQLDialect 28/12/2010 11:41:19 AM org.hibernate.transaction.TransactionFactoryFactory buildTransactionFactory INFO: Using default transaction strategy (direct JDBC transactions) 28/12/2010 11:41:19 AM org.hibernate.transaction.TransactionManagerLookupFactory getTransactionManagerLookup INFO: No TransactionManagerLookup configured (in JTA environment, use of read-write or transactional second-level cache is not recommended) 28/12/2010 11:41:19 AM org.hibernate.cfg.SettingsFactory buildSettings INFO: Automatic flush during beforeCompletion(): disabled 28/12/2010 11:41:19 AM org.hibernate.cfg.SettingsFactory buildSettings INFO: Automatic session close at end of transaction: disabled 28/12/2010 11:41:19 AM org.hibernate.cfg.SettingsFactory buildSettings INFO: Scrollable result sets: disabled 28/12/2010 11:41:19 AM org.hibernate.cfg.SettingsFactory buildSettings INFO: JDBC3 getGeneratedKeys(): disabled 28/12/2010 11:41:19 AM org.hibernate.cfg.SettingsFactory buildSettings INFO: Connection release mode: auto 28/12/2010 11:41:19 AM org.hibernate.cfg.SettingsFactory buildSettings INFO: Default batch fetch size: 1 28/12/2010 11:41:19 AM org.hibernate.cfg.SettingsFactory buildSettings INFO: Generate SQL with comments: disabled 28/12/2010 11:41:19 AM org.hibernate.cfg.SettingsFactory buildSettings INFO: Order SQL updates by primary key: disabled 28/12/2010 11:41:19 AM org.hibernate.cfg.SettingsFactory buildSettings INFO: Order SQL inserts for batching: disabled 28/12/2010 11:41:19 AM org.hibernate.cfg.SettingsFactory createQueryTranslatorFactory INFO: Query translator: org.hibernate.hql.ast.ASTQueryTranslatorFactory 28/12/2010 11:41:19 AM org.hibernate.hql.ast.ASTQueryTranslatorFactory <init> INFO: Using ASTQueryTranslatorFactory 28/12/2010 11:41:19 AM org.hibernate.cfg.SettingsFactory buildSettings INFO: Query language substitutions: {} 28/12/2010 11:41:19 AM org.hibernate.cfg.SettingsFactory buildSettings INFO: JPA-QL strict compliance: disabled 28/12/2010 11:41:19 AM org.hibernate.cfg.SettingsFactory buildSettings INFO: Second-level cache: enabled 28/12/2010 11:41:19 AM org.hibernate.cfg.SettingsFactory buildSettings INFO: Query cache: disabled 28/12/2010 11:41:19 AM org.hibernate.cfg.SettingsFactory createCacheProvider INFO: Cache provider: org.hibernate.cache.NoCacheProvider 28/12/2010 11:41:19 AM org.hibernate.cfg.SettingsFactory buildSettings INFO: Optimize cache for minimal puts: disabled 28/12/2010 11:41:19 AM org.hibernate.cfg.SettingsFactory buildSettings INFO: Structured second-level cache entries: disabled 28/12/2010 11:41:19 AM org.hibernate.cfg.SettingsFactory buildSettings INFO: Statistics: disabled 28/12/2010 11:41:19 AM org.hibernate.cfg.SettingsFactory buildSettings INFO: Deleted entity synthetic identifier rollback: disabled 28/12/2010 11:41:19 AM org.hibernate.cfg.SettingsFactory buildSettings INFO: Default entity-mode: pojo 28/12/2010 11:41:19 AM org.hibernate.cfg.SettingsFactory buildSettings INFO: Named query checking : enabled 28/12/2010 11:41:19 AM org.hibernate.impl.SessionFactoryImpl <init> INFO: building session factory 28/12/2010 11:41:19 AM org.hibernate.impl.SessionFactoryObjectFactory addInstance INFO: Not binding factory to JNDI, no JNDI name configured
En el archivo pg_hba.conf de PgAdmin habilité todas las conexiones entrantes de la siguiente forma:
host all all 0.0.0.0/0 md5
El tema es que desde algunas PC puedo ingresar y desde otras no...
¿Será un problema de diferencias de versiones de Java? (mi amigo tiene la versión 1.5.0_06 y yo la 1.6.0_23)
¿Será alguna configuración de Java en la terminal?
¿Será que la terminal tiene algún puerto bloqueado?
Cualquier ayuda es bienvenida. Muchas gracias.