Startseite › Foren › Hilfe bei Problemen › Fehler beim Erstellen von Dokumenten in Akte
Verschlagwortet: Docker, Dokumenterstellung, Server
- Dieses Thema hat 3 Antworten sowie 2 Stimmen und wurde zuletzt vor vor 12 Monaten von j-lawyer.org aktualisiert.
-
AutorBeiträge
-
22. November 2023 um 09:01 #5786DeluTeilnehmer
Hallo,
für einen Kollegen setze ich gerade j-lawyer in einer Dockerumgebung auf, der mich über einen Fehler beim Erstellen von Dokumenten in Akten informiert hat. Mit dem Client für Mac (2.5.0.0) und dem latest jlawyerorg/jlawyer-srv (2.6.0.4) kommt es bereits bei Auswahl eines Dokuments mit Platzhalter (hier „j-lawyer-alle Platzhalter.odt“ als Beispiel) zu zahlreichen Fehlern auf der Serverseite:
jlawyer-server-1 | 07:39:42,177 ERROR [org.jboss.as.ejb3.invocation] (default task-1) WFLYEJB0034: EJB Invocation failed on component AppUserBeanFacade for method public abstract com.jdimension.jlawyer.persistence.AppUserBean com.jdimension.jlawyer.persistence.AppUserBeanFacadeLocal.findByPrincipalId(java.lang.String): javax.ejb.EJBTransactionRolledbackException: No entity found for query
jlawyer-server-1 | at org.jboss.as.ejb3.tx.CMTTxInterceptor.invokeInCallerTx(CMTTxInterceptor.java:203)
jlawyer-server-1 | at org.jboss.as.ejb3.tx.CMTTxInterceptor.required(CMTTxInterceptor.java:364)
jlawyer-server-1 | at org.jboss.as.ejb3.tx.CMTTxInterceptor.processInvocation(CMTTxInterceptor.java:144)
jlawyer-server-1 | at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422)
jlawyer-server-1 | at org.jboss.invocation.InterceptorContext$Invocation.proceed(InterceptorContext.java:509)
jlawyer-server-1 | at org.jboss.weld.module.ejb.AbstractEJBRequestScopeActivationInterceptor.aroundInvoke(AbstractEJBRequestScopeActivationInterceptor.java:72)
jlawyer-server-1 | at org.jboss.as.weld.ejb.EjbRequestScopeActivationInterceptor.processInvocation(EjbRequestScopeActivationInterceptor.java:89)
jlawyer-server-1 | at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422)
jlawyer-server-1 | at org.jboss.as.ejb3.component.interceptors.CurrentInvocationContextInterceptor.processInvocation(CurrentInvocationContextInterceptor.java:41)
jlawyer-server-1 | at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422)
jlawyer-server-1 | at org.jboss.as.ejb3.component.invocationmetrics.WaitTimeInterceptor.processInvocation(WaitTimeInterceptor.java:47)
jlawyer-server-1 | at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422)
jlawyer-server-1 | at org.jboss.as.ejb3.security.AuthorizationInterceptor.processInvocation(AuthorizationInterceptor.java:138)
jlawyer-server-1 | at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422)
jlawyer-server-1 | at org.jboss.as.ejb3.security.SecurityContextInterceptor.processInvocation(SecurityContextInterceptor.java:100)
jlawyer-server-1 | at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422)
jlawyer-server-1 | at org.jboss.as.ejb3.deployment.processors.StartupAwaitInterceptor.processInvocation(StartupAwaitInterceptor.java:22)
jlawyer-server-1 | at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422)
jlawyer-server-1 | at org.jboss.as.ejb3.component.interceptors.ShutDownInterceptorFactory$1.processInvocation(ShutDownInterceptorFactory.java:64)
jlawyer-server-1 | at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422)
jlawyer-server-1 | at org.jboss.as.ejb3.component.interceptors.LoggingInterceptor.processInvocation(LoggingInterceptor.java:67)
jlawyer-server-1 | at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422)
jlawyer-server-1 | at org.jboss.as.ee.component.NamespaceContextInterceptor.processInvocation(NamespaceContextInterceptor.java:50)
jlawyer-server-1 | at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422)
jlawyer-server-1 | at org.jboss.invocation.ContextClassLoaderInterceptor.processInvocation(ContextClassLoaderInterceptor.java:60)
jlawyer-server-1 | at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422)
jlawyer-server-1 | at org.jboss.invocation.InterceptorContext.run(InterceptorContext.java:438)
jlawyer-server-1 | at org.wildfly.security.manager.WildFlySecurityManager.doChecked(WildFlySecurityManager.java:618)
jlawyer-server-1 | at org.jboss.invocation.AccessCheckingInterceptor.processInvocation(AccessCheckingInterceptor.java:57)
jlawyer-server-1 | at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422)
jlawyer-server-1 | at org.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:53)
jlawyer-server-1 | at org.jboss.as.ee.component.ViewService$View.invoke(ViewService.java:198)
jlawyer-server-1 | at org.jboss.as.ee.component.ViewDescription$1.processInvocation(ViewDescription.java:185)
jlawyer-server-1 | at org.jboss.as.ee.component.ProxyInvocationHandler.invoke(ProxyInvocationHandler.java:81)
jlawyer-server-1 | at com.jdimension.jlawyer.persistence.AppUserBeanFacadeLocal$$$view100.findByPrincipalId(Unknown Source)
jlawyer-server-1 | at com.jdimension.jlawyer.services.SystemManagement.getUser(SystemManagement.java:1247)
jlawyer-server-1 | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
jlawyer-server-1 | at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
jlawyer-server-1 | at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
jlawyer-server-1 | at java.lang.reflect.Method.invoke(Method.java:498)
jlawyer-server-1 | at org.jboss.as.ee.component.ManagedReferenceMethodInterceptor.processInvocation(ManagedReferenceMethodInterceptor.java:52)
jlawyer-server-1 | at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422)
jlawyer-server-1 | at org.jboss.invocation.InterceptorContext$Invocation.proceed(InterceptorContext.java:509)
jlawyer-server-1 | at org.jboss.as.weld.interceptors.Jsr299BindingsInterceptor.delegateInterception(Jsr299BindingsInterceptor.java:79)
jlawyer-server-1 | at org.jboss.as.weld.interceptors.Jsr299BindingsInterceptor.doMethodInterception(Jsr299BindingsInterceptor.java:89)
jlawyer-server-1 | at org.jboss.as.weld.interceptors.Jsr299BindingsInterceptor.processInvocation(Jsr299BindingsInterceptor.java:102)
jlawyer-server-1 | at org.jboss.as.ee.component.interceptors.UserInterceptorFactory$1.processInvocation(UserInterceptorFactory.java:63)
jlawyer-server-1 | at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422)
jlawyer-server-1 | at org.jboss.as.ejb3.component.invocationmetrics.ExecutionTimeInterceptor.processInvocation(ExecutionTimeInterceptor.java:43)
jlawyer-server-1 | at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422)
jlawyer-server-1 | at org.jboss.as.jpa.interceptor.SBInvocationInterceptor.processInvocation(SBInvocationInterceptor.java:47)
jlawyer-server-1 | at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422)
jlawyer-server-1 | at org.jboss.as.ee.concurrent.ConcurrentContextInterceptor.processInvocation(ConcurrentContextInterceptor.java:45)
jlawyer-server-1 | at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422)
jlawyer-server-1 | at org.jboss.invocation.InitialInterceptor.processInvocation(InitialInterceptor.java:40)
jlawyer-server-1 | at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422)
jlawyer-server-1 | at org.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:53)
jlawyer-server-1 | at org.jboss.as.ee.component.interceptors.ComponentDispatcherInterceptor.processInvocation(ComponentDispatcherInterceptor.java:52)
jlawyer-server-1 | at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422)
jlawyer-server-1 | at org.jboss.as.ejb3.component.pool.PooledInstanceInterceptor.processInvocation(PooledInstanceInterceptor.java:51)
jlawyer-server-1 | at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422)
jlawyer-server-1 | at org.jboss.as.ejb3.component.interceptors.AdditionalSetupInterceptor.processInvocation(AdditionalSetupInterceptor.java:54)
jlawyer-server-1 | at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422)
jlawyer-server-1 | at org.jboss.as.ejb3.tx.CMTTxInterceptor.invokeInOurTx(CMTTxInterceptor.java:237)
jlawyer-server-1 | at org.jboss.as.ejb3.tx.CMTTxInterceptor.required(CMTTxInterceptor.java:362)
jlawyer-server-1 | at org.jboss.as.ejb3.tx.CMTTxInterceptor.processInvocation(CMTTxInterceptor.java:144)
jlawyer-server-1 | at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422)
jlawyer-server-1 | at org.jboss.invocation.InterceptorContext$Invocation.proceed(InterceptorContext.java:509)
jlawyer-server-1 | at org.jboss.weld.module.ejb.AbstractEJBRequestScopeActivationInterceptor.aroundInvoke(AbstractEJBRequestScopeActivationInterceptor.java:81)
jlawyer-server-1 | at org.jboss.as.weld.ejb.EjbRequestScopeActivationInterceptor.processInvocation(EjbRequestScopeActivationInterceptor.java:89)
jlawyer-server-1 | at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422)
jlawyer-server-1 | at org.jboss.as.ejb3.component.interceptors.CurrentInvocationContextInterceptor.processInvocation(CurrentInvocationContextInterceptor.java:41)
jlawyer-server-1 | at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422)
jlawyer-server-1 | at org.jboss.as.ejb3.component.invocationmetrics.WaitTimeInterceptor.processInvocation(WaitTimeInterceptor.java:47)
jlawyer-server-1 | at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422)
jlawyer-server-1 | at org.jboss.as.ejb3.security.AuthorizationInterceptor.processInvocation(AuthorizationInterceptor.java:138)
jlawyer-server-1 | at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422)
jlawyer-server-1 | at org.jboss.as.ejb3.security.SecurityContextInterceptor.processInvocation(SecurityContextInterceptor.java:100)
jlawyer-server-1 | at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422)
jlawyer-server-1 | at org.jboss.as.ejb3.deployment.processors.StartupAwaitInterceptor.processInvocation(StartupAwaitInterceptor.java:22)
jlawyer-server-1 | at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422)
jlawyer-server-1 | at org.jboss.as.ejb3.component.interceptors.ShutDownInterceptorFactory$1.processInvocation(ShutDownInterceptorFactory.java:64)
jlawyer-server-1 | at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422)
jlawyer-server-1 | at org.jboss.as.ejb3.deployment.processors.EjbSuspendInterceptor.processInvocation(EjbSuspendInterceptor.java:57)
jlawyer-server-1 | at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422)
jlawyer-server-1 | at org.jboss.as.ejb3.component.interceptors.LoggingInterceptor.processInvocation(LoggingInterceptor.java:67)
jlawyer-server-1 | at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422)
jlawyer-server-1 | at org.jboss.as.ee.component.NamespaceContextInterceptor.processInvocation(NamespaceContextInterceptor.java:50)
jlawyer-server-1 | at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422)
jlawyer-server-1 | at org.jboss.invocation.ContextClassLoaderInterceptor.processInvocation(ContextClassLoaderInterceptor.java:60)
jlawyer-server-1 | at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422)
jlawyer-server-1 | at org.jboss.invocation.InterceptorContext.run(InterceptorContext.java:438)
jlawyer-server-1 | at org.wildfly.security.manager.WildFlySecurityManager.doChecked(WildFlySecurityManager.java:618)
jlawyer-server-1 | at org.jboss.invocation.AccessCheckingInterceptor.processInvocation(AccessCheckingInterceptor.java:57)
jlawyer-server-1 | at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422)
jlawyer-server-1 | at org.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:53)
jlawyer-server-1 | at org.jboss.as.ee.component.ViewService$View.invoke(ViewService.java:198)
jlawyer-server-1 | at org.wildfly.security.auth.server.SecurityIdentity.runAsFunctionEx(SecurityIdentity.java:406)
jlawyer-server-1 | at org.jboss.as.ejb3.remote.AssociationImpl.invokeWithIdentity(AssociationImpl.java:565)
jlawyer-server-1 | at org.jboss.as.ejb3.remote.AssociationImpl.invokeMethod(AssociationImpl.java:546)
jlawyer-server-1 | at org.jboss.as.ejb3.remote.AssociationImpl.lambda$receiveInvocationRequest$0(AssociationImpl.java:197)
jlawyer-server-1 | at org.jboss.threads.ContextClassLoaderSavingRunnable.run(ContextClassLoaderSavingRunnable.java:35)
jlawyer-server-1 | at org.jboss.threads.EnhancedQueueExecutor.safeRun(EnhancedQueueExecutor.java:1982)
jlawyer-server-1 | at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.doRunTask(EnhancedQueueExecutor.java:1486)
jlawyer-server-1 | at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1377)
jlawyer-server-1 | at java.lang.Thread.run(Thread.java:748)
jlawyer-server-1 | Caused by: javax.persistence.NoResultException: No entity found for query
jlawyer-server-1 | at org.hibernate.query.internal.AbstractProducedQuery.getSingleResult(AbstractProducedQuery.java:1555)
jlawyer-server-1 | at com.jdimension.jlawyer.persistence.AppUserBeanFacade.findByPrincipalId(AppUserBeanFacade.java:694)
jlawyer-server-1 | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
jlawyer-server-1 | at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
jlawyer-server-1 | at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
jlawyer-server-1 | at java.lang.reflect.Method.invoke(Method.java:498)
jlawyer-server-1 | at org.jboss.as.ee.component.ManagedReferenceMethodInterceptor.processInvocation(ManagedReferenceMethodInterceptor.java:52)
jlawyer-server-1 | at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422)
jlawyer-server-1 | at org.jboss.invocation.InterceptorContext$Invocation.proceed(InterceptorContext.java:509)
jlawyer-server-1 | at org.jboss.as.weld.interceptors.Jsr299BindingsInterceptor.delegateInterception(Jsr299BindingsInterceptor.java:79)
jlawyer-server-1 | at org.jboss.as.weld.interceptors.Jsr299BindingsInterceptor.doMethodInterception(Jsr299BindingsInterceptor.java:89)
jlawyer-server-1 | at org.jboss.as.weld.interceptors.Jsr299BindingsInterceptor.processInvocation(Jsr299BindingsInterceptor.java:102)
jlawyer-server-1 | at org.jboss.as.ee.component.interceptors.UserInterceptorFactory$1.processInvocation(UserInterceptorFactory.java:63)
jlawyer-server-1 | at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422)
jlawyer-server-1 | at org.jboss.as.ejb3.component.invocationmetrics.ExecutionTimeInterceptor.processInvocation(ExecutionTimeInterceptor.java:43)
jlawyer-server-1 | at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422)
jlawyer-server-1 | at org.jboss.as.jpa.interceptor.SBInvocationInterceptor.processInvocation(SBInvocationInterceptor.java:47)
jlawyer-server-1 | at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422)
jlawyer-server-1 | at org.jboss.as.ee.concurrent.ConcurrentContextInterceptor.processInvocation(ConcurrentContextInterceptor.java:45)
jlawyer-server-1 | at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422)
jlawyer-server-1 | at org.jboss.invocation.InitialInterceptor.processInvocation(InitialInterceptor.java:40)
jlawyer-server-1 | at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422)
jlawyer-server-1 | at org.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:53)
jlawyer-server-1 | at org.jboss.as.ee.component.interceptors.ComponentDispatcherInterceptor.processInvocation(ComponentDispatcherInterceptor.java:52)
jlawyer-server-1 | at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422)
jlawyer-server-1 | at org.jboss.as.ejb3.component.pool.PooledInstanceInterceptor.processInvocation(PooledInstanceInterceptor.java:51)
jlawyer-server-1 | at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422)
jlawyer-server-1 | at org.jboss.as.ejb3.component.interceptors.AdditionalSetupInterceptor.processInvocation(AdditionalSetupInterceptor.java:54)
jlawyer-server-1 | at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422)
jlawyer-server-1 | at org.jboss.as.ejb3.tx.CMTTxInterceptor.invokeInCallerTx(CMTTxInterceptor.java:185)
jlawyer-server-1 | … 105 moreund viele weitere exceptions.
Der client bekommt davon nichts mit. Ein Klick auf „Erstellen und Öffnen“ öffnet ein Dialogfenster mit der Fehlermeldung: „Ein Fehler beim Hinzufügen des Dokuments: No such EJB method org.jboss.ejb.EJBMethodLocator@259ed039 found on j-lawyer-server/j-lawyer-server-ejb/ArchibeFileService“.
Testweise habe ich mal das image jlawyerorg/jlawyer-srv in der Version 2.5.0.4 probiert und erhalte bei der Auswahl die selben Exceptions auf der Serverseite, aber das erstellen klappt hier und es taucht kein Fehlerdialogfenster auf.
Da ohnehin beim Start ein Dialogfenster aufmerksam macht, dass jlawyerorg/jlawyer-srv und client in der selben Version laufen sollten, kann man den Fehler beim Klick auf „Erstellen und Öffnen“ vielleicht auf eine Inkompatibilität zwischen den Versionen zurückführen. Vielleicht könnte man dennoch einen Blick darauf werfen, was es mit den Fehlern bei der Selektion eines Dokuments auf sich hat.
Ich hätte zusätzlich eine kleine Anregung: Könnte im docker hub ein weiteres Taggingschema zum Einsatz kommen, welches alle Fixes einer Minor-Version beinhaltet? Ein Beispiel wäre ein Tag „2.5“, womit alle Fixes in 2.5.X.X inkludiert wären.
Vielen Dank fürs Bereitstellen dieser Software.
Viele Grüße
Delu- Dieses Thema wurde vor vor 1 Jahr von Delu bearbeitet.
22. November 2023 um 21:38 #5791j-lawyer.orgAdministratorHallo,
zunächst einmal: das Docker-Image ist nicht für den produktiven Einsatz gedacht:
> https://github.com/jlawyerorg/j-lawyer-org/tree/master/dockerGrundsätzlich müssen Server und Client zueinander passen. „No such EJB method“ weist auf eine solche Inkompatibilität hin – die API am Server hat sich geändert und der Client kann damit nichts anfangen. Einen 2.6er Client gibt es noch nicht als Installer.
Diese Meldung hier
com.jdimension.jlawyer.persistence.AppUserBeanFacadeLocal.findByPrincipalId(java.lang.String): javax.ejb.EJBTransactionRolledbackException: No entity found for querybesagt dass ein Nutzer gelöscht wurde, aber noch irgendwo in Historien o.ä. drinsteckt. Der Client warnt bei Löschen von Nutzern eindringlich, dass besser nur das Loginrecht zu entziehen ist. Es ist eine Frage der Dokumentation, auch nach Verlassen der Firma nachweisen zu können, wer etwas in einer Akte gemacht hat.
Zu Problem führt der Fehler nicht, aber er ist nicht wegzubekommen – es sei denn man erstellt einen neuen Nutzer mit dem selben Nutzernamen.
VG
Jens / j-lawyer.org24. November 2023 um 10:35 #5792DeluTeilnehmerHallo Jens,
danke für deine schnelle Antwort. Ich habe zuvor mal in einem vorherigen Docker-Setup einen Nutzer gelöscht und war mir nicht sicher, ob vielleicht da etwas übrig geblieben ist. Mit neu aufgesetzten Server und einer neuen DB kann ich jedoch das selbe Problem bei der Auswahl der Vorlage hervorrufen. Die Standardnutzer admin und user sind bei mir in der Nutzerverwaltung vorhanden.
Kann es sein, dass im Client vielleicht noch etwas zwischengespeichert wird?
Viele Grüße
Delu24. November 2023 um 11:34 #5793j-lawyer.orgAdministratorKann ich für diese neue Installation nochmal ein server.log haben? (direkt an mich, Mail im Impressum)
-
AutorBeiträge
- Du musst angemeldet sein, um zu diesem Thema eine Antwort verfassen zu können.