Hi Bryan, The length is specified on the model (persistent classes), but I think if you update the database after it is installed it should work.
Nevertheless I agree that we should increase the size of this field: https://issues.apache.org/jira/browse/JUDDI-309 --Kurt On Fri, Nov 6, 2009 at 4:52 PM, Bryan Pendleton <[email protected]>wrote: > Hi all, > > When I try to do a save_binding, I get an error returned, and the following > message is printed on the juddi console: > > "A truncation error was encountered trying to shrink VARCHAR ' > http://schemas.xmlsoap.org/soap/http' to length 20." > > I looked at my data, and part of my binding template data is the following > accessPoint information: > > <nspfx:accessPoint > useType="http://schemas.xmlsoap.org/soap/http" > xmlns:nspfx="urn:uddi-org:api_v3" > >http://localhost:30080/juddiv3/services/inquiry</nspfx:accessPoint> > > I looked in the underlying Derby database, and I see that column > 'ACCESS_POINT_TYPE' in table 'J2_BINDING_TEMPLATE' is defined as > VARCHAR(20), > so I suspect this is the column length limit that I am hitting. > > I see in http://www.uddi.org/pubs/uddi_v3.htm#_Toc85908385 that UDDI v3 > seems > to expect that the useType field will be a value like 'endPoint' or > 'wsdlDeployment' or 'bindingTemplate' or 'hostingRedirector', so I assume > that is why the column's length is defined to be 20? > > But I see, later in the UDDI spec ( > http://www.uddi.org/pubs/uddi_v3.htm#_Toc85908400) > that there is an example with > > useType="uddi:tempuri.org:tmodel:newprotocol" > > so it seems like it would be better if the column in the database did not > have such a short limit by default. > > Is this something that can be configured? > > thanks, > > bryan > >
