Steven Erat's Blog
 
 
Viewing By Entry
 
 

TalkingTree  [VAdministration] or [Java bean field] errors occur when using CFMX 7 on JVM 1.5

 

ColdFusion MX 7 and 7.01 ship with JVM version 1.4.2.05 as the default JVM. If you are installing the WAR or EAR option of ColdFusion on an existing version of of JRun, then you may not be using this 'default' JVM since JRun permits you to choose a pre-installed JVM when initally instaling JRun4.

If you are using Sun JVM 1.5 in either Server Configuration, Multiserver Config, or J2EE Config then you may encounter a variety of errors that occur regarding the Verity K2 Search Server. Verity K2 ships with ColdFusion MX 7/7.01 and the encyrption libraries don't work with JVM 1.5, and that JVM version is not supported for use with ColdFusion MX 7/7.01.

# VM configuration
#
# Where to find JVM, if {java.home}/jre exists then that JVM is used
# if not then it must be the path to the JRE itself
# Default JVM 1.4.2_05 works
# java.home=C:/CFusionMX7/runtime/jre
# JVM 1.5 breaks CF and is unsupported
java.home=C:/jdk1.5.0_01/jre

11/14 08:14:45 user ColdFusionStartUpServlet: init
11/14 08:14:45 user ColdFusionStartUpServlet: ColdFusion MX: Starting application services
11/14 08:14:45 user ColdFusionStartUpServlet: ColdFusion MX: VM version = 1.5.0_01-b08
11/14 08:14:46 Information [main] - Starting logging...

You may encounter the following errors during the ColdFusion Settings Wizard (part 2 of installation) if you are using the JRun J2EE configuration for CFMX with the 1.5 JVM, or you may encounter it if you changed the JVM from 1.4 to 1.5 after the original installation:

[1]java.lang.ExceptionInInitializerError
at com.verity.administration.VAdmin.<init>(Unknown Source)
at com.verity.api.administration.VAdministration.<init>(Unknown Source)
at coldfusion.tagext.search.Utils$1.run(Utils.java:321)
at java.security.AccessController.doPrivileged(Native Method)
at coldfusion.tagext.search.Utils.adminConnect(Utils.java:318)
at coldfusion.verity.VerityServiceImpl.getCollectiondir(VerityServiceImpl.java:82)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at coldfusion.runtime.StructBean.resolveName(StructBean.java:137)
...

11/14 08:16:10 error Java bean field access exception.
[2]java.lang.RuntimeException: Encryption algorithm not found
at com.verity.security.k2.K2Encrypt.<clinit>(Unknown Source)
at com.verity.administration.VAdmin.<init>(Unknown Source)
at com.verity.api.administration.VAdministration.<init>(Unknown Source)
at coldfusion.tagext.search.Utils$1.run(Utils.java:321)
at java.security.AccessController.doPrivileged(Native Method)
at coldfusion.tagext.search.Utils.adminConnect(Utils.java:318)
at coldfusion.verity.VerityServiceImpl.getCollectiondir(VerityServiceImpl.java:82)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
...

If you disabled the Settings Wizard after a new installation of CFMX and then entered into the CF Administrator, or if you changed the JVM version and then went back to the CF Admin, then you will see the following error when you click on the Verity page:

500 Java bean field access exception.
Java bean field access exception.

To corrrect this error, use the Sun 1.4.2_05 JVM. You can download the Sun JVM 1.4.2_05 from Sun's Archive page.

 


Comments

You can use an CF Tool called FusionReactor to safely run CFMX on JRE 1.5

(as well as general CF server monitoring)

http://www.fusion-reactor.com/

Regards,
Andreas.


While FusionReactor may allow ColdFusion to function properly on JVM 1.5 if that claim is true, Macromedia, er... Adobe, will only support ColdFusion installed as per the ColdFusion System Requirements appropriate for that version of CF.


FusionReactor makes the following statement regarding JVM 1.5 (Java 5):

[quote] I switched to Java 5 and now my ColdFusion application no longer works!     Java 5 is not yet certified by Macromedia for use with ColdFusion MX 6 or 7 and there are several ColdFusion features which do not work correctly under Java 5 (Such as query of queries with a datestamp in the where clause.) We include a fix for Verity but you should make sure your system is completely tested under Java 5 before considering this option in a production environment.[/quote]

http://www.fusion-reactor.com/support.html#java1

And their own FusionReactor System Requirements are currently Windows only.


That sounds reasonable - I guess if it was so easy then Macromedia would have already certified CFMX for JRE 1.5

We tested the Java5 runtime with three DEV servers and found it to be perfectly stable.

I haven't yet updated our enterprise server, but that's because I haven't bought a license yet :P

I wouldn't say "Go test it out in production", but it's easy to install / test and if it works then it brings some nice advantages.

The developer license is free anyway.

Regards,
Andreas.


 

 

Calendar

 
Sun Mon Tue Wed Thu Fri Sat
            1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30            

Search This Site

 
This is an exact search only

About This Site

 
I live west of Boston and work for Adobe with ColdFusion and Flex, and specialize in Linux. I'm also interested in travel and science, and I'm studyng photography at CDIA. Curious about my banner image?

More about me

Recent Entries

 
The One Light Workshop on DVD
Problems with configuring CF8..

Recent Comments

 
Posted By Jason:
You can find a great resume service at [link]

Posted By SALOMOKO:
ahh right. Are you running Tiger or Leopard? I should have specified that I've had hell with Os X 10.5.x with CF8. and right this problems doesn't ...

Posted By Sor:
Wow, I have this 160Gb Verbatim Firelite SmartDisk and since I've bought a Laptop I had this problem with the disk that wouldn't start spinning. It wo ...

recently played

 
The Game of Love
by Santana & Santana Featuring Michelle Branch
on Shaman
Get Shaman by Santana & Santana Featuring Michelle Branch on Apple's iTunes Music Store

now playing, a plug-in for itunes

Categories

 
RSS Adobe (29)
RSS Bicycling (9)
RSS Blogging (37)
RSS Books (13)
RSS Breeze (12)
RSS CFMX Podcasts (10)
RSS ColdFusion (418)
RSS Computer Technology (49)
RSS Events (25)
RSS Flash (3)
RSS Flex (17)
RSS Gadgets (10)
RSS HiTech Industry (16)
RSS Java (25)
RSS Learning (55)
RSS Linux (70)
RSS Mac OS X (21)
RSS Macromedia (28)
RSS Meetup (34)
RSS New England (60)
RSS Odds & Ends (25)
RSS Outdoors (32)
RSS Personal (26)
RSS Photography (106)
RSS Photoshop (28)
RSS Podcasts (18)
RSS Rants (19)
RSS Restaurants (8)
RSS Science (34)
RSS Spain (16)
RSS Travel (42)
RSS Video (20)
RSS Webcam (3)
RSS Writing (10)

Blogs I Read

 
Scrum Sucks
Ben Forta
Ray Camden
Kinky Solutions
Gary Gilbert
Red Hat Blogs
O'Reilly Digital Media
O'Reilly Radar
John Nack
The Strobist
Scott Kelby
Matt Kloskowski
Joe McNally
Digital Photography School
Engadget
Science Blog

RSS

 


Add to Google
Add to My Yahoo!

Aggregated By

 


Consumed By Feed-Squirrel.com
Aggregated by ColdFusionBlogger.org

Credits and Stuff

 
BlogCFC - Free ColdFusion Powered Blog Software
CJM Group - ColdFusion Website Hosting


 
 
blog | photos | flickr | referers | webcam | stats | about | contact
 
Copyright © 2008 Steven Erat. All rights reserved.
This is a personal weblog. The opinions expressed here represent my own and not those of my employer