0

I got the error while uploading a package to Worklight using Worklight Console site.

Object 'com.ibm.worklight.dataaccess.jpa.entity.ProjectEntity-com.ibm.worklight.dataaccess.jpa.entity.ProjectEntity-' is not managed by this context

I just saw this error message using Browser Developer Tools to investigate Request and Response Network activity.

PS: There isn´t any JPA class in my project and package.

My environment:

  • IBM MobileFirst 6.3 (Worklight)
  • IBM WebSphere Liberty 8.5.5
  • MySQL
  • Windows Server 2008 R2
  • Hybrid App with Android Environment

Full error message:

{"id":147,"type":"UPLOAD_APPLICATION","status":"PENDING","project":{"name":"project1"},"timeCreated":"2015-02-05T19:37:08.000Z","userName":"user1","appServerId":"Liberty","description":{"appVersionsDeployed":[{"applicationName":"App1","environment":"android","version":"1.0"},{"applicationName":"App1","environment":"common","version":"1.0"}],"appVersionsAlreadyDeployed":[],"filename":"App1-all.wlapp"},"errors":[{"date":"2015-02-05T19:37:08.655Z","phase":"VALIDATE","code":"FAILURE","exception":"ArgumentException","details":"Object \"com.ibm.worklight.dataaccess.jpa.entity.ProjectEntity-com.ibm.worklight.dataaccess.jpa.entity.ProjectEntity-2\" is not managed by this context."}],"warnings":[],"productVersion":"6.3.0.00-20141127-1357"}

Idan Adar
  • 44,156
  • 13
  • 50
  • 89
Rafael Leonhardt
  • 404
  • 5
  • 15

1 Answers1

-1

The problem is the file size (.wlapp). I got the error when the file is bigger than 7MB.

Rafael Leonhardt
  • 404
  • 5
  • 15
  • You need to increase the max_allowed_packet_size value in the mysql.ini file. – Idan Adar Feb 06 '15 at 04:51
  • It didn´t work. The original value was 256MB (268435456) and I changed to 512MB(536870912) using MySql Console. (set global max_allowed_packet=1024 * 1024 * 512;). I restarted mysql. – Rafael Leonhardt Feb 06 '15 at 11:10
  • Never tried via the console. Try like here, edit the file: http://stackoverflow.com/questions/8062496/how-to-change-max-allowed-packet-size – Idan Adar Feb 06 '15 at 11:12
  • Same error. Changed on my.ini and restart mysql. The original was 256MB and changed to 512MB. – Rafael Leonhardt Feb 06 '15 at 11:22
  • You are right Tchami...but we are trying to find a solution. The file size is an alternative to worklight works. But not yet the best solution. – Rafael Leonhardt Feb 06 '15 at 12:29