How to Set Ant Memory Options
set ANT_OPTS=-Xms256M -Xmx512M
Luc / errors and problems / poi /
POI doesn’t like: Autofilter on column headings When using InputStream inp = this.getClass().getResourceAsStream(“myfile.xls”);, you need to refresh the file in Eclipse before running tests – otherwise it uses a cached copy of the file
Luc / errors and problems / svn /
Check your admin rights haven’t vanished (For Windows, try creating a directory in Program Files)
Luc / errors and problems / cygwin /
You need sysinternals ‘Handle’ first cd /cygdrive/c/Tools ./handle.exe “absolute path in Windows format” (needs the quotes) e.g. ./handle.exe “C:\Development\workspace\my_project\”
Luc / errors and problems / spring /
Problem The error message was: Could not initialize class net.sf.cglib.proxy.Enhancer The nested exception leading up to this was: java.lang.NoClassDefFoundError: Could not initialize class net.sf.cglib.proxy.Enhancer Solution Increase Spring logging to debug in log4j.xml. The issue initially began with java.lang.NoClassDefFoundError: org/objectweb/asm/Type. The problem could be due to a class conflict: the Type class has moved in newer […]
Luc / errors and problems / jboss /
Do a find/replace for the port: netstat -ano | grep Take the pid and look in Windows Task Manager, add the pid column in Options if necessary Kill the process, or change it in the config like this: cd /PATH/jboss/local grep “badport” . -rl Or just try a restart, that will sometimes fix it
Luc / errors and problems / oracle /
Request the “DEBUG ANY PROCEDURE” privilege from your DBAs. This allows full interactive debugging of stored procs and functions in SQL Developer (probably Toad as well). In Tools/Preferences/Debugger, set ‘Prompt for Debugger…’ (use own ip address when prompted) Open the body of a package to add a breakpoint Then compile for debug Right click somewhere […]
Luc / errors and problems / bamboo /
Problem Bamboo error message: unable to retrieve source code to ‘75994’ for ‘LVI-ADMIN’ Solution Configure the plan to perform a clean checkout, see this Bamboo issue. It’s not exactly the same, but a similar issue.
Luc / errors and problems / java /
Check the field is protected not private.
Luc / errors and problems / java /
Add this to the VM arguments in the run configuration: -Dlog4j.configuration=file:/C:/PATH/log4j.xml