draperd / Alfresco-Share-Extensions

This project contains the source of various extension files built for blog posts, etc.
2 stars 3 forks source link

Some problems trying to create new datalists #2

Open douglascrp opened 8 years ago

douglascrp commented 8 years ago

@draperd

I'm trying to create a new datalist using the Aikau page. When I click the New List button, I see the form and I'm able to fill in all the fields. The problem happens only when I click OK. After that, i see a notification windows saying that the operation failed.

The formprocessor response is this:

{
    "status" : 
  {
    "code" : 500,
    "name" : "Internal Error",
    "description" : "An error inside the HTTP server which prevented it from fulfilling the request."
  },  

  "message" : "java.lang.ClassCastException: org.json.JSONObject$Null cannot be cast to java.lang.String",  
  "exception" : "",

  "callstack" : 
  [ 

  ],

  "server" : "Community v5.2.0 (r125711-b6) schema 10.001",
  "time" : "09/09/2016 12:00:07"
}

I'm using 2 different projects based on SDK 2.2.0, one for repo and other for share. I've added Aikau as a dependency in the share one, as follow:

<dependency>
        <groupId>org.alfresco</groupId>
        <artifactId>aikau</artifactId>
        <version>1.0.85</version>
 </dependency>

Alfresco version is set to 5.1.f in both projects.

Let me know what else I can send to you to help identifying the problem.

draperd commented 8 years ago

Which type of list did you try to create? And did you provide all the fields? This sounds like an issue with mapping in the FormsRuntimeService which is exactly the type of issue I'm trying to iron out.