Announcement Announcement Module
Collapse

Spring Dynamic Modules forum decommissioned in favor of Eclipse Gemini Blueprint

With the official first release of Eclipse Gemini Blueprint shipped, the migration of the Spring Dynamic Modules code base to the Eclipse Foundation, as part of the Gemini project, has been completed.

As such, this forum has been decommissioned in favour of the Eclipse Gemini forums.
See more
See less
Look and Feel problem at startup with Spring-DM Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Look and Feel problem at startup with Spring-DM

    Hi,

    When I initialize a bundle that creates a Swing JFrame object that contains a few widgets using Spring-DM (v 1.2.1), I get the exception below. When I instantiate the exact same object using a normal OSGi Activator, I don't see the exception. Despite the exception, the JFrame does appear.

    I'm running on Apple 10.6 (snow leopard) and need to pass the -Dorg.osgi.framework.bootdelegation=com.apple.laf to avoid ClassNotFoundExceptions related to the look and feel.

    Any ideas on what I need to do with the spring config to avoid the exception? I can provide a sample code as needed.



    thanks,
    Mike






    UIDefaults.getUI() failed: no ComponentUI class for: javax.swing.JViewport[,0,0,0x0,invalid,layout=javax.swing.ViewportLayout ,alignmentX=0.0,alignmentY=0.0,border=,flags=16777 224,maximumSize=,minimumSize=,preferredSize=,isVie wSizeSet=false,lastPaintPosition=,scrollUnderway=f alse]
    java.lang.Error
    at javax.swing.UIDefaults.getUIError(UIDefaults.java: 712)
    at javax.swing.MultiUIDefaults.getUIError(MultiUIDefa ults.java:133)
    at javax.swing.UIDefaults.getUI(UIDefaults.java:742)
    at javax.swing.UIManager.getUI(UIManager.java:1001)
    at javax.swing.JViewport.updateUI(JViewport.java:295)
    at javax.swing.JViewport.<init>(JViewport.java:255)
    at javax.swing.JScrollPane.createViewport(JScrollPane .java:905)
    at javax.swing.JScrollPane.<init>(JScrollPane.java:28 0)
    at javax.swing.plaf.basic.BasicComboPopup.createScrol ler(BasicComboPopup.java:543)
    at javax.swing.plaf.basic.BasicComboPopup.<init>(Basi cComboPopup.java:316)
    at com.apple.laf.AquaComboBoxPopup.<init>(AquaComboBo xPopup.java:19)
    at com.apple.laf.AquaComboBoxUI.createPopup(AquaCombo BoxUI.java:114)
    at javax.swing.plaf.basic.BasicComboBoxUI.installUI(B asicComboBoxUI.java:232)
    at com.apple.laf.AquaComboBoxUI.installUI(AquaComboBo xUI.java:35)
    at javax.swing.JComponent.setUI(JComponent.java:662)
    at javax.swing.JComboBox.setUI(JComboBox.java:236)
    at javax.swing.JComboBox.updateUI(JComboBox.java:245)
    at javax.swing.JComboBox.init(JComboBox.java:210)
    at javax.swing.JComboBox.<init>(JComboBox.java:176)
    at millhouseyyy.internal.LAFDebug.<init>(LAFDebug.jav a:18)
    at sun.reflect.NativeConstructorAccessorImpl.newInsta nce0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInsta nce(NativeConstructorAccessorImpl.java:39)
    at sun.reflect.DelegatingConstructorAccessorImpl.newI nstance(DelegatingConstructorAccessorImpl.java:27)
    at java.lang.reflect.Constructor.newInstance(Construc tor.java:513)
    at org.springframework.beans.BeanUtils.instantiateCla ss(BeanUtils.java:100)
    at org.springframework.beans.factory.support.SimpleIn stantiationStrategy.instantiate(SimpleInstantiatio nStrategy.java:61)
    at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.instantiateBean(Abstrac tAutowireCapableBeanFactory.java:877)
    at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.createBeanInstance(Abst ractAutowireCapableBeanFactory.java:839)
    at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.doCreateBean(AbstractAu towireCapableBeanFactory.java:440)
    at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory$1.run(AbstractAutowireC apableBeanFactory.java:409)
    at java.security.AccessController.doPrivileged(Native Method)
    at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.createBean(AbstractAuto wireCapableBeanFactory.java:380)
    at org.springframework.beans.factory.support.Abstract BeanFactory$1.getObject(AbstractBeanFactory.java:2 64)
    at org.springframework.beans.factory.support.DefaultS ingletonBeanRegistry.getSingleton(DefaultSingleton BeanRegistry.java:222)
    at org.springframework.beans.factory.support.Abstract BeanFactory.doGetBean(AbstractBeanFactory.java:261 )
    at org.springframework.beans.factory.support.Abstract BeanFactory.getBean(AbstractBeanFactory.java:185)
    at org.springframework.beans.factory.support.Abstract BeanFactory.getBean(AbstractBeanFactory.java:164)
    at org.springframework.beans.factory.support.DefaultL istableBeanFactory.preInstantiateSingletons(Defaul tListableBeanFactory.java:429)
    at org.springframework.context.support.AbstractApplic ationContext.finishBeanFactoryInitialization(Abstr actApplicationContext.java:728)
    at org.springframework.osgi.context.support.AbstractD elegatedExecutionApplicationContext.access$1600(Ab stractDelegatedExecutionApplicationContext.java:69 )
    at org.springframework.osgi.context.support.AbstractD elegatedExecutionApplicationContext$4.run(Abstract DelegatedExecutionApplicationContext.java:355)
    at org.springframework.osgi.util.internal.PrivilegedU tils.executeWithCustomTCCL(PrivilegedUtils.java:85 )
    at org.springframework.osgi.context.support.AbstractD elegatedExecutionApplicationContext.completeRefres h(AbstractDelegatedExecutionApplicationContext.jav a:320)
    at org.springframework.osgi.extender.internal.depende ncies.startup.DependencyWaiterApplicationContextEx ecutor$CompleteRefreshTask.run(DependencyWaiterApp licationContextExecutor.java:132)
    at java.lang.Thread.run(Thread.java:680)
Working...
X