G GaryK4 Member Licensed User Longtime User Nov 29, 2015 #1 I have a program that will not run in debug mode. However if I release it, I do not get any errors. The released program works as it always did. Now what? B4A version: 5.50 Parsing code. (0.08s) Compiling code. Error Error compiling program. Error description: Too many parameters. Occurred on line: 2765 job1.PostString("http://www.rollinghillscountryclub.org/GOLF/Daily-Course-Conditions.aspx", "first key=first value&key2=value2") Word: first key=first value&key2=value2 If I comment out the job1.PostString then I get the following error. B4A version: 5.50 Parsing code. (0.06s) Compiling code. (0.19s) Compiling layouts code. (0.01s) Generating R file. (0.09s) Compiling debugger engine code. Error B4A line: 2779 WebText = Job.GetString javac 1.7.0_07 shell\src\golf\match\main_subs_0.java:4489: error: package anywheresoftware.b4a.samples.httputils2 does not exist _webtext = _job.runClassMethod (anywheresoftware.b4a.samples.httputils2.httpjob.class, "_getstring");Debug.locals.put("WebText", _webtext); ^ 1 error
I have a program that will not run in debug mode. However if I release it, I do not get any errors. The released program works as it always did. Now what? B4A version: 5.50 Parsing code. (0.08s) Compiling code. Error Error compiling program. Error description: Too many parameters. Occurred on line: 2765 job1.PostString("http://www.rollinghillscountryclub.org/GOLF/Daily-Course-Conditions.aspx", "first key=first value&key2=value2") Word: first key=first value&key2=value2 If I comment out the job1.PostString then I get the following error. B4A version: 5.50 Parsing code. (0.06s) Compiling code. (0.19s) Compiling layouts code. (0.01s) Generating R file. (0.09s) Compiling debugger engine code. Error B4A line: 2779 WebText = Job.GetString javac 1.7.0_07 shell\src\golf\match\main_subs_0.java:4489: error: package anywheresoftware.b4a.samples.httputils2 does not exist _webtext = _job.runClassMethod (anywheresoftware.b4a.samples.httputils2.httpjob.class, "_getstring");Debug.locals.put("WebText", _webtext); ^ 1 error
imbault Well-Known Member Licensed User Longtime User Nov 29, 2015 #2 Do you have HttpUtils2Service.bas service module in your project? If no, add it
Erel B4X founder Staff member Licensed User Longtime User Nov 30, 2015 #3 Can you upload the project? Are there any warnings in the logs about a conflict with a module name?
G GaryK4 Member Licensed User Longtime User Nov 30, 2015 #4 imbault said: Do you have HttpUtils2Service.bas service module in your project? If no, add it Click to expand... I did not include this file. After doing so, I got an error on okhttpclient which I am not using. At some point, I guess that I need to convert to this, but I don't know how yet. Error description: Unknown type: okhttpclient Are you missing a library reference? Occurred on line: 8 (HttpUtils2Service) Private hc As OkHttpClient
imbault said: Do you have HttpUtils2Service.bas service module in your project? If no, add it Click to expand... I did not include this file. After doing so, I got an error on okhttpclient which I am not using. At some point, I guess that I need to convert to this, but I don't know how yet. Error description: Unknown type: okhttpclient Are you missing a library reference? Occurred on line: 8 (HttpUtils2Service) Private hc As OkHttpClient
G GaryK4 Member Licensed User Longtime User Nov 30, 2015 #5 Erel said: Can you upload the project? Are there any warnings in the logs about a conflict with a module name? Click to expand... I can if necessary. It is kind of big. There are log messages all referencing the same call. Sub 'SubmitJob' not found. (warning #25) Code: Copy CallSubDelayed2(HttpUtils2Service, "SubmitJob", Me) As per a previous response, I don't have the HttpUtils2Service.bas in my program. What I don't understand is this code section is over a year old and always worked with prior versions of B4A. As stated before it still works with a Release compile. It is build on copied samples. I have not spent time understanding the code.
Erel said: Can you upload the project? Are there any warnings in the logs about a conflict with a module name? Click to expand... I can if necessary. It is kind of big. There are log messages all referencing the same call. Sub 'SubmitJob' not found. (warning #25) Code: Copy CallSubDelayed2(HttpUtils2Service, "SubmitJob", Me) As per a previous response, I don't have the HttpUtils2Service.bas in my program. What I don't understand is this code section is over a year old and always worked with prior versions of B4A. As stated before it still works with a Release compile. It is build on copied samples. I have not spent time understanding the code.
Erel B4X founder Staff member Licensed User Longtime User Nov 30, 2015 #6 You don't need to add HttpUtils2Service.bas if you reference HttpUtils2 library.
G GaryK4 Member Licensed User Longtime User Nov 30, 2015 #7 Erel said: You don't need to add HttpUtils2Service.bas if you reference HttpUtils2 library. Click to expand... HttpUtils2 V2.01 is loaded. Did the log warnings help? What is the next step to resolve this?
Erel said: You don't need to add HttpUtils2Service.bas if you reference HttpUtils2 library. Click to expand... HttpUtils2 V2.01 is loaded. Did the log warnings help? What is the next step to resolve this?
G GaryK4 Member Licensed User Longtime User Nov 30, 2015 #8 Got it working, but still confused. Removed the HttpUtil library. Added HttpUtils2Service.bas Added OkHttp libraryDon't know why this worked, I will add it to my list of things that I don't understand Thanks for the leads. It gave me items to test.
Got it working, but still confused. Removed the HttpUtil library. Added HttpUtils2Service.bas Added OkHttp libraryDon't know why this worked, I will add it to my list of things that I don't understand Thanks for the leads. It gave me items to test.