cfc object case change

98 views
Skip to first unread message

Brooks Clark

unread,
Jan 26, 2017, 11:45:24 AM1/26/17
to Lucee
This is a part Railo, part Lucee question.

We recently implemented an electronic document management system (EDMS). The EDMS offers a SOAP service to allow for custom updates to its database.  The service uses Railo.  Railo periodically regenerates the cfc files and sometimes this regeneration results in a font case changes which breaks our vb.net client application.

For example
* We create proxy files in our client application, compile it, test it, deploy it.  The proxy files include the following entries:

System.Xml.Serialization.SoapTypeAttribute(TypeName:="ws.field", [Namespace]:="http://rpc.xml.cfml/ws/TaskService.cfc")>

        <System.Xml.Serialization.SoapElementAttribute(IsNullable:=true)> _
        Public Property fields() As wsfield()
            Get
                Return Me.fieldsField
            End Get
            Set
                Me.fieldsField = value
            End Set
        End Property
NOTE the lower case "f" in ws.field and wsfield.
* Weeks pass and the application works fine until one day it does not (a call to the service generates the following exception: "The specified type was not recognized: name='ws.field', namespace='http://rpc.xml.cfml/ws/TaskService.cfc'...).

Regeneration of the client proxy files results in the client application working again.  Examination of the proxy files after regeneration shows a change in case of certain classes and properties:
System.Xml.Serialization.SoapTypeAttribute(TypeName:="ws.Field", [Namespace]:="http://rpc.xml.cfml/ws/TaskService.cfc")>
Public Property fields() As wsField()
etc.
We are looking prevent the periodic recompilation of the cfc files or otherwise prevent the change in case.
1. Is this a bug in Railo?  Is there a setting in the Railo Administrator that might fix this?
2. Might uninstalling Railo and installing Lucee fix the problem?
3. Is there some other option that we have not considered?
Thank you and my apologies if I have not clearly stated something.  This is my first exposure to Railo.

Zac Spitzer

unread,
Jan 27, 2017, 4:18:17 AM1/27/17
to lu...@googlegroups.com
that's a strange problem 

how often does the regeneration occur? 

nice bug report, it's very clear, tho you forgot to mention the exact railo version number :)

I'd suggest trying out the latest stable lucee version, any bugs in railo aren't going to be fixed,
whilst lucee is being actively maintained



--
You received this message because you are subscribed to the Google Groups "Lucee" group.
To unsubscribe from this group and stop receiving emails from it, send an email to lucee+unsubscribe@googlegroups.com.
To post to this group, send email to lu...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/lucee/fd3bdbfb-9b1b-42a3-84bb-88eb0c761ae9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Zac Spitzer
+61 405 847 168

Brooks Clark

unread,
Jan 27, 2017, 10:31:19 AM1/27/17
to Lucee
Thanks Zac.  The Railo version displays as "4.2.1.007 final" in the Railo Administrator.

I am still trying to fully understand when the files are regenerated.  Perhaps they are cached and the cache expires if they have not been used in a while causing them to be cleared.  One thing that is definitely true is that a restart of our EDMS application (or a reboot of the server) will clear these files.  Then the next time the service is called, the files reappear.

I had hoped that there was some setting in Railo that would cause these cfc files to persist.  So far I have not seen anything like that in the Railo Administrator.

Switching to Lucee may be a possibility but it's hard to say whether our EDMS will still work if we do that.  The EDMS came bundled with Railo.

--Brooks

Brooks Clark

unread,
Apr 6, 2017, 3:42:27 PM4/6/17
to Lucee
We have installed the latest version of the EDMS.  It appears to be using Lucee version 4.5.3.017.  I am seeing the same behavior (same bug).
To unsubscribe from this group and stop receiving emails from it, send an email to lucee+un...@googlegroups.com.

To post to this group, send email to lu...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/lucee/fd3bdbfb-9b1b-42a3-84bb-88eb0c761ae9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages