Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Data set retrieve problem when any pv had problem during taking snapshot #13

Closed
shengb opened this issue Feb 15, 2016 · 5 comments
Closed

Comments

@shengb
Copy link

shengb commented Feb 15, 2016

If there was any pv not connected during taking snapshot, the CS-Studio can not get saved data set back.

"""
An internal error occurred during: "Save and Restore: Load snapshot data".
java.lang.NullPointerException
"""

@jbobnar
Copy link
Contributor

jbobnar commented Feb 16, 2016

Please, provide the entire exception stack trace, because it does not happen to me.

@shengb
Copy link
Author

shengb commented Feb 17, 2016

I am using Eric's distribution, and unfortunately, there is no exception stack trace available in any console.
Here is an easy way to reproduce it:

  1. Using MASAR to take a snapshot with a few PVs not available, which the values would be NULL;
  2. Try to retrieve the same snapshot, which would give you the error.

If you like, I can send you example database offline.

@berryma4
Copy link
Contributor

Do you see anything if you open a console?
On Feb 17, 2016 8:57 AM, "Guobao Shen" notifications@github.com wrote:

I am using Eric's distribution, and unfortunately, there is no exception
stack trace available in any console.
Here is an easy way to reproduce it:

  1. Using MASAR to take a snapshot with a few PVs not available, which the
    values would be NULL;
  2. Try to retrieve the same snapshot, which would give you the error.

If you like, I can send you example database offline.


Reply to this email directly or view it on GitHub
#13 (comment)
.

@shengb
Copy link
Author

shengb commented Feb 17, 2016

OK, now I switched to linux terminal, and here is the output:
2016-02-17 09:07:15.297 SEVERE [Thread 21] org.csstudio.logging.PluginLogListener (logging) - An internal error occurred during: "Save and Restore: Load snapshot data".
java.lang.NullPointerException
at gov.aps.jca.ValuedEnum.isEqualTo(ValuedEnum.java:34)
at org.csstudio.saverestore.masar.MasarUtilities.fromEpics(MasarUtilities.java:260)
at org.csstudio.saverestore.masar.MasarUtilities.resultToVSnapshot(MasarUtilities.java:243)
at org.csstudio.saverestore.masar.MasarClient.loadSnapshotData(MasarClient.java:463)
at org.csstudio.saverestore.masar.MasarDataProvider.getSnapshotContent(MasarDataProvider.java:258)
at org.csstudio.saverestore.ui.ActionManager.loadSnapshot(ActionManager.java:77)
at org.csstudio.saverestore.ui.ActionManager.lambda$1(ActionManager.java:89)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:52)
at org.csstudio.saverestore.SaveRestoreService$SaveRestoreJob.run(SaveRestoreService.java:87)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)

@jbobnar
Copy link
Contributor

jbobnar commented Feb 18, 2016

I fixed this exception (797e34f). The cause was that masar sent a severity code that is unknown to epics.

@jbobnar jbobnar closed this as completed Feb 18, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants