Error while running service to Migrate TN certificates

hello all,

We are trying to upgrade from WM 6.1 to 7.1.2, I completed migrating TN Data, however I am now getting an error when migrating the TN certs.
I followed the steps in the Upgrade document to Migrate TN Certificates from 6.1 to 7.1.2, while running
wm.tn.admin.migrate:migrateCerts service in Integration Server Administrator, with the parameter inputs Version as 6.1 and false for duplicateSignCertsToSSLCert, We got following error:

com.wm.app.tn.err.EXMLException: 0006.1094 Error encountered invoking service wm.tn.admin.migrate:migrateCerts. java.lang.NullPointerException java.lang.NullPointerException at com.wm.app.tn.security.Migration.migratePost46certData(Migration.java:278) at wm.tn.admin.migrate.migrateCerts(migrate.java:145) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:79) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:618) at com.wm.app.b2b.server.JavaService.baseInvoke(JavaService.java:403) at com.wm.app.b2b.server.invoke.InvokeManager.process(InvokeManager.java:631) at com.wm.app.b2b.server.util.tspace.ReservationProcessor.process(ReservationProcessor.java:40) at com.wm.app.b2b.server.invoke.StatisticsProcessor.process(StatisticsProcessor.java:44) at com.wm.app.b2b.server.invoke.ServiceCompletionImpl.process(ServiceCompletionImpl.java:241) at com.wm.app.b2b.server.invoke.ValidateProcessor.process(ValidateProcessor.java:51) at com.wm.app.b2b.server.ACLManager.process(ACLManager.java:228) at com.wm.app.b2b.server.invoke.DispatchProcessor.process(DispatchProcessor.java:30) at com.wm.app.b2b.server.AuditLogManager.process(AuditLogManager.java:624) at com.wm.app.b2b.server.invoke.InvokeManager.invoke(InvokeManager.java:536) at com.wm.app.b2b.server.invoke.InvokeManager.invoke(InvokeManager.java:381) at com.wm.app.b2b.server.ServiceManager.invoke(ServiceManager.java:237) at com.wm.app.b2b.server.ServiceManager.invoke(ServiceManager.java:119) at com.wm.app.b2b.server.HTTPInvokeHandler._process(HTTPInvokeHandler.java:141) at com.wm.app.b2b.server.InvokeHandler.process(InvokeHandler.java:110) at com.wm.app.b2b.server.HTTPDispatch.handleRequest(HTTPDispatch.java:185) at com.wm.app.b2b.server.Dispatch.run(Dispatch.java:333) at com.wm.util.pool.PooledThread.run(PooledThread.java:118) at java.lang.Thread.run(Thread.java:810) at com.wm.app.tn.err.EXMLException.fromResource(EXMLException.java:63) at wm.tn.admin.migrate.migrateCerts(migrate.java:166) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:79) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:618) at com.wm.app.b2b.server.JavaService.baseInvoke(JavaService.java:403) at com.wm.app.b2b.server.invoke.InvokeManager.process(InvokeManager.java:631) at com.wm.app.b2b.server.util.tspace.ReservationProcessor.process(ReservationProcessor.java:40) at com.wm.app.b2b.server.invoke.StatisticsProcessor.process(StatisticsProcessor.java:44) at com.wm.app.b2b.server.invoke.ServiceCompletionImpl.process(ServiceCompletionImpl.java:241) at com.wm.app.b2b.server.invoke.ValidateProcessor.process(ValidateProcessor.java:51) at com.wm.app.b2b.server.ACLManager.process(ACLManager.java:228) at com.wm.app.b2b.server.invoke.DispatchProcessor.process(DispatchProcessor.java:30) at com.wm.app.b2b.server.AuditLogManager.process(AuditLogManager.java:624) at com.wm.app.b2b.server.invoke.InvokeManager.invoke(InvokeManager.java:536) at com.wm.app.b2b.server.invoke.InvokeManager.invoke(InvokeManager.java:381) at com.wm.app.b2b.server.ServiceManager.invoke(ServiceManager.java:237) at com.wm.app.b2b.server.ServiceManager.invoke(ServiceManager.java:119) at com.wm.app.b2b.server.HTTPInvokeHandler._process(HTTPInvokeHandler.java:141) at com.wm.app.b2b.server.InvokeHandler.process(InvokeHandler.java:110) at com.wm.app.b2b.server.HTTPDispatch.handleRequest(HTTPDispatch.java:185) at com.wm.app.b2b.server.Dispatch.run(Dispatch.java:333) at com.wm.util.pool.PooledThread.run(PooledThread.java:118) at java.lang.Thread.run(Thread.java:810)

[SIZE=2][FONT=Helv]Any suggestions please,

Thanks,
Siri

[/FONT][/SIZE]

We worked out with the Software AG… and solved the problem…

Because that we have some partners those have no certificates in it. migrating those partners from 6.1 to 7.1 ran into the above error…

To solve that: we added dummy certificates, for those partners who have no certificates, and again try to run the migrateCerts service… It ran well…

Thanks all…
Siri.

Thanks lot for your update/sharing Info to help our user community who can ran into same issue!!

-RMG

I had the same issue can you tell me how you add a dummy certificate
especially that on TN Consol you have to do it manually for each partner. and in the data base you have to track all the changes.

Even dummy certificate in TN you definitely need a trust CA chain for it to save or let error pops up:

Are you migrating from 6.x to 7.x where you see this problem? If there are lots of B2B partners involved, doing this manually might create problem during cut-over period (for delta data migration). I would suggest to raise a support incident with SAG while you try different others options. Let us know your findings as well.

-Senthil

y r right , so you mean we can imagin a service to check all partner with no certificate and set CA chain? even an expired one just tu execute wm.tn.admin.migrate:migrateCerts

hi all,
to give an update:
probleme solved by deleting all existing certificates using wm.tn.security:deleteCertificateData
and set them buck from existing one ones on old version 6.1 using a flow service invoking wm.tn.security:setSecurity after conversion on base64 from the existing certchaine
hope it ll b helpful

Just to add to it… once you execute db scripts to migrate tn data from 6.1 to 7.x, we have to execute this service wm.tn.admin.migrate:migrateCerts as part of successful migration to 7.x as per documentation.

-Senthil

Thanks for the update Jimmy and you are on the right direction as long it works:)