dolphinscheduler icon indicating copy to clipboard operation
dolphinscheduler copied to clipboard

[Bug] [java task] When Java obtains the Local Parameter, ${Parameter} is of type list and keeps reporting errors

Open san346596324 opened this issue 2 years ago • 11 comments

Search before asking

  • [x] I had searched in the issues and found no similar issues.

What happened

Java can obtain Local Parameters normally

What you expected to happen

Format error when obtaining Parameters for Java task

How to reproduce

I obtained a list from SQL and passed it to the Java task. The ${Parameters} data is in the format of ["111", "222", "333"] and cannot be used by Java

Anything else

No response

Version

3.2.x

Are you willing to submit PR?

  • [ ] Yes I am willing to submit a PR!

Code of Conduct

san346596324 avatar Dec 01 '23 00:12 san346596324

@106umao 这个问题有办法解决吗

san346596324 avatar Dec 01 '23 07:12 san346596324

@san346596324 报错截图可以贴下吗?然后我来帮忙看下如何解决,暂时我来跟进可否?

woshiwuxiaofei avatar Dec 01 '23 07:12 woshiwuxiaofei

@san346596324 报错截图可以贴下吗?然后我来帮忙看下如何解决,暂时我来跟进可否?

好的,感谢! 1.获取SQL的数据 图片 2.进行java的编写 图片 3.bug报错 图片

san346596324 avatar Dec 01 '23 07:12 san346596324

OK, 我立马来解决它

woshiwuxiaofei avatar Dec 10 '23 09:12 woshiwuxiaofei

20231210174433 20231210174649

woshiwuxiaofei avatar Dec 10 '23 09:12 woshiwuxiaofei

我本地测试了一下,是没问题的,你这边方便跟我快速私下交流下吗? @san346596324

woshiwuxiaofei avatar Dec 10 '23 09:12 woshiwuxiaofei

我本地测试了一下,是没问题的,你这边方便跟我快速私下交流下吗? @san346596324

ok,你加下我QQ 346596324

san346596324 avatar Dec 11 '23 00:12 san346596324

我本地测试了一下,是没问题的,你这边方便跟我快速私下交流下吗? @san346596324

图片 @woshiwuxiaofei 这个写法应该是错的才对,java正常这样写才是正确的写法 图片

san346596324 avatar Dec 11 '23 04:12 san346596324

@san346596324 已经加你微信,你通过下

woshiwuxiaofei avatar Dec 11 '23 06:12 woshiwuxiaofei

Hi @woshiwuxiaofei @san346596324 , so.it is a bug or wrong usage?

zhongjiajie avatar Jan 30 '24 06:01 zhongjiajie

Hi @woshiwuxiaofei @san346596324 , so.it is a bug or wrong usage?嗨,so.it 错误或用法错误?

Yes, I am under center7 and do not have permission to create the java folder when running this method, so the jar is not actually generated and cannot be run. I now use java -cp to replace it

san346596324 avatar Jan 31 '24 03:01 san346596324