13 Replies Latest reply on Mar 1, 2006 10:27 AM by sitongia

    Exception: Cannot get content

    sitongia

      I've created a page using the CMSAdmin. When finished, it displays the directory, but I get this exception:

      ERROR [org.jboss.portal.cms.impl.jcr.ContentGetCommand] Cannot get content
      javax.jcr.PathNotFoundException: /Pilates/index.html/en


      The file I created was /Pilates/index.html.

      Why is my locale in there as a path element?

      I wonder if this is related to a previous post of mine in which I reported that when I try to edit an HTML file I created, I get the file upload dialog instead of the HTML editor.

      I'm running the JBoss + Portal 2.2.1 RC2 distribution with PostgresQL on Mac OS X.

      Thanks.

        • 1. Re: Exception: Cannot get content

          What language did you assign to the file when you created it?

          The /en is saying that its looking for the file content under the english language.

          • 2. Re: Exception: Cannot get content
            sitongia

            Hi,

            Thanks for your rapid reply.

            The language is English, in the form to create the page. I'm using the same server/portal/browser when I create and when I view this.

            • 3. Re: Exception: Cannot get content

              What version of PostGres and what driver?

              RC2 should work with pgres 9.

              • 4. Re: Exception: Cannot get content
                sitongia

                postgresql-8.0-311.jdbc3.jar

                • 5. Re: Exception: Cannot get content

                  Sorry, I meant PostGres 8.1. I am using postgresql-8.1-404.jdbc3.jar and have no problems at all.

                  • 6. Re: Exception: Cannot get content
                    sitongia

                    I am running 8.1 for the server, but was using an 8.0 driver. I've switched the portal to the driver
                    postgresql-8.1-405.jdbc3.jar

                    I get the same error.

                    ERROR [org.jboss.portal.cms.impl.jcr.ContentGetCommand] Cannot get content
                    javax.jcr.PathNotFoundException: /Pilates/index.html/en

                    Is there something wrong with my browser, or on my web server?

                    • 7. Re: Exception: Cannot get content

                      Try creating new content now. Chances are the original file was not inserted properly in the DB, so trying to retrieve it will never work.

                      • 8. Re: Exception: Cannot get content
                        sitongia

                        You're right, Roy. Thanks. Looks like new content is created okay now.

                        ==Leonard

                        • 9. Re: Exception: Cannot get content
                          sitongia

                          Ah, well, the problem has come back.

                          When I create a new HTML file in /default, and then list the /default directory, I get the same exception as before, for the file I just created.

                          And, when I edit the file /default/index.html, which it shows to be text/html, the CMSAdmin portlet goes blank, and I get

                          21:15:05,956 ERROR [ContentGetCommand] Cannot get content
                          javax.jcr.PathNotFoundException: /default/index.html/ar

                          I don't know why the /ar locale would come up. Maybe my PostgresQL database is hosed?

                          ==Leonard

                          • 10. Re: Exception: Cannot get content
                            sitongia

                            I dropped the entire database, and created it anew.

                            Now I can edit the /default/index.html, but I cannot create any files. I get a bunch of exception output (to STDOUT, and I can't scroll back far enough to see what it is) and the CMSAdmin portlet goes blank (well, it disappears from the page). I have to log out and back in to get the portlet back.

                            • 11. Re: Exception: Cannot get content
                              sitongia

                              I'm trying the latest in CVS (2.4), and still cannot edit HTML files I create. I wonder if something is going on with the locale. This time, I logged in as admin and set my language before doing anything else. Still have trouble.

                              In general, when I'm trying out the latest, would you like me to report problems here, or in the Design forum, or in Jira?

                              Thanks for your great work!

                              • 12. Re: Exception: Cannot get content
                                sitongia

                                Here are a couple of errors I get about this:

                                08:15:15,673 ERROR [LocaleUtils] Locale name null or empty, ignoring

                                (from a different try, earlier:)

                                08:01:34,161 ERROR [ContentGetCommand] Cannot get content
                                javax.jcr.PathNotFoundException: /default/mine.html/en

                                • 13. Re: Exception: Cannot get content
                                  sitongia

                                  BTW, I'm getting lots of database errors about tables not found and such, for the first time. I did create a fresh database this time.