Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Intelligence (Analytics)
Error on previewing: "The connection was refused when attempting to contact ..."
rummicub
Recently I've lost the capability to execute previews from within eclipse's BIRT designer. I can preview the data set successfully, but when pressing the preview tab, I get a message:
"The connection was refused when attempting to contact test-host:SOME_EPHEMERAL_PORT_NUMBER"
This happens even if my report connects solely to a JDBC datasource on localhost ('test-host' is a remote host I use often).
Eclipse is spewing this stack trace to stderr:
16:01:31.049 [main] WARN org.mortbay.log - failed SelectChannelConnector@test-host:50752: java.net.BindException: Cannot assign requested address
16:01:31.051 [main] DEBUG org.mortbay.log - EXCEPTION java.net.BindException: Cannot assign requested address
at sun.nio.ch.Net.bind(Native Method) ~[na:1.6.0_20]
at sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:137) ~[na:1.6.0_20]
at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:77) ~[na:1.6.0_20]
at org.mortbay.jetty.nio.SelectChannelConnector.open(SelectChannelConnector.java:216) ~[org.mortbay.jetty.server_6.1.23.v201004211559.jar:na]
at org.mortbay.jetty.nio.SelectChannelConnector.doStart(SelectChannelConnector.java:315) ~[org.mortbay.jetty.server_6.1.23.v201004211559.jar:na]
at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50) ~[na:na]
at org.mortbay.jetty.Server.doStart(Server.java:235) ~[na:na]
at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50) ~[na:na]
at org.eclipse.equinox.http.jetty.internal.HttpServerManager.updated(HttpServerManager.java:109) ~[na:na]
at org.eclipse.equinox.http.jetty.internal.Activator.startServer(Activator.java:231) [org.eclipse.equinox.http.jetty_2.0.0.v20100503.jar:na]
at org.eclipse.equinox.http.jetty.JettyConfigurator.startServer(JettyConfigurator.java:44) [org.eclipse.equinox.http.jetty_2.0.0.v20100503.jar:na]
at org.eclipse.birt.report.viewer.utilities.AppServerWrapper.start(AppServerWrapper.java:159) [viewer.jar:na]
at org.eclipse.birt.report.viewer.utilities.WebappAccessor.start(WebappAccessor.java:72) [viewer.jar:na]
at org.eclipse.birt.report.viewer.utilities.WebViewer.startWebApp(WebViewer.java:766) [viewer.jar:na]
at org.eclipse.birt.report.viewer.utilities.WebViewer.display(WebViewer.java:994) [viewer.jar:na]
at org.eclipse.birt.report.viewer.utilities.WebViewer.display(WebViewer.java:988) [viewer.jar:na]
at org.eclipse.birt.report.designer.ui.preview.editors.ReportPreviewEditor.display(ReportPreviewEditor.java:573) [org.eclipse.birt.report.designer.ui.preview.web_3.7.0.v20110602.jar:na]
at org.eclipse.birt.report.designer.ui.preview.editors.ReportPreviewFormPage.refresh(ReportPreviewFormPage.java:167) [org.eclipse.birt.report.designer.ui.preview.web_3.7.0.v20110602.jar:na]
at org.eclipse.birt.report.designer.ui.preview.editors.ReportPreviewFormPage.onBroughtToTop(ReportPreviewFormPage.java:108) [org.eclipse.birt.report.designer.ui.preview.web_3.7.0.v20110602.jar:na]
at org.eclipse.birt.report.designer.ui.editors.MultiPageReportEditor.prePageChanges(MultiPageReportEditor.java:906) [org.eclipse.birt.report.designer.ui.editors_3.7.0.v20110603.jar:na]
at org.eclipse.birt.report.designer.ui.editors.IDEMultiPageReportEditor.prePageChanges(IDEMultiPageReportEditor.java:525) [org.eclipse.birt.report.designer.ui.ide_3.7.0.v20110603.jar:na]
at org.eclipse.birt.report.designer.ui.editors.MultiPageReportEditor.pageChange(MultiPageReportEditor.java:830) [org.eclipse.birt.report.designer.ui.editors_3.7.0.v20110603.jar:na]
at org.eclipse.ui.part.MultiPageEditorPart$2.widgetSelected(MultiPageEditorPart.java:290) [org.eclipse.ui.workbench_3.6.2.M20110210-1200.jar:na]
at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:234) [org.eclipse.swt.gtk.linux.x86_64_3.6.2.v3659b.jar:na]
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84) [org.eclipse.swt.gtk.linux.x86_64_3.6.2.v3659b.jar:na]
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1258) [org.eclipse.swt.gtk.linux.x86_64_3.6.2.v3659b.jar:na]
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1282) [org.eclipse.swt.gtk.linux.x86_64_3.6.2.v3659b.jar:na]
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1267) [org.eclipse.swt.gtk.linux.x86_64_3.6.2.v3659b.jar:na]
at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:1061) [org.eclipse.swt.gtk.linux.x86_64_3.6.2.v3659b.jar:na]
at org.eclipse.swt.custom.CTabFolder.setSelection(CTabFolder.java:2743) [org.eclipse.swt.gtk.linux.x86_64_3.6.2.v3659b.jar:na]
at org.eclipse.swt.custom.CTabFolder.onMouse(CTabFolder.java:1429) [org.eclipse.swt.gtk.linux.x86_64_3.6.2.v3659b.jar:na]
at org.eclipse.swt.custom.CTabFolder$1.handleEvent(CTabFolder.java:257) [org.eclipse.swt.gtk.linux.x86_64_3.6.2.v3659b.jar:na]
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84) [org.eclipse.swt.gtk.linux.x86_64_3.6.2.v3659b.jar:na]
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1258) [org.eclipse.swt.gtk.linux.x86_64_3.6.2.v3659b.jar:na]
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3540) [org.eclipse.swt.gtk.linux.x86_64_3.6.2.v3659b.jar:na]
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3161) [org.eclipse.swt.gtk.linux.x86_64_3.6.2.v3659b.jar:na]
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2640) [org.eclipse.ui.workbench_3.6.2.M20110210-1200.jar:na]
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2604) [org.eclipse.ui.workbench_3.6.2.M20110210-1200.jar:na]
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2438) [org.eclipse.ui.workbench_3.6.2.M20110210-1200.jar:na]
at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:671) [org.eclipse.ui.workbench_3.6.2.M20110210-1200.jar:na]
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332) [org.eclipse.core.databinding.observable_1.3.0.I20100601-0800.jar:na]
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:664) [org.eclipse.ui.workbench_3.6.2.M20110210-1200.jar:na]
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149) [org.eclipse.ui.workbench_3.6.2.M20110210-1200.jar:na]
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:115) [org.eclipse.ui.ide.application_1.0.201.M20100707-0800.jar:na]
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196) [org.eclipse.equinox.app_1.3.1.R36x_v20100803.jar:na]
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110) [org.eclipse.osgi_3.6.2.R36x_v20110210.jar:na]
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79) [org.eclipse.osgi_3.6.2.R36x_v20110210.jar:na]
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:369) [org.eclipse.osgi_3.6.2.R36x_v20110210.jar:na]
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179) [org.eclipse.osgi_3.6.2.R36x_v20110210.jar:na]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.6.0_20]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) ~[na:1.6.0_20]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.6.0_20]
at java.lang.reflect.Method.invoke(Method.java:616) ~[na:1.6.0_20]
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:620) [org.eclipse.equinox.launcher_1.1.1.R36x_v20101122_1400.jar:na]
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:575) [org.eclipse.equinox.launcher_1.1.1.R36x_v20101122_1400.jar:na]
at org.eclipse.equinox.launcher.Main.run(Main.java:1408) [org.eclipse.equinox.launcher_1.1.1.R36x_v20101122_1400.jar:na]
at org.eclipse.equinox.launcher.Main.main(Main.java:1384) [org.eclipse.equinox.launcher_1.1.1.R36x_v20101122_1400.jar:na]
Any clues?
Find more posts tagged with
Comments
CBR
Hi,
can you preview a simple report without a database connection in it? (just a simple report with one label or something like that)
rummicub
<blockquote class='ipsBlockquote' data-author="'cbrell'" data-cid="84572" data-time="1319694207" data-date="26 October 2011 - 10:43 PM"><p>
Hi,<br />
<br />
can you preview a simple report without a database connection in it? (just a simple report with one label or something like that)<br /></p></blockquote>
no.
CBR
Hi,
the preview in the BIRT designer is done with the BIRT Webviewer web application. If you click on the preview tab in eclipse the first time after BIRT designer was started it starts up a jetty webserver.
The jetty is bound to a port of your machine. The error message is saying that this port is already in use by some other process. Therefore it is not able to start up and in consequence not able to show you a preview of the report.
Another possible cause may be that you configured a different preview server in eclipse.
Have a look at this blog post:
http://birtworld.blogspot.com/2006/10/birt-preferences.html
and section Preview. Make sure that there is no content in the corresponding text fields.
rummicub
Solved. That was it: test-host was set as the host name in Report Design/Preview/Preview Server.
Thanks!