[jira] [Commented] (OFBIZ-10426) When creating blog or forums, it failed to save

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[jira] [Commented] (OFBIZ-10426) When creating blog or forums, it failed to save

Nicolas Malin (Jira)

    [ https://issues.apache.org/jira/browse/OFBIZ-10426?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17147740#comment-17147740 ]

Jacques Le Roux commented on OFBIZ-10426:
-----------------------------------------

Hi Aman,

It also works for forum and for both in R16/old (no longer supported)

But this is not true for R17/stable demo, we get these errors:

Blog
Error calling event: org.apache.ofbiz.webapp.event.EventHandlerException: Service invocation error (Could not commit transaction for service [createBlogEntry] call: Roll back error, could not commit transaction, was rolled back instead because of: Error in Service [createContentPurpose]: Value found (with ids 10000::ARTICLE), cannot create a new one)

Forum
Error doing entity-auto operation for entity ElectronicText in service createElectronicText: org.apache.ofbiz.base.util.GeneralException: Error finding entity value by primary key with entity-one: org.apache.ofbiz.entity.GenericEntityException: org.apache.ofbiz.entity.transaction.GenericTransactionException: The current transaction is marked for rollback, not beginning a new transaction and aborting current operation; the rollbackOnly was caused by: rollback called in Entity Engine SQLProcessorjava.lang.Exception: Current Location Stack (Current Location Stack) (The current transaction is marked for rollback, not beginning a new transaction and aborting current operation; the rollbackOnly was caused by: rollback called in Entity Engine SQLProcessorjava.lang.Exception: Current Location Stack (Current Location Stack)) (org.apache.ofbiz.entity.transaction.GenericTransactionException: The current transaction is marked for rollback, not beginning a new transaction and aborting current operation; the rollbackOnly was caused by: rollback called in Entity Engine SQLProcessorjava.lang.Exception: Current Location Stack (Current Location Stack) (The current transaction is marked for rollback, not beginning a new transaction and aborting current operation; the rollbackOnly was caused by: rollback called in Entity Engine SQLProcessorjava.lang.Exception: Current Location Stack (Current Location Stack)))

> When creating blog or forums, it failed to save
> -----------------------------------------------
>
>                 Key: OFBIZ-10426
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-10426
>             Project: OFBiz
>          Issue Type: Bug
>          Components: ecommerce
>    Affects Versions: Trunk
>            Reporter: Jason Hao
>            Assignee: Aman Mishra
>            Priority: Major
>         Attachments: OFBIZ-10426-Working.png, blog-error.png
>
>
> Create a blog or forum and click save button, it will popup with error message. The reason is because the mapKey passed from front end cannot be handled by the service. The solution is not to pass the mapKey to the service.
> Steps:  
> 1) navigate to https://demo-trunk.ofbiz.apache.org/content/control/blogContent?blogContentId=BLOGROOTBIGAL
> 2) create a new article  https://demo-trunk.ofbiz.apache.org/content/control/EditBlogArticle?blogContentId=BLOGROOTBIGAL
>  
> ERROR: Could not complete the Post a new Content article Entry [file:/Users/explorer/Documents/ofbiz/ofbiz-framework/applications/content/minilang/content/ContentServices.xml#createArticleContent|file:///Users/explorer/Documents/ofbiz/ofbiz-framework/applications/content/minilang/content/ContentServices.xml#createArticleContent] process [problem invoking the [createTextContent] service with the map named [createText] containing [{userLogin=[GenericEntity:UserLogin][createdStamp,2018-06-01 21:38:24.088(java.sql.Timestamp)][createdTxStamp,2018-06-01 21:38:24.086(java.sql.Timestamp)][currentPassword,
> {SHA}
> 47b56994cbc2b6d10aa1be30f70165adb305a41a(java.lang.String)][disabledBy,null()][disabledDateTime,null()][enabled,Y(java.lang.String)][externalAuthId,null()][hasLoggedOut,N(java.lang.String)][isSystem,null()][lastCurrencyUom,null()][lastLocale,null()][lastTimeZone,Asia/Shanghai(java.lang.String)][lastUpdatedStamp,2018-06-02 03:00:52.632(java.sql.Timestamp)][lastUpdatedTxStamp,2018-06-02 03:00:52.632(java.sql.Timestamp)][partyId,admin(java.lang.String)][passwordHint,null()][requirePasswordChange,null()][successiveFailedLogins,0(java.lang.Long)][userLdapDn,null()][userLoginId,admin(java.lang.String)], textData=hello, dataTemplateTypeId=NONE, mapKey=MAIN, contentIdFrom=ASK, description=hello, partyId=admin, locale=en_US, dataResourceTypeId=ELECTRONIC_TEXT, contentName=hell world}]: Unknown parameter found: [createTextContent.contentIdFrom]Unknown parameter found: [createTextContent.mapKey]]
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)