New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UnexpectedRollbackException when doing View Logs #660

Closed
Yaytay opened this Issue Jun 26, 2017 · 0 comments

Comments

Projects
None yet
3 participants
@Yaytay

Yaytay commented Jun 26, 2017

Expected Behavior

Hitting View Logs in the management UI should generate a UI for viewing logs.

Current Behavior

The API is generating:

UnexpectedRollbackException: Transaction rolled back because it has been marked as rollback-only
at org.springframework.transaction.support.AbstractPlatformTransactionManager.commit(AbstractPlatformTransactionManager.java:724)
at org.springframework.transaction.interceptor.TransactionAspectSupport.commitTransactionAfterReturning(TransactionAspectSupport.java:487)
at org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:291)
at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:96)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:213)
at com.sun.proxy.$Proxy48.findByApi(Unknown Source)
at io.gravitee.management.rest.resource.ApiLogsResource.apiLogs(ApiLogsResource.java:64)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

Steps to Reproduce (for bugs)

  1. Navigate to Dashboard.
  2. Choose an API.
  3. Click View Logs

Context

I was just trying to smoke test the system to see if my JDBC repo was breaking anywhere.
My JDBC repo is not reporting any failures and does not do anything about storing logs, but I don't know whether it was involved in the transaction.

Your Environment

  • Version used: 1.7.0, not tried View Logs on previous versions.
  • Browser Name and version: Chrome
  • Operating System and version: Windows 10

brasseld added a commit to gravitee-io/gravitee-management-rest-api that referenced this issue Jun 26, 2017

@brasseld brasseld self-assigned this Jun 26, 2017

@brasseld brasseld added this to the 1.8.0 milestone Jun 27, 2017

NicolasGeraud added a commit to gravitee-io/gravitee-management-rest-api that referenced this issue Jun 27, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment