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

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.

Related

NetBeans IDE 12.5 no Project Open

I'm running NetBeans IDE 12.5 with Java 1.8.0_311 on Mac OS 11.16 Big Sur.
No Folders are displayed in the Projects Window, no difference with new created or old projects.
I already adjusted the netbeans.conf to the right JDK home directory:
netbeans_jdkhome="/Library/Java/JavaVirtualMachines/jdk1.8.0_311.jdk/Contents/Home"
Also I get an Unexpected Exception - java.lang.NullPointerException in the notifications when trying to open a project.
Full trace:
java.lang.NullPointerException
at org.netbeans.modules.j2ee.metadata.model.api.support.annotation.AnnotationModelHelper.runJavaSourceTaskWhenScanFinished(AnnotationModelHelper.java:190)
at org.netbeans.modules.j2ee.dd.impl.webservices.annotation.WebservicesMetadataModelImpl.runReadActionWhenReady(WebservicesMetadataModelImpl.java:80)
at org.netbeans.modules.j2ee.metadata.model.api.MetadataModel.runReadActionWhenReady(MetadataModel.java:160)
at org.netbeans.modules.websvc.core.jaxws.projects.JavaEEWSOpenHook.projectOpened(JavaEEWSOpenHook.java:80)
at org.netbeans.spi.project.ui.ProjectOpenedHook$1.projectOpened(ProjectOpenedHook.java:60)
at org.netbeans.spi.project.ui.support.UILookupMergerSupport$OpenHookImpl.projectOpened(UILookupMergerSupport.java:223)
at org.netbeans.spi.project.ui.ProjectOpenedHook$1.projectOpened(ProjectOpenedHook.java:60)
[catch] at org.netbeans.modules.project.ui.OpenProjectList.notifyOpened(OpenProjectList.java:1323)
at org.netbeans.modules.project.ui.OpenProjectList.access$1600(OpenProjectList.java:116)
at org.netbeans.modules.project.ui.OpenProjectList$LoadOpenProjects.loadOnBackground(OpenProjectList.java:513)
at org.netbeans.modules.project.ui.OpenProjectList$LoadOpenProjects.run(OpenProjectList.java:384)
at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1418)
at org.netbeans.modules.openide.util.GlobalLookup.execute(GlobalLookup.java:45)
at org.openide.util.lookup.Lookups.executeWith(Lookups.java:278)
at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2033)
I found a similar question on stack overflow where adjusting the config file was mentioned as a possible solution.
Output from IDE Log:
WARNING [org.netbeans.modules.options.keymap.LayersBridge]: Invalid shortcut: org.openide.loaders.XMLDataObject#20e83598[MultiFileObject#19d29edf[Actions/Help/master-help.xml]]
WARNING [org.netbeans.modules.options.keymap.LayersBridge]: Invalid shortcut: org.openide.loaders.BrokenDataShadow#72ee9bcd[MultiFileObject#58de53e0[Keymaps/NetBeans/D-BACK_QUOTE.shadow]]
WARNING [null]: Last record repeated again.
Any other ideas?
Thanks!

'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".

Error message in eclipse "write access not allowed during rendering"

I have installed eclipse luna java EE for android development and have installed all the plugins and most of the software available. It was working fine untill today when i got the error while trying to open the activity_main.xml - "write access not allowed during rendering".
also this is the content of the exception stack trace :
Exception raised during rendering: com/android/layoutlib/bridge/impl/RenderSessionImpl
java.lang.ClassCastException: org.eclipse.osgi.internal.framework.EquinoxConfiguration$1 cannot be cast to java.lang.String
at org.eclipse.m2e.logback.configuration.LogHelper.logJavaProperties(LogHelper.java:26)
at org.eclipse.m2e.logback.configuration.LogPlugin.loadConfiguration(LogPlugin.java:189)
at org.eclipse.m2e.logback.configuration.LogPlugin.configureLogback(LogPlugin.java:144)
at org.eclipse.m2e.logback.configuration.LogPlugin.access$2(LogPlugin.java:107)
at org.eclipse.m2e.logback.configuration.LogPlugin$1.run(LogPlugin.java:62)
at java.util.TimerThread.mainLoop(Unknown Source)
at java.util.TimerThread.run(Unknown Source)
also it is worth mentioning that prior to this error i got a blue screen error in windows 8.1, which was "kernel security check failure". after that i did a memory check and found no problem. i have also installed the Genymotion emulator for android and have VT enabled in bios.
could you help me with this? thank you.
Finally i had to reinstall eclipse. The better way is to install each version of eclipse for the specific need and not to install a lot of unnecessary plugins. This according to me is the right way to use Eclipse.
If anyone has a better solution i would be happy to know it.

dev_appserver - How to get error log

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".

Script error: "An error has occured in the script on the page"

I get a error on my JSP page:
Script error: "An error has occured in the script on the page"
When I try to run the Eclipse in the debug perspective and I am closing down the browser window of the eclipse where my application is running.
Because of the error the application hangs, and I am unable to test my application.
Is there any solution to this? I have to restart my eclipse again and again.
This would lead to corrupted files.
If you're lucky, the error message is caused by an Exception. In that case, you can add a Java Exception Breakpoint and the application should pause at the point where the script error is detected.

Categories