# java.lang.IllegalArgumentException: Array of strings are not implemented yet

**URL:** <https://discourse.f2i-consulting.com/t/java-lang-illegalargumentexception-array-of-strings-are-not-implemented-yet/222>\
**Category:** FETPAPI\
**Created:** [February 3, 2023, 4:56pm UTC](https://discourse.f2i-consulting.com/t/java-lang-illegalargumentexception-array-of-strings-are-not-implemented-yet/222 "2023-02-03T16:56:28Z")\
**Posts on this page:** 20\
**Page:** 2

<div class="post-metadata">

**Author:** ![philippeVerney](https://discourse.f2i-consulting.com/user_avatar/discourse.f2i-consulting.com/philippeverney/32/29_2.png) [@philippeVerney](https://discourse.f2i-consulting.com/u/philippeVerney)\
**Post date:** [March 14, 2023, 8:41am UTC](https://discourse.f2i-consulting.com/t/java-lang-illegalargumentexception-array-of-strings-are-not-implemented-yet/222/21 "2023-03-14T08:41:52Z")

</div>

FETPAPI should do it for you behind the scene. You have not to deal with that at least in a first/basic usage.  
If you really want to for some more advanced usage, you still can but I definitely think this is not the way to start to learn how to use FETPAPI.

---

<div class="post-metadata">

**Author:** ![asim.jadoon](https://discourse.f2i-consulting.com/user_avatar/discourse.f2i-consulting.com/asim.jadoon/32/103_2.png) [@asim.jadoon](https://discourse.f2i-consulting.com/u/asim.jadoon)\
**Post date:** [March 14, 2023, 9:12am UTC](https://discourse.f2i-consulting.com/t/java-lang-illegalargumentexception-array-of-strings-are-not-implemented-yet/222/22 "2023-03-14T09:12:21Z")

</div>

That’s an encouraging comment that Fetpapi will do this for us. The only thing I am worried about it that we need to show this urgently and I am kind of stuck thats why started exploring different possibilities.

---

<div class="post-metadata">

**Author:** ![philippeVerney](https://discourse.f2i-consulting.com/user_avatar/discourse.f2i-consulting.com/philippeverney/32/29_2.png) [@philippeVerney](https://discourse.f2i-consulting.com/u/philippeVerney)\
**Post date:** [March 14, 2023, 9:23am UTC](https://discourse.f2i-consulting.com/t/java-lang-illegalargumentexception-array-of-strings-are-not-implemented-yet/222/23 "2023-03-14T09:23:08Z")

</div>

Indeed, this is drawback of community support. Industrial delivery withtout industrial support is always a risky bet.  
I cannot dedicate more time than I do on this bug. And this bug deserves either more time and/or more environment access at a first glance.

Indeed, we are exploring different possibilities mainly because it is not reproducible on my various environments (vs2017 + CSharp, VS2017 + Java8, GCC4.8 + Java8, VS2017 c++, VS2022 c++ without any compiler optimization). Providing a way to reproduce the bug may accelerate the fix but I don’t know how much since it only depends on my free time…

---

<div class="post-metadata">

**Author:** ![asim.jadoon](https://discourse.f2i-consulting.com/user_avatar/discourse.f2i-consulting.com/asim.jadoon/32/103_2.png) [@asim.jadoon](https://discourse.f2i-consulting.com/u/asim.jadoon)\
**Post date:** [March 14, 2023, 10:50am UTC](https://discourse.f2i-consulting.com/t/java-lang-illegalargumentexception-array-of-strings-are-not-implemented-yet/222/24 "2023-03-14T10:50:18Z")

</div>

Yes you’re right.

I was using java 11, reverted back to 8 but no luck.

We built the api without any optimisatio. Not sure what’s the default and how it effects. Can you please guide where we can can check and if we need to rebuild.

---

<div class="post-metadata">

**Author:** ![philippeVerney](https://discourse.f2i-consulting.com/user_avatar/discourse.f2i-consulting.com/philippeverney/32/29_2.png) [@philippeVerney](https://discourse.f2i-consulting.com/u/philippeVerney)\
**Post date:** [March 14, 2023, 10:57am UTC](https://discourse.f2i-consulting.com/t/java-lang-illegalargumentexception-array-of-strings-are-not-implemented-yet/222/26 "2023-03-14T10:57:42Z")

</div>

![image](https://discourse.f2i-consulting.com/uploads/default/original/1X/5f7323c6ae9c7a3490276a690d7a7e40f855f386.png)  
On this image coming from a build with VS2017, you see the highlighted /O and /Ob flags which are related to optimization.  
You would need to remove them or to put them to 0 (as for the debug line). Regenerate the solution from Cmake and rebuild the library.

On different compiler, it might be a different flag but you should be able to see them in CMake as the image hereunder shows you.

---

<div class="post-metadata">

**Author:** ![philippeVerney](https://discourse.f2i-consulting.com/user_avatar/discourse.f2i-consulting.com/philippeverney/32/29_2.png) [@philippeVerney](https://discourse.f2i-consulting.com/u/philippeVerney)\
**Post date:** [March 14, 2023, 11:00am UTC](https://discourse.f2i-consulting.com/t/java-lang-illegalargumentexception-array-of-strings-are-not-implemented-yet/222/27 "2023-03-14T11:00:25Z")

</div>

The java version does not change a lot.  
The C++ optimisation may change more but there is no guarantee at all.

Again, if you can provide a docker image of your client (I’ll use my own etp server) which reproduces the error, it would help.

---

<div class="post-metadata">

**Author:** ![asim.jadoon](https://discourse.f2i-consulting.com/user_avatar/discourse.f2i-consulting.com/asim.jadoon/32/103_2.png) [@asim.jadoon](https://discourse.f2i-consulting.com/u/asim.jadoon)\
**Post date:** [March 14, 2023, 11:10am UTC](https://discourse.f2i-consulting.com/t/java-lang-illegalargumentexception-array-of-strings-are-not-implemented-yet/222/28 "2023-03-14T11:10:04Z")

</div>

> <https://github.com/F2I-Consulting/fetpapi/blob/dca231cd396f5662e3b478dfdef2a59284e666de/.github/workflows/github-actions.yml>

Used this command for windows

---

<div class="post-metadata">

**Author:** ![asim.jadoon](https://discourse.f2i-consulting.com/user_avatar/discourse.f2i-consulting.com/asim.jadoon/32/103_2.png) [@asim.jadoon](https://discourse.f2i-consulting.com/u/asim.jadoon)\
**Post date:** [March 14, 2023, 11:13am UTC](https://discourse.f2i-consulting.com/t/java-lang-illegalargumentexception-array-of-strings-are-not-implemented-yet/222/29 "2023-03-14T11:13:40Z")

</div>

Yeah thats the best way. Actually I am doing this on my windows home edition. Docker desktop is crashing for no reason. Not able to build an image.

---

<div class="post-metadata">

**Author:** ![philippeVerney](https://discourse.f2i-consulting.com/user_avatar/discourse.f2i-consulting.com/philippeverney/32/29_2.png) [@philippeVerney](https://discourse.f2i-consulting.com/u/philippeVerney)\
**Post date:** [March 14, 2023, 11:20am UTC](https://discourse.f2i-consulting.com/t/java-lang-illegalargumentexception-array-of-strings-are-not-implemented-yet/222/30 "2023-03-14T11:20:17Z")

</div>

> [@asim.jadoon](#):
>
> Used this command for windows

If I understand correclty, you actually build fetpapi with visual studio 2019.  
If so you can disable C++ optimization by removing the /O flags using CMake-GUI (see previous snapshot)  
or you can disable them directly in Visual Studio (Disable Optimization and Inline function Expansion)

 ![image](https://discourse.f2i-consulting.com/uploads/default/original/1X/69965226582997797525f816376422636436c265.png)

You could also decide to override the default CMake flags on line 73 of [fetpapi/.github/workflows/github-actions.yml at dca231cd396f5662e3b478dfdef2a59284e666de · F2I-Consulting/fetpapi · GitHub](https://github.com/F2I-Consulting/fetpapi/blob/dca231cd396f5662e3b478dfdef2a59284e666de/.github/workflows/github-actions.yml) adding something like -DCMAKE\_CXX\_FLAGS\_ **=**

---

<div class="post-metadata">

**Author:** ![asim.jadoon](https://discourse.f2i-consulting.com/user_avatar/discourse.f2i-consulting.com/asim.jadoon/32/103_2.png) [@asim.jadoon](https://discourse.f2i-consulting.com/u/asim.jadoon)\
**Post date:** [March 14, 2023, 11:34am UTC](https://discourse.f2i-consulting.com/t/java-lang-illegalargumentexception-array-of-strings-are-not-implemented-yet/222/31 "2023-03-14T11:34:27Z")

</div>

Perfect. Thank you very much. We will build again and test.

Is it possible to for you to provide the libraries so that I can quickly see if it makes any change?

---

<div class="post-metadata">

**Author:** ![philippeVerney](https://discourse.f2i-consulting.com/user_avatar/discourse.f2i-consulting.com/philippeverney/32/29_2.png) [@philippeVerney](https://discourse.f2i-consulting.com/u/philippeVerney)\
**Post date:** [March 14, 2023, 1:55pm UTC](https://discourse.f2i-consulting.com/t/java-lang-illegalargumentexception-array-of-strings-are-not-implemented-yet/222/32 "2023-03-14T13:55:29Z")

</div>

I’ll try but I would have to package all my dev environment (fesapi and its dependencies, fetpapi and its dependencies) which is going to take me time.

---

<div class="post-metadata">

**Author:** ![asim.jadoon](https://discourse.f2i-consulting.com/user_avatar/discourse.f2i-consulting.com/asim.jadoon/32/103_2.png) [@asim.jadoon](https://discourse.f2i-consulting.com/u/asim.jadoon)\
**Post date:** [March 14, 2023, 2:09pm UTC](https://discourse.f2i-consulting.com/t/java-lang-illegalargumentexception-array-of-strings-are-not-implemented-yet/222/33 "2023-03-14T14:09:33Z")

</div>

That would be really helpful

---

<div class="post-metadata">

**Author:** ![asim.jadoon](https://discourse.f2i-consulting.com/user_avatar/discourse.f2i-consulting.com/asim.jadoon/32/103_2.png) [@asim.jadoon](https://discourse.f2i-consulting.com/u/asim.jadoon)\
**Post date:** [March 15, 2023, 3:29am UTC](https://discourse.f2i-consulting.com/t/java-lang-illegalargumentexception-array-of-strings-are-not-implemented-yet/222/34 "2023-03-15T03:29:10Z")

</div>

We tried to build but it failed due to some issues, maybe due to our local configurations. We will try again but I don’t know we will succeed or not. Please if you get time share your libraries so that we can meet the coming deadline.

Many thanks in advance.

---

<div class="post-metadata">

**Author:** ![philippeVerney](https://discourse.f2i-consulting.com/user_avatar/discourse.f2i-consulting.com/philippeverney/32/29_2.png) [@philippeVerney](https://discourse.f2i-consulting.com/u/philippeVerney)\
**Post date:** [March 15, 2023, 9:30am UTC](https://discourse.f2i-consulting.com/t/java-lang-illegalargumentexception-array-of-strings-are-not-implemented-yet/222/35 "2023-03-15T09:30:58Z")

</div>

No luck…  
On my side, I have a Java version working on CentOS7, a VS2022 pure C++ on Windows (on my main collaborator computer) and a VS2017 C# version on Windows.  
My FETPAPI Windows java version is still in dev on windows : it was working on FESAPI 2.5 but I upgraded my dev env to v2.6 and I have to reconfigure this env for this particular version to work.

It is going to take me time and definitely community support is not suitable for that. I am quite busy with my paying customers and it is fair to give them the top priority. They have also urgency with their own deadlines and I am paid to help them achieving that (with FESAPI and FETPAPI).

So, I cannot guarantee any deadline so far as I am sure you would understand.  
Community support is good for answering questions and giving directions but not really for realizing things according to deadline.

---

<div class="post-metadata">

**Author:** ![asim.jadoon](https://discourse.f2i-consulting.com/user_avatar/discourse.f2i-consulting.com/asim.jadoon/32/103_2.png) [@asim.jadoon](https://discourse.f2i-consulting.com/u/asim.jadoon)\
**Post date:** [March 15, 2023, 9:49am UTC](https://discourse.f2i-consulting.com/t/java-lang-illegalargumentexception-array-of-strings-are-not-implemented-yet/222/36 "2023-03-15T09:49:56Z")

</div>

No problem I understand. I am trying to build it myself.

---

<div class="post-metadata">

**Author:** ![philippeVerney](https://discourse.f2i-consulting.com/user_avatar/discourse.f2i-consulting.com/philippeverney/32/29_2.png) [@philippeVerney](https://discourse.f2i-consulting.com/u/philippeVerney)\
**Post date:** [March 15, 2023, 10:03am UTC](https://discourse.f2i-consulting.com/t/java-lang-illegalargumentexception-array-of-strings-are-not-implemented-yet/222/37 "2023-03-15T10:03:26Z")

</div>

You can try this version : [https://www.f2i-consulting.com/fesapi/fetpapiJavaWindows.zip](https://www.f2i-consulting.com/fesapi/fetpapiJavaWindows.zip)

This is the quickest I can do. It is based on VS2017.  
You may need to install the VS2017 [redistributable](https://www.f2i-consulting.com/fesapi/vs2017redist.zip) in the same directory.

It works on my computer.

---

<div class="post-metadata">

**Author:** ![asim.jadoon](https://discourse.f2i-consulting.com/user_avatar/discourse.f2i-consulting.com/asim.jadoon/32/103_2.png) [@asim.jadoon](https://discourse.f2i-consulting.com/u/asim.jadoon)\
**Post date:** [March 15, 2023, 12:33pm UTC](https://discourse.f2i-consulting.com/t/java-lang-illegalargumentexception-array-of-strings-are-not-implemented-yet/222/38 "2023-03-15T12:33:53Z")

</div>

Thank you very much. Let me try.

---

<div class="post-metadata">

**Author:** ![asim.jadoon](https://discourse.f2i-consulting.com/user_avatar/discourse.f2i-consulting.com/asim.jadoon/32/103_2.png) [@asim.jadoon](https://discourse.f2i-consulting.com/u/asim.jadoon)\
**Post date:** [March 16, 2023, 11:07am UTC](https://discourse.f2i-consulting.com/t/java-lang-illegalargumentexception-array-of-strings-are-not-implemented-yet/222/39 "2023-03-16T11:07:15Z")

</div>

Still getting the same error.

Can you please suggest a workaround in case we are not able to fix in our environment?

---

<div class="post-metadata">

**Author:** ![philippeVerney](https://discourse.f2i-consulting.com/user_avatar/discourse.f2i-consulting.com/philippeverney/32/29_2.png) [@philippeVerney](https://discourse.f2i-consulting.com/u/philippeVerney)\
**Post date:** [March 16, 2023, 1:03pm UTC](https://discourse.f2i-consulting.com/t/java-lang-illegalargumentexception-array-of-strings-are-not-implemented-yet/222/40 "2023-03-16T13:03:27Z")

</div>

I cannot think of any workaround.  
There must be a bug in FETPAPI which only occurs unders some circumstances/environments.

I’ll have to be able to reproduce the bug and debug it.  
The way to debug is :

- either to make it reproducible in C++
- or attach FETPAPI or FESAPI to the running problematic JAVA application  
and go step by step…

In all cases, it does not look as a short term solution.

---

<div class="post-metadata">

**Author:** ![asim.jadoon](https://discourse.f2i-consulting.com/user_avatar/discourse.f2i-consulting.com/asim.jadoon/32/103_2.png) [@asim.jadoon](https://discourse.f2i-consulting.com/u/asim.jadoon)\
**Post date:** [March 16, 2023, 1:28pm UTC](https://discourse.f2i-consulting.com/t/java-lang-illegalargumentexception-array-of-strings-are-not-implemented-yet/222/41 "2023-03-16T13:28:04Z")

</div>

You are right. By workaround I meant reading arrays in chunks instead of reading the whole array.

[Previous page](https://discourse.f2i-consulting.com/t/java-lang-illegalargumentexception-array-of-strings-are-not-implemented-yet/222.md?page=1)

[Next page](https://discourse.f2i-consulting.com/t/java-lang-illegalargumentexception-array-of-strings-are-not-implemented-yet/222.md?page=3)
