Project

General

Profile

« Previous | Next » 

Revision 5557

Added by berkley about 14 years ago

more debugging for objectInfo problem

View differences:

src/edu/ucsb/nceas/metacat/dataone/CrudService.java
806 806
                  info.setSize(new Long(size.trim()).longValue());
807 807
              }
808 808
              //add the ObjectInfo to the ObjectList
809
              logCrud.info("objectFormat: " + info.getObjectFormat().toString());
810
              logCrud.info("id: " + info.getIdentifier().getValue());
809
              //logCrud.info("objectFormat: " + info.getObjectFormat().toString());
810
              //logCrud.info("id: " + info.getIdentifier().getValue());
811
              
811 812
              if(info.getIdentifier().getValue() != null)
812 813
              { //id can be null from tests.  should not happen in production.
813 814
                  if((info.getObjectFormat() != null && !info.getObjectFormat().toString().trim().equals("")))
814 815
                  { //objectFormat needs to not be null and not be an empty string
815 816
                    ol.addObjectInfo(info);
816 817
                  }
818
                  else
819
                  {
820
                      logCrud.info("Not adding object " + info.getIdentifier().toString());
821
                  }
817 822
              }
818 823
             
819 824
          }
......
821 826
      catch(Exception e)
822 827
      {
823 828
          e.printStackTrace();
824
          logCrud.error("Error creating ObjectList: " + e.getMessage());
829
          logCrud.error("Error creating ObjectList: " + e.getMessage() + " cause: " + e.getCause());
825 830
          throw new ServiceFailure("1580", "Error retrieving ObjectList: " + e.getMessage());
826 831
      }
827 832
      String username = "public";

Also available in: Unified diff