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
The dns of the Buffalo Wireless Router is set to 192.168.1.1

What else could be causing the problem?
 
Upvote 0

jddiven

Member
Licensed User
Longtime User
I believe Erel said in an earlier post that the database got wiped when the Java Server received the device's connection request, however, my database keeps building.

mysql> select * from b4a;
+-----------------+--------------------+------------+
| server | ip | time |
+-----------------+--------------------+------------+
| logistics | 127.0.0.1:7890 | 1344000928 |
| logistics | 192.168.1.142:7890 | 1344014850 |
| logisticsserver | 10.249.7.107:7890 | 1343828792 |
| logisticsserver | 127.0.0.1:7890 | 1344257740 |
| logisticsserver | 192.168.1.142:7890 | 1344259921 |
| logisticsserver | 192.168.1.144:7890 | 1343932492 |
| logisticsserver | 192.168.11.22:7890 | 1343828552 |
| logisticsserver | 192.168.11.59:7890 | 1343919529 |
+-----------------+--------------------+------------+
8 rows in set (0.00 sec)

mysql>

what do you think is going on there?

Thanks for all of your help!
 

Attachments

  • sql2.txt
    725 bytes · Views: 287
Upvote 0

jddiven

Member
Licensed User
Longtime User
If I try to execute the executable jar file, this is what I get.

C:\Inetpub\wwwroot>java -jar b4aserver.jar
Invalid or corrupt jarfile b4aserver.jar

C:\Inetpub\wwwroot>

When I use a fresh copy of the jar file from a cd that I burned with B4aServer-desktop on 30-Jul-12, I get this.

C:\Program Files\Logistics>java -jar b4aserver.jar
Invalid or corrupt jarfile b4aserver.jar

C:\Program Files\Logistics>

I don't believe that the jar file is corrupt but that's what I get.

Thanks for your help!
 

Attachments

  • jar_execution.txt
    238 bytes · Views: 300
Upvote 0

jddiven

Member
Licensed User
Longtime User
Getting there!

Erel

This morning I accessed the server and ran run.bat. Then I executed the same java command from the command prompt.

After I did that I ran the B4AServerExample on my Galaxy tablet. It worked perfectly.

I left both windows from launching the jar file open and captured the information. (See Attachments)

I rebooted both the server and my Galaxy and recompiled the B4AServerExample. The program again hung up trying to reconnect with the Galaxy.

I logged onto the server and ran run.bat. This time it worked. I logged off of the server and recompiled the program which worked.

What do you think the hang up is now?

I really appreciate all of your help!

Doug
 

Attachments

  • starting b4a from batch file.txt
    1.8 KB · Views: 287
  • starting b4a from command promp.txt
    516 bytes · Views: 318
Upvote 0
Top