[Persistence, JBoss/CMP, Hibernate, Database] - AbstractMethodError while deploying .sar file in JBoss
by Hema.T
Hi,
I'm trying to create a .sar file out of my java application and deploy it in JBoss, to make it available as a service. While deploying I'm getting the following error in JBoss console. Please help me out in resolving this issue.
I have given the StackTrace here:
java.lang.AbstractMethodError
at org.hibernate.jdbc.AbstractBatcher.getSQL(AbstractBatcher.java:451)
at org.hibernate.jdbc.AbstractBatcher.getPreparedStatement(AbstractBatcher.java:473)
at org.hibernate.jdbc.AbstractBatcher.getPreparedStatement(AbstractBatcher.java:415)
at org.hibernate.jdbc.AbstractBatcher.prepareQueryStatement(AbstractBatcher.java:139)
at org.hibernate.loader.Loader.prepareQueryStatement(Loader.java:1560)
at org.hibernate.loader.Loader.doQuery(Loader.java:661)
at org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:224)
at org.hibernate.loader.Loader.loadEntity(Loader.java:1784)
at org.hibernate.loader.entity.AbstractEntityLoader.load(AbstractEntityLoader.java:48)
at org.hibernate.loader.entity.AbstractEntityLoader.load(AbstractEntityLoader.java:42)
at org.hibernate.persister.entity.AbstractEntityPersister.load(AbstractEntityPersister.java:
2977)
at org.hibernate.event.def.DefaultLoadEventListener.loadFromDatasource(DefaultLoadEventListe
ner.java:393)
Thanks in advance,
Hema
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4107998#4107998
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4107998
18 years, 5 months
[JBoss jBPM] - Can JPDL restricts who has rights to start a new process ins
by yalexfan
I have a process definition file in JPDL, and now I want to add controls on persons(actor-ids) who can start a new instance of this process. I am now doubting does JPDL has the ability to define this? Also I have noticed that there is a swimlane definition in the start state, and the following is quoted from JPDL's document:
A task can be specified in a start-state. That task be associated with a swimlane. When a new task instance is created for such a task, the current authenticated actor will be captured with Authentication.getAuthenticatedActorId() and that actor will be stored in the swimlane of the start task.
However, it seems this swimlane just give authentication to the actor who start this process, not control the actors who can start this process. So, is there anything which can do this in JPDL, or something similar? Or, I have to use some external component from JBPM to do this?
Thanks
--
zf
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4107994#4107994
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4107994
18 years, 5 months
[JBoss Seam] - @DataModel problem
by lsabin
Hi.
I have the following component which retrieves a list of courses done by a employee. This works fine but when I included some code to get a list of courses that match a certain input the list of courses is not retrieved (actually the method listCoursesEmployee() is not invoked at all).
| @Name("courseservice")
| @Scope(ScopeType.CONVERSATION)
| @Restrict("#{identity.loggedIn}")
| public class CourseAction {
|
|
| @In
| private EntityManager entityManager;
|
| @In(value="empleadoSel")
| private Tecnico selectedEmployee;
|
|
| @DataModel
| private List<CursoCurriculum> listCoursesEmployee = new ArrayList<CursoCurriculum>();
|
|
|
| public CourseAction(){}
|
|
|
| @Factory(value="listCoursesEmployee",autoCreate=true)
| public void listCoursesEmployee(){
|
|
| if (selectedEmployee != null)
| {
| Curriculum cvEmpleado = null;
|
| cvEmpleado = selectedEmployee.getCurriculum();
|
| if (cvEmpleado != null)
| listCoursesEmployee = cvEmpleado.getCursos();
| }
|
| }
|
But if I move the code that gets the list of courses to another component everything works. This is the code in the new component:
|
| @Name("cursoservice")
| @Scope(ScopeType.CONVERSATION)
| @Restrict("#{identity.loggedIn}")
| public class CursosAction {
|
|
| @In
| private EntityManager entityManager;
|
|
| private String nombreCurso;
|
|
| @Out(scope=ScopeType.EVENT)
| List<Curso> listaCursosParcial = new ArrayList<Curso>();
|
| public CursosAction(){}
|
| public List<Curso> getListaCursosParcial(){
| return listaCursosParcial;
| }
|
|
| public void setNombreCurso(String nombreCurso) {
| this.nombreCurso = nombreCurso;
| }
|
|
|
| public void obtieneCursosParcial(){
|
| String patron = "";
| patron = (nombreCurso == null) ? "%" : ('%' + nombreCurso.toLowerCase().replace('*', '%') + '%');
|
| listaCursosParcial = entityManager.createQuery(
| "from Curso where LOWER(nombre) like :patron order by nombre")
| .setParameter("patron",patron)
| .getResultList();
| }
|
I want to have all the code in the first component. If this is posible what am I doing wrong?
Thanks.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4107984#4107984
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4107984
18 years, 5 months