[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Handle-info] Trying to understand HDLCreate.java



With Mark Donoghue's assistance, I got the following to work:

java -cp handle.jar net.handle.apps.simple.HDLCreate 0.NA/1902.1 300 /hs/svr_1/admpriv.bin 1902.1/10116


On May 29, 2007, at 12:29 PM, Robert Treacy wrote:

I want to use the APIs in a GlassFish application server environment. I'm taking HDLCreate as my model for creating a handle.
I'm not sure what this is telling me about the parameters I should be using: "usage: java net.handle.apps.simple.HDLCreate <auth handle> <auth index> <privkey> <handle>"
Here is how I'm calling HDLCreate and the output. I'm getting. My assigned prefix is 1902.1

# java -cp handle.jar net.handle.apps.simple.HDLCreate 0.NA/10115 300 /hs/svr_1/privkey.bin 1902.1
passphrase:
Note: Your passphrase will be displayed as it is entered
XXXXXXXX
  sending HDL-UDP request (version=2.1; oc=1; rc=0; snId=0 caCrt noAuth 0.NA/1902.1 [HS_SITE, HS_SERV, HS_NAMESPACE, ] [ ]) to 132.151.20.9:2641
  sending HDL-TCP request (version=2.1; oc=100; rc=0; snId=0 caCrt noAuth adm 1902.1) to 140.247.115.100:2641
    received HDL-TCP response: version=2.1; oc=100; rc=402; snId=10 caCrt noAuth
  sending HDL-TCP request (version=2.1; oc=200; rc=0; snId=10 caCrt noAuth / HS_PUBKEY 300:0.NA/10115) to 140.247.115.100:2641
    received HDL-TCP response: Error(400): INVALID ADMIN

Got Error:
Error(400): INVALID ADMIN
#

Bob Treacy