stevel05 Expert Licensed User Longtime User Mar 1, 2016 #1 I have a double problem in this one. When trying top compile my ReportWriter code to a library it works in release mode. In Debug mode I get an error on loading a layout: java.lang.RuntimeException: java.lang.Exception: Sub CREATE_CUSTOM_VIEW was not found. So in my normal manner, I cut down the code to just the loading process. Again it works in release mode, but fails in debug mode but it also gives a different error. java.lang.IllegalArgumentException: wrong number of arguments I attach the cut down project, and the library and a test project for the reportwriter. Attachments CutDown.zip CutDown.zip 3.8 KB · Views: 381 LibTest.zip LibTest.zip 24.1 KB · Views: 356 ReportWriterLibs.zip ReportWriterLibs.zip 39.9 KB · Views: 335
I have a double problem in this one. When trying top compile my ReportWriter code to a library it works in release mode. In Debug mode I get an error on loading a layout: java.lang.RuntimeException: java.lang.Exception: Sub CREATE_CUSTOM_VIEW was not found. So in my normal manner, I cut down the code to just the loading process. Again it works in release mode, but fails in debug mode but it also gives a different error. java.lang.IllegalArgumentException: wrong number of arguments I attach the cut down project, and the library and a test project for the reportwriter.
Erel B4X founder Staff member Licensed User Longtime User Mar 1, 2016 #2 Can you upload the library (jar and xml) for the CutDown project? Upvote 0
stevel05 Expert Licensed User Longtime User Mar 1, 2016 #3 Damn, Sorry, that's the problem with that cut down project. There is no library. It's the same project compiled as a library. Sorry about that it shouldn't be selected in the libs. Just the initial issue to sort, as it works in the cut down version. Upvote 0
Damn, Sorry, that's the problem with that cut down project. There is no library. It's the same project compiled as a library. Sorry about that it shouldn't be selected in the libs. Just the initial issue to sort, as it works in the cut down version.
Erel B4X founder Staff member Licensed User Longtime User Mar 1, 2016 #4 Can you upload jEnumClass library? Upvote 0
stevel05 Expert Licensed User Longtime User Mar 1, 2016 #5 Here is the Enum Class Lib. Attachments EnumClassLib.zip EnumClassLib.zip 2.4 KB · Views: 378 Upvote 0
stevel05 Expert Licensed User Longtime User Mar 1, 2016 #6 The next step in the test of the cut down was to compile it to a lib and then run it. That also fails as with the main project. with the Sub CREATE_CUSTOM_VIEW was not found error. Attachments CVLibsTest.zip CVLibsTest.zip 3.7 KB · Views: 333 CutDownLibTest.zip CutDownLibTest.zip 2.9 KB · Views: 355 Upvote 0
The next step in the test of the cut down was to compile it to a lib and then run it. That also fails as with the main project. with the Sub CREATE_CUSTOM_VIEW was not found error.
Erel B4X founder Staff member Licensed User Longtime User Mar 1, 2016 #7 It happens when you load a custom view from a class that was compiled into a library. Please try it with the attached jFX library (v4.22). It should solve this issue. Make sure to copy the files to the internal libraries folder. Attachments jFX.zip jFX.zip 197.4 KB · Views: 354 Upvote 0
It happens when you load a custom view from a class that was compiled into a library. Please try it with the attached jFX library (v4.22). It should solve this issue. Make sure to copy the files to the internal libraries folder.
stevel05 Expert Licensed User Longtime User Mar 1, 2016 #8 Yes, that's fixed it, thanks very much. Upvote 0