I'm trying to deploy the worklight application center for iOS on a Websphere Liberty server on Windows 8.1. But I'm getting following exception in the server logs when I try to add the IBMAppCenter.ipa via the appcenter console.
Caused by: org.apache.openjpa.lib.jdbc.ReportingSQLException: Row size too large (> 8126). Changing some columns to TEXT or BLOB may help. In current row format, BLOB prefix of 0 bytes is stored inline. {prepstmnt 1563792952 INSERT INTO APPLICATION_STORAGE (CONTENT, AP_FK) VALUES (?, ?) [params=(InputStream) java.io.ByteArrayInputStream@5987916, (null) null]} [code=1118, state=42000]
Here is the scenario to reproduce my problem:
- install mysql 5.6.2 via the mysql community installer
- install Websphere Liberty application server v8.5.5
- install Worklight Server v6.2
- generate IBMAppCenter.ipa via XCode
- login to the appcenterconsole and try to add the application
I tried to enable compression for table APPLICATION_STORAGE as proposed by hjpotter92 on Change limit for "Mysql Row size too large" but without any luck. Any help would be much appreciated.
EDIT
Here is the definition of the APPLICATION_STORAGE table, which causes the problem:
CREATE TABLE APPLICATION_STORAGE (ID INTEGER NOT NULL AUTO_INCREMENT, CONTENT LONGBLOB, AP_FK INTEGER, PRIMARY KEY (ID)) ENGINE = innodb;