cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
204
Views
0
Helpful
1
Replies
JeffreyC
Beginner

Writing to other services using MAAPI - Unexpected end of file error

Hello,

I am trying to configure a service from within a separate service using MAAPI.  MAAPI is successfully connecting and applying transactions, but is running until a timeout (a couple minutes) after it completes applying the transaction.  I get the following error message:

<ERROR> 21-Apr-2016::08:39:29.621 ConfInternal NCS-DpMUX-108-servicelookup:RFSSkeleton: - Unexpected end of file (EOF) when reading the stream from socket

<ERROR> 21-Apr-2016::08:39:29.621 Dp NCS-DpMUX-108-servicelookup:RFSSkeleton: -

com.tailf.conf.ConfException: unexpected end of file

        at com.tailf.conf.ConfInternal.readFill(ConfInternal.java:434)

        at com.tailf.conf.ConfInternal.termRead(ConfInternal.java:189)

        at com.tailf.conf.ConfInternal.termRead(ConfInternal.java:114)

        at com.tailf.dp.Dp.read(Dp.java:1704)

        at com.tailf.ncs.ctrl.NcsDpMux.run(NcsDpMux.java:175)

        at java.lang.Thread.run(Thread.java:745)

Caused by: java.io.EOFException

        ... 6 more

<WARN> 21-Apr-2016::08:39:29.621 NcsDpMux NCS-DpMUX-108-servicelookup:RFSSkeleton: - Error in NcsDpMux

com.tailf.conf.ConfException: unexpected end of file

        at com.tailf.conf.ConfInternal.readFill(ConfInternal.java:434)

        at com.tailf.conf.ConfInternal.termRead(ConfInternal.java:189)

        at com.tailf.conf.ConfInternal.termRead(ConfInternal.java:114)

        at com.tailf.dp.Dp.read(Dp.java:1704)

        at com.tailf.ncs.ctrl.NcsDpMux.run(NcsDpMux.java:175)

        at java.lang.Thread.run(Thread.java:745)

Caused by: java.io.EOFException

        ... 6 more

I am closing the socket in a finally block, and Im also doing maapi.finishTrans().  All configuration is written and the other service applies as expected.

The error really doesnt seem to be impacting the functionality besides making the service take much longer to build then it should.  Any ideas on what is causing the EOF errors and how to stop them?

1 REPLY 1
JeffreyC
Beginner

Additional info:

Message from the CLI when its run:

admin@ncs(config-servicelookup-1231)# commit dry-run

Aborted: application timeout

In addition, the errors in the ncs-java-vm.log come after the service is run - the errors show up when opaque is returned.

Content for Community-Ad

This widget could not be displayed.