davemssavage / osgi-in-action

Automatically exported from code.google.com/p/osgi-in-action
Apache License 2.0
0 stars 0 forks source link

jedit example in 6.2.2 doesn't work for me #5

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Followed the instructions for running jedit with 3 bundles
2. ant jEdit.unpack
3. ant jEdit.patch
4. cd jEdit
5. ant dist
6. cd ..
7. java -Djedit.home=jEdit -jar launcher.jar jEdit

What is the expected output? What do you see instead?
I'm getting lots of exceptions about missing swing classes. Starting with
AWT-EventQueue-0: UIDefaults.getUI() failed: no ComponentUI class for: 
javax.swing.JButton

What version of the product are you using? On what operating system?
Ant 1.8.4
JDK 1.7.0_11
Windows 7 64 bit

Please provide any additional information below.

The previous examples all work for me (e.g jedit-mega.bnd)

Original issue reported on code.google.com by joern.sc...@yahoo.de on 5 Feb 2013 at 2:24

GoogleCodeExporter commented 9 years ago
Are you using the latest update from trunk which included a launch profile for 
Java7?
(see http://code.google.com/p/osgi-in-action/source/detail?r=37 for exact 
changes)

Original comment by mccu...@gmail.com on 5 Feb 2013 at 2:46

GoogleCodeExporter commented 9 years ago
Yes, I am using the modified launcher. But to be sure - what could I check?

Original comment by joern.sc...@yahoo.de on 5 Feb 2013 at 7:17

GoogleCodeExporter commented 9 years ago
Check the default.properties inside the launcher.jar in the 
chapter06/jEdit-example directory and make sure it has an entry for jre-1.7 
with all the JRE packages including javax.swing

Original comment by mccu...@gmail.com on 5 Feb 2013 at 7:34

GoogleCodeExporter commented 9 years ago
I checked the launcher.jar for java 1.7. It contains the correct 
default.properties. Tried the example with java 1.6 both with 32-bit and 
64-bit. Same error for all versions.
I'm attaching the jar's built with the sequence above.

Original comment by joern.sc...@yahoo.de on 6 Feb 2013 at 11:15

Attachments:

GoogleCodeExporter commented 9 years ago
... here's the stacktrace for the exception that's thrown multiple times

Original comment by joern.sc...@yahoo.de on 6 Feb 2013 at 11:18

GoogleCodeExporter commented 9 years ago
attaching stack trace

Original comment by joern.sc...@yahoo.de on 6 Feb 2013 at 11:20

Attachments:

GoogleCodeExporter commented 9 years ago
Does adding "-Dorg.osgi.framework.bootdelegation=javax.swing.plaf.*" to the 
command help?

Original comment by mccu...@gmail.com on 6 Feb 2013 at 10:57

GoogleCodeExporter commented 9 years ago
Yes, it does - to some extent. The exceptions are gone now but the UI pops up 
without the toolbar. I'm attaching two screenshots, jedit-megabnd.jpg shows the 
UI when running with the 'mega' bundle, jedit-bundles.jpg the one using three 
bundles.

Original comment by joern.sc...@yahoo.de on 7 Feb 2013 at 8:16

Attachments:

GoogleCodeExporter commented 9 years ago
I'm having the exact same problems. tried the same steps and get the same 
results. Any solutions?
Thx

Original comment by faulb...@gmail.com on 11 Oct 2013 at 9:44

GoogleCodeExporter commented 9 years ago
Another Things is: subsequent examples are not working. I can't install the 
calculator because after starting jedit the OSGi way with the fix mentioned in 
#7, i have no osgi console to install the bundle or to start it. Help would be 
much appreciated.
Thx

Original comment by faulb...@gmail.com on 11 Oct 2013 at 10:07

GoogleCodeExporter commented 9 years ago
@faulbele - which java version and which OS are you using?

Original comment by mccu...@gmail.com on 11 Oct 2013 at 10:44

GoogleCodeExporter commented 9 years ago
I am stucking in the below issue, when I am trying to seperate the application 
into 
three bundles.
Do you have any idea ?

[error] AWT-EventQueue-0: UIDefaults.getUI() failed: no ComponentUI class for: 
javax.swing.JButton[,0,0,0x0,invalid,alignmentX=0.0,alignmentY=0.0,bord
er=,flags=0,maximumSize=,minimumSize=,preferredSize=,defaultIcon=,disabledIcon=,
disabledSelectedIcon=,margin=null,paintBorder=true,paintFocus=true,pre
ssedIcon=,rolloverEnabled=false,rolloverIcon=,rolloverSelectedIcon=,selectedIcon
=,text=Close,defaultCapable=true]
[error] AWT-EventQueue-0: java.lang.Error
[error] AWT-EventQueue-0:  at javax.swing.UIDefaults.getUIError(Unknown Source)
[error] AWT-EventQueue-0:  at javax.swing.MultiUIDefaults.getUIError(Unknown 
Source)
[error] AWT-EventQueue-0:  at javax.swing.UIDefaults.getUI(Unknown Source)
[error] AWT-EventQueue-0:  at javax.swing.UIManager.getUI(Unknown Source)
[error] AWT-EventQueue-0:  at javax.swing.JButton.updateUI(Unknown Source)
[error] AWT-EventQueue-0:  at javax.swing.AbstractButton.init(Unknown Source)
[error] AWT-EventQueue-0:  at javax.swing.JButton.<init>(Unknown Source)
[error] AWT-EventQueue-0:  at javax.swing.JButton.<init>(Unknown Source)
[error] AWT-EventQueue-0:  at 
org.gjt.sp.jedit.search.SearchDialog.createButtonsPanel(SearchDialog.java:591)
[error] AWT-EventQueue-0:  at 
org.gjt.sp.jedit.search.SearchDialog.<init>(SearchDialog.java:295)
[error] AWT-EventQueue-0:  at 
org.gjt.sp.jedit.search.SearchDialog.preloadSearchDialog(SearchDialog.java:77)
[error] AWT-EventQueue-0:  at org.gjt.sp.jedit.View.<init>(View.java:1219)
[error] AWT-EventQueue-0:  at org.gjt.sp.jedit.jEdit.newView(jEdit.java:2141)
[error] AWT-EventQueue-0:  at 
org.gjt.sp.jedit.PerspectiveManager$PerspectiveHandler.endElement(PerspectiveMan
ager.java:344)
[error] AWT-EventQueue-0:  at 
com.microstar.xml.XmlParser.parseETag(XmlParser.java:1041)
[error] AWT-EventQueue-0:  at 
com.microstar.xml.XmlParser.parseContent(XmlParser.java:1112)
[error] AWT-EventQueue-0:  at 
com.microstar.xml.XmlParser.parseElement(XmlParser.java:947)
[error] AWT-EventQueue-0:  at 
com.microstar.xml.XmlParser.parseContent(XmlParser.java:1118)
[error] AWT-EventQueue-0:  at 
com.microstar.xml.XmlParser.parseElement(XmlParser.java:947)
[error] AWT-EventQueue-0:  at 
com.microstar.xml.XmlParser.parseDocument(XmlParser.java:496)
[error] AWT-EventQueue-0:  at 
com.microstar.xml.XmlParser.doParse(XmlParser.java:176)
[error] AWT-EventQueue-0:  at 
com.microstar.xml.XmlParser.parse(XmlParser.java:146)
[error] AWT-EventQueue-0:  at 
org.gjt.sp.jedit.PerspectiveManager.loadPerspective(PerspectiveManager.java:81)
[error] AWT-EventQueue-0:  at org.gjt.sp.jedit.jEdit$5.run(jEdit.java:3450)
[error] AWT-EventQueue-0:  at java.awt.event.InvocationEvent.dispatch(Unknown 
Source)
[error] AWT-EventQueue-0:  at java.awt.EventQueue.dispatchEventImpl(Unknown 
Source)
[error] AWT-EventQueue-0:  at java.awt.EventQueue.access$200(Unknown Source)
[error] AWT-EventQueue-0:  at java.awt.EventQueue$3.run(Unknown Source)
[error] AWT-EventQueue-0:  at java.awt.EventQueue$3.run(Unknown Source)
[error] AWT-EventQueue-0:  at 
java.security.AccessController.doPrivileged(Native Method)
[error] AWT-EventQueue-0:  at 
java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
[error] AWT-EventQueue-0:  at java.awt.EventQueue.dispatchEvent(Unknown Source)
[error] AWT-EventQueue-0:  at 
java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
[error] AWT-EventQueue-0:  at 
java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
[error] AWT-EventQueue-0:  at 
java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
[error] AWT-EventQueue-0:  at java.awt.EventDispatchThread.pumpEvents(Unknown 
Source)
[error] AWT-EventQueue-0:  at java.awt.EventDispatchThread.pumpEvents(Unknown 
Source)
[error] AWT-EventQueue-0:  at java.awt.EventDispatchThread.run(Unknown Source)

Original comment by xusl...@gmail.com on 22 Jul 2014 at 7:24

Attachments:

GoogleCodeExporter commented 9 years ago
And I have add the profile change for the launcher.jar.

Original comment by xusl...@gmail.com on 22 Jul 2014 at 7:25