I always got “null” error message when publish an app. While there is no exception.
The backend log:
Hi,
any log? Could you add exported app too?
Regards
Martin
Look in the catalina.out log inside of tomcat.
09:39:46,759 [http-nio-8080-exec-8] DEBUG org.springframework.security.web.Filte
rChainProxy - /app/rest/app-definitions/4c7bd70f-cdf7-11e7-b4f1-0a0027000010/pu
blish reached end of additional filter chain; proceeding with original chain
09:39:46,760 [http-nio-8080-exec-8] DEBUG org.springframework.web.servlet.Dispat
cherServlet - DispatcherServlet with name ‘appDispatcher’ processing POST reque
st for [/flowable-modeler/app/rest/app-definitions/4c7bd70f-cdf7-11e7-b4f1-0a002
7000010/publish]
09:39:46,761 [http-nio-8080-exec-8] DEBUG org.springframework.web.servlet.mvc.me
thod.annotation.RequestMappingHandlerMapping - Looking up handler method for pa
th /rest/app-definitions/4c7bd70f-cdf7-11e7-b4f1-0a0027000010/publish
09:39:46,771 [http-nio-8080-exec-8] DEBUG org.springframework.web.servlet.mvc.me
thod.annotation.RequestMappingHandlerMapping - Returning handler method [public
org.flowable.app.model.editor.AppDefinitionUpdateResultRepresentation org.flowa
ble.app.rest.editor.AppDefinitionResource.publishAppDefinition(java.lang.String,
org.flowable.app.model.editor.AppDefinitionPublishRepresentation)]
09:39:46,772 [http-nio-8080-exec-8] DEBUG org.springframework.beans.factory.supp
ort.DefaultListableBeanFactory - Returning cached instance of singleton bean 'a
ppDefinitionResource’
09:39:46,796 [http-nio-8080-exec-8] DEBUG org.springframework.web.servlet.mvc.me
thod.annotation.RequestResponseBodyMethodProcessor - Read [class org.flowable.a
pp.model.editor.AppDefinitionPublishRepresentation] as “application/json;charset
=utf-8” with [org.springframework.http.converter.json.MappingJackson2HttpMessage
Converter@184b3694]
09:39:46,825 [http-nio-8080-exec-8] DEBUG org.springframework.jdbc.datasource.Da
taSourceTransactionManager - Creating new transaction with name [org.flowable.a
pp.service.editor.AppDefinitionImportService.publishAppDefinition]: PROPAGATION_
REQUIRED,ISOLATION_DEFAULT; ''
09:39:46,826 [http-nio-8080-exec-8] DEBUG org.springframework.jdbc.datasource.Da
taSourceTransactionManager - Acquired Connection [248748576, URL=jdbc:oracle:th
in:@localhost/orcl, UserName=IRMP, Oracle JDBC driver] for JDBC transaction
09:39:46,826 [http-nio-8080-exec-8] DEBUG org.springframework.jdbc.datasource.Da
taSourceTransactionManager - Switching JDBC Connection [248748576, URL=jdbc:ora
cle:thin:@localhost/orcl, UserName=IRMP, Oracle JDBC driver] to manual commit
09:39:46,851 [http-nio-8080-exec-8] DEBUG org.springframework.jdbc.datasource.Da
taSourceTransactionManager - Participating in existing transaction
09:39:46,851 [http-nio-8080-exec-8] DEBUG org.mybatis.spring.SqlSessionUtils -
Creating a new SqlSession
09:39:46,851 [http-nio-8080-exec-8] DEBUG org.mybatis.spring.SqlSessionUtils -
Registering transaction synchronization for SqlSession [org.apache.ibatis.sessio
n.defaults.DefaultSqlSession@4f189b47]
09:39:46,852 [http-nio-8080-exec-8] DEBUG org.mybatis.spring.transaction.SpringM
anagedTransaction - JDBC Connection [248748576, URL=jdbc:oracle:thin:@localhost
/orcl, UserName=IRMP, Oracle JDBC driver] will be managed by Spring
09:39:46,852 [http-nio-8080-exec-8] DEBUG org.flowable.app.domain.editor.Model.s
electModel - ==> Preparing: select * from ACT_DE_MODEL where id = ?
09:39:46,853 [http-nio-8080-exec-8] DEBUG org.flowable.app.domain.editor.Model.s
electModel - ==> Parameters: 4c7bd70f-cdf7-11e7-b4f1-0a0027000010(String)
09:39:46,855 [http-nio-8080-exec-8] DEBUG org.flowable.app.domain.editor.Model.s
electModel - <== Total: 1
09:39:46,856 [http-nio-8080-exec-8] DEBUG org.mybatis.spring.SqlSessionUtils -
Releasing transactional SqlSession [org.apache.ibatis.session.defaults.DefaultSq
lSession@4f189b47]
09:39:46,858 [http-nio-8080-exec-8] DEBUG org.springframework.jdbc.datasource.Da
taSourceTransactionManager - Participating in existing transaction
09:39:46,872 [http-nio-8080-exec-8] DEBUG org.springframework.transaction.annota
tion.AnnotationTransactionAttributeSource - Adding transactional method ‘org.fl
owable.app.service.editor.ModelServiceImpl.createNewModelVersion’ with attribute
: PROPAGATION_REQUIRED,ISOLATION_DEFAULT; ''
09:39:46,873 [http-nio-8080-exec-8] DEBUG org.springframework.jdbc.datasource.Da
taSourceTransactionManager - Participating in existing transaction
09:39:46,873 [http-nio-8080-exec-8] DEBUG org.mybatis.spring.SqlSessionUtils -
Fetched SqlSession [org.apache.ibatis.session.defaults.DefaultSqlSession@4f189b4
7] from current transaction
09:39:46,874 [http-nio-8080-exec-8] DEBUG org.flowable.app.domain.editor.ModelHi
story.insertModelHistory - ==> Preparing: insert into ACT_DE_MODEL_HISTORY ( i
d, name, model_key, description, model_comment, created, created_by, last_update
d, last_updated_by, version, model_editor_json, model_type, model_id, removal_da
te) values ( ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ? )
09:39:46,875 [http-nio-8080-exec-8] DEBUG org.flowable.app.domain.editor.ModelHi
story.insertModelHistory - ==> Parameters: 4609f304-cdf8-11e7-9c4d-0a0027000010
(String), AnotherSampleApp(String), AnotherSampleApp(String), s.spring.Sql(Strin
g), (String), 2017-11-20 21:32:48.189(Timestamp), admin(String), 2017-11-20 21:3
9:46.873(Timestamp), admin(String), 1(Integer), {“models”:[{“id”:“667a9d4e-cdf6-
11e7-b4f1-0a0027000010”,“name”:“Another Sample”,“version”:1,“modelType”:0,“descr
iption”:null,“stencilSetId”:null,“createdBy”:“admin”,“lastUpdatedBy”:“admin”,“la
stUpdated”:“2017-11-20T13:32:23.040+0000”}],“theme”:“theme-1”,“icon”:“glyphicon-
plus”,“groupsAccess”:“RL_ADMIN”}(String), 3(Integer), 4c7bd70f-cdf7-11e7-b4f1-0a
0027000010(String), null
09:39:46,877 [http-nio-8080-exec-8] DEBUG org.flowable.app.domain.editor.ModelHi
story.insertModelHistory - <== Updates: 1
09:39:46,877 [http-nio-8080-exec-8] DEBUG org.mybatis.spring.SqlSessionUtils -
Releasing transactional SqlSession [org.apache.ibatis.session.defaults.DefaultSq
lSession@4f189b47]
09:39:46,878 [http-nio-8080-exec-8] DEBUG org.mybatis.spring.SqlSessionUtils -
Fetched SqlSession [org.apache.ibatis.session.defaults.DefaultSqlSession@4f189b4
7] from current transaction
09:39:46,879 [http-nio-8080-exec-8] DEBUG org.flowable.app.domain.editor.Model.u
pdateModel - ==> Preparing: update ACT_DE_MODEL SET name = ?, model_key = ?, d
escription = ?, model_comment = ?, created = ?, created_by = ?, last_updated = ?
, last_updated_by = ?, version = ?, model_editor_json = ?, model_type = ?, thumb
nail = ? where id = ?
09:39:46,881 [http-nio-8080-exec-8] DEBUG org.flowable.app.domain.editor.Model.u
pdateModel - ==> Parameters: AnotherSampleApp(String), AnotherSampleApp(String)
, s.spring.Sql(String), (String), 2017-11-20 21:32:48.189(Timestamp), admin(Stri
ng), 2017-11-20 21:39:46.873(Timestamp), admin(String), 2(Integer), {“models”:[{
“id”:“667a9d4e-cdf6-11e7-b4f1-0a0027000010”,“name”:“Another Sample”,“version”:1,
“modelType”:0,“description”:null,“stencilSetId”:null,“createdBy”:“admin”,“lastUp
datedBy”:“admin”,“lastUpdated”:“2017-11-20T13:32:23.040+0000”}],“theme”:“theme-1
”,“icon”:“glyphicon-plus”,“groupsAccess”:“RL_ADMIN”}(String), 3(Integer), null,
4c7bd70f-cdf7-11e7-b4f1-0a0027000010(String)
09:39:46,882 [http-nio-8080-exec-8] DEBUG org.flowable.app.domain.editor.Model.u
pdateModel - <== Updates: 1
09:39:46,883 [http-nio-8080-exec-8] DEBUG org.mybatis.spring.SqlSessionUtils -
Releasing transactional SqlSession [org.apache.ibatis.session.defaults.DefaultSq
lSession@4f189b47]
09:39:46,885 [http-nio-8080-exec-8] DEBUG org.mybatis.spring.SqlSessionUtils -
Fetched SqlSession [org.apache.ibatis.session.defaults.DefaultSqlSession@4f189b4
7] from current transaction
09:39:46,886 [http-nio-8080-exec-8] DEBUG org.flowable.app.domain.editor.ModelRe
lation.selectModelRelationByParentModelIdAndType - ==> Preparing: select * fro
m ACT_DE_MODEL_RELATION where parent_model_id = ? and relation_type = ?
09:39:46,887 [http-nio-8080-exec-8] DEBUG org.flowable.app.domain.editor.ModelRe
lation.selectModelRelationByParentModelIdAndType - ==> Parameters: 4c7bd70f-cdf
7-11e7-b4f1-0a0027000010(String), process-model(String)
09:39:46,888 [http-nio-8080-exec-8] DEBUG org.flowable.app.domain.editor.ModelRe
lation.selectModelRelationByParentModelIdAndType - <== Total: 1
09:39:46,888 [http-nio-8080-exec-8] DEBUG org.mybatis.spring.SqlSessionUtils -
Releasing transactional SqlSession [org.apache.ibatis.session.defaults.DefaultSq
lSession@4f189b47]
09:39:46,900 [http-nio-8080-exec-8] DEBUG org.springframework.jdbc.datasource.Da
taSourceTransactionManager - Participating transaction failed - marking existin
g transaction as rollback-only
09:39:46,901 [http-nio-8080-exec-8] DEBUG org.springframework.jdbc.datasource.Da
taSourceTransactionManager - Setting JDBC transaction [248748576, URL=jdbc:orac
le:thin:@localhost/orcl, UserName=IRMP, Oracle JDBC driver] rollback-only
09:39:46,901 [http-nio-8080-exec-8] DEBUG org.mybatis.spring.SqlSessionUtils -
Transaction synchronization deregistering SqlSession [org.apache.ibatis.session.
defaults.DefaultSqlSession@4f189b47]
09:39:46,901 [http-nio-8080-exec-8] DEBUG org.mybatis.spring.SqlSessionUtils -
Transaction synchronization closing SqlSession [org.apache.ibatis.session.defaul
ts.DefaultSqlSession@4f189b47]
09:39:46,902 [http-nio-8080-exec-8] DEBUG org.springframework.jdbc.datasource.Da
taSourceTransactionManager - Initiating transaction rollback
09:39:46,902 [http-nio-8080-exec-8] DEBUG org.springframework.jdbc.datasource.Da
taSourceTransactionManager - Rolling back JDBC transaction on Connection [24874
8576, URL=jdbc:oracle:thin:@localhost/orcl, UserName=IRMP, Oracle JDBC driver]
09:39:46,902 [http-nio-8080-exec-8] DEBUG org.springframework.jdbc.datasource.Da
taSourceTransactionManager - Releasing JDBC Connection [248748576, URL=jdbc:ora
cle:thin:@localhost/orcl, UserName=IRMP, Oracle JDBC driver] after transaction
09:39:46,903 [http-nio-8080-exec-8] DEBUG org.springframework.jdbc.datasource.Da
taSourceUtils - Returning JDBC Connection to DataSource
09:39:46,905 [http-nio-8080-exec-8] DEBUG org.springframework.web.servlet.mvc.me
thod.annotation.RequestResponseBodyMethodProcessor - Written [org.flowable.app.
model.editor.AppDefinitionUpdateResultRepresentation@55c99ab6] as “application/j
son” using [org.springframework.http.converter.json.MappingJackson2HttpMessageCo
nverter@184b3694]
09:39:46,906 [http-nio-8080-exec-8] DEBUG org.springframework.web.servlet.Dispat
cherServlet - Null ModelAndView returned to DispatcherServlet with name ‘appDis
patcher’: assuming HandlerAdapter completed request handling
09:39:46,907 [http-nio-8080-exec-8] DEBUG org.springframework.web.servlet.Dispat
cherServlet - Successfully completed request
09:39:46,908 [http-nio-8080-exec-8] DEBUG org.springframework.security.web.acces
s.ExceptionTranslationFilter - Chain processed normally
09:39:46,908 [http-nio-8080-exec-8] DEBUG org.springframework.security.web.conte
xt.SecurityContextPersistenceFilter - SecurityContextHolder now cleared, as req
uest processing completed
I did not find any error message in the attached log.
Thanks for all reply, due to my new account was under audit, I just posted the log. Please help to check.
Like Martin explained, there is no error in that log.
Did you check if there’s an error in the Publish app call (see network traffic in your browser)?
Best regards,
Tijs
Dear,
There is no error, while return null message. The log says Transaction marked as rollback without more detail.
Due to this problem, I have downgrade to 6.1.2 and everything works well.
Hmm, downgrading to an older version is obviously not nice
Is there any way you can share the app so we can have a look why it fails on 6.2.0?
I guess it is the defect fixed by https://github.com/flowable/flowable-engine/commit/138d391d0dc173e295dd16118d7a4ef07f213137
This defect makes it impossible to publish an app without any case definitions (e.g. just a process definition) in 6.2.0.
Hi,
The 6.2.0 download in Github and on the website contains the fix. It’s based on this branch:
We’ll do a 6.2.1 release also containing this fix shortly, hopefully next week.
Best regards,
Tijs
Thanks, then I will upgrade to this version to check.
If the 6.2.0 download already includes the fix and johnny2002 did not build from source than the problem johnny2002 encountered can’t be the one I mentioned above. Sorry!