B4a_server Problem

jddiven

Member
Licensed User
Longtime User
I’ve been trying to get b4a_server to work on a server with little success. The server has no connection to the internet so I’ve had to work through a local connection to modify it. This is where I am to date.
1) I’ve installed the following on the server:
a) FastCGI 1.5(x86)RTW
b) Java™ SE Development Kit 7 Update 5
c) Java™ 7Update 5
d) Java FX 2.1.1
e) Java FX 2.1.1 SDK
f) MYSQL Server 5.0
g) PHP 5.2.17
2) At C:\Inetpub\wwwroot on the server I installed
a) b4aserver.jar
b) b4a_server.php
c) logo.jpg
d) iisstart
e) files
i) bwlogo.png
ii) logo.jpg
iii) logo.png
f) config
g) run
h) localstart
i) functest.php (my php test file)
j) test.php (showinfo())
3) I created several blank MySQL databases.

I've attached text files showing the contents of the b4a_server.php and config files on the server and the error log and zip file from the IDE.

When I run the program and press a button on the device it take about 30 seconds for the task to fail.

What's happening? I would appreciate any help anyone could give me.
 

Attachments

  • config.txt
    597 bytes · Views: 373
  • b4a_server.txt
    1.9 KB · Views: 384
  • errors.txt
    838 bytes · Views: 370
  • zip 072012.zip
    13.4 KB · Views: 304

jddiven

Member
Licensed User
Longtime User
Log

I'm not sure if this is the log that you're referring to but it corresponds to my earlier post.

Thank you for your help!
 

Attachments

  • log 072012.txt
    780 bytes · Views: 296
Upvote 0

jddiven

Member
Licensed User
Longtime User
I'm not sure where to get those logs.

If I go onto the server and execute the run file what I get is in "startingb4a.txt" that is attached.

If I alter the config file to show the port, I get what is in "startingb4a-2.txt" however the program responds as before, at least on the emulator (my wireless is down for the rest of the week).

I really appreciate your help and if you can tell me how to get a b4aserver java log file, I will.

Thanks again!
 

Attachments

  • starting b4a.txt
    9.4 KB · Views: 438
  • startingb4a-2.txt
    204 bytes · Views: 300
Upvote 0

jddiven

Member
Licensed User
Longtime User
I'm not sure if I'm making progress or not. I'm at a point where the server will make an entry into the database....

Enter password: ****
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 15
Server version: 5.0.67-community-nt MySQL Community Edition (GPL)

Type 'help;' or '\h' for help. Type '\c' to clear the buffer.

mysql> connect b4a_server;
Connection id: 16
Current database: b4a_server

mysql> select * from b4a;
+-----------------+----------------+------------+
| server | ip | time |
+-----------------+----------------+------------+
| logisticsserver | 127.0.0.1:7890 | 1343324823 |
+-----------------+----------------+------------+
1 row in set (0.00 sec)

mysql>

but I still get the timeout error.

I believe the sql comes from ISAPI but I still have a problem with my FastCGI.

Any suggestions?

Thanks for your help.

Doug
 

Attachments

  • sql_record.txt
    644 bytes · Views: 343
Upvote 0

jddiven

Member
Licensed User
Longtime User
Better logs

Erel

After I submitted the above log to you (with the program run being with my galaxy tab, which I hadn't used with this configuration), I went back to the mysql table expecting an entry for the galaxy tab. Strangely the entries in the database table b4a had been wiped but the table structure were still there.

I had put a "log on" line in my php file that I think just gummed things up. I took the line back out.

I did another run which yielded log2 but there was still no entry in the database table.

A third run made an entry into the database table and yielded log3.

Thanks again.

Doug
 

Attachments

  • log2 073112.txt
    2.4 KB · Views: 346
  • log3 073112.txt
    199 bytes · Views: 311
Upvote 0

jddiven

Member
Licensed User
Longtime User
Erel,

You're right. I can't ping the device directly but I can ping the wireless router that the device connects through. (see attached file) How do I resolve this issue?

Thanks for all your help.

Doug
 

Attachments

  • ping.txt
    737 bytes · Views: 352
Upvote 0

mc73

Well-Known Member
Licensed User
Longtime User
Erel,

You're right. I can't ping the device directly but I can ping the wireless router that the device connects through. (see attached file) How do I resolve this issue?

Thanks for all your help.

Doug

I see your router's IP starting with 192.168.1, while your device's with 192.168.11. I think you should change its IP to 192.168.1.something, in order to ping it.
 
Upvote 0

jddiven

Member
Licensed User
Longtime User
I reconfigured the wireless router to act as a LAN. Now I can ping devices from the server but I'm still not connecting back to the device.

Any suggestions?

Thanks!
 
Upvote 0

jddiven

Member
Licensed User
Longtime User
Yes with the router reconfigured as a LAN the devices IP addresses now start with 192.168.1.
Thanks for the suggestion
 
Upvote 0

jddiven

Member
Licensed User
Longtime User
The primary dns is 192.168.1.1

Today I tried disabling the firewall on the server.

The program still hung up on trying to connect back with the device.

Any suggestions?

Thanks for your help!
 
Upvote 0

mc73

Well-Known Member
Licensed User
Longtime User
Sorry if this will sound silly, but sure this is also the dns set at your router's setting? I had trouble with that in the past. I thought everything was ok, but it was not due to some silly behavior of the router.
 
Upvote 0
Top