java.lang.IllegalArgumentException: The value 'HD-17399 HC2 only - Crash was becuase of stale reference of unit object in the port object after maincard get deleted. This is only applicable to HC2 becuase of not having BCM on line cards.Solution was not to use the unit_obj reference in port object, rather use the mainboard's unit_obj. read comment section' for the property 'name' is too long. It should have a maximum length of 255

Atlassian JIRA | Jeff Thomas | 3 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    If an error occurs with the CLI Tool, just the HTTP response code is returned to the user. It would be helpful to include more information if the response from the API includes an error message. Creating a review with the CLI Tool and a title greater than 255 characters results in the following error which provides no indication of why this is a bad request: {noformat}crucible.py CR --title "Sample text to get over 255 characters. Sample text to get over 255 characters. Sample text to get over 255 characters. Sample text to get over 255 characters. Sample text to get over 255 characters. Sample text to get over 255 characters. Sample text to get over 255 characters." Received an unexpected response HTTP Error 400: Bad Request. Please check that http://<SERVER>:8060 is a Crucible server{noformat} But, if trying to create a review with a title greater than 255 characters, the REST API returns the following error response: *HTTP/1.1 400 Bad Request* {noformat}<?xml version="1.0" encoding="UTF-8" standalone="yes"?><error><code>IllegalArgument</code><message>The value 'HD-17399 HC2 only - Crash was becuase of stale reference of unit object in the port object after maincard get deleted. This is only applicable to HC2 becuase of not having BCM on line cards.Solution was not to use the unit_obj reference in port object, rather use the mainboard's unit_obj. read comment section' for the property 'name' is too long. It should have a maximum length of 255</message><stacktrace>java.lang.IllegalArgumentException: The value 'HD-17399 HC2 only - Crash was becuase of stale reference of unit object in the port object after maincard get deleted. This is only applicable to HC2 becuase of not having BCM on line cards.Solution was not to use the unit_obj reference in port object, rather use the mainboard's unit_obj. read comment section' for the property 'name' is too long. It should have a maximum length of 255 at com.cenqua.crucible.hibernate.PropertyLengthCheckerListener.checkEntity(PropertyLengthCheckerListener.java:25) ...{noformat}

    Atlassian JIRA | 3 years ago | Jeff Thomas
    java.lang.IllegalArgumentException: The value 'HD-17399 HC2 only - Crash was becuase of stale reference of unit object in the port object after maincard get deleted. This is only applicable to HC2 becuase of not having BCM on line cards.Solution was not to use the unit_obj reference in port object, rather use the mainboard's unit_obj. read comment section' for the property 'name' is too long. It should have a maximum length of 255
  2. 0

    If an error occurs with the CLI Tool, just the HTTP response code is returned to the user. It would be helpful to include more information if the response from the API includes an error message. Creating a review with the CLI Tool and a title greater than 255 characters results in the following error which provides no indication of why this is a bad request: {noformat}crucible.py CR --title "Sample text to get over 255 characters. Sample text to get over 255 characters. Sample text to get over 255 characters. Sample text to get over 255 characters. Sample text to get over 255 characters. Sample text to get over 255 characters. Sample text to get over 255 characters." Received an unexpected response HTTP Error 400: Bad Request. Please check that http://<SERVER>:8060 is a Crucible server{noformat} But, if trying to create a review with a title greater than 255 characters, the REST API returns the following error response: *HTTP/1.1 400 Bad Request* {noformat}<?xml version="1.0" encoding="UTF-8" standalone="yes"?><error><code>IllegalArgument</code><message>The value 'HD-17399 HC2 only - Crash was becuase of stale reference of unit object in the port object after maincard get deleted. This is only applicable to HC2 becuase of not having BCM on line cards.Solution was not to use the unit_obj reference in port object, rather use the mainboard's unit_obj. read comment section' for the property 'name' is too long. It should have a maximum length of 255</message><stacktrace>java.lang.IllegalArgumentException: The value 'HD-17399 HC2 only - Crash was becuase of stale reference of unit object in the port object after maincard get deleted. This is only applicable to HC2 becuase of not having BCM on line cards.Solution was not to use the unit_obj reference in port object, rather use the mainboard's unit_obj. read comment section' for the property 'name' is too long. It should have a maximum length of 255 at com.cenqua.crucible.hibernate.PropertyLengthCheckerListener.checkEntity(PropertyLengthCheckerListener.java:25) ...{noformat}

    Atlassian JIRA | 3 years ago | Jeff Thomas
    java.lang.IllegalArgumentException: The value 'HD-17399 HC2 only - Crash was becuase of stale reference of unit object in the port object after maincard get deleted. This is only applicable to HC2 becuase of not having BCM on line cards.Solution was not to use the unit_obj reference in port object, rather use the mainboard's unit_obj. read comment section' for the property 'name' is too long. It should have a maximum length of 255
  3. 0

    If a repository is added into FishEye/Crucible with more than 80 characters, it's commits can't be added into a review: {noformat} 2013-07-22 17:56:13,992 WARN [qtp650484437-1332 ] org.eclipse.jetty.servlet.ServletHandler ServletHandler-doHandle - /cru/CR-1/edit-changelog/ java.lang.IllegalArgumentException: The value 'testtesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttest' for the property 'defaultSource' is too long. It should have a maximum length of 80 at com.cenqua.crucible.hibernate.PropertyLengthCheckerListener.checkEntity(PropertyLengthCheckerListener.java:25) at com.cenqua.crucible.hibernate.PropertyLengthCheckerListener.onFlushDirty(PropertyLengthCheckerListener.java:12) at com.cenqua.crucible.hibernate.HibernateListenerInterceptor.onFlushDirty(HibernateListenerInterceptor.java:34) at org.hibernate.event.def.DefaultFlushEntityEventListener.invokeInterceptor(DefaultFlushEntityEventListener.java:372) at org.hibernate.event.def.DefaultFlushEntityEventListener.handleInterception(DefaultFlushEntityEventListener.java:349) at org.hibernate.event.def.DefaultFlushEntityEventListener.scheduleUpdate(DefaultFlushEntityEventListener.java:287) at org.hibernate.event.def.DefaultFlushEntityEventListener.onFlushEntity(DefaultFlushEntityEventListener.java:155) {noformat} FishEye/Crucible should have checked and limit the repository name when it is added into the server.

    Atlassian JIRA | 4 years ago | Kah Loun Foong [Atlassian]
    java.lang.IllegalArgumentException: The value 'testtesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttest' for the property 'defaultSource' is too long. It should have a maximum length of 80
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    If a repository is added into FishEye/Crucible with more than 80 characters, it's commits can't be added into a review: {noformat} 2013-07-22 17:56:13,992 WARN [qtp650484437-1332 ] org.eclipse.jetty.servlet.ServletHandler ServletHandler-doHandle - /cru/CR-1/edit-changelog/ java.lang.IllegalArgumentException: The value 'testtesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttest' for the property 'defaultSource' is too long. It should have a maximum length of 80 at com.cenqua.crucible.hibernate.PropertyLengthCheckerListener.checkEntity(PropertyLengthCheckerListener.java:25) at com.cenqua.crucible.hibernate.PropertyLengthCheckerListener.onFlushDirty(PropertyLengthCheckerListener.java:12) at com.cenqua.crucible.hibernate.HibernateListenerInterceptor.onFlushDirty(HibernateListenerInterceptor.java:34) at org.hibernate.event.def.DefaultFlushEntityEventListener.invokeInterceptor(DefaultFlushEntityEventListener.java:372) at org.hibernate.event.def.DefaultFlushEntityEventListener.handleInterception(DefaultFlushEntityEventListener.java:349) at org.hibernate.event.def.DefaultFlushEntityEventListener.scheduleUpdate(DefaultFlushEntityEventListener.java:287) at org.hibernate.event.def.DefaultFlushEntityEventListener.onFlushEntity(DefaultFlushEntityEventListener.java:155) {noformat} FishEye/Crucible should have checked and limit the repository name when it is added into the server.

    Atlassian JIRA | 4 years ago | Kah Loun Foong [Atlassian]
    java.lang.IllegalArgumentException: The value 'testtesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttest' for the property 'defaultSource' is too long. It should have a maximum length of 80

    Root Cause Analysis

    1. java.lang.IllegalArgumentException

      The value 'HD-17399 HC2 only - Crash was becuase of stale reference of unit object in the port object after maincard get deleted. This is only applicable to HC2 becuase of not having BCM on line cards.Solution was not to use the unit_obj reference in port object, rather use the mainboard's unit_obj. read comment section' for the property 'name' is too long. It should have a maximum length of 255

      at com.cenqua.crucible.hibernate.PropertyLengthCheckerListener.checkEntity()
    2. com.cenqua.crucible
      PropertyLengthCheckerListener.checkEntity
      1. com.cenqua.crucible.hibernate.PropertyLengthCheckerListener.checkEntity(PropertyLengthCheckerListener.java:25)
      1 frame