Announcement Announcement Module
No announcement yet.
Functionality disappeared without any error message Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • Functionality disappeared without any error message

    I have encountered a problem where one of the functionalities of my application stopped working without generating any error messages.

    My application has two basic features: list existing data of and add data to a table in the database via jpa/eclipselink. I was able to deploy the application and the list function worked flawlessly. The add function however didn't work. It didn't generate any error messages neither (based on the dm server log).

    I experienced the same problem back in dm server version 1.0. I solved it by adding two bundles to the Import-Bundle section of the MANIFEST file of the jpa project. The reason why I was able to discovered the two missing bundles is because I had a working copy to compare against. This 1.0 fix didn't work in version 2.0.

    I have tried fixing my MANIFEST file by copying the content of the greenpages.jpa MANIFEST, generating MANIFEST with bundlor, and importing the entire springframework library. None of them worked.

    My question is what's the recommended and reliable way for generating MANIFEST? It is almost impossible to debug when there isn't even an error message.

  • #2
    Thank you for reporting the problem.

    Can you be a little more specific about your missing functionality? Perhaps the manifest you updated would help us here.

    Your more general question is to use Bundlor -- SpringSource Tool Suite (latest version) can generate the MANIFEST.MF file for you, using the byte-code to detect dependencies you have used in the build. Extra control over what is generated is provided by a file (in the root of the project), which can over-ride entries, suppress others and make version-range decisions.

    The section Generating greenpages.jpa’s manifest using Bundlor in Chapter 5 of the getting-started guide describes how to generate the MANIFEST for Greenpages.jpa -- it should not be necessary for you to update the MANIFEST file directly.

    Steve Powell


    • #3
      Steve, Let me try setting up a par to show you the issue. Thanks.


      • #4

        If you want to deploy this application, you will need to download apache derby. I have version 10.5.3. No set up scripts are needed.

        Rename to com.apress.prodmserver.vehicle-1.0.0.par.



        • #5

          Update: I have now deployed it, and am going to run derby to get the functionality to be exposed.

          I cannot deploy your par, because I have org.eclipse.persistence-1.1.0 (from our previous conversations), and you Import-Bundle org.eclipse.persistence at strict version 1.0.0.

          I can supply this, of course, but please confirm that this is intended, and that the pre-requisites:



          are still correct (modulo 1.0.0 for eclipse, if you like).
          Can you provide a little more information about your development environment? Are you developing under Eclipse, Springsource Tool Suite? And if so, which version are you using?

          Steve Powell
          Last edited by Steve Powell; Feb 17th, 2010, 11:17 AM.


          • #6
            How do you deploy derby? I can drop it (I'm using from EBR) into the pickup directory, and the embedded activator starts it, though I'm not sure that will do everything necessary.

            Your app (/vehicle) deploys nicely (I have the corresponding derby client in the usr repository) and shows the front page, but after that it fails to get any persisted data (of course):
            org.springframework.web.util.NestedServletException: Request processing failed; nested exception is Exception [EclipseLink-4002] (Eclipse Persistence Services - 1.0 (Build 1.0 - 20080707)): org.eclipse.persistence.exceptions.DatabaseException
            Internal Exception: org.apache.commons.dbcp.SQLNestedException: Cannot create PoolableConnectionFactory ( : Error connecting to server localhost on port 1527 with message Connection refused.)
            Error Code: 0
            So presumably the db isn't set up. You said there was no config, is this what you meant me to do?

            Steve Powell


            • #7
              The problem appears with both eclipselink version 1.0 and 1.1.

              I downloaded from here. To start derby, run <derby-home>\bin\startNetworkServer. You shouldn't need additional scripts.

              I am using STS 2.3 to develop the application and maven 2.2.1 to build and package the par.

              Last edited by; Feb 18th, 2010, 01:48 PM.


              • #8
                I fixed the problem. The aspectj weaver wasn't "switched" on because I included only 3 packages from aspectj weaver. I tried adding the remaining packages, and that resolved the issue.
                Last edited by; Mar 9th, 2010, 02:11 AM.