<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: FieldException: Cannot set field on a immutable GeoEvent in ArcGIS GeoEvent Server Questions</title>
    <link>https://community.esri.com/t5/arcgis-geoevent-server-questions/fieldexception-cannot-set-field-on-a-immutable/m-p/16519#M42</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi LuisARG_Esri,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Instance of GeoEvent your processor receives from the event processing framework (EPF) is immutable because by default any processor &lt;/SPAN&gt;&lt;STRONG&gt;IS NOT a GeoEvent Mutator&lt;/STRONG&gt;&lt;SPAN&gt;. In order to change this behavior you need to override the following method inside of your processor code as follows:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;public boolean isGeoEventMutator() { return true; }&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This will tell EPF that your processor &lt;/SPAN&gt;&lt;STRONG&gt;IS GeoEvent Mutator&lt;/STRONG&gt;&lt;SPAN&gt; that should operate on its own instance of GeoEvent. EPF will cook it up for your processor and pass it in the [public GeoEvent process(GeoEvent geoEvent) throws Exception] method.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This should resolve the issue you reported.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Vlad Plechnoy.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 17 Dec 2013 15:13:52 GMT</pubDate>
    <dc:creator>VladislavPlechnoy</dc:creator>
    <dc:date>2013-12-17T15:13:52Z</dc:date>
    <item>
      <title>FieldException: Cannot set field on a immutable GeoEvent</title>
      <link>https://community.esri.com/t5/arcgis-geoevent-server-questions/fieldexception-cannot-set-field-on-a-immutable/m-p/16518#M41</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Original User: LuisARG_Esri&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have developed a Processor that modify a GeoEvent. When it's done a set in a GeoEvent field, it's thrown the following exception&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;com.esri.ges.core.geoevent.FieldException: Cannot set field on a immutable GeoEvent&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Why the GeoEvent is immutable? How can I convert the GeoEvent to mutable.&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
public GeoEvent process(GeoEvent geoEvent) throws Exception
{
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; try
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; geoEvent.setField("RateOfTurn", new Integer(0));
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Dec 2021 20:39:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-geoevent-server-questions/fieldexception-cannot-set-field-on-a-immutable/m-p/16518#M41</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2021-12-10T20:39:59Z</dc:date>
    </item>
    <item>
      <title>Re: FieldException: Cannot set field on a immutable GeoEvent</title>
      <link>https://community.esri.com/t5/arcgis-geoevent-server-questions/fieldexception-cannot-set-field-on-a-immutable/m-p/16519#M42</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi LuisARG_Esri,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Instance of GeoEvent your processor receives from the event processing framework (EPF) is immutable because by default any processor &lt;/SPAN&gt;&lt;STRONG&gt;IS NOT a GeoEvent Mutator&lt;/STRONG&gt;&lt;SPAN&gt;. In order to change this behavior you need to override the following method inside of your processor code as follows:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;public boolean isGeoEventMutator() { return true; }&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This will tell EPF that your processor &lt;/SPAN&gt;&lt;STRONG&gt;IS GeoEvent Mutator&lt;/STRONG&gt;&lt;SPAN&gt; that should operate on its own instance of GeoEvent. EPF will cook it up for your processor and pass it in the [public GeoEvent process(GeoEvent geoEvent) throws Exception] method.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This should resolve the issue you reported.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Vlad Plechnoy.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Dec 2013 15:13:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-geoevent-server-questions/fieldexception-cannot-set-field-on-a-immutable/m-p/16519#M42</guid>
      <dc:creator>VladislavPlechnoy</dc:creator>
      <dc:date>2013-12-17T15:13:52Z</dc:date>
    </item>
    <item>
      <title>Re: FieldException: Cannot set field on a immutable GeoEvent</title>
      <link>https://community.esri.com/t5/arcgis-geoevent-server-questions/fieldexception-cannot-set-field-on-a-immutable/m-p/16520#M43</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Original User: LuisARG_Esri&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hello, your solution works.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you very much.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Dec 2013 15:34:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-geoevent-server-questions/fieldexception-cannot-set-field-on-a-immutable/m-p/16520#M43</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2013-12-17T15:34:24Z</dc:date>
    </item>
  </channel>
</rss>

