Hi, I built a plugin and want to send it a document. So I use the &qu

Hi,

I built a plugin and want to send it a document. So I use the "@document" type, I get the file Long value in my smart service but there is an error when calling _cs.getInternalFilename(file);

          private ContentService _cs;
                    try {
                              log("Start");
                              log("file no "+file);
                              docPath = _cs.getInternalFilename(file);
                              log("file " + docPath);

                    } catch (Exception e) {
                              log("Error " + e.getMessage() );

log write to a file and I get this
Start
file no 409
Error null

So it seems that getinternal filname throws an error that don't catch.

Thanks for help.








...

OriginalPostID-58406

OriginalPostID-58406

  Discussion posts and replies are publicly visible

Parents
  • Yes. I tried, exactly the same problem. Program exit without any message at cs. There are no "catch" unless I set only (exception e) and in this case, I get a null error message. During this time, input file number change 409, 412, 416...
    I get it with :

    @Input(required = Required.ALWAYS)
    @Name("file")
    @DocumentDataType <== could the problem be there ?
    public void setFichier(Long val) {
    this.file = val;
              }
Reply
  • Yes. I tried, exactly the same problem. Program exit without any message at cs. There are no "catch" unless I set only (exception e) and in this case, I get a null error message. During this time, input file number change 409, 412, 416...
    I get it with :

    @Input(required = Required.ALWAYS)
    @Name("file")
    @DocumentDataType <== could the problem be there ?
    public void setFichier(Long val) {
    this.file = val;
              }
Children
No Data