Uploaded image for project: 'OFBiz'
  1. OFBiz
  2. OFBIZ-6943

Problem uploading data resource other than image in DB

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • Trunk
    • 14.12.01, 15.12.01
    • content
    • None
    • Community Day 1 - 2016

    Description

      When in content.properties, content.upload.always.local.file is set to false, uploading video, audio or other than image data is not possible.

      Failure in create operation for entity [OtherDataResource]: org.ofbiz.entity.GenericEntityException: Error while inserting: [GenericEntity:OtherDataResource][createdStamp,2016-03-19 09:56:21.464(java.sql.Timestamp)][createdTxStamp,2016-03-19 09:56:21.095(java.sql.Timestamp)][dataResourceContent,java.nio.HeapByteBuffer[pos=0 lim=1599972 cap=1599972](java.nio.HeapByteBuffer)][dataResourceId,10000(java.lang.String)][lastUpdatedStamp,2016-03-19 09:56:21.464(java.sql.Timestamp)][lastUpdatedTxStamp,2016-03-19 09:56:21.095(java.sql.Timestamp)] (SQL Exception while setting value on field [dataResourceContent] of entity OtherDataResource: (java.io.NotSerializableException: java.nio.HeapByteBuffer)). Rolling back transaction.

      Attachments

        Activity

          People

            pgil Gil Portenseigne
            pgil Gil Portenseigne
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: