dev_appserver - How to get error log - java

I use netbeans to develop a gae java app.
When i try to debug by
dev_appserver.cmd -p 8962 D:\Documents\NetBeansProjects\Reader\build\web
I got Error 500 null on http://localhost:8962.
I think there is something wrong with my program, I want to get the error log, but dev_appserver only show me INFO log, how to get error log?

In Google App Engine Launcher click on "Logs".

Related

'Application Error' when Im deploying one of my services on Heroku

There is a problem that I really need help to solve it.
I have no much experience with using Heroku, but I use to deploy a few apps successfully. Now after deploying is succeed I try to launch the app in my browser and get this Error:
Application error
An error occurred in the application and your page could not be served. If you are the application owner, check your logs for details. You can do this from the Heroku CLI with the command
heroku logs --tail
I attached below the logs I checked in my Heroku CLI, but I still don't understand what exact the problem in my application java code. Is any ideas or own experience with it? Thanks
THE LOGS I GOT
This is the text of your error:
"no main manifest attribute, in target /ProPetsAccountingService-0.0.1-SNAPSHOT.jar"
Pay attention to the answers to this question:
Can't execute jar- file: "no main manifest attribute"
Or check what is listed in your "Procfile".

Intellij IDEA - Web Application - Glassfish - Logging

I wonder if there is a way to see System.out.println Messages in Idea when I´m using Glassfish to handle Websocketconnections. I cant find an Output Window where my messages are displayed. So if this doesnt work: How do you log with this setup ?
My glassfish log is located in the glassfish window under debug when I run debug. System out messages will show up here in the log messages. You can also find them by navigating to your glassfish log file. My file is located at:
C:\glassfish4\glassfish\domains\domain1\logs\server.txt
And here is a pic of that same log in the debug screen. This screen pops up automatically for me when I start the debug server.

Confluence Error 500 while setup

I've got an Error 500 while trying to setup Confluence saying the bean i18NBean was not found.
I'am running a debian Jessie and I try to install confluence in a docker container following this turotial
This error occurs always when I hit the "database setup step" while confluence trys to setup the database. The weird thing is, this happens also when I try to use the embedded database...

No StackTrace of catched exception (by ACRA) in LogCat of IDE (Eclipse)

I'm using ACRA lib for getting crashes of my app.
It work fine (I receive crash-reports on my server with stackTrace and logCat info). But in my IDE (Eclipse) in logCat I see only this line, when I throw exception:
E/ACRA(18776): ACRA caught a IndexOutOfBoundsException exception for com.example.myapp. Building report.
So I able to read stackTrace of catched error only on my server... And, of course, if I disable ACRA initialization in my app I can see stackTrace of throwing error.
Also I read this, but it do not help me, as I already have "verbose" filter in logCat in my IDE (Eclipse).
UPD_0:
As I understand, this issue caused by Android version >=5 (Lolipop). I test on Nesus 4 (ver 5.1) and on LG g3s, ver.5.0.2. On thses devices there are no stackTrace of catched error in IDE's logCat. On devices with Android <5 (Lolipop) everything is all write and I can see error detailes in logCat of Eclipse.
UPD_1:
If read logs from cmd (adb logcat) everithing is all write. So there is problem with Eclipse...
If it's showing in the adb logcat, then it's a problem with either Eclipse or with your Eclipse config.

Service will not start: error 1067: the process terminated unexpectedly

We have a custom service that we install with our application. The only problem is that after it is installed, it will not start, generating the error above. I have tried to diagnose what the problem is, but can't seem to find any useful information as to why it is quitting. I have tried the same service on a non "R2" 2008 server, and manual it worked fine.
service simple java file running using batch file. Deamon service.
Has anyone had any experience troubleshooting this type of problem, where there are so few clues?
Goto:
Registry-> HKEY_LOCAL‌​_MACHINE-> System-> Cur‌​rentControlSet-> Servi‌​ces.
Find the concerned service & delete it. Close regedit. Reboot the PC & Re-install the concerned service. Now the error should be gone.
This is a problem related permission.
Make sure that the current user has access to the folder which contains installation files.
I resolved the problem.This is for EAServer Windows Service
Resolution is -->
Open Regedit in Run prompt
Under HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\EAServer
In parameters, give SERVERNAME entry as EAServer.
[It is sometime overwritten with Envirnoment variable : Path value]
This error message appears if the Windows service launcher has quit immediately after being started.
This problem usually happens because the license key has not been correctly deployed(license.txt file in the license folder).
If service is not strtign with correct key, just put incorrect key and try to start. Once started, place the correct key, it will work.
I had this error, I looked into a log file C:\...\mysql\data\VM-IIS-Server.err and found this
2016-06-07 17:56:07 160c InnoDB: Error: unable to create temporary file; errno: 2
2016-06-07 17:56:07 3392 [ERROR] Plugin 'InnoDB' init function returned error.
2016-06-07 17:56:07 3392 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.
2016-06-07 17:56:07 3392 [ERROR] Unknown/unsupported storage engine: InnoDB
2016-06-07 17:56:07 3392 [ERROR] Aborting
The first line says "unable to create temporary file", it sounds like "insufficient privileges", first I tried to give access to mysql folder for my current user - no effect, then after some wandering around I came up to control panel->Administration->Services->Right Clicked MysqlService->Properties->Log On, switched to "This account", entered my username/password, clicked OK, and it woked!
In my case the error 1067 was caused with a specific version of Tomcat 7.0.96 32-bit in combination with AdoptOpenJDK. Spent two hours on it, un-installing, re-installing and trying different Java settings but Tomcat would not start. See...
ASF Bugzilla – Bug 63625
seems to point at the issue though they refer to seeing a different error.
I tried 7.0.99 32-bit and it started straight away with the same AdoptOpenJDK 32-bit binary install.
I solved this issue using Monitor Tomcat application. I ran it and after a few seconds its icon appeared in my system tray. I right clicked on the icon and clicked the start button and after a few seconds Apache Tomcat started.

Categories