martes, 23 de agosto de 2016

Caused by javax.resource.spi.InvalidPropertyException: Missing Property Exception Missing Property: [ConnectionFactory> xADataSourceName or dataSourceName]

Al momento de tratar de conectarnos a una base de datos desde un adaptador de base de datos podríamos obtener un mensaje como el siguiente:

BINDING.JCA-11622
Could not create/access the TopLink Session.
This session is used to connect to the datastore.
Caused by javax.resource.spi.InvalidPropertyException: Missing Property Exception.
Missing Property: [ConnectionFactory> xADataSourceName or dataSourceName].
You may have set a property (in _db.jca) which requires another property to be set also.
 Make sure the property is set in the interaction (activation) spec by editing its definition in _db.jca.
.
You may need to configure the connection settings in the deployment descriptor (i.e. DbAdapter.rar#META-INF/weblogic-ra.xml) and restart the server.  This exception is considered not retriable, likely due to a modelling mistake.

DBTransaction.rollback() is called.

Ese mensaje aparece cuando el adaptador de base de datos no ha tomado los cambios del pool de conexiones salientes.

Para solventar lo anterior podemos hacer 2 cosas:

1. Redesplegar el adaptador:
    -> Desde la consola de Weblogic, Despliegues.
    -> Seleccionar el DbAdapter.
    -> Presionar el botón Actualizar de la parte superior.
    -> Debemos verificar que se haya seleccionado el plan de despliegue correcto.
    -> Redesplegar.

2. En caso que el punto 1 no funcionara reiniciamos el servidor.

No hay comentarios:

Publicar un comentario