SCRIPT5007: Unable to get value of the property ‘display’: object is null or undefined flexigrid.js, line 692 character 5


If you get the exception mentioned below while using Flexigrid in your project

SCRIPT5007: Unable to get value of the property ‘display’: object is
null or undefined
flexigrid.js, line 692 character 5

Try to use Microsoft IE Developer tools first and my problem was related to removing the last coma in colModel

colModel :{display: ‘Row ID’, name : ‘id’, width : 100, sortable : false, align: ‘left’, hide: true},
{display: ”, name : ”, width : 100, sortable : true, align: ‘left’},
{display: ”, name : ”, width : 100, sortable : true, align: ‘left’},
{display: ”, name : ”, width : 150, sortable : true, align: ‘left’},
{display: ”, name : ”, width : 150, sortable : false, align: ‘left’},
{display: ”, name : ”, width : 150, sortable : true, align: ‘left’},
},

Advertisements

java.lang.NoClassDefFoundError: com/jhlabs/image/UnsharpFilter


For the exception mentioned below;

Exception in thread “main” java.lang.NoClassDefFoundError: com/jhlabs/image/UnsharpFilter
at com.mortennobel.imagescaling.AdvancedResizeOp.filter(AdvancedResizeOp.java:84)
at ImageService.scaleImage(ImageService.java:21)
at ImageService.main(ImageService.java:31)
Caused by: java.lang.ClassNotFoundException: com.jhlabs.image.UnsharpFilter
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
… 3 more

You need to download Filters.jar (Java Image Processing Filters) from the following link;

http://www.jhlabs.com/ip/filters/download.html

java.util.regex.PatternSyntaxException: Unmatched closing ‘)’ solution


If you encountered the following exception during run time;

java.util.regex.PatternSyntaxException: Unmatched closing ‘)’
Change your code such as the following for the parenthesis

String replaced = string.replaceFirst(“)“, “replaced”);  –> run time exception
String replaced = string.replaceFirst(“\\)“, “replaced”); –> correct usage