Results 1 to 5 of 5

Thread: Still intermittent "Content is not allowed in prolog" errors from eclipse plugin

  1. #1
    mefoster is offline Registered User
    Name: Mary Ellen Foster
    Organization: Heriot-Watt University, Edinburgh
    Project: ECHOES learning environment
    Join Date
    Jun 2006
    Posts
    121

    Still intermittent "Content is not allowed in prolog" errors from eclipse plugin

    I've updated to the patched version of slice2java, which I thought would fix this issue, but it still happens sometimes and it's very annoying.

    I have a central Eclipse project with all of my .ice files, and I set up my other projects with a special linked folder in the workspace pointing to the "slice" folder from the central project. I then point the slice2java builder at this slice file as the source of .ice files.

    This usually works, but sometimes I get an "internal error" when running the builder. Looking at the output of the slice2java builder, it looks like instead of printing and XML list of .java files, it's instead printing this:

    slice2java: JavaUtil.cpp:379: std::string Slice::JavaGenerator::getPackagePrefix(const Slice::ContainedPtr&) const: Assertion `!file.empty()' failed.
    This naturally isn't parseable xml, so I then get the "content not allowed in prolog" error and my .java files don't get generated.

    The best solution for me would actually be being able to select a folder outside of the current project as the source of .ice files -- I've played a tiny bit with the plugin, but I don't know enough about Eclipse plugin development to make this happen. So it would be nice if using a linked folder worked reliably instead.

    MEF

  2. #2
    dwayne's Avatar
    dwayne is offline ZeroC Staff
    Name: Dwayne Boone
    Organization: ZeroC, Inc.
    Project: Internet Communications Engine
    Join Date
    Jan 2005
    Location
    St. John's, Newfoundland
    Posts
    397
    Hi Mary,

    What are the patches that you are currently using for Ice and/or mcpp?
    Dwayne Boone

  3. #3
    mefoster is offline Registered User
    Name: Mary Ellen Foster
    Organization: Heriot-Watt University, Edinburgh
    Project: ECHOES learning environment
    Join Date
    Jun 2006
    Posts
    121
    I'm using Ice 3.3.1 with the following three patches:
    - slice2html creates bad links
    - slice compilers abort on symlinks and double backslashes
    - random endpoint selection in .Net

    As far as I can tell, the mcpp version is 2.7.2 (the latest upstream), with no patches.

  4. #4
    dwayne's Avatar
    dwayne is offline ZeroC Staff
    Name: Dwayne Boone
    Organization: ZeroC, Inc.
    Project: Internet Communications Engine
    Join Date
    Jan 2005
    Location
    St. John's, Newfoundland
    Posts
    397
    Hi Mary,

    Here are a couple of things to try. First, I have uploaded an updated patch for the Slice compilers here which fixes a possible issue with dependency generation. You should also try applying the mcpp 2.7.2 patch found here.

    If that does not solve it we will have to try to get more infomation about your setup/slice to see if we can reproduce.
    Dwayne Boone

  5. #5
    mefoster is offline Registered User
    Name: Mary Ellen Foster
    Organization: Heriot-Watt University, Edinburgh
    Project: ECHOES learning environment
    Join Date
    Jun 2006
    Posts
    121
    Quote Originally Posted by dwayne View Post
    Here are a couple of things to try. First, I have uploaded an updated patch for the Slice compilers here which fixes a possible issue with dependency generation. You should also try applying the mcpp 2.7.2 patch found here.
    I've tried rebuilding mcpp and ice with those two patches, and the issue seems to be gone. Was it both patches that fixed it in combination, I wonder, or is it just one or the other? Anyway, it's working well on my own computer now -- just need to work out a way to get the new stuff onto my colleagues' Macs so they can also build everything without workarounds.

    I'll try to get updated Fedora packages with these patches sent out soon.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 4
    Last Post: 01-31-2011, 07:32 PM
  2. Replies: 6
    Last Post: 07-12-2009, 01:44 PM
  3. Replies: 5
    Last Post: 06-22-2009, 08:15 AM
  4. Replies: 1
    Last Post: 01-28-2009, 06:15 AM
  5. Replies: 4
    Last Post: 10-26-2006, 11:23 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •