Sign in

E-mail *, (xx@domain.com)
Password *

Register | Forgot password

Active forums

Active Forums RSS September 03, 19:59
Style properties

August 31, 21:46
antrun not found

August 31, 14:12
WCB customprofile

August 31, 12:10
End of flow not doing its job

August 24, 12:37
Sort mediaItem by expiration date

 All Forums...


Problems with the nl.gx.webmanager.cms.richtext.RichTextElementImpl

The "WCB: Java development" forum contains threads on issues that are related to Java while programming a WCB (WebManager Component Bundle). If you have questions that have impact on Java code, post them in this forum. Some example topics: authorization, the different component types, setting up component dependencies, data access, and so forth.

Answered
Not marked as answered yet

Forums  >  WCB: Java development  >  Problems with the nl.gx.webmanager.cms.richtext.RichTextElementImpl


Author Problems with the nl.gx.webmanager.cms.richtext.RichTextElementImpl
Robertus


Posts: 14

Posted: 18-08-2008 17:44

Hi,

I am getting the following message from Webmanager when i upload my WCB:

WARNING: Could not install bundle:  C:\GX\WebManager9\work\deploy\azycongxconnect-1.0.0.jar
org.osgi.framework.BundleException: Unresolved package in bundle 70: package; (package=nl.gx.webmanager.cms.richtext)
at org.apache.felix.framework.Felix._resolveBundle(Felix.java:1650)
at org.apache.felix.framework.Felix._startBundle(Felix.java:1517)
at org.apache.felix.framework.Felix.startBundle(Felix.java:1470)
at org.apache.felix.framework.Felix._updateBundle(Felix.java:1836)
at org.apache.felix.framework.Felix.updateBundle(Felix.java:1670)
at org.apache.felix.framework.BundleImpl.update(BundleImpl.java:372)
at nl.gx.webmanager.services.bundlemanager.service.impl.BundleManager.internalUpdate(BundleManager.java:716)
at nl.gx.webmanager.services.bundlemanager.service.impl.BundleManager.update(BundleManager.java:173)
at nl.gx.webmanager.services.wcbdirectoryscanner.impl.WCBDirectoryScannerImpl.scanFile(WCBDirectoryScannerImpl.java:323)
at nl.gx.webmanager.services.wcbdirectoryscanner.impl.WCBDirectoryScannerImpl.scanDirectory(WCBDirectoryScannerImpl.java:299)
at nl.gx.webmanager.services.wcbdirectoryscanner.impl.WCBDirectoryScannerImpl$WCBDirectoryScannerThread.run(WCBDirectoryScannerImpl.java:212)



The bundle is there. Its part of the default installation of Webmanager.

The problem arises when i do the following:

if(elements[i] instanceof nl.gx.webmanager.cms.richtext.RichTextElementImpl) {



I know for certain that is the type of element. So i know it exists in Webmanager. But if i add the import my wcb will not be installed.


What am i doing wrong?

Greetings,

Robertus

simon


Posts: 6

Posted: 19-08-2008 10:05

The first problem is that you should not be using the RichTextElementImpl at all. It is a class which is internal to WM and should not be used by other WCBs. Perhaps you meant RichTextElement which is the interface which is part of the WM API. RichTextElement should be accessible by your WCB and should work fine.

cheers,

Simon

Robertus


Posts: 14

Posted: 19-08-2008 11:23

Hi Simon,

How should I check the elements of a MediaItem then?
Because if i check if its an instanceof RichTextElement it just passes over the item.

Is there any other way to retrieve the body of a MediaItem?

Greetings,

Robertus

simon


Posts: 6

Posted: 20-08-2008 17:00

Try again. It shouldn't just pass over it. If it does then there is possibly something wrong on a OSGi / class loader level.

cheers,

Simon

ivol



Posts: 37

Posted: 27-08-2008 19:30 Helpful

The interface that the RichTextElementImpl implements is not RichTextElement but RichTextInlineElement. I agree, it is confusing. The RichTextElement interface is implemented by the WYSIWIG element which is 'another' rich text element.
So try checking if is an instance of RichTextInlineElement...

Regards, Ivo

Back to top

New message: "Problems with the nl.gx.webmanager.cms.richtext.RichTextElementImpl"
Message:
bold boitalicd underline url quote code smile cool eek grin mad razz sad wink
 
© 2010 GX creative online development B.V.

Disclaimer

This website (GXdeveloperweb.com) may discuss or contain opinions, (sample) coding, software or other information that does not include GX official interfaces, instructions or guidelines and therefore is not supported by GX. Changes made based on this information are not supported.  GX will not be held liable for any damages caused by using or misusing the information, software, instructions, code or methods suggested on this website, and anyone using these methods does so at his/her own risk. GX offers no guarantees and assumes no responsibility or liability of any type with respect to the content of this website, including any liability resulting from incompatibility between the content of this website and the materials and services offered by GX. By using this website you will not hold, or seek to hold, GX responsible or liable with respect to the content of this website.