These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: NullPointerException when using JWS in Ubuntu
PostPosted: Fri Jan 14, 2011 12:03 pm 
Newbie

Joined: Fri Jan 14, 2011 11:53 am
Posts: 1
I have a problem I cannot solve or find a possible solution by searching.
I'm developping a J2SE app using Netbeans, everything works fine, now I'm trying to launch it using Java Web Start so I can deploy it on an apache web server and update ir regulary, because It is used from many computers.
Some of the computers are running Windows, in those the program works OK, even running from the .jar file or using Java Web Start
The problem is that there are two computers actually running Ubuntu in wich the program works ok when running from the .jar file, but when I try to start it using Java Web Start I get a NullPointerException just after Hibernate finishes reading all the mapping files, here's Hibernate log:
Code:
ja@Ventas1:~/Descargas$ javaws launch.jnlp
13:00:03,199  INFO Version:37 - Hibernate Commons Annotations 3.2.0.Final
13:00:03,205  INFO Environment:593 - Hibernate 3.6.0.Final
13:00:03,206  INFO Environment:626 - hibernate.properties not found
13:00:03,211  INFO Environment:804 - Bytecode provider name : javassist
13:00:03,214  INFO Environment:685 - using JDK 1.4 java.sql.Timestamp handling
13:00:03,293  INFO Configuration:2126 - configuring from resource: hibernate.cfg.xml
13:00:03,293  INFO Configuration:2145 - Configuration resource: hibernate.cfg.xml
13:00:03,445  INFO Configuration:759 - Reading mappings from resource : com/ba/facturacion/entidades/CategoriaImpositiva.hbm.xml
13:00:03,523  INFO Configuration:759 - Reading mappings from resource : com/ib/HBCore/entidades/Usuario.hbm.xml
13:00:03,564  INFO Configuration:759 - Reading mappings from resource : com/ib/HBCore/entidades/Password.hbm.xml
13:00:03,606  INFO Configuration:759 - Reading mappings from resource : com/ib/HBCore/entidades/TipoDeDocumento.hbm.xml
13:00:03,639  INFO Configuration:759 - Reading mappings from resource : com/ba/facturacion/entidades/CAI.hbm.xml
13:00:03,659  INFO Configuration:759 - Reading mappings from resource : com/ba/facturacion/entidades/Cliente.hbm.xml
13:00:03,688  INFO Configuration:759 - Reading mappings from resource : com/ba/facturacion/entidades/PuntoDeVenta.hbm.xml
13:00:03,719  INFO Configuration:759 - Reading mappings from resource : com/ba/facturacion/entidades/CodigoDeDocumento.hbm.xml
13:00:03,738  INFO Configuration:759 - Reading mappings from resource : com/ba/facturacion/entidades/CondicionDeVenta.hbm.xml
13:00:03,759  INFO Configuration:759 - Reading mappings from resource : com/ba/facturacion/entidades/PorcentajeDeIva.hbm.xml
13:00:03,785  INFO Configuration:759 - Reading mappings from resource : com/ba/facturacion/entidades/interfaces/RenglonFacturaVenta.hbm.xml
13:00:03,796  INFO Configuration:759 - Reading mappings from resource : com/ba/facturacion/entidades/FacturaVenta.hbm.xml
13:00:03,825  INFO Configuration:759 - Reading mappings from resource : com/ba/facturacion/entidades/DetalleFacturaVenta.hbm.xml
13:00:03,839  INFO Configuration:759 - Reading mappings from resource : com/ba/facturacion/entidades/DescuentoFacturaVenta.hbm.xml
13:00:03,856  INFO Configuration:759 - Reading mappings from resource : com/ba/facturacion/entidades/CategoriaDeCliente.hbm.xml
13:00:03,884  INFO Configuration:759 - Reading mappings from resource : com/ba/facturacion/entidades/Empresa.hbm.xml
13:00:03,916  INFO Configuration:759 - Reading mappings from resource : com/ba/facturacion/entidades/ConceptoDeVenta.hbm.xml
13:00:03,940  INFO Configuration:759 - Reading mappings from resource : com/ba/facturacion/entidades/interfaces/RenglonFacturaProForma.hbm.xml
13:00:03,981  INFO Configuration:759 - Reading mappings from resource : com/ba/facturacion/entidades/DetalleFacturaProForma.hbm.xml
13:00:04,001  INFO Configuration:759 - Reading mappings from resource : com/ba/facturacion/entidades/DescuentoFacturaProForma.hbm.xml
13:00:04,027  INFO Configuration:759 - Reading mappings from resource : com/ba/facturacion/entidades/FacturaProForma.hbm.xml
13:00:04,058  INFO Configuration:759 - Reading mappings from resource : com/ba/facturacion/entidades/FacturacionAutomatica.hbm.xml
13:00:04,084  INFO Configuration:759 - Reading mappings from resource : com/ba/facturacion/entidades/FamiliaDeProducto.hbm.xml
13:00:04,111  INFO Configuration:759 - Reading mappings from resource : com/ba/facturacion/entidades/FamiliaDeProductoHoja.hbm.xml
13:00:04,135  INFO Configuration:759 - Reading mappings from resource : com/ba/facturacion/entidades/FamiliaDeProductoNodo.hbm.xml
13:00:04,150  INFO Configuration:759 - Reading mappings from resource : com/ba/facturacion/entidades/Proveedor.hbm.xml
13:00:04,176  INFO Configuration:759 - Reading mappings from resource : com/ba/facturacion/entidades/Producto.hbm.xml
13:00:04,206  INFO Configuration:759 - Reading mappings from resource : com/ba/facturacion/entidades/documentos/Remito.hbm.xml
13:00:04,235  INFO Configuration:759 - Reading mappings from resource : com/ba/facturacion/entidades/documentos/RemitoRenglon.hbm.xml
13:00:04,262  INFO Configuration:2267 - Configured SessionFactory: null
13:00:04,490  INFO HbmBinder:350 - Mapping class: com.ba.facturacion.entidades.CategoriaImpositiva -> categoriaimpositiva
13:00:04,539  INFO HbmBinder:1492 - Mapping collection: com.ba.facturacion.entidades.CategoriaImpositiva.facturasQueEmite -> facturasQueEmite
13:00:04,541  INFO HbmBinder:1492 - Mapping collection: com.ba.facturacion.entidades.CategoriaImpositiva.facturasQueRecibe -> facturasQueRecibe
13:00:04,542  INFO HbmBinder:350 - Mapping class: com.ib.HBCore.entidades.Usuario -> usuarios
13:00:04,543  INFO HbmBinder:1492 - Mapping collection: com.ib.HBCore.entidades.Usuario.listaPermisos -> listapermisos
13:00:04,543  INFO HbmBinder:350 - Mapping class: com.ib.HBCore.entidades.Password -> password
13:00:04,546  INFO HbmBinder:350 - Mapping class: com.ib.HBCore.entidades.TipoDeDocumento -> tipodedocumento
13:00:04,561  INFO HbmBinder:350 - Mapping class: com.ba.facturacion.entidades.CAI -> cai
13:00:04,564  INFO HbmBinder:350 - Mapping class: com.ba.facturacion.entidades.Cliente -> cliente
13:00:04,576  INFO HbmBinder:350 - Mapping class: com.ba.facturacion.entidades.PuntoDeVenta -> puntodeventa
13:00:04,589  INFO HbmBinder:350 - Mapping class: com.ba.facturacion.entidades.CodigoDeDocumento -> codigodedocumento
13:00:04,590  INFO HbmBinder:1492 - Mapping collection: com.ba.facturacion.entidades.CodigoDeDocumento.emitidoPor -> facturasQueEmite
13:00:04,590  INFO HbmBinder:1492 - Mapping collection: com.ba.facturacion.entidades.CodigoDeDocumento.recibidoPor -> facturasQueRecibe
13:00:04,591  INFO HbmBinder:350 - Mapping class: com.ba.facturacion.entidades.CondicionDeVenta -> CondicionDeVenta
13:00:04,592  INFO HbmBinder:350 - Mapping class: com.ba.facturacion.entidades.PorcentajeDeIva -> porcentajedeiva
13:00:04,593  INFO HbmBinder:350 - Mapping class: com.ba.facturacion.entidades.interfaces.RenglonFacturaVenta -> renglones
13:00:04,596  INFO HbmBinder:350 - Mapping class: com.ba.facturacion.entidades.FacturaVenta -> FacturaVenta
13:00:04,631  INFO HbmBinder:928 - Mapping joined-subclass: com.ba.facturacion.entidades.DetalleFacturaVenta -> DetalleFacturaVenta
13:00:04,633  INFO HbmBinder:928 - Mapping joined-subclass: com.ba.facturacion.entidades.DescuentoFacturaVenta -> DescuentoFacturaVenta
13:00:04,639  INFO HbmBinder:350 - Mapping class: com.ba.facturacion.entidades.CategoriaDeCliente -> CategoriaDeCliente
13:00:04,640  INFO HbmBinder:350 - Mapping class: com.ba.facturacion.entidades.Empresa -> empresa
13:00:04,653  INFO HbmBinder:350 - Mapping class: com.ba.facturacion.entidades.ConceptoDeVenta -> conceptoventa
13:00:04,656  INFO HbmBinder:350 - Mapping class: com.ba.facturacion.entidades.interfaces.RenglonFacturaProForma -> renglonespro
13:00:04,658  INFO HbmBinder:928 - Mapping joined-subclass: com.ba.facturacion.entidades.DetalleFacturaProForma -> DetalleFacturaProForma
13:00:04,659  INFO HbmBinder:928 - Mapping joined-subclass: com.ba.facturacion.entidades.DescuentoFacturaProForma -> DescuentoFacturaProForma
13:00:04,660  INFO HbmBinder:350 - Mapping class: com.ba.facturacion.entidades.FacturaProForma -> facturaProForma
13:00:04,661  INFO HbmBinder:350 - Mapping class: com.ba.facturacion.entidades.FacturacionAutomatica -> facturacionautomatica
13:00:04,670  INFO HbmBinder:350 - Mapping class: com.ba.facturacion.entidades.FamiliaDeProducto -> FamiliaDeProducto
13:00:04,671  INFO HbmBinder:928 - Mapping joined-subclass: com.ba.facturacion.entidades.FamiliaDeProductoHoja -> FamiliaDeProductoHoja
13:00:04,679  INFO HbmBinder:928 - Mapping joined-subclass: com.ba.facturacion.entidades.FamiliaDeProductoNodo -> FamiliaDeProductoNodo
13:00:04,680  INFO HbmBinder:350 - Mapping class: com.ba.facturacion.entidades.Proveedor -> proveedor
13:00:04,683  INFO HbmBinder:1492 - Mapping collection: com.ba.facturacion.entidades.Proveedor.listaDeProductos -> productoProveedor
13:00:04,684  INFO HbmBinder:350 - Mapping class: com.ba.facturacion.entidades.Producto -> Producto
13:00:04,686  INFO HbmBinder:1492 - Mapping collection: com.ba.facturacion.entidades.Producto.proveedores -> productoProveedor
13:00:04,686  INFO HbmBinder:350 - Mapping class: com.ba.facturacion.entidades.documentos.Remito -> Remito
13:00:04,688  INFO HbmBinder:350 - Mapping class: com.ba.facturacion.entidades.documentos.RemitoRenglon -> RemitoRenglon
13:00:04,705  INFO HbmBinder:2478 - Mapping collection: com.ba.facturacion.entidades.PuntoDeVenta.listaCai -> cai
13:00:04,706  INFO HbmBinder:2478 - Mapping collection: com.ba.facturacion.entidades.FacturaVenta.renglones -> renglones
13:00:04,706  INFO HbmBinder:2478 - Mapping collection: com.ba.facturacion.entidades.FacturaProForma.renglones -> renglonespro
13:00:04,706  INFO HbmBinder:2478 - Mapping collection: com.ba.facturacion.entidades.FamiliaDeProductoHoja.productos -> Producto
13:00:04,706  INFO HbmBinder:2478 - Mapping collection: com.ba.facturacion.entidades.FamiliaDeProductoNodo.subFamilias -> FamiliaDeProducto
13:00:04,706  INFO HbmBinder:2478 - Mapping collection: com.ba.facturacion.entidades.documentos.Remito.renglones -> RemitoRenglon
Initial SessionFactory creation failed.java.lang.NullPointerException
14/01/2011 13:00:04 com.ib.utilidades.GUIMensajes mostrarErrorReportar
GRAVE: null
java.lang.Exception: Error Irrecuperable en el inicio del sistema:
          java.lang.NullPointerException

El sistema se cerrarรก, contacte al proveedor
   at com.ba.facturacion.gui.dialogos.Inicializacion.run(Inicializacion.java:111)
   at java.lang.Thread.run(Thread.java:636)
Caused by: java.lang.ExceptionInInitializerError
   at com.ib.HBCore.util.HibernateUtil.<clinit>(HibernateUtil.java:34)
   at com.ba.facturacion.gui.dialogos.Inicializacion.run(Inicializacion.java:109)
   ... 1 more
Caused by: java.lang.NullPointerException
   at org.hibernate.cfg.Configuration.applyHibernateValidatorLegacyConstraintsOnDDL(Configuration.java:1639)
   at org.hibernate.cfg.Configuration.applyConstraintsToDDL(Configuration.java:1623)
   at org.hibernate.cfg.Configuration.secondPassCompile(Configuration.java:1415)
   at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1826)
   at com.ib.HBCore.util.HibernateUtil.<clinit>(HibernateUtil.java:24)
   ... 2 more


I hope somebody can help me with this issue
Thanks in advance


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.