B4J Question [SOLVED] ABMaterial - I Broke "Production" Site

mmieher

Active Member
Licensed User
Longtime User
I am a Linux/HTML/Java/css idiot. I have 12 years B4X. One week ABMaterial.

Everything in debug or release works on Windows dev unit. Everything did work on Ubuntu.

Where am I when I see this pulsating, convulsing, warping phone thing?

I think I somehow broke door.html's generative process, but am too ignorant to see anything wrong with it.

1673670225956.png


I find it of note that in B4J desktop, both debug and release go happily to:
http://localhost:51068/Pearl/DoorPage/door.html
This url is insecure but I do not care.

The end result of typing www.pearlnecklacemedia.com in address bar of another machine is:
https://www.pearlnecklacemedia.com:51069/Pearl/DoorPage/door.html
This is secure. Ubuntu is not even listening on 51068 (http).

This was working fine. I have no idea what I did. Days old saved versions do the same thing. I have not done anything to UBUNTU other than kill/start result.jar.
 
Last edited:
Solution
SOLUTION:

1) Delete everything and start over. Double-comment out all lines that are not already disabled in ABMTemplate copy.
2) Uncomment one line at a time. Run.
3) Repeat until I understand.

Harris

Expert
Licensed User
Longtime User
I think I somehow broke door.html's generative process, but am too ignorant to see anything wrong with it.
It is not a matter of seeing, but what is the server log telling you - in text?
The log window on your local host in the IDE shows all. But on your server, u must record the log to a file so u can investigate it.

Also.... ALWAYS copy the .needs file to the server anytime you update the jar there.
Even thou u THINK nothing has changed, u will be surprised how NOT doing this will BITE u in the butt....


B4X:
Sub RedirectOutput (Dir As String, FileName As String)
   #if RELEASE
   Dim out As OutputStream = File.OpenOutput(Dir, FileName, False) 'Set to True to append the logs
   Dim ps As JavaObject
   ps.InitializeNewInstance("java.io.PrintStream", Array(out, True, "utf8"))
   Dim jo As JavaObject
   jo.InitializeStatic("java.lang.System")
   jo.RunMethod("setOut", Array(ps))
   jo.RunMethod("setErr", Array(ps))
   #end if
End Sub

Nice to see u are embracing this framework for your web apps.
My examples and tuts are very plain in a UI nature. Your apps can look as modern as anything on the internet right now - and work with much less effort than anything else you may try.... Good Luck moving forward...
 
Last edited:
Upvote 0

mmieher

Active Member
Licensed User
Longtime User
SOLUTION:

1) Delete everything and start over. Double-comment out all lines that are not already disabled in ABMTemplate copy.
2) Uncomment one line at a time. Run.
3) Repeat until I understand.
 
Upvote 0
Solution
Top