Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Solaris-Motif SWT Browser Bug (thinks its on linux)
Solaris-Motif SWT Browser Bug (thinks its on linux) [message #456415] Thu, 02 June 2005 19:28 Go to next message
Scott Senst is currently offline Scott SenstFriend
Messages: 2
Registered: July 2009
Junior Member
Hi. I am using the new 3.1RC1 download of eclipse and testing my app on
Solris-Motif for the first time. When my RCP tries to start up, it gets
an SWT error trying to create the Browser object:

org.eclipse.swt.SWTError: No more handles [Unsupported platform]
at org.eclipse.swt.SWT.error(SWT.java:2966)
at org.eclipse.swt.browser.Browser.<init>(Browser.java:119)
at
com.lsi.rw.ui.error.widgets.RapidWorxErrorMainWidget.<init>(RapidWorxErrorMainWidget.java:74)
at
com.lsi.rw.ui.error.views.RapidWorxErrorsView.createPartCont rol(RapidWorxErrorsView.java:46)
at
org.eclipse.ui.internal.ViewReference.createPartHelper(ViewR eference.java:305)
at
org.eclipse.ui.internal.ViewReference.createPart(ViewReferen ce.java:180)
at
org.eclipse.ui.internal.WorkbenchPartReference.getPart(Workb enchPartReference.java:551)
at org.eclipse.ui.internal.PartPane.setVisible(PartPane.java:28 3)
at org.eclipse.ui.internal.ViewPane.setVisible(ViewPane.java:51 4)
at
org.eclipse.ui.internal.presentations.PresentablePart.setVis ible(PresentablePart.java:126)
at
org.eclipse.ui.internal.presentations.util.PresentablePartFo lder.select(PresentablePartFolder.java:271)
at
org.eclipse.ui.internal.presentations.util.LeftToRightTabOrd er.select(LeftToRightTabOrder.java:65)
at
org.eclipse.ui.internal.presentations.util.TabbedStackPresen tation.selectPart(TabbedStackPresentation.java:391)
at
org.eclipse.ui.internal.PartStack.refreshPresentationSelecti on(PartStack.java:1106)
at org.eclipse.ui.internal.PartStack.setSelection(PartStack.jav a:1055)
at org.eclipse.ui.internal.PartStack.showPart(PartStack.java:12 60)
at org.eclipse.ui.internal.PartStack.createControl(PartStack.ja va:576)
at org.eclipse.ui.internal.PartStack.createControl(PartStack.ja va:528)
at
org.eclipse.ui.internal.PartSashContainer.createControl(Part SashContainer.java:485)
at
org.eclipse.ui.internal.PerspectiveHelper.activate(Perspecti veHelper.java:230)
at org.eclipse.ui.internal.Perspective.onActivate(Perspective.j ava:813)
at
org.eclipse.ui.internal.WorkbenchPage.onActivate(WorkbenchPa ge.java:2153)
at
org.eclipse.ui.internal.WorkbenchWindow$5.run(WorkbenchWindo w.java:2354)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator .java:69)
at
org.eclipse.ui.internal.WorkbenchWindow.setActivePage(Workbe nchWindow.java:2336)
at
org.eclipse.ui.internal.WorkbenchWindow.busyOpenPage(Workben chWindow.java:679)
at
org.eclipse.ui.internal.Workbench.busyOpenWorkbenchWindow(Wo rkbench.java:668)
at
org.eclipse.ui.internal.Workbench.doOpenFirstTimeWindow(Work bench.java:1277)
at
org.eclipse.ui.internal.Workbench.openFirstTimeWindow(Workbe nch.java:1221)
at
org.eclipse.ui.internal.WorkbenchConfigurer.openFirstTimeWin dow(WorkbenchConfigurer.java:190)
at
org.eclipse.ui.application.WorkbenchAdvisor.openWindows(Work benchAdvisor.java:706)
at org.eclipse.ui.internal.Workbench.init(Workbench.java:1032)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1631)
at
org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:366)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:143)
at com.lsi.rw.ui.rcp.Application.run(Application.java:21)
at
org.eclipse.core.internal.runtime.PlatformActivator$1.run(Pl atformActivator.java:226)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:375)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:162)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.eclipse.core.launcher.Main.invokeFramework(Main.java:334 )
at org.eclipse.core.launcher.Main.basicRun(Main.java:278)
at org.eclipse.core.launcher.Main.run(Main.java:973)
at org.eclipse.core.launcher.Main.main(Main.java:948)


This error is thrown in the Browser class delivered in the
swt-3.1RC1-motif-solaris-sparc.zip. The error is caused by the following
(incorrect) check in the SWT Browser code:

public Browser(Composite parent, int style) {
super(parent,style | SWT.EMBEDDED);

if (!IsLinux) {
dispose();
SWT.error(SWT.ERROR_NO_HANDLES, null, " [Unsupported platform]");
//$NON-NLS-1$
}


What should I do here?? How do I test that I have the correct SWT
fragments loaded?

Thanks,
-scott
Re: Solaris-Motif SWT Browser Bug (thinks its on linux) [message #456416 is a reply to message #456415] Thu, 02 June 2005 19:41 Go to previous messageGo to next message
Scott Senst is currently offline Scott SenstFriend
Messages: 2
Registered: July 2009
Junior Member
Oops, the Browser class was delivered in the
eclipse-SDK-3.1RC1-solaris-motif.zip download. Did this just get deployed
with the linux Browser class or something??
-scott
Re: Solaris-Motif SWT Browser Bug (thinks its on linux) [message #456431 is a reply to message #456416] Fri, 03 June 2005 13:27 Go to previous message
Grant Gayed is currently offline Grant GayedFriend
Messages: 2150
Registered: July 2009
Senior Member
The problem you're seeing is that the embedded browser is not currently
supported on Solaris. The request for this is
https://bugs.eclipse.org/bugs/show_bug.cgi?id=77217 . The Browser class is
included in the solaris-motif download because all of the motif downloads
include the same java code, but the isLinux check that you encountered is a
runtime check that fails when attempting to use the motif codebase's Browser
on a non-linux platform.

Grant

"Scott Senst" <ssenst@lsil.com> wrote in message
news:e67969cfb450824a245ab597aabafa86$1@www.eclipse.org...
> Oops, the Browser class was delivered in the
> eclipse-SDK-3.1RC1-solaris-motif.zip download. Did this just get deployed
> with the linux Browser class or something??
> -scott
>
Previous Topic:Button SWT.Check mirrored
Next Topic:Eclipse Forms Problem
Goto Forum:
  


Current Time: Fri Apr 26 00:49:41 GMT 2024

Powered by FUDForum. Page generated in 0.03579 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top