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

cfcompile problem

Community Beginner ,
Jan 30, 2009 Jan 30, 2009
I’m trying to use cfcompile but so far have had no luck, everything works locally but by the time I move it to an online server and I get

Error Occurred While Processing Request
unexpected constant #2 36

Am I doing something stupidly wrong? And suggestions would help.

Thanks
J
623
Translate
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 ,
Jan 30, 2009 Jan 30, 2009
> Am I doing something stupidly wrong? And suggestions would help.

I suspect the server is running a different JVM than the one you used to
compile the files.

--
Adam
Translate
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
Community Beginner ,
Feb 01, 2009 Feb 01, 2009
Hi thanks for that. Does this mean that CFcompile is not a very reliable tool? if the JVM is different or upgraded then the application could fail to work, is that right?

I'm trying to package an application so the core code cannot be changed, in CF5/mx I had a good encrypt program that would encrypt all of the templates, but it does not work with CF7 Or CF8. I know that encrypting files in not a perfect solution, but it is an option. Is there a tool out the to encrypt an entire site in CF7/8?
Translate
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 ,
Feb 01, 2009 Feb 01, 2009
LATEST
> Hi thanks for that. Does this mean that CFcompile is not a very reliable tool?

Completely reliable. It's just the way compilation works: one needs to
compile the code for the platform (in this case: the JVM version) it's
going to run on.


> if the JVM is different or upgraded then the application could fail to work, is
> that right?

Yep.

I'm not sure how exactly spot on one needs to be with the JVM versions, as
I've only ever fallen afoul of it once, and after that I've just compiled
the code on the box that will be running it. I realise not everyone has
this luxury, but I do, so I've never needed a more generic solution.


> I'm trying to package an application so the core code cannot be changed, in
> CF5/mx I had a good encrypt program that would encrypt all of the templates,

It's not that good, to be honest. It's very easy to reverse the
encryption. Compilation is a far better code obfuscation process because
even though the resultant class files can be decompiled, they decompile to
JAVA, not CF.


> but it does not work with CF7 Or CF8.

Well... as far as I know it does. I've certainly been on the receiving end
of encrypted applications that were written for CFMX7 / CF8 and they run
fine. And they decrypt with the same old tools I always use, so the
encryption scheme seems the same too. It's not something I ever do with my
own code, so I'm not that expert in the ins and outs.


> I know that encrypting files in not a
> perfect solution, but it is an option. Is there a tool out the to encrypt an
> entire site in CF7/8?

Yep, the same one as before: cfencode. In my installation it's located at
[JRun dir]\servers\[CF instance
name]\cfusion-ear\cfusion-war\WEB-INF\cfusion\bin\cfencode.exe

--
Adam
Translate
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