| Property | Value |
|---|---|
| Error code | HSF-0013 |
Error message
invalid route while WriteMode=unit, route : ${route}, route parameter should be: longThe ${route} variable displays the actual route value that failed validation at runtime.
Cause
HSF (High-Speed Framework) throws this error when the route attribute in a unitized routing configuration has an invalid parameter type. In unitized deployment mode (WriteMode=unit), the route attribute accepts only two types:
| Valid type | Format |
|---|---|
| Primitive | long |
| Wrapper class | java.lang.Long |
Any other type for the route attribute triggers this error.
Solution
Open the HSF service configuration where unitized routing is defined.
Locate the
routeattribute in the unitized routing configuration.Change the
routeparameter type tolong(primitive) orjava.lang.Long(wrapper class).Redeploy the application.
Verify the fix by searching the application logs for the error string:
grep "HSF-0013" <application-log-path>No matches confirm that the route parameter type is valid.