• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Java Class problem after replacing with new Class

Guest
Sep 06, 2007 Sep 06, 2007

Copy link to clipboard

Copied

Hi,

I made a java class on an ColdFusion 7.02 server (linux red hat 3.2)
At first it worked perfectly.
Then I made a new version with some extra methods, replaced it, restarted the service and clearing the cache. But still it doesn't find any of the new methods, but it does find the old ones. What can I do?
TOPICS
Advanced techniques

Views

579

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Engaged , Sep 07, 2007 Sep 07, 2007
Is there any way you can verify the version of the .class file on the server? Perhaps human error?

How are you accessing and using the class? Care to post some code snippets?

Votes

Translate

Translate
Engaged ,
Sep 06, 2007 Sep 06, 2007

Copy link to clipboard

Copied

Is this a multi-server installation? If so, have you tried re-starting all JRun instances? When all else fails, trying rebooting perhaps? Also, you might want to look into the "Save Class Files" setting in the CFadmin (under caching) - not sure if its relevent to your situation or not. In fact, you might want to "play" with all of the cache settings.

Eventually you will narrow down the configuration setting that is causing these headaches.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Sep 06, 2007 Sep 06, 2007

Copy link to clipboard

Copied

All else did fail. They're going to reboor later this day. Tomorrow I will see if it worked.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Sep 06, 2007 Sep 06, 2007

Copy link to clipboard

Copied

All else did fail. They're going to reboot later this day. Tomorrow I will see if it worked.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Sep 06, 2007 Sep 06, 2007

Copy link to clipboard

Copied

Even rebooting did not help.
What can be wrong?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Engaged ,
Sep 07, 2007 Sep 07, 2007

Copy link to clipboard

Copied

Is there any way you can verify the version of the .class file on the server? Perhaps human error?

How are you accessing and using the class? Care to post some code snippets?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Sep 07, 2007 Sep 07, 2007

Copy link to clipboard

Copied

CF_Yoda_MX wrote:
> Then I made a new version with some extra methods, replaced it, restarted the
> service and clearing the cache. But still it doesn't find any of the new
> methods, but it does find the old ones. What can I do?

don't know how linux handle things but under windows you'd have to stop the cf
server service in order to replace a jar/class like that. might this have
happened? are you sure you were able to physically replace the old class file?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Sep 10, 2007 Sep 10, 2007

Copy link to clipboard

Copied

LATEST
I really did physicaly replace the file. I checked it twice.

I solved the problem by making a complete new Class and calling that one with cfobject.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Documentation