Cfc object case change

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.

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.

–BrooksOn Thursday, January 26, 2017 at 11:45:24 AM UTC-5, Brooks Clark wrote:

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.

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 :slight_smile:

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 maintainedOn Thu, Jan 26, 2017 at 5:41 PM, Brooks Clark <@Brooks_Clark> wrote:

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.


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 lucee@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/
msgid/lucee/fd3bdbfb-9b1b-42a3-84bb-88eb0c761ae9%40googlegroups.com
https://groups.google.com/d/msgid/lucee/fd3bdbfb-9b1b-42a3-84bb-88eb0c761ae9%40googlegroups.com?utm_medium=email&utm_source=footer
.
For more options, visit https://groups.google.com/d/optout.


Zac Spitzer
+61 405 847 168