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

Fixed copying data point in freshly created data source #2925

Closed
Patrykb0802 opened this issue Jun 21, 2024 · 0 comments
Closed

Fixed copying data point in freshly created data source #2925

Patrykb0802 opened this issue Jun 21, 2024 · 0 comments
Assignees
Labels
Milestone

Comments

@Patrykb0802
Copy link
Contributor

Describe the bug
When trying to copy data point inside freshly created data source error occurs.

To Reproduce

  1. Create virtual data source, name it and save it
  2. Create new virtual data point and save it
  3. Try to copy freshly created data point
  4. See error

Expected behavior
Copying mechanism should work without any issues.

Screenshots
image

Desktop:

  • OS: Win 11
  • Browser Chrome
  • Version 2.7.8

Additional context
Console log:

INFO 2024-06-21T14:24:06,934 (com.serotonin.mango.rt.RuntimeManager.startDataPoint:493) - Data point 'vds - vdp_numeric' initialized
ERROR 2024-06-21T14:24:09,699 (com.serotonin.mango.web.filter.ExceptionDetectionFilter.doFilter:52) - DWR invocation exception
java.lang.NullPointerException: null
at com.serotonin.mango.rt.dataSource.DataSourceUtils.copyAndSaveDataPoint(DataSourceUtils.java:170) ~[classes/:?]
at com.serotonin.mango.web.dwr.DataSourceEditDwr.copyDataPoint(DataSourceEditDwr.java:2981) ~[classes/:?]
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:?]
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:?]
at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?]
at java.lang.reflect.Method.invoke(Method.java:566) ~[?:?]
at org.directwebremoting.impl.ExecuteAjaxFilter.doFilter(ExecuteAjaxFilter.java:34) ~[dwr.jar:?]
at org.directwebremoting.impl.DefaultRemoter$1.doFilter(DefaultRemoter.java:428) ~[dwr.jar:?]
at com.serotonin.web.dwr.LocalizationFilter.doFilter(LocalizationFilter.java:42) ~[seroUtils.jar:?]
at org.directwebremoting.impl.DefaultRemoter$1.doFilter(DefaultRemoter.java:428) ~[dwr.jar:?]
at com.serotonin.mango.web.filter.ExceptionDetectionFilter.doFilter(ExceptionDetectionFilter.java:40) [classes/:?]
at org.directwebremoting.impl.DefaultRemoter$1.doFilter(DefaultRemoter.java:428) [dwr.jar:?]
at org.directwebremoting.impl.DefaultRemoter.execute(DefaultRemoter.java:431) [dwr.jar:?]
at org.directwebremoting.impl.DefaultRemoter.execute(DefaultRemoter.java:283) [dwr.jar:?]
at org.directwebremoting.servlet.PlainCallHandler.handle(PlainCallHandler.java:52) [dwr.jar:?]

@Limraj Limraj added the bug label Jun 21, 2024
@Limraj Limraj added this to the 2.7.8 milestone Jun 21, 2024
@Limraj Limraj assigned Patrykb0802 and unassigned AdisonCavani Jun 21, 2024
Patrykb0802 added a commit that referenced this issue Jun 28, 2024
- Added forced URL reload after saving data source for correct data source id
Patrykb0802 added a commit that referenced this issue Jun 28, 2024
- Added forced URL reload after saving data source for correct data source id
Limraj added a commit that referenced this issue Jun 29, 2024
…point_in_freshly_created_data_source

Fix/#2925 fixed copying data point in freshly created data source
@Limraj Limraj closed this as completed Jun 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants