OFBiz
  1. OFBiz
  2. OFBIZ-4227

Adding product content of type "Image - Detail" (for example) causes an error in catalog manager.

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: SVN trunk
    • Fix Version/s: SVN trunk
    • Component/s: product
    • Labels:
      None

      Description

      Please use the following path:

      • Catalog
      • Product
        • Select a product like "CPU intel 586" given by the Demo-Data.
      • Content
        • Find the header "Create New Product Content"
          • Select Product Content Type Id "Image - Detail"
          • Press "Prepare Create"
        • Find the header "Edit Product Content"
          • Select the current "from date"
          • Select an image file
          • Press "create"

      The following error will be prompted to the user:

      The Following Errors Occurred:
      The following required parameter is missing: [createProductContent.contentId]

      The same error occures for the following Product Content Type Ids:

      • Image - Detail
      • Image - Large
      • Image - Medium
      • Image - Original
      • Image - Small

        Activity

        Hide
        Jacques Le Roux added a comment -

        This error does not longer appear

        Show
        Jacques Le Roux added a comment - This error does not longer appear
        Hide
        Jacques Le Roux added a comment -

        In log this error still appears though

        2011-12-17 22:38:59,468 (http-bio-/0.0.0.0-8443-exec-9) [ ControlServlet.java:141:INFO ] [[[addAdditionalImageContentForProduct(Domain:https://localhost)] Request Begun, encoding=[UTF-8]- total:0.0,since
        last(Begin):0.0]]
        2011-12-17 22:38:59,468 (http-bio-/0.0.0.0-8443-exec-9) [ ModelService.java:565:ERROR] [ModelService.validate] :

        {addAdditionalViewForProduct}

        : (IN) Required test error: org.ofbiz.service.ServiceValida
        tionException: Le paramÞtre requis suivant manque : [IN] [addAdditionalViewForProduct.productContentTypeId]Le paramÞtre requis suivant manque : [IN] [addAdditionalViewForProduct.productId]
        2011-12-17 22:38:59,468 (http-bio-/0.0.0.0-8443-exec-9) [ ServiceDispatcher.java:381:ERROR]
        ---- exception report ----------------------------------------------------------
        Incoming context (in runSync : addAdditionalViewForProduct) does not match expected requirements
        Exception: org.ofbiz.service.ServiceValidationException
        Message: Le paramÞtre requis suivant manque : [IN] [addAdditionalViewForProduct.productContentTypeId]Le paramÞtre requis suivant manque : [IN] [addAdditionalViewForProduct.productId]
        ---- stack trace ---------------------------------------------------------------
        org.ofbiz.service.ServiceValidationException: Le paramÞtre requis suivant manque : [IN] [addAdditionalViewForProduct.productContentTypeId]Le paramÞtre requis suivant manque : [IN] [addAdditionalViewForProduct
        .productId]
        org.ofbiz.service.ModelService.validate(ModelService.java:626)
        org.ofbiz.service.ModelService.validate(ModelService.java:562)
        org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:379)
        org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:226)
        org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:163)
        org.ofbiz.webapp.event.ServiceEventHandler.invoke(ServiceEventHandler.java:337)
        org.ofbiz.webapp.control.RequestHandler.runEvent(RequestHandler.java:647)
        org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:393)
        org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:224)
        javax.servlet.http.HttpServlet.service(HttpServlet.java:621)
        javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
        org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:304)
        org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
        org.ofbiz.webapp.control.ContextFilter.doFilter(ContextFilter.java:337)
        org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
        org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
        org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:224)
        org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:169)
        org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
        org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:168)
        org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:100)
        org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
        org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:929)
        org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:405)
        org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:964)
        org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:515)
        org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:302)
        java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
        java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
        java.lang.Thread.run(Thread.java:662)
        --------------------------------------------------------------------------------

        2011-12-17 22:38:59,484 (http-bio-/0.0.0.0-8443-exec-9) [ ServiceDispatcher.java:515:INFO ] [[Sync service failed...- total:0.0,since last(Begin):0.0]] - 'catalog / addAdditionalViewForProduct'
        2011-12-17 22:38:59,484 (http-bio-/0.0.0.0-8443-exec-9) [ TransactionUtil.java:351:INFO ] [TransactionUtil.rollback] transaction rolled back
        2011-12-17 22:38:59,484 (http-bio-/0.0.0.0-8443-exec-9) [ TransactionUtil.java:276:WARN ] [TransactionUtil.commit] Not committing transaction, status is No Transaction (6)
        2011-12-17 22:38:59,484 (http-bio-/0.0.0.0-8443-exec-9) [ RequestHandler.java:648:INFO ] Ran Event service:#addAdditionalViewForProduct from [request], result is [error]
        2011-12-17 22:38:59,484 (http-bio-/0.0.0.0-8443-exec-9) [ RequestHandler.java:434:ERROR] Request addAdditionalImageContentForProduct caused an error with the following message:

        {Le paramÞtre requis suivan t manque : [IN] [addAdditionalViewForProduct.productContentTypeId], Le paramÞtre requis suivant manque : [IN] [addAdditionalViewForProduct.productId]}

        2011-12-17 22:38:59,484 (http-bio-/0.0.0.0-8443-exec-9) [ RequestHandler.java:750:INFO ] Rendering View [EditProductContentContent], sessionId=FCE872F93D45C25B65CCF4132EEDED95.jvm1
        2011-12-17 22:38:59,484 (http-bio-/0.0.0.0-8443-exec-9) [ PrimaryKeyFinder.java:153:INFO ] Returning null because found incomplete primary key in find: [GenericEntity:Product][productId,null()]
        2011-12-17 22:38:59,484 (http-bio-/0.0.0.0-8443-exec-9) [ PrimaryKeyFinder.java:153:INFO ] Returning null because found incomplete primary key in find: [GenericEntity:ProductContent][productId,null()]
        Dec 17, 2011 10:38:59 PM org.apache.tomcat.util.http.Parameters processParameters
        INFO: Parameters: Invalid chunk '' ignored.
        2011-12-17 22:38:59,515 (http-bio-/0.0.0.0-8443-exec-11) [ ControlServlet.java:141:INFO ] [[[LookupContent(Domain:https://localhost)] Request Begun, encoding=[UTF-8]- total:0.0,since last(Begin):0.0]]
        2011-12-17 22:38:59,531 (http-bio-/0.0.0.0-8443-exec-11) [ RequestHandler.java:750:INFO ] Rendering View [LookupContent], sessionId=FCE872F93D45C25B65CCF4132EEDED95.jvm1
        2011-12-17 22:38:59,531 (http-bio-/0.0.0.0-8443-exec-9) [ PrimaryKeyFinder.java:153:INFO ] Returning null because found incomplete primary key in find: [GenericEntity:Product][productId,null()]
        2011-12-17 22:38:59,546 (http-bio-/0.0.0.0-8443-exec-11) [ ScreenFactory.java:130:INFO ] Got 25 screens in 0.015s from: file:/D:/workspace/ofbizClean/applications/content/widget/content/ContentScreens.xm
        l
        2011-12-17 22:38:59,546 (http-bio-/0.0.0.0-8443-exec-11) [ ServerHitBin.java:627:INFO ] Visit delegatorName=default, ServerHitBin delegatorName=default
        2011-12-17 22:38:59,609 (http-bio-/0.0.0.0-8443-exec-9) [ PrimaryKeyFinder.java:153:INFO ] Returning null because found incomplete primary key in find: [GenericEntity:Product][productId,null()]
        2011-12-17 22:38:59,656 (http-bio-/0.0.0.0-8443-exec-11) [ ControlServlet.java:324:INFO ] [[[LookupContent(Domain:https://localhost)] Request Done- total:0.141,since last([LookupContent(Do...):0.141]]
        2011-12-17 22:38:59,765 (http-bio-/0.0.0.0-8443-exec-9) [ ControlServlet.java:227:ERROR]
        ---- exception report ----------------------------------------------------------
        Error in request handler:
        Exception: org.apache.catalina.connector.ClientAbortException
        Message: null
        ---- cause ---------------------------------------------------------------------
        Exception: javax.net.ssl.SSLException
        Message: Connection has been shutdown: javax.net.ssl.SSLException: java.net.SocketException: Software caused connection abort: socket write error
        ---- cause ---------------------------------------------------------------------
        Exception: javax.net.ssl.SSLException
        Message: java.net.SocketException: Software caused connection abort: socket write error
        ---- cause ---------------------------------------------------------------------
        Exception: java.net.SocketException
        Message: Software caused connection abort: socket write error
        ---- stack trace ---------------------------------------------------------------
        java.net.SocketException: Software caused connection abort: socket write error
        java.net.SocketOutputStream.socketWrite0(Native Method)
        java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:92)
        java.net.SocketOutputStream.write(SocketOutputStream.java:136)
        com.sun.net.ssl.internal.ssl.OutputRecord.writeBuffer(OutputRecord.java:297)
        com.sun.net.ssl.internal.ssl.OutputRecord.write(OutputRecord.java:286)
        com.sun.net.ssl.internal.ssl.SSLSocketImpl.writeRecordInternal(SSLSocketImpl.java:743)
        com.sun.net.ssl.internal.ssl.SSLSocketImpl.writeRecord(SSLSocketImpl.java:731)
        com.sun.net.ssl.internal.ssl.AppOutputStream.write(AppOutputStream.java:59)
        org.apache.coyote.http11.InternalOutputBuffer.realWriteBytes(InternalOutputBuffer.java:216)
        org.apache.tomcat.util.buf.ByteChunk.flushBuffer(ByteChunk.java:437)
        org.apache.coyote.http11.InternalOutputBuffer.flush(InternalOutputBuffer.java:119)
        org.apache.coyote.http11.AbstractHttp11Processor.action(AbstractHttp11Processor.java:758)
        org.apache.coyote.Response.action(Response.java:170)
        org.apache.catalina.connector.OutputBuffer.doFlush(OutputBuffer.java:328)
        org.apache.catalina.connector.OutputBuffer.flush(OutputBuffer.java:299)
        org.apache.catalina.connector.CoyoteWriter.flush(CoyoteWriter.java:99)
        freemarker.core.Environment.process(Environment.java:178)
        org.ofbiz.base.util.template.FreeMarkerWorker.renderTemplate(FreeMarkerWorker.java:257)
        org.ofbiz.widget.screen.HtmlWidget.renderHtmlTemplate(HtmlWidget.java:205)
        org.ofbiz.widget.screen.HtmlWidget$HtmlTemplate.renderWidgetString(HtmlWidget.java:250)
        org.ofbiz.widget.screen.HtmlWidget.renderWidgetString(HtmlWidget.java:110)
        org.ofbiz.widget.screen.ModelScreenWidget$PlatformSpecific.renderWidgetString(ModelScreenWidget.java:915)
        org.ofbiz.widget.screen.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:104)
        org.ofbiz.widget.screen.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:191)
        org.ofbiz.widget.screen.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:104)
        org.ofbiz.widget.screen.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:191)
        org.ofbiz.widget.screen.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:104)
        org.ofbiz.widget.screen.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:191)
        org.ofbiz.widget.screen.ModelScreen.renderScreenString(ModelScreen.java:396)
        org.ofbiz.widget.screen.ScreenFactory.renderReferencedScreen(ScreenFactory.java:216)
        org.ofbiz.widget.screen.ModelScreenWidget$IncludeScreen.renderWidgetString(ModelScreenWidget.java:513)
        org.ofbiz.widget.screen.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:104)
        org.ofbiz.widget.screen.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:191)
        org.ofbiz.widget.screen.ModelScreen.renderScreenString(ModelScreen.java:396)
        org.ofbiz.widget.screen.ScreenFactory.renderReferencedScreen(ScreenFactory.java:216)
        org.ofbiz.widget.screen.ModelScreenWidget$IncludeScreen.renderWidgetString(ModelScreenWidget.java:513)
        org.ofbiz.widget.screen.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:104)
        org.ofbiz.widget.screen.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:191)
        org.ofbiz.widget.screen.ModelScreen.renderScreenString(ModelScreen.java:396)
        org.ofbiz.widget.screen.ScreenFactory.renderReferencedScreen(ScreenFactory.java:216)
        org.ofbiz.widget.screen.ModelScreenWidget$DecoratorScreen.renderWidgetString(ModelScreenWidget.java:580)
        org.ofbiz.widget.screen.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:104)
        org.ofbiz.widget.screen.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:191)
        org.ofbiz.widget.screen.ModelScreen.renderScreenString(ModelScreen.java:396)
        org.ofbiz.widget.screen.ScreenFactory.renderReferencedScreen(ScreenFactory.java:216)
        org.ofbiz.widget.screen.ModelScreenWidget$DecoratorScreen.renderWidgetString(ModelScreenWidget.java:580)
        org.ofbiz.widget.screen.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:104)
        org.ofbiz.widget.screen.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:191)
        org.ofbiz.widget.screen.ModelScreen.renderScreenString(ModelScreen.java:396)
        org.ofbiz.widget.screen.ScreenRenderer.render(ScreenRenderer.java:135)
        org.ofbiz.widget.screen.ScreenRenderer.render(ScreenRenderer.java:97)
        org.ofbiz.widget.screen.MacroScreenViewHandler.render(MacroScreenViewHandler.java:104)
        org.ofbiz.webapp.control.RequestHandler.renderView(RequestHandler.java:852)
        org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:569)
        org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:224)
        javax.servlet.http.HttpServlet.service(HttpServlet.java:621)
        javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
        org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:304)
        org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
        org.ofbiz.webapp.control.ContextFilter.doFilter(ContextFilter.java:337)
        org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
        org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
        org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:224)
        org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:169)
        org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
        org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:168)
        org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:100)
        org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
        org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:929)
        org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:405)
        org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:964)
        org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:515)
        org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:302)
        java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
        java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
        java.lang.Thread.run(Thread.java:662)
        --------------------------------------------------------------------------------

        2011-12-17 22:38:59,765 (http-bio-/0.0.0.0-8443-exec-9) [ ControlServlet.java:243:ERROR] An error occurred, going to the errorPage: /error/error.jsp
        2011-12-17 22:38:59,765 (http-bio-/0.0.0.0-8443-exec-9) [ ControlServlet.java:250:ERROR] Including errorPage: /error/error.jsp
        2011-12-17 22:38:59,765 (http-bio-/0.0.0.0-8443-exec-9) [ ServerHitBin.java:627:INFO ] Visit delegatorName=default, ServerHitBin delegatorName=default
        2011-12-17 22:38:59,765 (http-bio-/0.0.0.0-8443-exec-9) [ ControlServlet.java:324:INFO ] [[[addAdditionalImageContentForProduct(Domain:https://localhost)] Request Done- total:0.297,since last([addAddition

        Show
        Jacques Le Roux added a comment - In log this error still appears though 2011-12-17 22:38:59,468 (http-bio-/0.0.0.0-8443-exec-9) [ ControlServlet.java:141:INFO ] [[ [addAdditionalImageContentForProduct(Domain:https://localhost)] Request Begun, encoding= [UTF-8] - total:0.0,since last(Begin):0.0]] 2011-12-17 22:38:59,468 (http-bio-/0.0.0.0-8443-exec-9) [ ModelService.java:565:ERROR] [ModelService.validate] : {addAdditionalViewForProduct} : (IN) Required test error: org.ofbiz.service.ServiceValida tionException: Le paramÞtre requis suivant manque : [IN] [addAdditionalViewForProduct.productContentTypeId] Le paramÞtre requis suivant manque : [IN] [addAdditionalViewForProduct.productId] 2011-12-17 22:38:59,468 (http-bio-/0.0.0.0-8443-exec-9) [ ServiceDispatcher.java:381:ERROR] ---- exception report ---------------------------------------------------------- Incoming context (in runSync : addAdditionalViewForProduct) does not match expected requirements Exception: org.ofbiz.service.ServiceValidationException Message: Le paramÞtre requis suivant manque : [IN] [addAdditionalViewForProduct.productContentTypeId] Le paramÞtre requis suivant manque : [IN] [addAdditionalViewForProduct.productId] ---- stack trace --------------------------------------------------------------- org.ofbiz.service.ServiceValidationException: Le paramÞtre requis suivant manque : [IN] [addAdditionalViewForProduct.productContentTypeId] Le paramÞtre requis suivant manque : [IN] [addAdditionalViewForProduct .productId] org.ofbiz.service.ModelService.validate(ModelService.java:626) org.ofbiz.service.ModelService.validate(ModelService.java:562) org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:379) org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:226) org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:163) org.ofbiz.webapp.event.ServiceEventHandler.invoke(ServiceEventHandler.java:337) org.ofbiz.webapp.control.RequestHandler.runEvent(RequestHandler.java:647) org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:393) org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:224) javax.servlet.http.HttpServlet.service(HttpServlet.java:621) javax.servlet.http.HttpServlet.service(HttpServlet.java:722) org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:304) org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) org.ofbiz.webapp.control.ContextFilter.doFilter(ContextFilter.java:337) org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243) org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:224) org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:169) org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472) org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:168) org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:100) org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118) org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:929) org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:405) org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:964) org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:515) org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:302) java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) java.lang.Thread.run(Thread.java:662) -------------------------------------------------------------------------------- 2011-12-17 22:38:59,484 (http-bio-/0.0.0.0-8443-exec-9) [ ServiceDispatcher.java:515:INFO ] [ [Sync service failed...- total:0.0,since last(Begin):0.0] ] - 'catalog / addAdditionalViewForProduct' 2011-12-17 22:38:59,484 (http-bio-/0.0.0.0-8443-exec-9) [ TransactionUtil.java:351:INFO ] [TransactionUtil.rollback] transaction rolled back 2011-12-17 22:38:59,484 (http-bio-/0.0.0.0-8443-exec-9) [ TransactionUtil.java:276:WARN ] [TransactionUtil.commit] Not committing transaction, status is No Transaction (6) 2011-12-17 22:38:59,484 (http-bio-/0.0.0.0-8443-exec-9) [ RequestHandler.java:648:INFO ] Ran Event service:#addAdditionalViewForProduct from [request] , result is [error] 2011-12-17 22:38:59,484 (http-bio-/0.0.0.0-8443-exec-9) [ RequestHandler.java:434:ERROR] Request addAdditionalImageContentForProduct caused an error with the following message: {Le paramÞtre requis suivan t manque : [IN] [addAdditionalViewForProduct.productContentTypeId], Le paramÞtre requis suivant manque : [IN] [addAdditionalViewForProduct.productId]} 2011-12-17 22:38:59,484 (http-bio-/0.0.0.0-8443-exec-9) [ RequestHandler.java:750:INFO ] Rendering View [EditProductContentContent] , sessionId=FCE872F93D45C25B65CCF4132EEDED95.jvm1 2011-12-17 22:38:59,484 (http-bio-/0.0.0.0-8443-exec-9) [ PrimaryKeyFinder.java:153:INFO ] Returning null because found incomplete primary key in find: [GenericEntity:Product] [productId,null()] 2011-12-17 22:38:59,484 (http-bio-/0.0.0.0-8443-exec-9) [ PrimaryKeyFinder.java:153:INFO ] Returning null because found incomplete primary key in find: [GenericEntity:ProductContent] [productId,null()] Dec 17, 2011 10:38:59 PM org.apache.tomcat.util.http.Parameters processParameters INFO: Parameters: Invalid chunk '' ignored. 2011-12-17 22:38:59,515 (http-bio-/0.0.0.0-8443-exec-11) [ ControlServlet.java:141:INFO ] [[ [LookupContent(Domain:https://localhost)] Request Begun, encoding= [UTF-8] - total:0.0,since last(Begin):0.0]] 2011-12-17 22:38:59,531 (http-bio-/0.0.0.0-8443-exec-11) [ RequestHandler.java:750:INFO ] Rendering View [LookupContent] , sessionId=FCE872F93D45C25B65CCF4132EEDED95.jvm1 2011-12-17 22:38:59,531 (http-bio-/0.0.0.0-8443-exec-9) [ PrimaryKeyFinder.java:153:INFO ] Returning null because found incomplete primary key in find: [GenericEntity:Product] [productId,null()] 2011-12-17 22:38:59,546 (http-bio-/0.0.0.0-8443-exec-11) [ ScreenFactory.java:130:INFO ] Got 25 screens in 0.015s from: file:/D:/workspace/ofbizClean/applications/content/widget/content/ContentScreens.xm l 2011-12-17 22:38:59,546 (http-bio-/0.0.0.0-8443-exec-11) [ ServerHitBin.java:627:INFO ] Visit delegatorName=default, ServerHitBin delegatorName=default 2011-12-17 22:38:59,609 (http-bio-/0.0.0.0-8443-exec-9) [ PrimaryKeyFinder.java:153:INFO ] Returning null because found incomplete primary key in find: [GenericEntity:Product] [productId,null()] 2011-12-17 22:38:59,656 (http-bio-/0.0.0.0-8443-exec-11) [ ControlServlet.java:324:INFO ] [[ [LookupContent(Domain:https://localhost)] Request Done- total:0.141,since last( [LookupContent(Do...):0.141] ] 2011-12-17 22:38:59,765 (http-bio-/0.0.0.0-8443-exec-9) [ ControlServlet.java:227:ERROR] ---- exception report ---------------------------------------------------------- Error in request handler: Exception: org.apache.catalina.connector.ClientAbortException Message: null ---- cause --------------------------------------------------------------------- Exception: javax.net.ssl.SSLException Message: Connection has been shutdown: javax.net.ssl.SSLException: java.net.SocketException: Software caused connection abort: socket write error ---- cause --------------------------------------------------------------------- Exception: javax.net.ssl.SSLException Message: java.net.SocketException: Software caused connection abort: socket write error ---- cause --------------------------------------------------------------------- Exception: java.net.SocketException Message: Software caused connection abort: socket write error ---- stack trace --------------------------------------------------------------- java.net.SocketException: Software caused connection abort: socket write error java.net.SocketOutputStream.socketWrite0(Native Method) java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:92) java.net.SocketOutputStream.write(SocketOutputStream.java:136) com.sun.net.ssl.internal.ssl.OutputRecord.writeBuffer(OutputRecord.java:297) com.sun.net.ssl.internal.ssl.OutputRecord.write(OutputRecord.java:286) com.sun.net.ssl.internal.ssl.SSLSocketImpl.writeRecordInternal(SSLSocketImpl.java:743) com.sun.net.ssl.internal.ssl.SSLSocketImpl.writeRecord(SSLSocketImpl.java:731) com.sun.net.ssl.internal.ssl.AppOutputStream.write(AppOutputStream.java:59) org.apache.coyote.http11.InternalOutputBuffer.realWriteBytes(InternalOutputBuffer.java:216) org.apache.tomcat.util.buf.ByteChunk.flushBuffer(ByteChunk.java:437) org.apache.coyote.http11.InternalOutputBuffer.flush(InternalOutputBuffer.java:119) org.apache.coyote.http11.AbstractHttp11Processor.action(AbstractHttp11Processor.java:758) org.apache.coyote.Response.action(Response.java:170) org.apache.catalina.connector.OutputBuffer.doFlush(OutputBuffer.java:328) org.apache.catalina.connector.OutputBuffer.flush(OutputBuffer.java:299) org.apache.catalina.connector.CoyoteWriter.flush(CoyoteWriter.java:99) freemarker.core.Environment.process(Environment.java:178) org.ofbiz.base.util.template.FreeMarkerWorker.renderTemplate(FreeMarkerWorker.java:257) org.ofbiz.widget.screen.HtmlWidget.renderHtmlTemplate(HtmlWidget.java:205) org.ofbiz.widget.screen.HtmlWidget$HtmlTemplate.renderWidgetString(HtmlWidget.java:250) org.ofbiz.widget.screen.HtmlWidget.renderWidgetString(HtmlWidget.java:110) org.ofbiz.widget.screen.ModelScreenWidget$PlatformSpecific.renderWidgetString(ModelScreenWidget.java:915) org.ofbiz.widget.screen.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:104) org.ofbiz.widget.screen.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:191) org.ofbiz.widget.screen.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:104) org.ofbiz.widget.screen.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:191) org.ofbiz.widget.screen.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:104) org.ofbiz.widget.screen.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:191) org.ofbiz.widget.screen.ModelScreen.renderScreenString(ModelScreen.java:396) org.ofbiz.widget.screen.ScreenFactory.renderReferencedScreen(ScreenFactory.java:216) org.ofbiz.widget.screen.ModelScreenWidget$IncludeScreen.renderWidgetString(ModelScreenWidget.java:513) org.ofbiz.widget.screen.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:104) org.ofbiz.widget.screen.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:191) org.ofbiz.widget.screen.ModelScreen.renderScreenString(ModelScreen.java:396) org.ofbiz.widget.screen.ScreenFactory.renderReferencedScreen(ScreenFactory.java:216) org.ofbiz.widget.screen.ModelScreenWidget$IncludeScreen.renderWidgetString(ModelScreenWidget.java:513) org.ofbiz.widget.screen.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:104) org.ofbiz.widget.screen.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:191) org.ofbiz.widget.screen.ModelScreen.renderScreenString(ModelScreen.java:396) org.ofbiz.widget.screen.ScreenFactory.renderReferencedScreen(ScreenFactory.java:216) org.ofbiz.widget.screen.ModelScreenWidget$DecoratorScreen.renderWidgetString(ModelScreenWidget.java:580) org.ofbiz.widget.screen.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:104) org.ofbiz.widget.screen.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:191) org.ofbiz.widget.screen.ModelScreen.renderScreenString(ModelScreen.java:396) org.ofbiz.widget.screen.ScreenFactory.renderReferencedScreen(ScreenFactory.java:216) org.ofbiz.widget.screen.ModelScreenWidget$DecoratorScreen.renderWidgetString(ModelScreenWidget.java:580) org.ofbiz.widget.screen.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:104) org.ofbiz.widget.screen.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:191) org.ofbiz.widget.screen.ModelScreen.renderScreenString(ModelScreen.java:396) org.ofbiz.widget.screen.ScreenRenderer.render(ScreenRenderer.java:135) org.ofbiz.widget.screen.ScreenRenderer.render(ScreenRenderer.java:97) org.ofbiz.widget.screen.MacroScreenViewHandler.render(MacroScreenViewHandler.java:104) org.ofbiz.webapp.control.RequestHandler.renderView(RequestHandler.java:852) org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:569) org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:224) javax.servlet.http.HttpServlet.service(HttpServlet.java:621) javax.servlet.http.HttpServlet.service(HttpServlet.java:722) org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:304) org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) org.ofbiz.webapp.control.ContextFilter.doFilter(ContextFilter.java:337) org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243) org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:224) org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:169) org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472) org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:168) org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:100) org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118) org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:929) org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:405) org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:964) org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:515) org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:302) java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) java.lang.Thread.run(Thread.java:662) -------------------------------------------------------------------------------- 2011-12-17 22:38:59,765 (http-bio-/0.0.0.0-8443-exec-9) [ ControlServlet.java:243:ERROR] An error occurred, going to the errorPage: /error/error.jsp 2011-12-17 22:38:59,765 (http-bio-/0.0.0.0-8443-exec-9) [ ControlServlet.java:250:ERROR] Including errorPage: /error/error.jsp 2011-12-17 22:38:59,765 (http-bio-/0.0.0.0-8443-exec-9) [ ServerHitBin.java:627:INFO ] Visit delegatorName=default, ServerHitBin delegatorName=default 2011-12-17 22:38:59,765 (http-bio-/0.0.0.0-8443-exec-9) [ ControlServlet.java:324:INFO ] [[ [addAdditionalImageContentForProduct(Domain:https://localhost)] Request Done- total:0.297,since last([addAddition
        Hide
        Jacques Le Roux added a comment -

        Indeed, this works now. Thanks Mirko for report

        Show
        Jacques Le Roux added a comment - Indeed, this works now. Thanks Mirko for report
        Hide
        Mirko Vogelsmeier added a comment -

        Error doesnt seem to appear anymore.

        Show
        Mirko Vogelsmeier added a comment - Error doesnt seem to appear anymore.
        Hide
        Eric de Maulde added a comment -

        My answer wasn't in line with your error, sorry.
        Your error is about uploading "main" image.
        I tried and the same error appeared.
        Too, Edit "Image" has a wrong UI.
        Try with the first Product Content UI : "Override Simple Fields"

        Show
        Eric de Maulde added a comment - My answer wasn't in line with your error, sorry. Your error is about uploading "main" image. I tried and the same error appeared. Too, Edit "Image" has a wrong UI. Try with the first Product Content UI : "Override Simple Fields"
        Hide
        Eric de Maulde added a comment -

        "Create New Product Content" if we select non-sized additional image works, but no for "Image - Additional View X 'Size Type'" ?
        With the first case, your additional image file is automatically scaled to small/medium/large/detail size related to the ImageProperties.xml
        But the second case with "Image - Additional View X 'Size Type'", the user interface "Edit product content" isn't adapted to upload an image file.

        So we have to improve this case !

        Show
        Eric de Maulde added a comment - "Create New Product Content" if we select non-sized additional image works, but no for "Image - Additional View X 'Size Type'" ? With the first case, your additional image file is automatically scaled to small/medium/large/detail size related to the ImageProperties.xml But the second case with "Image - Additional View X 'Size Type'", the user interface "Edit product content" isn't adapted to upload an image file. So we have to improve this case !
        Hide
        Andreas König added a comment -

        Providing a screenshot to show the error message.

        Show
        Andreas König added a comment - Providing a screenshot to show the error message.

          People

          • Assignee:
            Jacques Le Roux
            Reporter:
            Andreas König
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development