<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <title>java.lang.IllegalArgumentException  in Json parameter api</title>
  <link rel="self" href="https://uat.liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=119026040" />
  <subtitle>java.lang.IllegalArgumentException  in Json parameter api</subtitle>
  <id>https://uat.liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=119026040</id>
  <updated>2026-10-15T11:16:38Z</updated>
  <dc:date>2026-10-15T11:16:38Z</dc:date>
  <entry>
    <title>RE: java.lang.IllegalArgumentException  in Json parameter api</title>
    <link rel="alternate" href="https://uat.liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=119915720" />
    <author>
      <name>Thiago Leão Moreira</name>
    </author>
    <id>https://uat.liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=119915720</id>
    <updated>2020-09-08T00:00:32Z</updated>
    <published>2020-09-08T00:00:32Z</published>
    <summary type="html">It is a bug. I just reported it on &lt;a href="https://issues.liferay.com/browse/LPS-120538"&gt;https://issues.liferay.com/browse/LPS-120538&lt;/a&gt;</summary>
    <dc:creator>Thiago Leão Moreira</dc:creator>
    <dc:date>2020-09-08T00:00:32Z</dc:date>
  </entry>
  <entry>
    <title>RE: java.lang.IllegalArgumentException  in Json parameter api</title>
    <link rel="alternate" href="https://uat.liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=119041576" />
    <author>
      <name>Pankaj Kumar</name>
    </author>
    <id>https://uat.liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=119041576</id>
    <updated>2020-04-25T14:50:43Z</updated>
    <published>2020-04-25T14:50:43Z</published>
    <summary type="html">Add method in ServiceIml class with two parameter &lt;br /&gt;e.g&lt;br /&gt;public class  TestServiceImpl extends TestServiceBaseImpl {public JSONObject TestMethod(String param1, final String param2){&lt;br /&gt;}}</summary>
    <dc:creator>Pankaj Kumar</dc:creator>
    <dc:date>2020-04-25T14:50:43Z</dc:date>
  </entry>
  <entry>
    <title>RE: java.lang.IllegalArgumentException  in Json parameter api</title>
    <link rel="alternate" href="https://uat.liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=119041229" />
    <author>
      <name>Christoph Rabel</name>
    </author>
    <id>https://uat.liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=119041229</id>
    <updated>2020-04-25T13:51:44Z</updated>
    <published>2020-04-25T13:51:44Z</published>
    <summary type="html">Hmm.It seems, Liferay uses Jodd 3.6.X and that&amp;#39;s pretty old, so it is quite possible it won&amp;#39;t work with Java 11 at all. I fear, this issue isn&amp;#39;t easily solved. Liferay probably needs to upgrade Jodd anyway, but even if they do, they will only do it for 7.3 or 7.4.&lt;br /&gt;Also, it seems even the most current version of Jodd doesn&amp;#39;t fully support Java 11. So, even were they to upgrade it, there might still be issues.&lt;br /&gt;&lt;br /&gt;But I have used Liferay 7 and Java 11 already, so it should work in general. What kind of parameters do you have for your functions? I mean, I know that trivial parameters work. Could you show us the method signature that doesn&amp;#39;t work?</summary>
    <dc:creator>Christoph Rabel</dc:creator>
    <dc:date>2020-04-25T13:51:44Z</dc:date>
  </entry>
  <entry>
    <title>RE: java.lang.IllegalArgumentException  in Json parameter api</title>
    <link rel="alternate" href="https://uat.liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=119038884" />
    <author>
      <name>Pankaj Kumar</name>
    </author>
    <id>https://uat.liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=119038884</id>
    <updated>2020-04-25T10:25:35Z</updated>
    <published>2020-04-25T10:25:35Z</published>
    <summary type="html">&lt;strong&gt;Hi Christoph&lt;/strong&gt;&lt;br /&gt;&lt;em&gt;&lt;strong&gt;&lt;span style="font-size: 16px;"&gt;We are not using CXF method.We are &lt;/span&gt;&lt;/strong&gt;&lt;strong&gt;generating&lt;/strong&gt;&lt;strong&gt;&lt;span style="font-size: 16px;"&gt;  JSON Web service using service builder.&lt;/span&gt;&lt;/strong&gt;&lt;/em&gt;&lt;br /&gt;&lt;em&gt;&lt;strong&gt;&lt;span style="font-size: 16px;"&gt;It&amp;#39;s working fine  in JAVA 8.But in  JAVA 11 we facing IIlgealArgumetnException  while invoking.&lt;/span&gt;&lt;/strong&gt;&lt;/em&gt;&lt;br /&gt;&lt;em&gt;&lt;strong&gt;&lt;span style="font-size: 16px;"&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/em&gt;&lt;em&gt;&lt;strong&gt;&lt;span style="font-size: 16px;"&gt;Thanks,&lt;/span&gt;&lt;/strong&gt;&lt;/em&gt;&lt;br /&gt;&lt;em&gt;&lt;strong&gt;&lt;span style="font-size: 16px;"&gt;Pankaj Semwal&lt;/span&gt;&lt;/strong&gt;&lt;/em&gt;&lt;em&gt;&lt;span style="font-size: 16px;"&gt;&lt;strong&gt;&lt;span style="font-size: 16px;"&gt; &lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/em&gt;</summary>
    <dc:creator>Pankaj Kumar</dc:creator>
    <dc:date>2020-04-25T10:25:35Z</dc:date>
  </entry>
  <entry>
    <title>RE: java.lang.IllegalArgumentException  in Json parameter api</title>
    <link rel="alternate" href="https://uat.liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=119037861" />
    <author>
      <name>Christoph Rabel</name>
    </author>
    <id>https://uat.liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=119037861</id>
    <updated>2020-04-25T08:45:01Z</updated>
    <published>2020-04-25T08:45:01Z</published>
    <summary type="html">I believe, you need to give more information to the users here.&lt;br /&gt;How did you create the webservice? A rest service using Whiteboard? With the old CXF method? Using Service Builder? Something else?&lt;br /&gt;What kind of parameters do you have?&lt;br /&gt;Did you test it with Java 8? Does it work with Java 8?</summary>
    <dc:creator>Christoph Rabel</dc:creator>
    <dc:date>2020-04-25T08:45:01Z</dc:date>
  </entry>
  <entry>
    <title>java.lang.IllegalArgumentException  in Json parameter api</title>
    <link rel="alternate" href="https://uat.liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=119026039" />
    <author>
      <name>Pankaj Kumar</name>
    </author>
    <id>https://uat.liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=119026039</id>
    <updated>2020-04-24T15:46:48Z</updated>
    <published>2020-04-24T15:46:48Z</published>
    <summary type="html">Hi All,I have created the JSON web service which taking  two parameter.While invoking  service i am getting  below issue.&lt;u&gt;&lt;span style="font-size: 12px;"&gt;&lt;span style="font-family: Consolas"&gt;&lt;span style="color: #0066cc"&gt;java.lang.IllegalArgumentException&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;br /&gt;&lt;u&gt;&lt;span style="font-size: 12px;"&gt;&lt;span style="font-family: Consolas"&gt;&lt;span style="color: #0066cc"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;span style="font-size: 12px;"&gt;&lt;span style="font-family: Consolas"&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 12px;"&gt;&lt;span style="font-family: Consolas"&gt;&lt;span style="color: black"&gt; at jodd.asm5.ClassReader.&amp;lt;init&amp;gt;(&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;u&gt;&lt;span style="font-size: 12px;"&gt;&lt;span style="font-family: Consolas"&gt;&lt;span style="color: #0066cc"&gt;ClassReader.java:170&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;span style="font-size: 12px;"&gt;&lt;span style="font-family: Consolas"&gt;&lt;span style="color: black"&gt;)&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 12px;"&gt;&lt;span style="font-family: Consolas"&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 12px;"&gt;&lt;span style="font-family: Consolas"&gt;&lt;span style="color: black"&gt; at jodd.asm5.ClassReader.&amp;lt;init&amp;gt;(&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;u&gt;&lt;span style="font-size: 12px;"&gt;&lt;span style="font-family: Consolas"&gt;&lt;span style="color: #0066cc"&gt;ClassReader.java:153&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;span style="font-size: 12px;"&gt;&lt;span style="font-family: Consolas"&gt;&lt;span style="color: black"&gt;)&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 12px;"&gt;&lt;span style="font-family: Consolas"&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 12px;"&gt;&lt;span style="font-family: Consolas"&gt;&lt;span style="color: black"&gt; at jodd.asm5.ClassReader.&amp;lt;init&amp;gt;(&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;u&gt;&lt;span style="font-size: 12px;"&gt;&lt;span style="font-family: Consolas"&gt;&lt;span style="color: #0066cc"&gt;ClassReader.java:424&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;span style="font-size: 12px;"&gt;&lt;span style="font-family: Consolas"&gt;&lt;span style="color: black"&gt;)&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 12px;"&gt;&lt;span style="font-family: Consolas"&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 12px;"&gt;&lt;span style="font-family: Consolas"&gt;&lt;span style="color: black"&gt; at jodd.paramo.Paramo.resolveParameters(&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;u&gt;&lt;span style="font-size: 12px;"&gt;&lt;span style="font-family: Consolas"&gt;&lt;span style="color: #0066cc"&gt;Paramo.java:59&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;span style="font-size: 12px;"&gt;&lt;span style="font-family: Consolas"&gt;&lt;span style="color: black"&gt;)&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 12px;"&gt;&lt;span style="font-family: Consolas"&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 12px;"&gt;&lt;span style="font-family: Consolas"&gt;&lt;span style="color: black"&gt; at com.liferay.portal.util.MethodParametersResolverImpl.resolveMethodParameters(&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;u&gt;&lt;span style="font-size: 12px;"&gt;&lt;span style="font-family: Consolas"&gt;&lt;span style="color: #0066cc"&gt;MethodParametersResolverImpl.java:49&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;span style="font-size: 12px;"&gt;&lt;span style="font-family: Consolas"&gt;&lt;span style="color: black"&gt;)&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 12px;"&gt;&lt;span style="font-family: Consolas"&gt;&lt;/span&gt;&lt;/span&gt;WE are using Liferay DXP 7.2 and Open JDK 11.After debugging i noticed  Liferay use   jodd.asm5 &lt;br /&gt;and I checked Jodd site &lt;a href="https://jodd.org/download/"&gt;https://jodd.org/download/&lt;/a&gt; and they are not supporting it after Java 8. &lt;br /&gt;Please tell if any body faced this issue and able to find  solution.</summary>
    <dc:creator>Pankaj Kumar</dc:creator>
    <dc:date>2020-04-24T15:46:48Z</dc:date>
  </entry>
</feed>
