tracker issue : CF-3039192

select a category, or use search below
(searches all categories and all time range)
Title:

Bug 78630:[JFERNANDES]the new <coldfusion> metadata from custom serialization are not supported inside NIO endpoints

| View in Tracker

Status/Resolution/Reason: Closed/Withdrawn/

Reporter/Name(from Bugbase): João Fernandes / João Fernandes (Joao Fernandes)

Created: 07/09/2009

Components: Flex/Flash, Flex remoting

Versions: 9.0

Failure Type: Unspecified

Found In Build/Fixed In Build: 0000 /

Priority/Frequency: Normal / Unknown

Locale/System: English / Platforms All

Vote Count: 0

Duplicate ID:	CF-3038537

Problem:

[JFERNANDES]the new <coldfusion> metadata from custom serialization are not supported inside NIO endpoints.




Method:

1)Create a shared server definition in services-config.xml

<servers>
       <server id="cf-nio-server" class="flex.messaging.socketserver.SocketServer"/>   
</servers>
2) Add a NIO endpoint with custom serialization

  <channel-definition id="my-nio-amf" class="mx.messaging.channels.AMFChannel">
  	<endpoint url="http://{server.name}:2080/nioamf" class="flex.messaging.endpoints.NIOAMFEndpoint"/>
  	<server ref="cf-nio-server"/>
  	<properties>
        	<coldfusion>
	    		<access>
	    			<use-mappings>true</use-mappings>
	    			<method-access-level>remote</method-access-level>
	    		</access>
	    		
	    		<use-accessors>true</use-accessors>
	    		<use-implicit-accessors>false</use-implicit-accessors> 
	    		<use-structs>false</use-structs>
	     		<property-case>
	    			<force-cfc-lowercase>false</force-cfc-lowercase>
	    			<force-query-lowercase>false</force-query-lowercase>
	    			<force-struct-lowercase>false</force-struct-lowercase>
	    		</property-case>
		</coldfusion>      
	</properties>
</channel-definition>

3)Start the server
4)Check the logs

Result:

javax.servlet.UnavailableException: Unrecognized tag found in <properties>.  Please consult the documentation to determine if the tag is invalid or belongs inside of a different tag: 
  '/coldfusion' in channel with id: 'my-streaming-nio-amf' from file: services-config.xml
  '/coldfusion' in channel with id: 'my-nio-polling-amf' from file: services-config.xml
  '/coldfusion' in channel with id: 'my-nio-amf' from file: services-config.xml
	at flex.messaging.MessageBrokerServlet.init(MessageBrokerServlet.java:170)
	at coldfusion.flex.ColdFusionMessageBrokerServlet.init(ColdFusionMessageBrokerServlet.java:25)
	at coldfusion.bootstrap.ClassloaderHelper.initServletClass(ClassloaderHelper.java:94)
	at coldfusion.bootstrap.BootstrapServlet.init(BootstrapServlet.java:59)
	at jrun.servlet.WebApplicationService.loadServlet(WebApplicationService.java:1213)
	at jrun.servlet.WebApplicationService.preloadServlets(WebApplicationService.java:793)
	at jrun.servlet.WebApplicationService.postStart(WebApplicationService.java:295)
	at jrun.ea.EnterpriseApplication.start(EnterpriseApplication.java:203)
	at jrun.deployment.DeployerService.initModules(DeployerService.java:708)
	at jrun.deployment.DeployerService.createWatchedDeployment(DeployerService.java:243)
	at jrun.deployment.DeployerService.deploy(DeployerService.java:428)
	at jrun.deployment.DeployerService.checkWatchedDirectories(DeployerService.java:179)
	at jrun.deployment.DeployerService.run(DeployerService.java:889)
	at jrunx.scheduler.SchedulerService.invokeRunnable(SchedulerService.java:230)
	at jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable(ThreadPool.java:428)
	at jrunx.scheduler.WorkerThread.run(WorkerThread.java:66)
09/07 11:58:58 user failed to load: coldfusion.flex.ColdFusionMessageBrokerServlet
09/07 11:58:58 error Could not pre-load servlet: MessageBrokerServlet

----------------------------- Additional Watson Details -----------------------------

Watson Bug ID:	3039192

External Customer Info:
External Company:  
External Customer Name: João Fernandes
External Customer Email: 4E9A42C244586146992015D5
External Test Config: 07/09/2009

Attachments:

Comments: