No announcement yet.
  • Filter
  • Time
Clear All
new posts

  • TRANSPORT_ERROR to json call


    I call in a jsp this DataSource and I get problem TRANSPORT_ERROR

    ID : "files",
    dataFormat : "json",
    dataURL : "json/",
    fields : [
    {title : "Filename", name : "fileNameForUser",type:"text"},
    {title : "Method", name : "wsService",type:"text"},
    {title : "Date", name : "dateUpload",type:"text"},
    {title : "Status", name : "statusForUser",type:"text"},
    {title : "Status",name : "status", hidden:"true",type:"text"},
    {title : "filenameOnMcwa",name : "fileNameOnMcwa",type:"text",hidden:"true"},
    {title : "filenameOnFs",name : "fileNameOnFs",type:"text",hidden:"true"}
    cacheAllData : false

    ID : "filesList",
    position : "relative",
    width : "940",
    height : "350",
    dataSource : "files",
    autoFitData: "horizontal",
    alternateRecordStyles : true,
    showAllRecords : true,
    autoFetchData : true,
    showFilterEditor : true,
    selectionType : "single",
    leaveScrollbarGap : true

    in particular error is related to FORBIDDEN CALL.
    ISC_Core.js:956 GET http://localhost:8080/vce-mcwa/json/ 403

    I have this problem after update library of spring-security-web to version 4.2.3 (from 3.2)

    Anybody can help me?

    Davide Clari

  • #2
    Your server is returning a transport error, so you should look into why that's happening. There's nothing that the client-side SmartClient system can do about a transport error from the server.


    • #3
      sorry, I tried a lot of things but I don't understand why not work fine.

      Before upgrade to of SPRING-SECURITY-WEB library works fine:

      @RequestMapping(method = {RequestMethod.POST, RequestMethod.GET}, produces={"application/json"}, consumes={"application/json"}, value = { "/json/files" } )
      public String listFileProcessed2Json(){
      User user = userDetailsService.getCurrentUser();
      ObjectMapper objectMapper = new ObjectMapper();
      objectMapper.configure(SerializationFeature.INDENT_OUTPUT, true);
      StringWriter files = new StringWriter();
      try {
      } catch (JsonGenerationException e) {
      logger.error("JsonGenerationException: "+e.getMessage());
      } catch (JsonMappingException e) {
      logger.error("JsonMappingException: "+e.getMessage());
      } catch (IOException e) {
      logger.error("IOException: "+e.getMessage());

      ---> CLIENT (see above)

      Now I received this error with no other messages.
      How can I understand reason of not working the same SW with new library.

      I don't find any information in server. Only in code mode of browser I can see FORBIDDEN CALL.


      • #4
        You’re not using our server-side libraries at all and this error is coming from your server. So as far as figuring out why this is happening, you are posting to the wrong forums.

        Specifically, you should be able to just type the URL into your browser and get the same error, at which point you could post to a Spring-related forum and get help.