B4AServer Issues

jtnicholson

Member
Licensed User
Longtime User
Hey Everyone

I got the B4AServer to run on the test and on a live site that is hosted. I am now trying to move it to a localhost, due to a project that i may have where i won't have internet access, hard to believe but is what it is.

I have installed Wamp and configured everything. I can enter the boardurl with parameters into a chrome browser and it works, it will save the server and ip parameters and will display the ip address on the second call.

However when I try to run the bat file on the desktop i get a error that states the following below, ip address should end with the port.

anyone have a clue what's wrong?

C:\temp\Android Code\0-B4AServer>java -cp b4aserver.jar anywheresoftware.b4a.b4a
server.Server
B4A server (v0.92) is started. Checking URL: http://192.168.1.126/phpBB3/b4a_se
rver.php, server name=vhb
ip address should end with the port (111.222.111.222:8888): <br />
ip address should end with the port (111.222.111.222:8888): <font size='1'><tabl
e class='xdebug-error xe-notice' dir='ltr' border='1' cellspacing='0' cellpaddin
g='1'>
trying to connect to: <tr><th align='left' bgcolor='#f57900' colspan="5"><span s
tyle='background-color: #cc0000; color: #fce94f; font-size: x-large;'>( ! )</spa
n> Notice: Undefined index: ip in C:\wamp\www\phpBB3\b4a_server.php on line <i>1
6</i></th></tr>
ip address should end with the port (111.222.111.222:8888): <tr><th align='left'
bgcolor='#e9b96e' colspan='5'>Call Stack</th></tr>
ip address should end with the port (111.222.111.222:8888): <tr><th align='cente
r' bgcolor='#eeeeec'>#</th><th align='left' bgcolor='#eeeeec'>Time</th><th align
='left' bgcolor='#eeeeec'>Memory</th><th align='left' bgcolor='#eeeeec'>Function
</th><th align='left' bgcolor='#eeeeec'>Location</th></tr>
Error occurred while working with ip: <tr><th align='left' bgcolor='#f57900' col
span="5"><span style='background-color: #cc0000; color: #fce94f; font-size: x-la
rge;'>( ! )</span> Notice: Undefined index: ip in C:\wamp\www\phpBB3\b4a_server.
php on line <i>16</i></th></tr>
trying to connect to: <tr><td bgcolor='#eeeeec' align='center'>1</td><td bgcolor
='#eeeeec' align='center'>0.0004</td><td bgcolor='#eeeeec' align='right'>696960<
/td><td bgcolor='#eeeeec'>{main}( )</td><td title='C:\wamp\www\phpBB3\b4a_serve
r.php' bgcolor='#eeeeec'>..\b4a_server.php<b>:</b>0</td></tr>java.lang.NumberFor
matException: For input string: "\wamp\www\phpBB3\b4a_server.php on line <i>16</
i></th></tr>"

at java.lang.NumberFormatException.forInputString(Unknown Source)
ip address should end with the port (111.222.111.222:8888): </table></font>
at java.lang.Integer.parseInt(Unknown Source)

at java.lang.Integer.parseInt(Unknown Source)Error occurred while workin
g with ip: <tr><td bgcolor='#eeeeec' align='center'>1</td><td bgcolor='#eeeeec'
align='center'>0.0004</td><td bgcolor='#eeeeec' align='right'>696960</td><td bgc
olor='#eeeeec'>{main}( )</td><td title='C:\wamp\www\phpBB3\b4a_server.php' bgco
lor='#eeeeec'>..\b4a_server.php<b>:</b>0</td></tr>
at anywheresoftware.b4a.b4aserver.Communicator.run(Communicator.java:38)


at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
java.lang.NumberFormatException: For input string: "</b>0</td></tr>"
at java.lang.NumberFormatException.forInputString(Unknown Source)
at java.lang.Integer.parseInt(Unknown Source)
at java.lang.Integer.parseInt(Unknown Source)
at anywheresoftware.b4a.b4aserver.Communicator.run(Communicator.java:38)

at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
 

jtnicholson

Member
Licensed User
Longtime User
Yeah the apache configuration is set to 80. I tried to add it to ip address in the config.properties but it doesn't help.

I can even add the SQL record through the php script from the tablet, from both an app and a browser on the tablet.
 
Upvote 0

Jamie

Member
Licensed User
Longtime User
jt. Can you post your php script. I'm having the same issue
Thanks
 
Last edited:
Upvote 0
Top