错误提示:
!ENTRY com.adobe.flexbuilder.services.J2EEService 4 1 2011-10-26 10:40:53.421
!MESSAGE Connection reset
!STACK 0
java.net.SocketException: Connection reset
at java.net.SocketInputStream.read(Unknown Source)
at java.io.BufferedInputStream.fill(Unknown Source)
at java.io.BufferedInputStream.read1(Unknown Source)
at java.io.BufferedInputStream.read(Unknown Source)
at sun.net.www.http.HttpClient.parseHTTPHeader(Unknown Source)
at sun.net.www.http.HttpClient.parseHTTP(Unknown Source)
at sun.net.www.http.HttpClient.parseHTTP(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLEntityManager.setupCurrentEntity(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLEntityManager.startEntity(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLEntityManager.startDTDEntity(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLDTDScannerImpl.setInputSource(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$DTDDriver.dispatch(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$DTDDriver.next(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$PrologDriver.next(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown Source)
at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(Unknown Source)
at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(Unknown Source)
at javax.xml.parsers.DocumentBuilder.parse(Unknown Source)
at com.adobe.flexbuilder.services.j2eeservice.DiscoverDestinationXMLParser.readXML(DiscoverDestinationXMLParser.java:65)
at com.adobe.flexbuilder.services.j2eeservice.J2EEServiceUtil.getDestinationInfos(J2EEServiceUtil.java:314)
at com.adobe.flexbuilder.services.j2eeservice.DestinationsContentProvider.popultaeDestinations(J2EEServicePage.java:484)
at com.adobe.flexbuilder.services.j2eeservice.J2EEServicePage.initialize(J2EEServicePage.java:174)
at com.adobe.flexbuilder.services.j2eeservice.J2EEServicePage.setVisible(J2EEServicePage.java:136)
at org.eclipse.jface.wizard.WizardDialog.updateForPage(WizardDialog.java:1239)
at org.eclipse.jface.wizard.WizardDialog.access$4(WizardDialog.java:1218)
at org.eclipse.jface.wizard.WizardDialog$6.run(WizardDialog.java:1207)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
at org.eclipse.jface.wizard.WizardDialog.showPage(WizardDialog.java:1205)
at org.eclipse.jface.wizard.WizardDialog.nextPressed(WizardDialog.java:894)
at com.adobe.flexbuilder.DCDService.ui.wizard.ServiceWizardDialog.nextPressed(ServiceWizardDialog.java:93)
at org.eclipse.jface.wizard.WizardDialog.buttonPressed(WizardDialog.java:426)
at org.eclipse.jface.dialogs.Dialog$2.widgetSelected(Dialog.java:624)
at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:234)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4066)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3657)
at org.eclipse.jface.window.Window.runEventLoop(Window.java:825)
at org.eclipse.jface.window.Window.open(Window.java:801)
at com.adobe.flexbuilder.DCDService.ui.wizard.ServiceWizard.show(ServiceWizard.java:190)
at com.adobe.flexbuilder.DCDService.ui.wizard.ServiceWizard.createService(ServiceWizard.java:152)
at com.adobe.flexbuilder.dcrad.views.ServiceExplorerView$1.handleEvent(ServiceExplorerView.java:528)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1077)
at org.eclipse.swt.widgets.Widget.sendSelectionEvent(Widget.java:1093)
at org.eclipse.swt.widgets.Link.wmNotifyChild(Link.java:1071)
at org.eclipse.swt.widgets.Control.wmNotify(Control.java:5098)
at org.eclipse.swt.widgets.Composite.wmNotify(Composite.java:1887)
at org.eclipse.swt.widgets.Control.WM_NOTIFY(Control.java:4728)
at org.eclipse.swt.widgets.Control.windowProc(Control.java:4217)
at org.eclipse.swt.widgets.Display.windowProc(Display.java:4886)
at org.eclipse.swt.internal.win32.OS.CallWindowProcW(Native Method)
at org.eclipse.swt.internal.win32.OS.CallWindowProc(OS.java:2362)
at org.eclipse.swt.widgets.Link.callWindowProc(Link.java:172)
at org.eclipse.swt.widgets.Widget.wmLButtonUp(Widget.java:2056)
at org.eclipse.swt.widgets.Control.WM_LBUTTONUP(Control.java:4518)
at org.eclipse.swt.widgets.Link.WM_LBUTTONUP(Link.java:909)
at org.eclipse.swt.widgets.Control.windowProc(Control.java:4198)
at org.eclipse.swt.widgets.Display.windowProc(Display.java:4886)
at org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native Method)
at org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java:2459)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3655)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2640)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2604)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2438)
at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:671)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:664)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:115)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:369)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:620)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:575)
at org.eclipse.equinox.launcher.Main.run(Main.java:1408)
!ENTRY org.eclipse.ui 4 0 2011-10-26 10:40:54.500
!MESSAGE Unhandled event loop exception
!STACK 0
java.lang.RuntimeException: java.lang.RuntimeException
at com.adobe.flexbuilder.services.j2eeservice.J2EEServicePage.setVisible(J2EEServicePage.java:149)
at org.eclipse.jface.wizard.WizardDialog.updateForPage(WizardDialog.java:1239)
at org.eclipse.jface.wizard.WizardDialog.access$4(WizardDialog.java:1218)
at org.eclipse.jface.wizard.WizardDialog$6.run(WizardDialog.java:1207)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
at org.eclipse.jface.wizard.WizardDialog.showPage(WizardDialog.java:1205)
at org.eclipse.jface.wizard.WizardDialog.nextPressed(WizardDialog.java:894)
at com.adobe.flexbuilder.DCDService.ui.wizard.ServiceWizardDialog.nextPressed(ServiceWizardDialog.java:93)
at org.eclipse.jface.wizard.WizardDialog.buttonPressed(WizardDialog.java:426)
at org.eclipse.jface.dialogs.Dialog$2.widgetSelected(Dialog.java:624)
at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:234)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4066)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3657)
at org.eclipse.jface.window.Window.runEventLoop(Window.java:825)
at org.eclipse.jface.window.Window.open(Window.java:801)
at com.adobe.flexbuilder.DCDService.ui.wizard.ServiceWizard.show(ServiceWizard.java:190)
at com.adobe.flexbuilder.DCDService.ui.wizard.ServiceWizard.createService(ServiceWizard.java:152)
at com.adobe.flexbuilder.dcrad.views.ServiceExplorerView$1.handleEvent(ServiceExplorerView.java:528)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1077)
at org.eclipse.swt.widgets.Widget.sendSelectionEvent(Widget.java:1093)
at org.eclipse.swt.widgets.Link.wmNotifyChild(Link.java:1071)
at org.eclipse.swt.widgets.Control.wmNotify(Control.java:5098)
at org.eclipse.swt.widgets.Composite.wmNotify(Composite.java:1887)
at org.eclipse.swt.widgets.Control.WM_NOTIFY(Control.java:4728)
at org.eclipse.swt.widgets.Control.windowProc(Control.java:4217)
at org.eclipse.swt.widgets.Display.windowProc(Display.java:4886)
at org.eclipse.swt.internal.win32.OS.CallWindowProcW(Native Method)
at org.eclipse.swt.internal.win32.OS.CallWindowProc(OS.java:2362)
at org.eclipse.swt.widgets.Link.callWindowProc(Link.java:172)
at org.eclipse.swt.widgets.Widget.wmLButtonUp(Widget.java:2056)
at org.eclipse.swt.widgets.Control.WM_LBUTTONUP(Control.java:4518)
at org.eclipse.swt.widgets.Link.WM_LBUTTONUP(Link.java:909)
at org.eclipse.swt.widgets.Control.windowProc(Control.java:4198)
at org.eclipse.swt.widgets.Display.windowProc(Display.java:4886)
at org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native Method)
at org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java:2459)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3655)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2640)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2604)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2438)
at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:671)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:664)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:115)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:369)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:620)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:575)
at org.eclipse.equinox.launcher.Main.run(Main.java:1408)
Caused by: java.lang.RuntimeException
at com.adobe.flexbuilder.services.j2eeservice.J2EEServicePage.initialize(J2EEServicePage.java:187)
at com.adobe.flexbuilder.services.j2eeservice.J2EEServicePage.setVisible(J2EEServicePage.java:136)
... 60 more
相关推荐
总之,BlazeDS作为连接Java后端和Flex前端的桥梁,通过其强大的远程调用和消息传递功能,为构建高效、实时的RIA提供了强大的支持。开发者可以通过学习和掌握BlazeDS,提升应用的用户体验和交互性。
Blazeds以WAR(Web Application Archive)文件的形式发布,如"blazeds.war",这是一个标准的Java Web应用包,可以直接部署到任何支持Servlet 2.4或更高版本的Java应用服务器上,例如Tomcat、Jetty等。 **Blazeds的...
**Spring BlazeDS Integration** 是一个强大的技术组合,它允许开发者使用Spring框架在后端服务器上进行业务逻辑处理,同时利用Adobe Flex在前端构建富互联网应用程序(RIA)。BlazeDS是Adobe提供的一种开源服务器端...
6. **Flex Builder集成**:在Flex Builder(现为Adobe Flash Builder)中,Blazeds作为服务器连接选项,提供了直观的配置界面和代码自动生成,极大地简化了开发流程。 在提供的文件“blazeds-bin-readme.htm”中,...
1. **配置BlazeDS**:在服务器上安装并配置BlazeDS,将它与Java应用程序服务器(如Tomcat)集成。 2. **创建Flex项目**:在Flex Builder中创建新项目,设置服务器连接和数据源。 3. **定义服务**:在BlazeDS配置文件...
综上所述,Flex工具BlazDS是Flex开发中不可或缺的一部分,它简化了Flex应用与Java后端的集成,提升了数据传输效率,为开发高质量的RIA提供了强大支持。理解并熟练使用BlazeDS,能够帮助开发者构建出响应迅速、功能...
2. **Remoting**:BlazeDS通过AMF协议实现实时远程调用,使得客户端可以透明地调用服务器上的Java方法。 3. **MessageBrokering**:它允许客户端和服务器之间的消息传递,支持发布/订阅模型,常用于实现事件驱动的...
你可以将此WAR文件部署到支持Servlet 2.4或更高版本的任何Java应用服务器上,如Tomcat、Jetty等,以启用BlazeDS的功能。 2. **blazeds-bin-readme.htm**:这是BlazeDS的二进制发行版的阅读指南。文件中通常会包含...
总的来说,BlazeDS是连接Flex前端和Java后端的强大工具,尤其适合需要实时数据同步和低延迟通信的Web应用。通过学习这个实例,你可以进一步提升在RIA开发中的技能,掌握基于BlazeDS的分布式系统构建。
- **Sample Applications**: 一些预配置的示例项目,演示了如何使用Blazeds连接到不同的服务器技术,并进行数据交换。 - **Documentation**: 可能包含Blazeds的官方文档,帮助开发者理解如何使用这个框架。 - **...
创建`flexDemo.mxml`文件,使用MX组件库,定义一个`RemoteObject`以连接到Java的`HelloWorld`服务,一个按钮触发调用,一个文本输入框接收用户输入,以及一个标签显示返回结果。 10. **实现远程调用** 在MXML的`...
- **配置 Flex 应用**: 在 Flex 应用中配置 Blazeds 客户端,确保与服务器端建立正确的连接。 - **远程服务调用**: 使用 Blazeds 的 Remoting API 实现与 Java 服务端的远程方法调用。 - **实时消息传递**: 利用 ...
开发者可以在Tomcat上配置BlazeDS,创建通道服务,如HTTP Streaming或PollingDuplex,以便于客户端与服务器进行实时数据交换。Flex应用程序通过HTTP或HTTPS请求与BlazeDS服务建立连接,然后可以使用Remoting或...
### 建立连接BlazeDS远程端的Flex应用程序 #### 深入解析:BlazeDS在Flex与后台代码交互中的角色 BlazeDS是一款由Adobe开发的强大服务器端技术,用于实现Flex、AIR和Java应用程序之间的实时通信。它允许开发者在...
BlazeDS 是一款基于 Java 的服务器端远程方法调用(Remoting)和实时Web消息传递技术,由Adobe官方提供,它使得开发者能够轻松地将Flex和Adobe AIR应用程序连接到后端分布式数据,并实现实时数据推送,从而创建更具...
### Flex+BlazeDS 实现与 MySQL 连接数据库 #### 一、概述 随着互联网技术的发展,跨平台的应用程序开发越来越受到重视。Adobe Flex 和 BlazeDS 的组合为开发者提供了强大的工具来创建高性能且功能丰富的应用程序...
然后,在Flex4的MXML或AS3代码中,我们可以创建对应的客户端代理类,通过BlazeDS连接到Spring服务。当模拟的数据库列表返回时,这些数据将被自动序列化为AMF格式,通过HTTP或Long-Polling通道发送到Flex客户端。 在...
5. 建立连接:在Flex客户端,使用RemoteObject或HTTPService组件连接到BlazeDS服务。 6. 测试与调试:运行Flex应用,确保前端和后端的通信正常。 **最佳实践** 1. 数据传输优化:使用AMF减少网络传输开销,提高数据...
数据绑定是Flex的一个强大特性,它允许你将UI组件直接连接到应用程序的数据模型。在教程中,你将学习如何使用数据绑定来动态更新UI,当后端数据发生变化时,界面会自动更新。 在BlazeDS中,Channel Set和Proxy是两...