Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Error while updating RCP app through Eclipse Update Framework
Error while updating RCP app through Eclipse Update Framework [message #330974] Wed, 20 August 2008 07:52 Go to next message
Arunagiri.K is currently offline Arunagiri.KFriend
Messages: 41
Registered: July 2009
Member
Hi All...

My update action code is like...

public void run() {
BusyIndicator.showWhile(window.getShell().getDisplay(),
new Runnable(){
public void run() {
UpdateJob job = new UpdateJob("Searching for Updates", false, false);
UpdateManagerUI.openInstaller(window.getShell(), job);
}

});
}

and I am getting error like

"Errors while parsing update policy [The entity name must immediately
follow the '&' in the entity reference.]
The entity name must immediately follow the '&' in the entity reference.
"

the log entry...

!SESSION 2008-08-20 13:11:37.953
-----------------------------------------------
eclipse.buildId=unknown
java.version=1.5.0_09
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
Command-line arguments: -os win32 -ws win32 -arch x86

!ENTRY org.eclipse.update.core 4 0 2008-08-20 13:13:09.984
!MESSAGE Errors while parsing update policy [The entity name must
immediately follow the '&' in the entity reference.]
!STACK 0
org.xml.sax.SAXParseException: The entity name must immediately follow the
'&' in the entity reference.
at
com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(D OMParser.java:264)
at
com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl. parse(DocumentBuilderImpl.java:292)
at
org.eclipse.update.internal.search.UpdatePolicy.load(UpdateP olicy.java:122)
at
org.eclipse.update.internal.operations.UpdateUtils.loadUpdat ePolicy(UpdateUtils.java:534)
at
org.eclipse.update.search.UpdateSearchRequest.performSearch( UpdateSearchRequest.java:272)
at org.eclipse.update.ui.UpdateJob.runUpdates(UpdateJob.java:20 7)
at org.eclipse.update.ui.UpdateJob.run(UpdateJob.java:168)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)

What 'll be the fix?

Thanks,
-arun
Re: Error while updating RCP app through Eclipse Update Framework [message #330976 is a reply to message #330974] Wed, 20 August 2008 09:05 Go to previous messageGo to next message
Prakash G.R. is currently offline Prakash G.R.Friend
Messages: 621
Registered: July 2009
Senior Member
I guess either your platform.xml or your your site.xml is not a well
formed XML. Can you check that?

- Prakash

www.eclipse-tips.com


Arunagiri wrote:
> Hi All...
>
> My update action code is like...
>
> public void run() {
> BusyIndicator.showWhile(window.getShell().getDisplay(),
> new Runnable(){
> public void run() {
> UpdateJob job = new UpdateJob("Searching for
> Updates", false, false);
> UpdateManagerUI.openInstaller(window.getShell(),
> job);
> }
>
> });
> }
>
> and I am getting error like
> "Errors while parsing update policy [The entity name must immediately
> follow the '&' in the entity reference.]
> The entity name must immediately follow the '&' in the entity reference.
> "
>
> the log entry...
>
> !SESSION 2008-08-20 13:11:37.953
> -----------------------------------------------
> eclipse.buildId=unknown
> java.version=1.5.0_09
> java.vendor=Sun Microsystems Inc.
> BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
> Command-line arguments: -os win32 -ws win32 -arch x86
>
> !ENTRY org.eclipse.update.core 4 0 2008-08-20 13:13:09.984
> !MESSAGE Errors while parsing update policy [The entity name must
> immediately follow the '&' in the entity reference.]
> !STACK 0
> org.xml.sax.SAXParseException: The entity name must immediately follow
> the '&' in the entity reference.
> at
> com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(D OMParser.java:264)
>
> at
> com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl. parse(DocumentBuilderImpl.java:292)
>
> at
> org.eclipse.update.internal.search.UpdatePolicy.load(UpdateP olicy.java:122)
> at
> org.eclipse.update.internal.operations.UpdateUtils.loadUpdat ePolicy(UpdateUtils.java:534)
>
> at
> org.eclipse.update.search.UpdateSearchRequest.performSearch( UpdateSearchRequest.java:272)
>
> at org.eclipse.update.ui.UpdateJob.runUpdates(UpdateJob.java:20 7)
> at org.eclipse.update.ui.UpdateJob.run(UpdateJob.java:168)
> at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
>
> What 'll be the fix?
>
> Thanks,
> -arun
>
Re: Error while updating RCP app through Eclipse Update Framework [message #330980 is a reply to message #330976] Wed, 20 August 2008 11:08 Go to previous messageGo to next message
Arunagiri.K is currently offline Arunagiri.KFriend
Messages: 41
Registered: July 2009
Member
My site.xml is simple,

<?xml version="1.0" encoding="UTF-8"?>
<site>
<category-def name="OMS" label="OMS Features"/>
<feature
url=" features/com.touchpoint.pharma.outlet.claims.feature_1.0.0.j ar "
id="com.touchpoint.pharma.outlet.claims.feature" version="1.0.0">
<category name="OMS"/>
</feature>
</site>

I don't know where is the errorrrr?

Regards,
Arunagiri.K
Re: Error while updating RCP app through Eclipse Update Framework [message #331058 is a reply to message #330980] Fri, 22 August 2008 10:42 Go to previous message
Arunagiri.K is currently offline Arunagiri.KFriend
Messages: 41
Registered: July 2009
Member
Still I can't fix the error. The site.xml is created by the eclipse, and
it does not accepting external validations. As far as I know it's well
formed.

Any other crack?

Regards,
-arun
Previous Topic:[Databinding] How to bind Tree that contains nodes with different types.
Next Topic:Writing to the Eclipse Log
Goto Forum:
  


Current Time: Sun Jun 30 13:53:35 GMT 2024

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

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

Back to the top