Use LINQ to XML in VB.NET - xml-parsing

I have a question regarding LINQ to XML in VB.NET.
How can I read specific attributes of an XML document and show the result in a listbox?
The attributes I would like to have in the listbox:
Krantyp
Klasse
Radius
Traglast
This is how the xml file looks like:
<?xml version="1.0" encoding="utf-8" ?> <Krane> <Hersteller>
<Marke>Liebherr</Marke>
<Modell>
<Krantyp>LTM 1030-2.1</Krantyp>
<Klasse>30</Klasse>
<Rüstzustand>
<Rüstdetail>
<ID>LTM 1030-2.1-A</ID>
<Color1>CornflowerBlue</Color1>
<TextOben1>30 m</TextOben1>
<TextUnten1>T</TextUnten1>
<Color2>Transparent</Color2>
<TextOben2></TextOben2>
<TextUnten2></TextUnten2>
<Color3>Transparent</Color3>
<TextOben3></TextOben3>
<TextUnten3></TextUnten3>
<Color4>Transparent</Color4>
<TextOben4></TextOben4>
<TextUnten4></TextUnten4>
<Color5>Transparent</Color5>
<TextOben5></TextOben5>
<TextUnten5></TextUnten5>
<Color6>LightCoral</Color6>
<TextOben6>2,3 t</TextOben6>
<TextUnten6>B</TextUnten6>
<Traglasten>
<Schritt>
<Radius>3</Radius>
<Traglast>30,0</Traglast>
</Schritt>
<Schritt>
<Radius>4</Radius>
<Traglast>24,5</Traglast>
</Schritt>
<Schritt>
<Radius>5</Radius>
<Traglast>19,4</Traglast>
</Schritt>
<Schritt>
<Radius>6</Radius>
<Traglast>14,9</Traglast>
</Schritt>
<Schritt>
<Radius>7</Radius>
<Traglast>11,5</Traglast>
</Schritt>
<Schritt>
<Radius>8</Radius>
<Traglast>9,1</Traglast>
</Schritt>
<Schritt>
<Radius>9</Radius>
<Traglast>7,6</Traglast>
</Schritt>
<Schritt>
<Radius>10</Radius>
<Traglast>6,3</Traglast>
</Schritt>
<Schritt>
<Radius>12</Radius>
<Traglast>4,7</Traglast>
</Schritt>
<Schritt>
<Radius>14</Radius>
<Traglast>3,5</Traglast>
</Schritt>
<Schritt>
<Radius>16</Radius>
<Traglast>2,7</Traglast>
</Schritt>
<Schritt>
<Radius>18</Radius>
<Traglast>2,2</Traglast>
</Schritt>
<Schritt>
<Radius>20</Radius>
<Traglast>1,7</Traglast>
</Schritt>
<Schritt>
<Radius>22</Radius>
<Traglast>1,3</Traglast>
</Schritt>
<Schritt>
<Radius>24</Radius>
<Traglast>1,0</Traglast>
</Schritt>
<Schritt>
<Radius>26</Radius>
<Traglast>0,8</Traglast>
</Schritt>
</Traglasten>
</Rüstdetail>
</Rüstzustand>
<Rüstzustand>
<Rüstdetail>
<ID>LTM 1030-2.1-B</ID>
<Color1>CornflowerBlue</Color1>
<TextOben1>30 m</TextOben1>
<TextUnten1>T</TextUnten1>
<Color2>Transparent</Color2>
<TextOben2></TextOben2>
<TextUnten2></TextUnten2>
<Color3>Transparent</Color3>
<TextOben3></TextOben3>
<TextUnten3></TextUnten3>
<Color4>Transparent</Color4>
<TextOben4></TextOben4>
<TextUnten4></TextUnten4>
<Color5>Transparent</Color5>
<TextOben5></TextOben5>
<TextUnten5></TextUnten5>
<Color6>LightCoral</Color6>
<TextOben6>5,5 t</TextOben6>
<TextUnten6>B</TextUnten6>
<Traglasten>
<Schritt>
<Radius>3</Radius>
<Traglast>30,3</Traglast>
</Schritt>
<Schritt>
<Radius>4</Radius>
<Traglast>24,9</Traglast>
</Schritt>
<Schritt>
<Radius>5</Radius>
<Traglast>20,7</Traglast>
</Schritt>
<Schritt>
<Radius>6</Radius>
<Traglast>17,1</Traglast>
</Schritt>
<Schritt>
<Radius>7</Radius>
<Traglast>14,2</Traglast>
</Schritt>
<Schritt>
<Radius>8</Radius>
<Traglast>11,4</Traglast>
</Schritt>
<Schritt>
<Radius>9</Radius>
<Traglast>9,5</Traglast>
</Schritt>
<Schritt>
<Radius>10</Radius>
<Traglast>8,0</Traglast>
</Schritt>
<Schritt>
<Radius>12</Radius>
<Traglast>6,0</Traglast>
</Schritt>
<Schritt>
<Radius>14</Radius>
<Traglast>4,7</Traglast>
</Schritt>
<Schritt>
<Radius>16</Radius>
<Traglast>3,8</Traglast>
</Schritt>
<Schritt>
<Radius>18</Radius>
<Traglast>3,1</Traglast>
</Schritt>
<Schritt>
<Radius>20</Radius>
<Traglast>2,5</Traglast>
</Schritt>
<Schritt>
<Radius>22</Radius>
<Traglast>2,1</Traglast>
</Schritt>
<Schritt>
<Radius>24</Radius>
<Traglast>1,7</Traglast>
</Schritt>
<Schritt>
<Radius>26</Radius>
<Traglast>1,4</Traglast>
</Schritt>
</Traglasten>
</Rüstdetail>
</Rüstzustand>
<Rüstzustand>
<Rüstdetail>
<ID>LTM 1030-2.1-C</ID>
<Color1>CornflowerBlue</Color1>
<TextOben1>30 m</TextOben1>
<TextUnten1>T</TextUnten1>
<Color2>CornflowerBlue</Color2>
<TextOben2>8,6 m</TextOben2>
<TextUnten2>K</TextUnten2>
<Color3>Transparent</Color3>
<TextOben3></TextOben3>
<TextUnten3></TextUnten3>
<Color4>Transparent</Color4>
<TextOben4></TextOben4>
<TextUnten4></TextUnten4>
<Color5>Transparent</Color5>
<TextOben5></TextOben5>
<TextUnten5></TextUnten5>
<Color6>LightCoral</Color6>
<TextOben6>2,3 t</TextOben6>
<TextUnten6>B</TextUnten6>
<Traglasten>
<Schritt>
<Radius>3</Radius>
<Traglast>6,3</Traglast>
</Schritt>
<Schritt>
<Radius>4</Radius>
<Traglast>5,8</Traglast>
</Schritt>
<Schritt>
<Radius>5</Radius>
<Traglast>5,3</Traglast>
</Schritt>
<Schritt>
<Radius>6</Radius>
<Traglast>6,6</Traglast>
</Schritt>
<Schritt>
<Radius>7</Radius>
<Traglast>6,4</Traglast>
</Schritt>
<Schritt>
<Radius>8</Radius>
<Traglast>6,2</Traglast>
</Schritt>
<Schritt>
<Radius>9</Radius>
<Traglast>5,9</Traglast>
</Schritt>
<Schritt>
<Radius>10</Radius>
<Traglast>5,6</Traglast>
</Schritt>
<Schritt>
<Radius>12</Radius>
<Traglast>4,6</Traglast>
</Schritt>
<Schritt>
<Radius>14</Radius>
<Traglast>3,7</Traglast>
</Schritt>
<Schritt>
<Radius>16</Radius>
<Traglast>3,2</Traglast>
</Schritt>
<Schritt>
<Radius>18</Radius>
<Traglast>2,7</Traglast>
</Schritt>
<Schritt>
<Radius>20</Radius>
<Traglast>2,2</Traglast>
</Schritt>
<Schritt>
<Radius>22</Radius>
<Traglast>1,8</Traglast>
</Schritt>
<Schritt>
<Radius>24</Radius>
<Traglast>1,4</Traglast>
</Schritt>
<Schritt>
<Radius>26</Radius>
<Traglast>1,1</Traglast>
</Schritt>
<Schritt>
<Radius>28</Radius>
<Traglast>0,9</Traglast>
</Schritt>
<Schritt>
<Radius>30</Radius>
<Traglast>0,6</Traglast>
</Schritt>
</Traglasten>
</Rüstdetail>
</Rüstzustand>
<Rüstzustand>
<Rüstdetail>
<ID>LTM 1030-2.1-D</ID>
<Color1>CornflowerBlue</Color1>
<TextOben1>30 m</TextOben1>
<TextUnten1>T</TextUnten1>
<Color2>CornflowerBlue</Color2>
<TextOben2>15,0 m</TextOben2>
<TextUnten2>K</TextUnten2>
<Color3>Transparent</Color3>
<TextOben3></TextOben3>
<TextUnten3></TextUnten3>
<Color4>Transparent</Color4>
<TextOben4></TextOben4>
<TextUnten4></TextUnten4>
<Color5>Transparent</Color5>
<TextOben5></TextOben5>
<TextUnten5></TextUnten5>
<Color6>LightCoral</Color6>
<TextOben6>2,3 t</TextOben6>
<TextUnten6>B</TextUnten6>
<Traglasten>
<Schritt>
<Radius>4</Radius>
<Traglast>3,0</Traglast>
</Schritt>
<Schritt>
<Radius>5</Radius>
<Traglast>2,9</Traglast>
</Schritt>
<Schritt>
<Radius>6</Radius>
<Traglast>2,8</Traglast>
</Schritt>
<Schritt>
<Radius>7</Radius>
<Traglast>3,1</Traglast>
</Schritt>
<Schritt>
<Radius>8</Radius>
<Traglast>3,0</Traglast>
</Schritt>
<Schritt>
<Radius>9</Radius>
<Traglast>3,0</Traglast>
</Schritt>
<Schritt>
<Radius>10</Radius>
<Traglast>2,9</Traglast>
</Schritt>
<Schritt>
<Radius>12</Radius>
<Traglast>2,7</Traglast>
</Schritt>
<Schritt>
<Radius>14</Radius>
<Traglast>2,6</Traglast>
</Schritt>
<Schritt>
<Radius>16</Radius>
<Traglast>2,4</Traglast>
</Schritt>
<Schritt>
<Radius>18</Radius>
<Traglast>2,3</Traglast>
</Schritt>
<Schritt>
<Radius>20</Radius>
<Traglast>2,0</Traglast>
</Schritt>
<Schritt>
<Radius>22</Radius>
<Traglast>1,7</Traglast>
</Schritt>
<Schritt>
<Radius>24</Radius>
<Traglast>1,6</Traglast>
</Schritt>
<Schritt>
<Radius>26</Radius>
<Traglast>1,5</Traglast>
</Schritt>
<Schritt>
<Radius>28</Radius>
<Traglast>1,2</Traglast>
</Schritt>
<Schritt>
<Radius>30</Radius>
<Traglast>1,0</Traglast>
</Schritt>
<Schritt>
<Radius>32</Radius>
<Traglast>0,7</Traglast>
</Schritt>
<Schritt>
<Radius>34</Radius>
<Traglast>0,5</Traglast>
</Schritt>
<Schritt>
<Radius>36</Radius>
<Traglast>0,4</Traglast>
</Schritt>
</Traglasten>
</Rüstdetail>
</Rüstzustand>
<Rüstzustand>
<Rüstdetail>
<ID>LTM 1030-2.1-E</ID>
<Color1>CornflowerBlue</Color1>
<TextOben1>30 m</TextOben1>
<TextUnten1>T</TextUnten1>
<Color2>CornflowerBlue</Color2>
<TextOben2>8,6 m</TextOben2>
<TextUnten2>K</TextUnten2>
<Color3>Transparent</Color3>
<TextOben3></TextOben3>
<TextUnten3></TextUnten3>
<Color4>Transparent</Color4>
<TextOben4></TextOben4>
<TextUnten4></TextUnten4>
<Color5>Transparent</Color5>
<TextOben5></TextOben5>
<TextUnten5></TextUnten5>
<Color6>LightCoral</Color6>
<TextOben6>5,5 t</TextOben6>
<TextUnten6>B</TextUnten6>
<Traglasten>
<Schritt>
<Radius>3</Radius>
<Traglast>6,3</Traglast>
</Schritt>
<Schritt>
<Radius>4</Radius>
<Traglast>5,8</Traglast>
</Schritt>
<Schritt>
<Radius>5</Radius>
<Traglast>5,3</Traglast>
</Schritt>
<Schritt>
<Radius>6</Radius>
<Traglast>6,6</Traglast>
</Schritt>
<Schritt>
<Radius>7</Radius>
<Traglast>6,4</Traglast>
</Schritt>
<Schritt>
<Radius>8</Radius>
<Traglast>6,2</Traglast>
</Schritt>
<Schritt>
<Radius>9</Radius>
<Traglast>5,9</Traglast>
</Schritt>
<Schritt>
<Radius>10</Radius>
<Traglast>5,6</Traglast>
</Schritt>
<Schritt>
<Radius>12</Radius>
<Traglast>5,1</Traglast>
</Schritt>
<Schritt>
<Radius>14</Radius>
<Traglast>4,7</Traglast>
</Schritt>
<Schritt>
<Radius>16</Radius>
<Traglast>4,0</Traglast>
</Schritt>
<Schritt>
<Radius>18</Radius>
<Traglast>3,3</Traglast>
</Schritt>
<Schritt>
<Radius>20</Radius>
<Traglast>2,9</Traglast>
</Schritt>
<Schritt>
<Radius>22</Radius>
<Traglast>2,5</Traglast>
</Schritt>
<Schritt>
<Radius>24</Radius>
<Traglast>2,1</Traglast>
</Schritt>
<Schritt>
<Radius>26</Radius>
<Traglast>1,7</Traglast>
</Schritt>
<Schritt>
<Radius>28</Radius>
<Traglast>1,4</Traglast>
</Schritt>
<Schritt>
<Radius>30</Radius>
<Traglast>1,2</Traglast>
</Schritt>
<Schritt>
<Radius>32</Radius>
<Traglast>0,9</Traglast>
</Schritt>
<Schritt>
<Radius>34</Radius>
<Traglast>0,7</Traglast>
</Schritt>
<Schritt>
<Radius>36</Radius>
<Traglast>0,6</Traglast>
</Schritt>
</Traglasten>
</Rüstdetail>
</Rüstzustand>
<Rüstzustand>
<Rüstdetail>
<ID>LTM 1030-2.1-F</ID>
<Color1>CornflowerBlue</Color1>
<TextOben1>30 m</TextOben1>
<TextUnten1>T</TextUnten1>
<Color2>CornflowerBlue</Color2>
<TextOben2>15,0 m</TextOben2>
<TextUnten2>K</TextUnten2>
<Color3>Transparent</Color3>
<TextOben3></TextOben3>
<TextUnten3></TextUnten3>
<Color4>Transparent</Color4>
<TextOben4></TextOben4>
<TextUnten4></TextUnten4>
<Color5>Transparent</Color5>
<TextOben5></TextOben5>
<TextUnten5></TextUnten5>
<Color6>LightCoral</Color6>
<TextOben6>5,5 t</TextOben6>
<TextUnten6>B</TextUnten6>
<Traglasten>
<Schritt>
<Radius>4</Radius>
<Traglast>3,0</Traglast>
</Schritt>
<Schritt>
<Radius>5</Radius>
<Traglast>2,9</Traglast>
</Schritt>
<Schritt>
<Radius>6</Radius>
<Traglast>2,8</Traglast>
</Schritt>
<Schritt>
<Radius>7</Radius>
<Traglast>3,1</Traglast>
</Schritt>
<Schritt>
<Radius>8</Radius>
<Traglast>3,0</Traglast>
</Schritt>
<Schritt>
<Radius>9</Radius>
<Traglast>3,0</Traglast>
</Schritt>
<Schritt>
<Radius>10</Radius>
<Traglast>2,9</Traglast>
</Schritt>
<Schritt>
<Radius>12</Radius>
<Traglast>2,7</Traglast>
</Schritt>
<Schritt>
<Radius>14</Radius>
<Traglast>2,6</Traglast>
</Schritt>
<Schritt>
<Radius>16</Radius>
<Traglast>2,4</Traglast>
</Schritt>
<Schritt>
<Radius>18</Radius>
<Traglast>2,3</Traglast>
</Schritt>
<Schritt>
<Radius>20</Radius>
<Traglast>2,1</Traglast>
</Schritt>
<Schritt>
<Radius>22</Radius>
<Traglast>2,0</Traglast>
</Schritt>
<Schritt>
<Radius>24</Radius>
<Traglast>1,9</Traglast>
</Schritt>
<Schritt>
<Radius>26</Radius>
<Traglast>1,7</Traglast>
</Schritt>
<Schritt>
<Radius>28</Radius>
<Traglast>1,6</Traglast>
</Schritt>
<Schritt>
<Radius>30</Radius>
<Traglast>1,5</Traglast>
</Schritt>
<Schritt>
<Radius>32</Radius>
<Traglast>1,2</Traglast>
</Schritt>
<Schritt>
<Radius>34</Radius>
<Traglast>1,0</Traglast>
</Schritt>
<Schritt>
<Radius>36</Radius>
<Traglast>0,8</Traglast>
</Schritt>
<Schritt>
<Radius>38</Radius>
<Traglast>0,6</Traglast>
</Schritt>
<Schritt>
<Radius>40</Radius>
<Traglast>0,4</Traglast>
</Schritt>
</Traglasten>
</Rüstdetail>
</Rüstzustand>
</Modell> </Hersteller> <Hersteller>
<Marke>Tadano Faun</Marke>
<Modell>
<Krantyp>ATF 50G-3</Krantyp>
<Klasse>50</Klasse>
<Rüstzustand>
<Rüstdetail>
<ID>ATF 50G-3-A</ID>
<Color1>CornflowerBlue</Color1>
<TextOben1>40 m</TextOben1>
<TextUnten1>T</TextUnten1>
<Color2>Transparent</Color2>
<TextOben2></TextOben2>
<TextUnten2></TextUnten2>
<Color3>Transparent</Color3>
<TextOben3></TextOben3>
<TextUnten3></TextUnten3>
<Color4>Transparent</Color4>
<TextOben4></TextOben4>
<TextUnten4></TextUnten4>
<Color5>Transparent</Color5>
<TextOben5></TextOben5>
<TextUnten5></TextUnten5>
<Color6>LightCoral</Color6>
<TextOben6>4,9 t</TextOben6>
<TextUnten6>B</TextUnten6>
<Traglasten>
<Schritt>
<Radius>3</Radius>
<Traglast>45,4</Traglast>
</Schritt>
<Schritt>
<Radius>4</Radius>
<Traglast>38,4</Traglast>
</Schritt>
<Schritt>
<Radius>5</Radius>
<Traglast>30,3</Traglast>
</Schritt>
<Schritt>
<Radius>6</Radius>
<Traglast>24,2</Traglast>
</Schritt>
<Schritt>
<Radius>7</Radius>
<Traglast>18,9</Traglast>
</Schritt>
<Schritt>
<Radius>8</Radius>
<Traglast>15,2</Traglast>
</Schritt>
<Schritt>
<Radius>9</Radius>
<Traglast>12,5</Traglast>
</Schritt>
<Schritt>
<Radius>10</Radius>
<Traglast>10,5</Traglast>
</Schritt>
<Schritt>
<Radius>12</Radius>
<Traglast>7,9</Traglast>
</Schritt>
<Schritt>
<Radius>14</Radius>
<Traglast>6,1</Traglast>
</Schritt>
<Schritt>
<Radius>16</Radius>
<Traglast>4,8</Traglast>
</Schritt>
<Schritt>
<Radius>18</Radius>
<Traglast>3,8</Traglast>
</Schritt>
<Schritt>
<Radius>20</Radius>
<Traglast>3,1</Traglast>
</Schritt>
<Schritt>
<Radius>22</Radius>
<Traglast>2,5</Traglast>
</Schritt>
<Schritt>
<Radius>24</Radius>
<Traglast>2,1</Traglast>
</Schritt>
<Schritt>
<Radius>26</Radius>
<Traglast>1,7</Traglast>
</Schritt>
<Schritt>
<Radius>28</Radius>
<Traglast>1,4</Traglast>
</Schritt>
<Schritt>
<Radius>30</Radius>
<Traglast>1,1</Traglast>
</Schritt>
</Traglasten>
</Rüstdetail>
</Rüstzustand>
I would appreciate any help.

Related

jenkins pipeline error ?/.sonar/cache/_tmp/

Exception is:
org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':sonarqube'.
at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.lambda$executeIfValid$1(ExecuteActionsTaskExecuter.java:188)
at org.gradle.internal.Try$Failure.ifSuccessfulOrElse(Try.java:263)
at
at org.gradle.launcher.exec.RootBuildLifecycleBuildActionExecutor.execute(RootBuildLifecycleBuildActionExecutor.java:40)
at org.gradle.execution.BuildOperationFiringBuildWorkerExecutor$ExecuteTasks.run(BuildOperationFiringBuildWorkerExecutor.java:57)
at org.gradle.internal.operations.DefaultBuildOperationRunner$1.execute(DefaultBuildOperationRunner.java:29)
at org.gradle.internal.operations.DefaultBuildOperationRunner$1.execute(DefaultBuildOperationRunner.java:26)
at org.gradle.internal.operations.DefaultBuildOperationRunner$3.execute(DefaultBuildOperationRunner.java:75)
at org.gradle.internal.operations.DefaultBuildOperationRunner$3.execute(DefaultBuildOperationRunner.java:68)
at org.gradle.internal.operations.DefaultBuildOperationRunner.execute(DefaultBuildOperationRunner.java:153)
at org.gradle.internal.operations.DefaultBuildOperationRunner.execute(DefaultBuildOperationRunner.java:68)
at org.gradle.internal.operations.DefaultBuildOperationRunner.run(DefaultBuildOperationRunner.java:56)
at org.gradle.internal.operations.DefaultBuildOperationExecutor.lambda$run$1(DefaultBuildOperationExecutor.java:74)
at org.gradle.internal.operations.UnmanagedBuildOperationWrapper.runWithUnmanagedSupport(UnmanagedBuildOperationWrapper.java:45)
at org.gradle.internal.operations.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:74)
at org.gradle.execution.BuildOperationFiringBuildWorkerExecutor.execute(BuildOperationFiringBuildWorkerExecutor.java:42)
at org.gradle.internal.build.DefaultBuildLifecycleController.runWork(DefaultBuildLifecycleController.java:173)
at org.gradle.internal.build.DefaultBuildLifecycleController.lambda$executeTasks$2(DefaultBuildLifecycleController.java:120)
at org.gradle.internal.build.DefaultBuildLifecycleController.withModel(DefaultBuildLifecycleController.java:134)
at org.gradle.internal.build.DefaultBuildLifecycleController.executeTasks(DefaultBuildLifecycleController.java:119)
at org.gradle.internal.buildtree.DefaultBuildTreeWorkExecutor.execute(DefaultBuildTreeWorkExecutor.java:37)
at org.gradle.internal.buildtree.BuildOperationFiringBuildTreeWorkExecutor$1.run(BuildOperationFiringBuildTreeWorkExecutor.java:41)
at org.gradle.internal.operations.DefaultBuildOperationRunner$1.execute(DefaultBuildOperationRunner.java:29)
at org.gradle.internal.operations.DefaultBuildOperationRunner$1.execute(DefaultBuildOperationRunner.java:26)
at org.gradle.internal.operations.DefaultBuildOperationRunner$3.execute(DefaultBuildOperationRunner.java:75)
at org.gradle.internal.operations.DefaultBuildOperationRunner$3.execute(DefaultBuildOperationRunner.java:68)
at org.gradle.internal.operations.DefaultBuildOperationRunner.execute(DefaultBuildOperationRunner.java:153)
at org.gradle.internal.operations.DefaultBuildOperationRunner.execute(DefaultBuildOperationRunner.java:68)
at org.gradle.internal.operations.DefaultBuildOperationRunner.run(DefaultBuildOperationRunner.java:56)
at org.gradle.internal.operations.DefaultBuildOperationExecutor.lambda$run$1(DefaultBuildOperationExecutor.java:74)
at org.gradle.internal.operations.UnmanagedBuildOperationWrapper.runWithUnmanagedSupport(UnmanagedBuildOperationWrapper.java:45)
at org.gradle.internal.operations.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:74)
at org.gradle.internal.buildtree.BuildOperationFiringBuildTreeWorkExecutor.execute(BuildOperationFiringBuildTreeWorkExecutor.java:38)
at org.gradle.internal.buildtree.DefaultBuildTreeLifecycleController.lambda$scheduleAndRunTasks$0(DefaultBuildTreeLifecycleController.java:63)
at org.gradle.internal.buildtree.DefaultBuildTreeLifecycleController.lambda$doBuild$4(DefaultBuildTreeLifecycleController.java:105)
at org.gradle.internal.work.DefaultWorkerLeaseService.withLocks(DefaultWorkerLeaseService.java:213)
at org.gradle.internal.buildtree.DefaultBuildTreeLifecycleController.doBuild(DefaultBuildTreeLifecycleController.java:99)
at org.gradle.internal.buildtree.DefaultBuildTreeLifecycleController.scheduleAndRunTasks(DefaultBuildTreeLifecycleController.java:61)
at org.gradle.tooling.internal.provider.ExecuteBuildActionRunner.run(ExecuteBuildActionRunner.java:31)
at org.gradle.launcher.exec.ChainingBuildActionRunner.run(ChainingBuildActionRunner.java:35)
at org.gradle.internal.buildtree.ProblemReportingBuildActionRunner.run(ProblemReportingBuildActionRunner.java:50)
at org.gradle.launcher.exec.BuildOutcomeReportingBuildActionRunner.run(BuildOutcomeReportingBuildActionRunner.java:69)
at org.gradle.tooling.internal.provider.FileSystemWatchingBuildActionRunner.run(FileSystemWatchingBuildActionRunner.java:90)
at org.gradle.launcher.exec.BuildCompletionNotifyingBuildActionRunner.run(BuildCompletionNotifyingBuildActionRunner.java:41)
at org.gradle.launcher.exec.RootBuildLifecycleBuildActionExecutor.lambda$execute$0(RootBuildLifecycleBuildActionExecutor.java:40)
at org.gradle.composite.internal.DefaultRootBuildState.run(DefaultRootBuildState.java:128)
at org.gradle.launcher.exec.RootBuildLifecycleBuildActionExecutor.execute(RootBuildLifecycleBuildActionExecutor.java:40)
at org.gradle.internal.buildtree.DefaultBuildTreeContext.execute(DefaultBuildTreeContext.java:40)
at org.gradle.launcher.exec.BuildTreeLifecycleBuildActionExecutor.lambda$execute$0(BuildTreeLifecycleBuildActionExecutor.java:40)
at org.gradle.internal.buildtree.BuildTreeState.run(BuildTreeState.java:53)
at org.gradle.launcher.exec.BuildTreeLifecycleBuildActionExecutor.execute(BuildTreeLifecycleBuildActionExecutor.java:40)
at org.gradle.launcher.exec.RunAsBuildOperationBuildActionExecutor$3.call(RunAsBuildOperationBuildActionExecutor.java:61)
at org.gradle.launcher.exec.RunAsBuildOperationBuildActionExecutor$3.call(RunAsBuildOperationBuildActionExecutor.java:57)
at org.gradle.internal.operations.DefaultBuildOperationRunner$CallableBuildOperationWorker.execute(DefaultBuildOperationRunner.java:200)
at org.gradle.internal.operations.DefaultBuildOperationRunner$CallableBuildOperationWorker.execute(DefaultBuildOperationRunner.java:195)
at org.gradle.internal.operations.DefaultBuildOperationRunner$3.execute(DefaultBuildOperationRunner.java:75)
at org.gradle.internal.operations.DefaultBuildOperationRunner$3.execute(DefaultBuildOperationRunner.java:68)
at org.gradle.internal.operations.DefaultBuildOperationRunner.execute(DefaultBuildOperationRunner.java:153)
at org.gradle.internal.operations.DefaultBuildOperationRunner.execute(DefaultBuildOperationRunner.java:68)
at org.gradle.internal.operations.DefaultBuildOperationRunner.call(DefaultBuildOperationRunner.java:62)
at org.gradle.internal.operations.DefaultBuildOperationExecutor.lambda$call$2(DefaultBuildOperationExecutor.java:79)
at org.gradle.internal.operations.UnmanagedBuildOperationWrapper.callWithUnmanagedSupport(UnmanagedBuildOperationWrapper.java:54)
at org.gradle.internal.operations.DefaultBuildOperationExecutor.call(DefaultBuildOperationExecutor.java:79)
at org.gradle.launcher.exec.RunAsBuildOperationBuildActionExecutor.execute(RunAsBuildOperationBuildActionExecutor.java:57)
at org.gradle.tooling.internal.provider.ContinuousBuildActionExecutor.execute(ContinuousBuildActionExecutor.java:103)
at org.gradle.tooling.internal.provider.SubscribableBuildActionExecutor.execute(SubscribableBuildActionExecutor.java:64)
at org.gradle.internal.session.DefaultBuildSessionContext.execute(DefaultBuildSessionContext.java:46)
at org.gradle.tooling.internal.provider.BuildSessionLifecycleBuildActionExecuter.lambda$execute$0(BuildSessionLifecycleBuildActionExecuter.java:55)
at org.gradle.internal.session.BuildSessionState.run(BuildSessionState.java:69)
at org.gradle.tooling.internal.provider.BuildSessionLifecycleBuildActionExecuter.execute(BuildSessionLifecycleBuildActionExecuter.java:54)
at org.gradle.tooling.internal.provider.BuildSessionLifecycleBuildActionExecuter.execute(BuildSessionLifecycleBuildActionExecuter.java:36)
at org.gradle.tooling.internal.provider.GradleThreadBuildActionExecuter.execute(GradleThreadBuildActionExecuter.java:36)
at org.gradle.tooling.internal.provider.GradleThreadBuildActionExecuter.execute(GradleThreadBuildActionExecuter.java:25)
at org.gradle.tooling.internal.provider.StartParamsValidatingActionExecuter.execute(StartParamsValidatingActionExecuter.java:63)
at org.gradle.tooling.internal.provider.StartParamsValidatingActionExecuter.execute(StartParamsValidatingActionExecuter.java:31)
at org.gradle.tooling.internal.provider.SessionFailureReportingActionExecuter.execute(SessionFailureReportingActionExecuter.java:58)
at org.gradle.tooling.internal.provider.SessionFailureReportingActionExecuter.execute(SessionFailureReportingActionExecuter.java:42)
at org.gradle.tooling.internal.provider.SetupLoggingActionExecuter.execute(SetupLoggingActionExecuter.java:47)
at org.gradle.tooling.internal.provider.SetupLoggingActionExecuter.execute(SetupLoggingActionExecuter.java:31)
at org.gradle.launcher.daemon.server.exec.ExecuteBuild.doBuild(ExecuteBuild.java:65)
at org.gradle.launcher.daemon.server.exec.BuildCommandOnly.execute(BuildCommandOnly.java:37)
at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:104)
at org.gradle.launcher.daemon.server.exec.WatchForDisconnection.execute(WatchForDisconnection.java:39)
at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:104)
at org.gradle.launcher.daemon.server.exec.ResetDeprecationLogger.execute(ResetDeprecationLogger.java:29)
at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:104)
at org.gradle.launcher.daemon.server.exec.RequestStopIfSingleUsedDaemon.execute(RequestStopIfSingleUsedDaemon.java:35)
at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:104)
at org.gradle.launcher.daemon.server.exec.ForwardClientInput$2.create(ForwardClientInput.java:78)
at org.gradle.launcher.daemon.server.exec.ForwardClientInput$2.create(ForwardClientInput.java:75)
at org.gradle.util.internal.Swapper.swap(Swapper.java:38)
at org.gradle.launcher.daemon.server.exec.ForwardClientInput.execute(ForwardClientInput.java:75)
at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:104)
at org.gradle.launcher.daemon.server.exec.LogAndCheckHealth.execute(LogAndCheckHealth.java:50)
at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:104)
at org.gradle.launcher.daemon.server.exec.LogToClient.doBuild(LogToClient.java:63)
at org.gradle.launcher.daemon.server.exec.BuildCommandOnly.execute(BuildCommandOnly.java:37)
at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:104)
at org.gradle.launcher.daemon.server.exec.EstablishBuildEnvironment.doBuild(EstablishBuildEnvironment.java:84)
at org.gradle.launcher.daemon.server.exec.BuildCommandOnly.execute(BuildCommandOnly.java:37)
at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:104)
at org.gradle.launcher.daemon.server.exec.StartBuildOrRespondWithBusy$1.run(StartBuildOrRespondWithBusy.java:52)
at org.gradle.launcher.daemon.server.DaemonStateCoordinator$1.run(DaemonStateCoordinator.java:297)
at org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.java:64)
at org.gradle.internal.concurrent.ManagedExecutorImpl$1.run(ManagedExecutorImpl.java:48)
at org.gradle.internal.concurrent.ThreadFactoryImpl$ManagedThreadRunnable.run(ThreadFactoryImpl.java:56)
Caused by: java.lang.IllegalStateException: Fail to create temp file in ?/.sonar/cache/_tmp
at org.sonarsource.scanner.api.internal.cache.FileCache.newTempFile(FileCache.java:138)
at org.sonarsource.scanner.api.internal.cache.FileCache.get(FileCache.java:83)
at org.sonarsource.scanner.api.internal.JarDownloader.lambda$getScannerEngineFiles$0(JarDownloader.java:60)
at org.sonarsource.scanner.api.internal.JarDownloader.getScannerEngineFiles(JarDownloader.java:61)
at org.sonarsource.scanner.api.internal.JarDownloader.download(JarDownloader.java:53)
at org.sonarsource.scanner.api.internal.IsolatedLauncherFactory.lambda$createLauncher$0(IsolatedLauncherFactory.java:76)
... 237 more
Caused by: java.nio.file.NoSuchFileException: ?/.sonar/cache/_tmp/fileCache6514895749160252867.tmp
at org.sonarsource.scanner.api.internal.cache.FileCache.newTempFile(FileCache.java:136)
... 242 more
I try find respone on google but i have not found

com.netflix.zuul.exception.ZuulException: Forwarding error while calling microservice api

I have registered UI and backend application in Eureka server.Its up and running(both application). Configure zuul application.yml:
zuul:
sensitive-headers:
ignore-security-headers: false
routes:
complexitycheck:
path: /api/app1/**
serviceId: APP1
strip-prefix: true`
application.properties: `eureka.instance.preferIpAddress=true
eureka.client.registerWithEureka=true eureka.client.fetchRegistry=true
eureka.instance.hostName=App1 eureka.client.serviceUrl.defaultZone=http://eureka_host/eureka/
hystrix.command.default.execution.timeout.enabled=true
hystrix.command.default.execution.isolation.thread.timeoutInMilliseconds=60000
Below stacktrace ;
2018-10-31 11:18:45.935 WARN 12692 --- [nio-8181-exec-2] o.s.c.n.z.filters.post.SendErrorFilter : Error during filtering
com.netflix.zuul.exception.ZuulException: Forwarding error
at org.springframework.cloud.netflix.zuul.filters.route.RibbonRoutingFilter.handleException(RibbonRoutingFilter.java:189) ~[spring-cloud-netflix-zuul-2.0.1.RELEASE.jar:2.0.1.RELEASE]
at org.springframework.cloud.netflix.zuul.filters.route.RibbonRoutingFilter.forward(RibbonRoutingFilter.java:164) ~[spring-cloud-netflix-zuul-2.0.1.RELEASE.jar:2.0.1.RELEASE]
at org.springframework.cloud.netflix.zuul.filters.route.RibbonRoutingFilter.run(RibbonRoutingFilter.java:112) ~[spring-cloud-netflix-zuul-2.0.1.RELEASE.jar:2.0.1.RELEASE]
at com.netflix.zuul.ZuulFilter.runFilter(ZuulFilter.java:117) ~[zuul-core-1.3.1.jar:1.3.1]
at com.netflix.zuul.FilterProcessor.processZuulFilter(FilterProcessor.java:193) ~[zuul-core-1.3.1.jar:1.3.1]
at com.netflix.zuul.FilterProcessor.runFilters(FilterProcessor.java:157) ~[zuul-core-1.3.1.jar:1.3.1]
at com.netflix.zuul.FilterProcessor.route(FilterProcessor.java:118) ~[zuul-core-1.3.1.jar:1.3.1]
at com.netflix.zuul.ZuulRunner.route(ZuulRunner.java:96) ~[zuul-core-1.3.1.jar:1.3.1]
at com.netflix.zuul.http.ZuulServlet.route(ZuulServlet.java:116) ~[zuul-core-1.3.1.jar:1.3.1]
at com.netflix.zuul.http.ZuulServlet.service(ZuulServlet.java:81) ~[zuul-core-1.3.1.jar:1.3.1]
at org.springframework.web.servlet.mvc.ServletWrappingController.handleRequestInternal(ServletWrappingController.java:165) [spring-webmvc-5.0.10.RELEASE.jar:5.0.10.RELEASE]
at org.springframework.cloud.netflix.zuul.web.ZuulController.handleRequest(ZuulController.java:44) [spring-cloud-netflix-zuul-2.0.1.RELEASE.jar:2.0.1.RELEASE]
at org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter.handle(SimpleControllerHandlerAdapter.java:52) [spring-webmvc-5.0.10.RELEASE.jar:5.0.10.RELEASE]
at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:991) [spring-webmvc-5.0.10.RELEASE.jar:5.0.10.RELEASE]
at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:925) [spring-webmvc-5.0.10.RELEASE.jar:5.0.10.RELEASE]
at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:974) [spring-webmvc-5.0.10.RELEASE.jar:5.0.10.RELEASE]
at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:866) [spring-webmvc-5.0.10.RELEASE.jar:5.0.10.RELEASE]
at javax.servlet.http.HttpServlet.service(HttpServlet.java:635) [tomcat-embed-core-8.5.34.jar:8.5.34]
at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:851) [spring-webmvc-5.0.10.RELEASE.jar:5.0.10.RELEASE]
at javax.servlet.http.HttpServlet.service(HttpServlet.java:742) [tomcat-embed-core-8.5.34.jar:8.5.34]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231) [tomcat-embed-core-8.5.34.jar:8.5.34]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) [tomcat-embed-core-8.5.34.jar:8.5.34]
at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52) [tomcat-embed-websocket-8.5.34.jar:8.5.34]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) [tomcat-embed-core-8.5.34.jar:8.5.34]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) [tomcat-embed-core-8.5.34.jar:8.5.34]
at org.springframework.boot.actuate.web.trace.servlet.HttpTraceFilter.doFilterInternal(HttpTraceFilter.java:90) [spring-boot-actuator-2.0.6.RELEASE.jar:2.0.6.RELEASE]
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107) [spring-web-5.0.10.RELEASE.jar:5.0.10.RELEASE]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) [tomcat-embed-core-8.5.34.jar:8.5.34]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) [tomcat-embed-core-8.5.34.jar:8.5.34]
at org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:99) [spring-web-5.0.10.RELEASE.jar:5.0.10.RELEASE]
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107) [spring-web-5.0.10.RELEASE.jar:5.0.10.RELEASE]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) [tomcat-embed-core-8.5.34.jar:8.5.34]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) [tomcat-embed-core-8.5.34.jar:8.5.34]
at org.springframework.web.filter.HttpPutFormContentFilter.doFilterInternal(HttpPutFormContentFilter.java:109) [spring-web-5.0.10.RELEASE.jar:5.0.10.RELEASE]
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107) [spring-web-5.0.10.RELEASE.jar:5.0.10.RELEASE]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) [tomcat-embed-core-8.5.34.jar:8.5.34]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) [tomcat-embed-core-8.5.34.jar:8.5.34]
at org.springframework.web.filter.HiddenHttpMethodFilter.doFilterInternal(HiddenHttpMethodFilter.java:93) [spring-web-5.0.10.RELEASE.jar:5.0.10.RELEASE]
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107) [spring-web-5.0.10.RELEASE.jar:5.0.10.RELEASE]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) [tomcat-embed-core-8.5.34.jar:8.5.34]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) [tomcat-embed-core-8.5.34.jar:8.5.34]
at org.springframework.boot.actuate.metrics.web.servlet.WebMvcMetricsFilter.filterAndRecordMetrics(WebMvcMetricsFilter.java:155) [spring-boot-actuator-2.0.6.RELEASE.jar:2.0.6.RELEASE]
at org.springframework.boot.actuate.metrics.web.servlet.WebMvcMetricsFilter.filterAndRecordMetrics(WebMvcMetricsFilter.java:123) [spring-boot-actuator-2.0.6.RELEASE.jar:2.0.6.RELEASE]
at org.springframework.boot.actuate.metrics.web.servlet.WebMvcMetricsFilter.doFilterInternal(WebMvcMetricsFilter.java:108) [spring-boot-actuator-2.0.6.RELEASE.jar:2.0.6.RELEASE]
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107) [spring-web-5.0.10.RELEASE.jar:5.0.10.RELEASE]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) [tomcat-embed-core-8.5.34.jar:8.5.34]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) [tomcat-embed-core-8.5.34.jar:8.5.34]
at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:200) [spring-web-5.0.10.RELEASE.jar:5.0.10.RELEASE]
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107) [spring-web-5.0.10.RELEASE.jar:5.0.10.RELEASE]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) [tomcat-embed-core-8.5.34.jar:8.5.34]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) [tomcat-embed-core-8.5.34.jar:8.5.34]
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:198) [tomcat-embed-core-8.5.34.jar:8.5.34]
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96) [tomcat-embed-core-8.5.34.jar:8.5.34]
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:493) [tomcat-embed-core-8.5.34.jar:8.5.34]
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:140) [tomcat-embed-core-8.5.34.jar:8.5.34]
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:81) [tomcat-embed-core-8.5.34.jar:8.5.34]
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:87) [tomcat-embed-core-8.5.34.jar:8.5.34]
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:342) [tomcat-embed-core-8.5.34.jar:8.5.34]
at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:800) [tomcat-embed-core-8.5.34.jar:8.5.34]
at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66) [tomcat-embed-core-8.5.34.jar:8.5.34]
at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:806) [tomcat-embed-core-8.5.34.jar:8.5.34]
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1498) [tomcat-embed-core-8.5.34.jar:8.5.34]
at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49) [tomcat-embed-core-8.5.34.jar:8.5.34]
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) [na:1.8.0_181]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [na:1.8.0_181]
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) [tomcat-embed-core-8.5.34.jar:8.5.34]
at java.lang.Thread.run(Unknown Source) [na:1.8.0_181]
Caused by: com.netflix.client.ClientException: null
at com.netflix.client.AbstractLoadBalancerAwareClient.executeWithLoadBalancer(AbstractLoadBalancerAwareClient.java:118) ~[ribbon-loadbalancer-2.2.5.jar:2.2.5]
at org.springframework.cloud.netflix.zuul.filters.route.support.AbstractRibbonCommand.run(AbstractRibbonCommand.java:186) ~[spring-cloud-netflix-zuul-2.0.1.RELEASE.jar:2.0.1.RELEASE]
at org.springframework.cloud.netflix.zuul.filters.route.support.AbstractRibbonCommand.run(AbstractRibbonCommand.java:51) ~[spring-cloud-netflix-zuul-2.0.1.RELEASE.jar:2.0.1.RELEASE]
at com.netflix.hystrix.HystrixCommand$2.call(HystrixCommand.java:302) ~[hystrix-core-1.5.12.jar:1.5.12]
at com.netflix.hystrix.HystrixCommand$2.call(HystrixCommand.java:298) ~[hystrix-core-1.5.12.jar:1.5.12]
at rx.internal.operators.OnSubscribeDefer.call(OnSubscribeDefer.java:46) ~[rxjava-1.3.8.jar:1.3.8]
at rx.internal.operators.OnSubscribeDefer.call(OnSubscribeDefer.java:35) ~[rxjava-1.3.8.jar:1.3.8]
at rx.internal.operators.OnSubscribeLift.call(OnSubscribeLift.java:48) ~[rxjava-1.3.8.jar:1.3.8]
at rx.internal.operators.OnSubscribeLift.call(OnSubscribeLift.java:30) ~[rxjava-1.3.8.jar:1.3.8]
at rx.internal.operators.OnSubscribeLift.call(OnSubscribeLift.java:48) ~[rxjava-1.3.8.jar:1.3.8]
at rx.internal.operators.OnSubscribeLift.call(OnSubscribeLift.java:30) ~[rxjava-1.3.8.jar:1.3.8]
at rx.internal.operators.OnSubscribeLift.call(OnSubscribeLift.java:48) ~[rxjava-1.3.8.jar:1.3.8]
at rx.internal.operators.OnSubscribeLift.call(OnSubscribeLift.java:30) ~[rxjava-1.3.8.jar:1.3.8]
at rx.Observable.unsafeSubscribe(Observable.java:10327) ~[rxjava-1.3.8.jar:1.3.8]
at rx.internal.operators.OnSubscribeDefer.call(OnSubscribeDefer.java:51) ~[rxjava-1.3.8.jar:1.3.8]
at rx.internal.operators.OnSubscribeDefer.call(OnSubscribeDefer.java:35) ~[rxjava-1.3.8.jar:1.3.8]
at rx.internal.operators.OnSubscribeLift.call(OnSubscribeLift.java:48) ~[rxjava-1.3.8.jar:1.3.8]
at rx.internal.operators.OnSubscribeLift.call(OnSubscribeLift.java:30) ~[rxjava-1.3.8.jar:1.3.8]
at rx.Observable.unsafeSubscribe(Observable.java:10327) ~[rxjava-1.3.8.jar:1.3.8]
at rx.internal.operators.OnSubscribeDoOnEach.call(OnSubscribeDoOnEach.java:41) ~[rxjava-1.3.8.jar:1.3.8]
at rx.internal.operators.OnSubscribeDoOnEach.call(OnSubscribeDoOnEach.java:30) ~[rxjava-1.3.8.jar:1.3.8]
at rx.Observable.unsafeSubscribe(Observable.java:10327) ~[rxjava-1.3.8.jar:1.3.8]
at rx.internal.operators.OnSubscribeDoOnEach.call(OnSubscribeDoOnEach.java:41) ~[rxjava-1.3.8.jar:1.3.8]
at rx.internal.operators.OnSubscribeDoOnEach.call(OnSubscribeDoOnEach.java:30) ~[rxjava-1.3.8.jar:1.3.8]
at rx.internal.operators.OnSubscribeLift.call(OnSubscribeLift.java:48) ~[rxjava-1.3.8.jar:1.3.8]
at rx.internal.operators.OnSubscribeLift.call(OnSubscribeLift.java:30) ~[rxjava-1.3.8.jar:1.3.8]
at rx.Observable.unsafeSubscribe(Observable.java:10327) ~[rxjava-1.3.8.jar:1.3.8]
at rx.internal.operators.OnSubscribeDoOnEach.call(OnSubscribeDoOnEach.java:41) ~[rxjava-1.3.8.jar:1.3.8]
at rx.internal.operators.OnSubscribeDoOnEach.call(OnSubscribeDoOnEach.java:30) ~[rxjava-1.3.8.jar:1.3.8]
at rx.Observable.unsafeSubscribe(Observable.java:10327) ~[rxjava-1.3.8.jar:1.3.8]
at rx.internal.operators.OnSubscribeDoOnEach.call(OnSubscribeDoOnEach.java:41) ~[rxjava-1.3.8.jar:1.3.8]
at rx.internal.operators.OnSubscribeDoOnEach.call(OnSubscribeDoOnEach.java:30) ~[rxjava-1.3.8.jar:1.3.8]
at rx.Observable.unsafeSubscribe(Observable.java:10327) ~[rxjava-1.3.8.jar:1.3.8]
at rx.internal.operators.OnSubscribeDoOnEach.call(OnSubscribeDoOnEach.java:41) ~[rxjava-1.3.8.jar:1.3.8]
at rx.internal.operators.OnSubscribeDoOnEach.call(OnSubscribeDoOnEach.java:30) ~[rxjava-1.3.8.jar:1.3.8]
at rx.internal.operators.OnSubscribeLift.call(OnSubscribeLift.java:48) ~[rxjava-1.3.8.jar:1.3.8]
at rx.internal.operators.OnSubscribeLift.call(OnSubscribeLift.java:30) ~[rxjava-1.3.8.jar:1.3.8]
at rx.Observable.unsafeSubscribe(Observable.java:10327) ~[rxjava-1.3.8.jar:1.3.8]
at rx.internal.operators.OnSubscribeDefer.call(OnSubscribeDefer.java:51) ~[rxjava-1.3.8.jar:1.3.8]
at rx.internal.operators.OnSubscribeDefer.call(OnSubscribeDefer.java:35) ~[rxjava-1.3.8.jar:1.3.8]
at rx.Observable.unsafeSubscribe(Observable.java:10327) ~[rxjava-1.3.8.jar:1.3.8]
at rx.internal.operators.OnSubscribeMap.call(OnSubscribeMap.java:48) ~[rxjava-1.3.8.jar:1.3.8]
at rx.internal.operators.OnSubscribeMap.call(OnSubscribeMap.java:33) ~[rxjava-1.3.8.jar:1.3.8]
at rx.Observable.unsafeSubscribe(Observable.java:10327) ~[rxjava-1.3.8.jar:1.3.8]
at rx.internal.operators.OnSubscribeDoOnEach.call(OnSubscribeDoOnEach.java:41) ~[rxjava-1.3.8.jar:1.3.8]
at rx.internal.operators.OnSubscribeDoOnEach.call(OnSubscribeDoOnEach.java:30) ~[rxjava-1.3.8.jar:1.3.8]
at rx.internal.operators.OnSubscribeLift.call(OnSubscribeLift.java:48) ~[rxjava-1.3.8.jar:1.3.8]
at rx.internal.operators.OnSubscribeLift.call(OnSubscribeLift.java:30) ~[rxjava-1.3.8.jar:1.3.8]
at rx.Observable.unsafeSubscribe(Observable.java:10327) ~[rxjava-1.3.8.jar:1.3.8]
at rx.internal.operators.OnSubscribeDoOnEach.call(OnSubscribeDoOnEach.java:41) ~[rxjava-1.3.8.jar:1.3.8]
at rx.internal.operators.OnSubscribeDoOnEach.call(OnSubscribeDoOnEach.java:30) ~[rxjava-1.3.8.jar:1.3.8]
at rx.Observable.unsafeSubscribe(Observable.java:10327) ~[rxjava-1.3.8.jar:1.3.8]
at rx.internal.operators.OnSubscribeDefer.call(OnSubscribeDefer.java:51) ~[rxjava-1.3.8.jar:1.3.8]
at rx.internal.operators.OnSubscribeDefer.call(OnSubscribeDefer.java:35) ~[rxjava-1.3.8.jar:1.3.8]
at rx.internal.operators.OnSubscribeLift.call(OnSubscribeLift.java:48) ~[rxjava-1.3.8.jar:1.3.8]
at rx.internal.operators.OnSubscribeLift.call(OnSubscribeLift.java:30) ~[rxjava-1.3.8.jar:1.3.8]
at rx.Observable.subscribe(Observable.java:10423) ~[rxjava-1.3.8.jar:1.3.8]
at rx.Observable.subscribe(Observable.java:10390) ~[rxjava-1.3.8.jar:1.3.8]
at rx.internal.operators.BlockingOperatorToFuture.toFuture(BlockingOperatorToFuture.java:51) ~[rxjava-1.3.8.jar:1.3.8]
at rx.observables.BlockingObservable.toFuture(BlockingObservable.java:410) ~[rxjava-1.3.8.jar:1.3.8]
at com.netflix.hystrix.HystrixCommand.queue(HystrixCommand.java:378) ~[hystrix-core-1.5.12.jar:1.5.12]
at com.netflix.hystrix.HystrixCommand.execute(HystrixCommand.java:344) ~[hystrix-core-1.5.12.jar:1.5.12]
at org.springframework.cloud.netflix.zuul.filters.route.RibbonRoutingFilter.forward(RibbonRoutingFilter.java:159) ~[spring-cloud-netflix-zuul-2.0.1.RELEASE.jar:2.0.1.RELEASE]
... 65 common frames omitted
Caused by: java.lang.RuntimeException: org.apache.http.conn.ConnectTimeoutException: Connect to 192.168.1.35:8282 [/192.168.1.35] failed: connect timed out
at rx.exceptions.Exceptions.propagate(Exceptions.java:57) ~[rxjava-1.3.8.jar:1.3.8]
at rx.observables.BlockingObservable.blockForSingle(BlockingObservable.java:463) ~[rxjava-1.3.8.jar:1.3.8]
at rx.observables.BlockingObservable.single(BlockingObservable.java:340) ~[rxjava-1.3.8.jar:1.3.8]
at com.netflix.client.AbstractLoadBalancerAwareClient.executeWithLoadBalancer(AbstractLoadBalancerAwareClient.java:112) ~[ribbon-loadbalancer-2.2.5.jar:2.2.5]
... 127 common frames omitted
Caused by: org.apache.http.conn.ConnectTimeoutException: Connect to 192.168.1.35:8282 [/192.168.1.35] failed: connect timed out
at org.apache.http.impl.conn.DefaultHttpClientConnectionOperator.connect(DefaultHttpClientConnectionOperator.java:151) ~[httpclient-4.5.6.jar:4.5.6]
at org.apache.http.impl.conn.PoolingHttpClientConnectionManager.connect(PoolingHttpClientConnectionManager.java:373) ~[httpclient-4.5.6.jar:4.5.6]
at org.apache.http.impl.execchain.MainClientExec.establishRoute(MainClientExec.java:394) ~[httpclient-4.5.6.jar:4.5.6]
at org.apache.http.impl.execchain.MainClientExec.execute(MainClientExec.java:237) ~[httpclient-4.5.6.jar:4.5.6]
at org.apache.http.impl.execchain.ProtocolExec.execute(ProtocolExec.java:185) ~[httpclient-4.5.6.jar:4.5.6]
at org.apache.http.impl.execchain.RetryExec.execute(RetryExec.java:89) ~[httpclient-4.5.6.jar:4.5.6]
at org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:185) ~[httpclient-4.5.6.jar:4.5.6]
at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:83) ~[httpclient-4.5.6.jar:4.5.6]
at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:108) ~[httpclient-4.5.6.jar:4.5.6]
at org.springframework.cloud.netflix.ribbon.apache.RibbonLoadBalancingHttpClient.execute(RibbonLoadBalancingHttpClient.java:81) ~[spring-cloud-netflix-ribbon-2.0.1.RELEASE.jar:2.0.1.RELEASE]
at org.springframework.cloud.netflix.ribbon.apache.RibbonLoadBalancingHttpClient.execute(RibbonLoadBalancingHttpClient.java:44) ~[spring-cloud-netflix-ribbon-2.0.1.RELEASE.jar:2.0.1.RELEASE]
at com.netflix.client.AbstractLoadBalancerAwareClient$1.call(AbstractLoadBalancerAwareClient.java:104) ~[ribbon-loadbalancer-2.2.5.jar:2.2.5]
at com.netflix.loadbalancer.reactive.LoadBalancerCommand$3$1.call(LoadBalancerCommand.java:303) ~[ribbon-loadbalancer-2.2.5.jar:2.2.5]
at com.netflix.loadbalancer.reactive.LoadBalancerCommand$3$1.call(LoadBalancerCommand.java:287) ~[ribbon-loadbalancer-2.2.5.jar:2.2.5]
at rx.internal.util.ScalarSynchronousObservable$3.call(ScalarSynchronousObservable.java:231) ~[rxjava-1.3.8.jar:1.3.8]
at rx.internal.util.ScalarSynchronousObservable$3.call(ScalarSynchronousObservable.java:228) ~[rxjava-1.3.8.jar:1.3.8]
at rx.Observable.unsafeSubscribe(Observable.java:10327) ~[rxjava-1.3.8.jar:1.3.8]
at rx.internal.operators.OnSubscribeConcatMap$ConcatMapSubscriber.drain(OnSubscribeConcatMap.java:286) ~[rxjava-1.3.8.jar:1.3.8]
at rx.internal.operators.OnSubscribeConcatMap$ConcatMapSubscriber.onNext(OnSubscribeConcatMap.java:144) ~[rxjava-1.3.8.jar:1.3.8]
at com.netflix.loadbalancer.reactive.LoadBalancerCommand$1.call(LoadBalancerCommand.java:185) ~[ribbon-loadbalancer-2.2.5.jar:2.2.5]
at com.netflix.loadbalancer.reactive.LoadBalancerCommand$1.call(LoadBalancerCommand.java:180) ~[ribbon-loadbalancer-2.2.5.jar:2.2.5]
at rx.Observable.unsafeSubscribe(Observable.java:10327) ~[rxjava-1.3.8.jar:1.3.8]
at rx.internal.operators.OnSubscribeConcatMap.call(OnSubscribeConcatMap.java:94) ~[rxjava-1.3.8.jar:1.3.8]
at rx.internal.operators.OnSubscribeConcatMap.call(OnSubscribeConcatMap.java:42) ~[rxjava-1.3.8.jar:1.3.8]
at rx.Observable.unsafeSubscribe(Observable.java:10327) ~[rxjava-1.3.8.jar:1.3.8]
at rx.internal.operators.OperatorRetryWithPredicate$SourceSubscriber$1.call(OperatorRetryWithPredicate.java:127) ~[rxjava-1.3.8.jar:1.3.8]
at rx.internal.schedulers.TrampolineScheduler$InnerCurrentThreadScheduler.enqueue(TrampolineScheduler.java:73) ~[rxjava-1.3.8.jar:1.3.8]
at rx.internal.schedulers.TrampolineScheduler$InnerCurrentThreadScheduler.schedule(TrampolineScheduler.java:52) ~[rxjava-1.3.8.jar:1.3.8]
at rx.internal.operators.OperatorRetryWithPredicate$SourceSubscriber.onNext(OperatorRetryWithPredicate.java:79) ~[rxjava-1.3.8.jar:1.3.8]
at rx.internal.operators.OperatorRetryWithPredicate$SourceSubscriber.onNext(OperatorRetryWithPredicate.java:45) ~[rxjava-1.3.8.jar:1.3.8]
at rx.internal.util.ScalarSynchronousObservable$WeakSingleProducer.request(ScalarSynchronousObservable.java:276) ~[rxjava-1.3.8.jar:1.3.8]
at rx.Subscriber.setProducer(Subscriber.java:209) ~[rxjava-1.3.8.jar:1.3.8]
at rx.internal.util.ScalarSynchronousObservable$JustOnSubscribe.call(ScalarSynchronousObservable.java:138) ~[rxjava-1.3.8.jar:1.3.8]
at rx.internal.util.ScalarSynchronousObservable$JustOnSubscribe.call(ScalarSynchronousObservable.java:129) ~[rxjava-1.3.8.jar:1.3.8]
at rx.internal.operators.OnSubscribeLift.call(OnSubscribeLift.java:48) ~[rxjava-1.3.8.jar:1.3.8]
at rx.internal.operators.OnSubscribeLift.call(OnSubscribeLift.java:30) ~[rxjava-1.3.8.jar:1.3.8]
at rx.internal.operators.OnSubscribeLift.call(OnSubscribeLift.java:48) ~[rxjava-1.3.8.jar:1.3.8]
at rx.internal.operators.OnSubscribeLift.call(OnSubscribeLift.java:30) ~[rxjava-1.3.8.jar:1.3.8]
at rx.internal.operators.OnSubscribeLift.call(OnSubscribeLift.java:48) ~[rxjava-1.3.8.jar:1.3.8]
at rx.internal.operators.OnSubscribeLift.call(OnSubscribeLift.java:30) ~[rxjava-1.3.8.jar:1.3.8]
at rx.Observable.subscribe(Observable.java:10423) ~[rxjava-1.3.8.jar:1.3.8]
at rx.Observable.subscribe(Observable.java:10390) ~[rxjava-1.3.8.jar:1.3.8]
at rx.observables.BlockingObservable.blockForSingle(BlockingObservable.java:443) ~[rxjava-1.3.8.jar:1.3.8]
... 129 common frames omitted
Caused by: java.net.SocketTimeoutException: connect timed out
at java.net.DualStackPlainSocketImpl.waitForConnect(Native Method) ~[na:1.8.0_181]
at java.net.DualStackPlainSocketImpl.socketConnect(Unknown Source) ~[na:1.8.0_181]
at java.net.AbstractPlainSocketImpl.doConnect(Unknown Source) ~[na:1.8.0_181]
at java.net.AbstractPlainSocketImpl.connectToAddress(Unknown Source) ~[na:1.8.0_181]
at java.net.AbstractPlainSocketImpl.connect(Unknown Source) ~[na:1.8.0_181]
at java.net.PlainSocketImpl.connect(Unknown Source) ~[na:1.8.0_181]
at java.net.SocksSocketImpl.connect(Unknown Source) ~[na:1.8.0_181]
at java.net.Socket.connect(Unknown Source) ~[na:1.8.0_181]
at org.apache.http.conn.socket.PlainConnectionSocketFactory.connectSocket(PlainConnectionSocketFactory.java:75) ~[httpclient-4.5.6.jar:4.5.6]
at org.apache.http.impl.conn.DefaultHttpClientConnectionOperator.connect(DefaultHttpClientConnectionOperator.java:142) ~[httpclient-4.5.6.jar:4.5.6]
... 171 common frames omitted
This problem occured on my project when I was using the same Zuulserver for developing microservices on localhost and DEV environment (when I started microservis on localhost it connected to zullserver on DEV env.). Then when I tried to call some operation through zuulserver it tried to connect to microservis not on DEV env. but on my machine.
I suspect the same problem on your side and IP on which you are developing your application is 192.168.1.35:8282.

HoughLinesP wrongly rejects lines

I find that HoughLinesP rejects even lines that are longer than minLineLength. For instance, if I call:
cv2.HoughLinesP(mat, 1, np.pi/180, 30, minLineLength=70, maxLineGap=8)
I get lines of (euclidean) lengths 89.2, 75.1, etc. But if I call:
cv2.HoughLinesP(mat, 1, np.pi/180, 30, minLineLength=75, maxLineGap=8)
The 89.2 and 75.1 lines are rejected.
Here are the points for the 89.2 line (it's a contour):
[[[319, 325]], [[316, 328]], [[316, 329]], [[315, 330]], [[315, 331]], [[314, 332]], [[314, 334]], [[313, 335]], [[313, 336]], [[310, 339]], [[309, 338]], [[306, 338]], [[302, 334]], [[302, 333]], [[304, 331]], [[305, 331]], [[306, 330]], [[306, 329]], [[307, 328]], [[304, 331]], [[303, 331]], [[302, 330]], [[302, 329]], [[301, 328]], [[301, 327]], [[301, 328]], [[299, 330]], [[300, 331]], [[300, 332]], [[301, 332]], [[302, 333]], [[302, 335]], [[303, 336]], [[301, 338]], [[300, 338]], [[299, 339]], [[298, 338]], [[293, 338]], [[292, 337]], [[292, 336]], [[287, 331]], [[287, 330]], [[285, 332]], [[285, 335]], [[283, 337]], [[284, 337]], [[285, 336]], [[285, 332]], [[286, 331]], [[292, 337]], [[291, 338]], [[290, 338]], [[292, 338]], [[293, 339]], [[293, 340]], [[293, 339]], [[294, 338]], [[298, 338]], [[299, 339]], [[297, 341]], [[296, 341]], [[295, 342]], [[291, 342]], [[290, 343]], [[286, 343]], [[284, 341]], [[284, 340]], [[283, 339]], [[282, 339]], [[280, 337]], [[278, 337]], [[276, 335]], [[276, 334]], [[271, 334]], [[275, 334]], [[276, 335]], [[276, 336]], [[277, 337]], [[279, 337]], [[281, 339]], [[282, 339]], [[284, 341]], [[284, 342]], [[285, 343]], [[291, 343]], [[292, 342]], [[295, 342]], [[296, 341]], [[298, 341]], [[301, 338]], [[302, 338]], [[302, 337]], [[303, 336]], [[305, 338]], [[309, 338]], [[311, 340]], [[310, 341]], [[306, 341]], [[304, 343]], [[304, 345]], [[305, 345]], [[306, 346]], [[306, 347]], [[306, 346]], [[307, 345]], [[308, 345]], [[309, 346]], [[309, 347]], [[304, 352]], [[302, 352]], [[301, 353]], [[302, 352]], [[305, 352]], [[309, 348]], [[309, 345]], [[305, 345]], [[304, 344]], [[307, 341]], [[312, 341]], [[314, 343]], [[314, 345]], [[315, 346]], [[315, 348]], [[313, 350]], [[312, 350]], [[312, 352]], [[313, 353]], [[313, 355]], [[311, 357]], [[309, 355]], [[309, 354]], [[310, 353]], [[310, 352]], [[309, 353]], [[308, 352]], [[309, 353]], [[309, 354]], [[308, 355]], [[307, 354]], [[309, 356]], [[310, 356]], [[311, 357]], [[310, 358]], [[310, 359]], [[309, 360]], [[309, 361]], [[308, 362]], [[308, 363]], [[307, 364]], [[307, 365]], [[305, 367]], [[305, 368]], [[300, 373]], [[299, 373]], [[298, 372]], [[298, 370]], [[297, 371]], [[296, 371]], [[295, 370]], [[294, 370]], [[293, 369]], [[291, 369]], [[290, 368]], [[291, 369]], [[293, 369]], [[295, 371]], [[297, 371]], [[299, 373]], [[292, 380]], [[290, 380]], [[289, 379]], [[286, 379]], [[285, 378]], [[284, 379]], [[283, 379]], [[282, 378]], [[283, 379]], [[284, 379]], [[285, 378]], [[286, 379]], [[289, 379]], [[291, 381]], [[287, 385]], [[285, 385]], [[284, 386]], [[282, 386]], [[282, 387]], [[280, 389]], [[279, 388]], [[274, 388]], [[273, 387]], [[267, 387]], [[266, 388]], [[260, 388]], [[259, 389]], [[257, 389]], [[256, 388]], [[255, 388]], [[254, 387]], [[257, 384]], [[258, 384]], [[259, 385]], [[262, 385]], [[263, 384]], [[266, 384]], [[267, 383]], [[268, 383]], [[269, 382]], [[273, 382]], [[274, 381]], [[276, 381]], [[276, 380]], [[277, 379]], [[278, 379]], [[284, 373]], [[284, 372]], [[287, 369]], [[287, 368]], [[289, 366]], [[289, 365]], [[292, 362]], [[292, 361]], [[297, 356]], [[297, 355]], [[299, 353]], [[299, 352]], [[298, 351]], [[300, 349]], [[299, 349]], [[299, 350]], [[298, 351]], [[298, 353]], [[297, 354]], [[297, 355]], [[292, 360]], [[292, 361]], [[289, 364]], [[289, 365]], [[287, 367]], [[287, 368]], [[284, 371]], [[284, 372]], [[283, 373]], [[283, 374]], [[282, 375]], [[281, 375]], [[277, 379]], [[276, 379]], [[276, 380]], [[275, 381]], [[274, 381]], [[273, 382]], [[268, 382]], [[267, 383]], [[266, 383]], [[265, 384]], [[263, 384]], [[262, 385]], [[259, 385]], [[258, 384]], [[257, 384]], [[256, 385]], [[255, 385]], [[255, 386]], [[254, 387]], [[253, 386]], [[252, 386]], [[251, 385]], [[246, 385]], [[244, 387]], [[245, 388]], [[243, 390]], [[242, 390]], [[241, 389]], [[240, 389]], [[239, 388]], [[236, 388]], [[235, 389]], [[227, 389]], [[227, 390]], [[228, 390]], [[229, 389]], [[235, 389]], [[236, 388]], [[238, 388]], [[239, 389]], [[240, 389]], [[241, 390]], [[244, 390]], [[244, 389]], [[245, 388]], [[244, 387]], [[245, 386]], [[246, 386]], [[247, 385]], [[250, 385]], [[251, 386]], [[252, 386]], [[254, 388]], [[256, 388]], [[257, 389]], [[258, 389]], [[259, 390]], [[259, 391]], [[260, 391]], [[262, 393]], [[263, 393]], [[264, 394]], [[264, 395]], [[268, 399]], [[268, 400]], [[270, 402]], [[270, 404]], [[271, 405]], [[271, 408]], [[272, 409]], [[276, 409]], [[278, 407]], [[279, 407]], [[280, 406]], [[281, 406]], [[282, 405]], [[284, 407]], [[285, 407]], [[286, 408]], [[288, 408]], [[287, 408]], [[286, 407]], [[285, 407]], [[284, 406]], [[283, 406]], [[282, 405]], [[281, 406]], [[280, 406]], [[279, 407]], [[278, 407]], [[277, 408]], [[276, 408]], [[275, 409]], [[273, 409]], [[271, 407]], [[271, 404]], [[270, 403]], [[270, 401]], [[267, 398]], [[267, 397]], [[269, 395]], [[270, 395]], [[271, 396]], [[272, 396]], [[271, 396]], [[270, 395]], [[268, 395]], [[267, 394]], [[267, 393]], [[267, 394]], [[268, 395]], [[268, 396]], [[267, 397]], [[264, 394]], [[264, 393]], [[263, 393]], [[261, 391]], [[260, 391]], [[259, 390]], [[259, 389]], [[260, 388]], [[266, 388]], [[267, 387]], [[273, 387]], [[274, 388]], [[279, 388]], [[280, 389]], [[281, 388]], [[282, 388]], [[282, 387]], [[283, 386]], [[285, 386]], [[286, 385]], [[288, 385]], [[300, 373]], [[301, 373]], [[305, 369]], [[305, 368]], [[307, 366]], [[307, 365]], [[308, 364]], [[308, 363]], [[309, 362]], [[309, 361]], [[310, 360]], [[310, 359]], [[313, 356]], [[313, 355]], [[315, 353]], [[323, 353]], [[322, 352]], [[322, 351]], [[321, 351]], [[320, 350]], [[318, 350]], [[317, 349]], [[317, 348]], [[314, 345]], [[314, 343]], [[313, 342]], [[313, 341]], [[312, 341]], [[310, 339]], [[311, 338]], [[312, 338]], [[313, 337]], [[313, 335]], [[314, 334]], [[314, 332]], [[316, 330]], [[316, 329]], [[319, 326]], [[320, 326]], [[321, 327]], [[321, 328]], [[322, 329]], [[322, 331]], [[320, 333]], [[321, 333]], [[323, 335]], [[322, 336]], [[322, 337]], [[321, 338]], [[320, 338]], [[319, 337]], [[318, 337]], [[317, 336]], [[316, 336]], [[317, 336]], [[318, 337]], [[319, 337]], [[320, 338]], [[322, 338]], [[322, 337]], [[324, 335]], [[325, 336]], [[326, 336]], [[327, 337]], [[327, 339]], [[327, 337]], [[328, 336]], [[330, 336]], [[331, 337]], [[330, 336]], [[332, 334]], [[334, 334]], [[335, 333]], [[337, 335]], [[339, 335]], [[340, 336]], [[342, 336]], [[340, 336]], [[339, 335]], [[338, 335]], [[337, 334]], [[336, 334]], [[335, 333]], [[337, 331]], [[334, 334]], [[331, 334]], [[329, 336]], [[326, 336]], [[325, 335]], [[323, 335]], [[321, 333]], [[322, 332]], [[322, 331]], [[323, 330]], [[324, 330]], [[325, 331]], [[325, 332]], [[325, 331]], [[324, 330]], [[325, 329]], [[324, 330]], [[323, 330]], [[322, 329]], [[322, 328]], [[321, 327]], [[321, 326]], [[320, 326]]]
Here are the points for the 75.1 line:
[[[482, 253]], [[481, 254]], [[472, 254]], [[471, 255]], [[467, 255]], [[466, 256]], [[461, 256]], [[460, 257]], [[456, 257]], [[455, 258]], [[451, 258]], [[450, 259]], [[446, 259]], [[445, 260]], [[442, 260]], [[441, 261]], [[436, 261]], [[435, 262]], [[432, 262]], [[431, 261]], [[430, 261]], [[429, 260]], [[428, 261]], [[427, 260]], [[424, 260]], [[423, 261]], [[422, 261]], [[422, 262]], [[420, 264]], [[419, 264]], [[418, 263]], [[418, 259]], [[419, 258]], [[425, 258]], [[417, 258]], [[416, 259]], [[417, 258]], [[418, 259]], [[418, 262]], [[417, 263]], [[415, 261]], [[412, 261]], [[412, 264]], [[412, 262]], [[413, 261]], [[414, 261]], [[415, 262]], [[414, 263]], [[414, 264]], [[415, 265]], [[414, 264]], [[416, 262]], [[418, 264]], [[418, 265]], [[416, 267]], [[414, 267]], [[413, 266]], [[410, 266]], [[410, 267]], [[408, 269]], [[407, 269]], [[406, 270]], [[405, 270]], [[404, 269]], [[403, 270]], [[400, 270]], [[398, 272]], [[398, 273]], [[397, 274]], [[396, 273]], [[396, 272]], [[394, 272]], [[395, 272]], [[397, 274]], [[401, 270]], [[406, 270]], [[407, 269]], [[409, 269]], [[410, 268]], [[410, 267]], [[411, 266]], [[413, 266]], [[414, 267]], [[416, 267]], [[417, 266]], [[418, 266]], [[420, 268]], [[421, 268]], [[418, 265]], [[419, 264]], [[421, 264]], [[422, 263]], [[422, 262]], [[424, 260]], [[427, 260]], [[428, 261]], [[426, 263]], [[424, 263]], [[426, 263]], [[427, 262]], [[428, 262]], [[428, 261]], [[429, 260]], [[430, 261]], [[431, 261]], [[432, 262]], [[435, 262]], [[436, 261]], [[441, 261]], [[442, 260]], [[445, 260]], [[446, 259]], [[450, 259]], [[451, 258]], [[455, 258]], [[456, 257]], [[460, 257]], [[461, 256]], [[466, 256]], [[467, 255]], [[471, 255]], [[472, 254]], [[482, 254]], [[483, 253]], [[485, 253]]]
How come minLineLength isn't respected?

Why is the accurcy of my neural network not improving

The accurcy of my neural network stop at 70% and not inproving. Please help me. Below is my code.
import tensorflow as tf
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
from sklearn.decomposition import PCA
from sklearn.preprocessing import MinMaxScaler
data = pd.read_csv("data.csv", sep='|')
nonlinearitiesactFunction = {'sigmoid':tf.sigmoid, 'tanh':tf.tanh, 'elu':tf.nn.elu, 'softplus':tf.nn.softplus, 'softsign':tf.nn.softsign}
linearitiesactFunction = {'relu':tf.nn.relu, 'relu6':tf.nn.relu6}
clFunction = {'sigmoidCrossEntropy':tf.nn.sigmoid_cross_entropy_with_logits, 'softmax':tf.nn.softmax, 'softmaxCrossEntropy':tf.nn.softmax_cross_entropy_with_logits}
opt = {'Adam':tf.train.AdamOptimizer, 'GradientDescent':tf.train.GradientDescentOptimizer}
def retrieveXAndY():
X = data.drop(['Name', 'md5', 'legitimate'], axis=1 ).as_matrix()
y = data['legitimate'].as_matrix()
return X, y
def addLayer(input, inSize, outSize, activationFunction = None):
hiddenlay = {'weights':tf.Variable(tf.random_normal([inSize, outSize])),'biases':tf.Variable(tf.random_normal([outSize]))}
hl = tf.add(tf.matmul(input,hiddenlay['weights']), hiddenlay['biases'])
if activationFunction == None:
output = hl
else:
output = activationFunction(hl)
return output
def costAndOpt(y,output, n_samples, learning_rate, optFunction = None):
cost = tf.reduce_sum(tf.pow(y - output, 2))/(2*n_samples)
optimizer = optFunction(learning_rate).minimize(cost)
return cost, optimizer
def fiveLayer(x, n_nodes_hl1, n_nodes_hl2, n_nodes_hl3, n_nodes_hl4, n_nodes_hl5, n_output, activationFunction, optFunction):
l1 = addLayer(x, n_feature,n_nodes_hl1,activationFunction)
l2 = addLayer(l1, n_nodes_hl1,n_nodes_hl2,activationFunction)
l3 = addLayer(l2, n_nodes_hl2,n_nodes_hl3,activationFunction)
l4 = addLayer(l3, n_nodes_hl3,n_nodes_hl4,activationFunction)
l5 = addLayer(l4, n_nodes_hl4,n_nodes_hl5,activationFunction)
output = addLayer(l5, n_nodes_hl5, n_output, activationFunction)
cost, optimizer = costAndOpt(y,output, n_samples, learning_rate, optFunction)
return cost, optimizer
if __name__ == '__main__':
inputX, inputY = retrieveXAndY()
#Normalization
pca_input = PCA(n_components = int(inputX.shape[1]/2))
inputX = pca_input.fit_transform(inputX)
inputX = MinMaxScaler().fit_transform(inputX)
inputY = inputY.reshape([-1,1])
n_samples = inputY.size
n_feature = inputX.shape[1]
n_node = 40
display_step = 50
learning_rate=0.01
n_nodes_hl1 = n_node
n_nodes_hl2 = n_node
n_nodes_hl3 = n_node
n_nodes_hl4 = n_node
n_nodes_hl5 = n_node
n_output = 1 #number of output
#input data
x = tf.placeholder(tf.float32,[None,n_feature]) #feature
y = tf.placeholder(tf.float32,[None,n_output]) #label#cost, optimizer
cost, optimizer = fiveLayer(x, n_nodes_hl1, n_nodes_hl2, n_nodes_hl3, n_nodes_hl4, n_nodes_hl5, n_output, nonlinearitiesactFunction['softsign'], opt['Adam'])
cost1, optimizer1 = fiveLayer(x, n_nodes_hl1, n_nodes_hl2, n_nodes_hl3, n_nodes_hl4, n_nodes_hl5, n_output, clFunction['softmax'], opt['Adam'])
cost2, optimizer2 = fiveLayer(x, n_nodes_hl1, n_nodes_hl2, n_nodes_hl3, n_nodes_hl4, n_nodes_hl5, n_output, nonlinearitiesactFunction['softsign'], opt['Adam'])
cost3, optimizer3 = fiveLayer(x, n_nodes_hl1, n_nodes_hl2, n_nodes_hl3, n_nodes_hl4, n_nodes_hl5, n_output, nonlinearitiesactFunction['sigmoid'], opt['Adam'])
cost4, optimizer4 = fiveLayer(x, n_nodes_hl1, n_nodes_hl2, n_nodes_hl3, n_nodes_hl4, n_nodes_hl5, n_output, nonlinearitiesactFunction['tanh'], opt['Adam'])
cost5, optimizer5 = fiveLayer(x, n_nodes_hl1, n_nodes_hl2, n_nodes_hl3, n_nodes_hl4, n_nodes_hl5, n_output, nonlinearitiesactFunction['elu'], opt['Adam'])
hm_epochs = 2000
init = tf.global_variables_initializer()
with tf.Session() as sess:
sess.run(init)
for i in range(hm_epochs):
# Take a gradient descent step using our inputs and labels
_,c = sess.run([optimizer,cost],feed_dict={x: inputX, y: inputY})
epoch_loss = 0
if (i) % display_step == 0:
epoch_loss += c
print "Softmax Training step:", i, "cost=", c, 'loss=', epoch_loss #, \"W=", sess.run(W), "b=", sess.run(b)
mse = cost.eval({x: inputX, y: inputY})
acc = 1-np.sqrt(mse)
print "Acc = ", acc, "\n"
for i in range(hm_epochs):
# Take a gradient descent step using our inputs and labels
_,c1 = sess.run([optimizer1,cost1],feed_dict={x: inputX, y: inputY})
epoch_loss1 = 0
if (i) % display_step == 0:
epoch_loss1 += c1
print "Softsign Training step:", i, "cost=", c1, 'loss=', epoch_loss1 #, \"W=", sess.run(W), "b=", sess.run(b)
mse1 = cost1.eval({x: inputX, y: inputY})
acc1 = 1-np.sqrt(mse1)
print "Acc = ", acc1, "\n"
for i in range(hm_epochs):
# Take a gradient descent step using our inputs and labels
_,c2 = sess.run([optimizer2,cost2],feed_dict={x: inputX, y: inputY})
epoch_loss2 = 0
if (i) % display_step == 0:
epoch_loss2 += c2
print "Sigmoid Training step:", i, "cost=", c2, 'loss=', epoch_loss2 #, \"W=", sess.run(W), "b=", sess.run(b)
mse2 = cost2.eval({x: inputX, y: inputY})
acc2 = 1-np.sqrt(mse2)
print "Acc = ", acc2, "\n"
for i in range(hm_epochs):
# Take a gradient descent step using our inputs and labels
_,c3 = sess.run([optimizer3,cost3],feed_dict={x: inputX, y: inputY})
epoch_loss3 = 0
if (i) % display_step == 0:
epoch_loss3 += c3
print "tanh Training step:", i, "cost=", c3, 'loss=', epoch_loss3 #, \"W=", sess.run(W), "b=", sess.run(b)
mse3 = cost3.eval({x: inputX, y: inputY})
acc3 = 1-np.sqrt(mse3)
print "Acc = ", acc3, "\n"
for i in range(hm_epochs):
# Take a gradient descent step using our inputs and labels
_,c4 = sess.run([optimizer4,cost4],feed_dict={x: inputX, y: inputY})
epoch_loss4 = 0
if (i) % display_step == 0:
epoch_loss4 += c4
print "elu Training step:", i, "cost=", c4, 'loss=', epoch_loss4 #, \"W=", sess.run(W), "b=", sess.run(b)
mse4 = cost4.eval({x: inputX, y: inputY})
acc4 = 1-np.sqrt(mse4)
print "Acc = ", acc4, "\n"
I am using a dataset with 60000 records. Below is example of part of the dataset or can download the dataset from https://archive.ics.uci.edu/ml/datasets/Detect+Malacious+Executable(AntiVirus):
inputX = array([[ 3.32000000e+02, 2.24000000e+02, 8.45000000e+03,
8.00000000e+00, 0.00000000e+00, 5.32480000e+04,
1.63840000e+04, 0.00000000e+00, 5.40480000e+04,
4.09600000e+03, 5.73440000e+04, 2.08594534e+09,
4.09600000e+03, 4.09600000e+03, 4.00000000e+00,
0.00000000e+00, 8.00000000e+00, 0.00000000e+00,
4.00000000e+00, 0.00000000e+00, 7.37280000e+04,
4.09600000e+03, 1.20607000e+05, 2.00000000e+00,
3.20000000e+02, 1.04857600e+06, 4.09600000e+03,
1.04857600e+06, 4.09600000e+03, 0.00000000e+00,
1.60000000e+01, 4.00000000e+00, 2.70373594e+00,
1.05637876e+00, 6.22819008e+00, 1.63840000e+04,
4.09600000e+03, 5.32480000e+04, 1.59390000e+04,
9.92000000e+02, 5.28640000e+04, 6.00000000e+00,
1.37000000e+02, 8.10000000e+01, 2.50000000e+01,
1.00000000e+00, 3.52426821e+00, 3.52426821e+00,
3.52426821e+00, 8.92000000e+02, 8.92000000e+02,
8.92000000e+02, 7.20000000e+01, 1.60000000e+01],
[ 3.32000000e+02, 2.24000000e+02, 8.45000000e+03,
8.00000000e+00, 0.00000000e+00, 5.27360000e+04,
1.12640000e+04, 0.00000000e+00, 5.35300000e+04,
4.09600000e+03, 5.73440000e+04, 2.08699392e+09,
4.09600000e+03, 5.12000000e+02, 4.00000000e+00,
0.00000000e+00, 8.00000000e+00, 0.00000000e+00,
4.00000000e+00, 0.00000000e+00, 7.37280000e+04,
1.02400000e+03, 8.92300000e+04, 2.00000000e+00,
3.20000000e+02, 1.04857600e+06, 4.09600000e+03,
1.04857600e+06, 4.09600000e+03, 0.00000000e+00,
1.60000000e+01, 4.00000000e+00, 4.31899422e+00,
3.30769150e+00, 6.15499505e+00, 1.42080000e+04,
1.02400000e+03, 5.27360000e+04, 1.57382500e+04,
9.92000000e+02, 5.22730000e+04, 6.00000000e+00,
1.33000000e+02, 8.10000000e+01, 2.50000000e+01,
1.00000000e+00, 3.54207119e+00, 3.54207119e+00,
3.54207119e+00, 8.92000000e+02, 8.92000000e+02,
8.92000000e+02, 7.20000000e+01, 1.60000000e+01],
[ 3.32000000e+02, 2.24000000e+02, 8.45000000e+03,
8.00000000e+00, 0.00000000e+00, 4.09600000e+04,
2.04800000e+04, 0.00000000e+00, 2.66080000e+04,
4.09600000e+03, 4.50560000e+04, 1.92151552e+09,
4.09600000e+03, 4.09600000e+03, 4.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
4.00000000e+00, 0.00000000e+00, 6.55360000e+04,
4.09600000e+03, 1.21734000e+05, 2.00000000e+00,
3.20000000e+02, 1.04857600e+06, 4.09600000e+03,
1.04857600e+06, 4.09600000e+03, 0.00000000e+00,
1.60000000e+01, 5.00000000e+00, 3.58061262e+00,
8.04176679e-02, 6.23193618e+00, 1.22880000e+04,
4.09600000e+03, 4.09600000e+04, 1.04442000e+04,
9.64000000e+02, 3.76480000e+04, 2.00000000e+00,
6.80000000e+01, 0.00000000e+00, 1.12000000e+02,
6.00000000e+00, 3.00438262e+00, 2.40651198e+00,
3.59262288e+00, 6.10333333e+02, 1.24000000e+02,
1.41200000e+03, 7.20000000e+01, 1.60000000e+01],
[ 3.32000000e+02, 2.24000000e+02, 2.58000000e+02,
1.10000000e+01, 0.00000000e+00, 3.54816000e+05,
2.57024000e+05, 0.00000000e+00, 1.83632000e+05,
4.09600000e+03, 3.60448000e+05, 4.19430400e+06,
4.09600000e+03, 5.12000000e+02, 5.00000000e+00,
1.00000000e+00, 0.00000000e+00, 0.00000000e+00,
5.00000000e+00, 1.00000000e+00, 6.26688000e+05,
1.02400000e+03, 0.00000000e+00, 2.00000000e+00,
3.30880000e+04, 1.04857600e+06, 4.09600000e+03,
1.04857600e+06, 4.09600000e+03, 0.00000000e+00,
1.60000000e+01, 5.00000000e+00, 4.59039653e+00,
2.37894684e+00, 6.29682587e+00, 1.20524800e+05,
7.68000000e+03, 3.54816000e+05, 1.22148600e+05,
1.64680000e+04, 3.54799000e+05, 7.00000000e+00,
1.38000000e+02, 0.00000000e+00, 0.00000000e+00,
7.00000000e+00, 3.91441476e+00, 1.44168828e+00,
7.67709054e+00, 7.29842857e+03, 1.60000000e+01,
2.84380000e+04, 7.20000000e+01, 0.00000000e+00],
[ 3.32000000e+02, 2.24000000e+02, 2.71000000e+02,
6.00000000e+00, 0.00000000e+00, 2.40640000e+04,
1.64864000e+05, 1.02400000e+03, 1.25380000e+04,
4.09600000e+03, 2.86720000e+04, 4.19430400e+06,
4.09600000e+03, 5.12000000e+02, 4.00000000e+00,
0.00000000e+00, 6.00000000e+00, 0.00000000e+00,
4.00000000e+00, 0.00000000e+00, 2.41664000e+05,
1.02400000e+03, 0.00000000e+00, 2.00000000e+00,
3.27680000e+04, 1.04857600e+06, 4.09600000e+03,
1.04857600e+06, 4.09600000e+03, 0.00000000e+00,
1.60000000e+01, 5.00000000e+00, 4.10454072e+00,
0.00000000e+00, 6.44010555e+00, 6.75840000e+03,
0.00000000e+00, 2.40640000e+04, 4.62608000e+04,
3.14400000e+03, 1.54712000e+05, 8.00000000e+00,
1.55000000e+02, 1.00000000e+00, 0.00000000e+00,
6.00000000e+00, 3.19910735e+00, 1.97133529e+00,
5.21481585e+00, 4.52000000e+02, 3.40000000e+01,
9.58000000e+02, 0.00000000e+00, 1.50000000e+01],
[ 3.32000000e+02, 2.24000000e+02, 2.58000000e+02,
1.00000000e+01, 0.00000000e+00, 1.18784000e+05,
3.81952000e+05, 0.00000000e+00, 5.99140000e+04,
4.09600000e+03, 1.22880000e+05, 4.19430400e+06,
4.09600000e+03, 5.12000000e+02, 5.00000000e+00,
1.00000000e+00, 0.00000000e+00, 0.00000000e+00,
5.00000000e+00, 1.00000000e+00, 5.20192000e+05,
1.02400000e+03, 5.58287000e+05, 2.00000000e+00,
3.30880000e+04, 1.04857600e+06, 4.09600000e+03,
1.04857600e+06, 4.09600000e+03, 0.00000000e+00,
1.60000000e+01, 5.00000000e+00, 5.66240790e+00,
4.18369159e+00, 7.96187140e+00, 1.00147200e+05,
9.21600000e+03, 3.34848000e+05, 1.01559800e+05,
9.36800000e+03, 3.34440000e+05, 7.00000000e+00,
1.14000000e+02, 0.00000000e+00, 0.00000000e+00,
1.80000000e+01, 6.53094643e+00, 2.45849223e+00,
7.99268848e+00, 1.85234444e+04, 4.80000000e+01,
3.39450000e+04, 7.20000000e+01, 1.40000000e+01],
[ 3.32000000e+02, 2.24000000e+02, 2.58000000e+02,
1.00000000e+01, 0.00000000e+00, 1.74592000e+05,
3.00032000e+05, 0.00000000e+00, 1.17140000e+05,
4.09600000e+03, 1.80224000e+05, 4.19430400e+06,
4.09600000e+03, 5.12000000e+02, 5.00000000e+00,
1.00000000e+00, 0.00000000e+00, 0.00000000e+00,
5.00000000e+00, 1.00000000e+00, 4.87424000e+05,
1.02400000e+03, 5.13173000e+05, 2.00000000e+00,
3.30880000e+04, 1.04857600e+06, 4.09600000e+03,
1.04857600e+06, 4.09600000e+03, 0.00000000e+00,
1.60000000e+01, 5.00000000e+00, 5.73547047e+00,
4.75826034e+00, 7.36431335e+00, 9.30816000e+04,
1.53600000e+04, 1.92000000e+05, 9.46988000e+04,
2.15000000e+04, 1.91664000e+05, 1.10000000e+01,
2.54000000e+02, 1.50000000e+01, 0.00000000e+00,
1.50000000e+01, 5.73239307e+00, 2.85236422e+00,
7.98772639e+00, 1.27061333e+04, 1.18000000e+02,
6.05000000e+04, 7.20000000e+01, 1.40000000e+01],
[ 3.32000000e+02, 2.24000000e+02, 2.58000000e+02,
9.00000000e+00, 0.00000000e+00, 4.75648000e+05,
3.48672000e+05, 0.00000000e+00, 3.19769000e+05,
4.09600000e+03, 4.83328000e+05, 4.19430400e+06,
4.09600000e+03, 5.12000000e+02, 5.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
5.00000000e+00, 0.00000000e+00, 8.56064000e+05,
1.02400000e+03, 1.82072586e+09, 2.00000000e+00,
3.30880000e+04, 1.04857600e+06, 4.09600000e+03,
1.04857600e+06, 4.09600000e+03, 0.00000000e+00,
1.60000000e+01, 5.00000000e+00, 5.13993423e+00,
4.48079036e+00, 6.55814891e+00, 1.64864000e+05,
1.38240000e+04, 4.75648000e+05, 1.68145200e+05,
3.08400000e+04, 4.75580000e+05, 1.40000000e+01,
4.21000000e+02, 1.50000000e+01, 0.00000000e+00,
5.90000000e+01, 2.82782573e+00, 9.60953136e-01,
7.21232881e+00, 2.63703390e+03, 2.00000000e+01,
6.76240000e+04, 7.20000000e+01, 0.00000000e+00],
[ 3.32000000e+02, 2.24000000e+02, 2.59000000e+02,
9.00000000e+00, 0.00000000e+00, 1.57696000e+05,
6.24640000e+04, 0.00000000e+00, 6.70150000e+04,
4.09600000e+03, 1.63840000e+05, 4.19430400e+06,
4.09600000e+03, 5.12000000e+02, 5.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
5.00000000e+00, 0.00000000e+00, 2.33472000e+05,
1.02400000e+03, 2.72988000e+05, 2.00000000e+00,
3.30240000e+04, 1.04857600e+06, 4.09600000e+03,
1.04857600e+06, 4.09600000e+03, 0.00000000e+00,
1.60000000e+01, 4.00000000e+00, 4.81988481e+00,
2.97736539e+00, 6.48512410e+00, 5.50400000e+04,
3.58400000e+03, 1.57696000e+05, 5.56267500e+04,
6.70000000e+03, 1.57297000e+05, 2.00000000e+00,
7.60000000e+01, 0.00000000e+00, 0.00000000e+00,
1.30000000e+01, 3.94329633e+00, 1.81444345e+00,
6.12204520e+00, 2.70815385e+03, 1.32000000e+02,
9.64000000e+03, 7.20000000e+01, 1.40000000e+01],
[ 3.32000000e+02, 2.24000000e+02, 2.59000000e+02,
8.30000000e+01, 8.20000000e+01, 7.24992000e+05,
2.30604800e+06, 0.00000000e+00, 4.24345600e+06,
3.52256000e+06, 4.30899200e+06, 4.19430400e+06,
4.09600000e+03, 4.09600000e+03, 5.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
5.00000000e+00, 0.00000000e+00, 6.70924800e+06,
4.09600000e+03, 3.07704700e+06, 2.00000000e+00,
3.27680000e+04, 1.04857600e+06, 4.09600000e+03,
1.04857600e+06, 4.09600000e+03, 0.00000000e+00,
1.60000000e+01, 9.00000000e+00, 3.78312500e+00,
0.00000000e+00, 7.99951830e+00, 3.36782222e+05,
0.00000000e+00, 1.88416000e+06, 7.44182333e+05,
2.27200000e+03, 3.06129900e+06, 4.00000000e+00,
2.43000000e+02, 0.00000000e+00, 0.00000000e+00,
2.10000000e+01, 3.98746295e+00, 2.64215931e+00,
6.47369968e+00, 1.42880000e+04, 7.60000000e+01,
2.70376000e+05, 0.00000000e+00, 0.00000000e+00],
[ 3.32000000e+02, 2.24000000e+02, 2.58000000e+02,
1.00000000e+01, 0.00000000e+00, 1.20320000e+05,
3.85024000e+05, 0.00000000e+00, 6.15780000e+04,
4.09600000e+03, 1.26976000e+05, 4.19430400e+06,
4.09600000e+03, 5.12000000e+02, 5.00000000e+00,
1.00000000e+00, 0.00000000e+00, 0.00000000e+00,
5.00000000e+00, 1.00000000e+00, 5.28384000e+05,
1.02400000e+03, 5.66330000e+05, 2.00000000e+00,
3.30880000e+04, 1.04857600e+06, 4.09600000e+03,
1.04857600e+06, 4.09600000e+03, 0.00000000e+00,
1.60000000e+01, 5.00000000e+00, 5.64644365e+00,
4.11726412e+00, 7.96277585e+00, 1.01068800e+05,
9.72800000e+03, 3.30752000e+05, 1.02623800e+05,
9.40400000e+03, 3.39652000e+05, 3.00000000e+00,
8.90000000e+01, 0.00000000e+00, 0.00000000e+00,
6.00000000e+00, 3.72982391e+00, 2.45849223e+00,
5.31755236e+00, 2.73950000e+03, 4.80000000e+01,
9.64000000e+03, 7.20000000e+01, 1.50000000e+01],
[ 3.32000000e+02, 2.24000000e+02, 2.59000000e+02,
1.00000000e+01, 0.00000000e+00, 2.33984000e+05,
1.37779200e+06, 0.00000000e+00, 9.31200000e+04,
4.09600000e+03, 2.41664000e+05, 4.19430400e+06,
4.09600000e+03, 5.12000000e+02, 5.00000000e+00,
1.00000000e+00, 0.00000000e+00, 0.00000000e+00,
5.00000000e+00, 1.00000000e+00, 1.63020800e+06,
1.02400000e+03, 1.66150900e+06, 2.00000000e+00,
3.32800000e+04, 1.04857600e+06, 4.09600000e+03,
1.04857600e+06, 4.09600000e+03, 0.00000000e+00,
1.60000000e+01, 3.00000000e+00, 5.46068132e+00,
3.13962777e+00, 7.09009944e+00, 5.37258667e+05,
5.63200000e+03, 1.37216000e+06, 5.39602667e+05,
1.33160000e+04, 1.37185600e+06, 1.00000000e+00,
8.00000000e+01, 0.00000000e+00, 0.00000000e+00,
1.80000000e+01, 4.32832189e+00, 2.32321967e+00,
7.06841290e+00, 7.61582778e+04, 9.00000000e+00,
1.34273500e+06, 7.20000000e+01, 1.90000000e+01],
[ 3.32000000e+02, 2.24000000e+02, 2.71000000e+02,
6.00000000e+00, 0.00000000e+00, 4.91520000e+04,
5.61152000e+05, 0.00000000e+00, 3.38800000e+04,
4.09600000e+03, 5.32480000e+04, 4.19430400e+06,
4.09600000e+03, 4.09600000e+03, 4.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
4.00000000e+00, 0.00000000e+00, 6.14400000e+05,
4.09600000e+03, 0.00000000e+00, 2.00000000e+00,
0.00000000e+00, 1.04857600e+06, 4.09600000e+03,
1.04857600e+06, 4.09600000e+03, 0.00000000e+00,
1.60000000e+01, 4.00000000e+00, 3.69925758e+00,
0.00000000e+00, 6.48297395e+00, 1.94600000e+04,
1.60000000e+01, 4.91520000e+04, 1.50074000e+05,
1.60000000e+01, 5.48460000e+05, 4.00000000e+00,
1.19000000e+02, 1.00000000e+01, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00],
[ 3.32000000e+02, 2.24000000e+02, 2.58000000e+02,
1.00000000e+01, 0.00000000e+00, 2.91840000e+04,
4.45952000e+05, 1.68960000e+04, 1.48190000e+04,
4.09600000e+03, 3.68640000e+04, 4.19430400e+06,
4.09600000e+03, 5.12000000e+02, 5.00000000e+00,
0.00000000e+00, 6.00000000e+00, 0.00000000e+00,
5.00000000e+00, 0.00000000e+00, 1.76537600e+06,
1.02400000e+03, 5.94294000e+05, 2.00000000e+00,
3.41120000e+04, 1.04857600e+06, 4.09600000e+03,
1.04857600e+06, 4.09600000e+03, 0.00000000e+00,
1.60000000e+01, 6.00000000e+00, 3.76419176e+00,
0.00000000e+00, 6.47970818e+00, 7.93600000e+03,
0.00000000e+00, 2.91840000e+04, 2.92339333e+05,
2.53600000e+03, 1.28204800e+06, 8.00000000e+00,
1.71000000e+02, 1.00000000e+00, 0.00000000e+00,
6.00000000e+00, 3.15203588e+00, 2.16096405e+00,
5.21367450e+00, 3.54333333e+02, 2.00000000e+01,
7.44000000e+02, 0.00000000e+00, 0.00000000e+00],
[ 3.32000000e+02, 2.24000000e+02, 3.31670000e+04,
2.00000000e+00, 2.50000000e+01, 3.78880000e+04,
1.53600000e+04, 0.00000000e+00, 4.00000000e+04,
4.09600000e+03, 4.50560000e+04, 4.19430400e+06,
4.09600000e+03, 5.12000000e+02, 1.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
4.00000000e+00, 0.00000000e+00, 8.19200000e+04,
1.02400000e+03, 6.78554440e+07, 2.00000000e+00,
0.00000000e+00, 1.04857600e+06, 1.63840000e+04,
1.04857600e+06, 4.09600000e+03, 0.00000000e+00,
1.60000000e+01, 8.00000000e+00, 2.33301385e+00,
0.00000000e+00, 6.63664803e+00, 6.65600000e+03,
0.00000000e+00, 3.78880000e+04, 7.19800000e+03,
8.00000000e+00, 3.77320000e+04, 8.00000000e+00,
9.60000000e+01, 0.00000000e+00, 0.00000000e+00,
1.40000000e+01, 3.42918455e+00, 2.41356665e+00,
5.05007355e+00, 7.17142857e+02, 4.40000000e+01,
2.21600000e+03, 0.00000000e+00, 1.50000000e+01]])
inputY = array([ 1., 1., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.])

Crash during Core Data store migration

I have an app that is currently in App Store and works fine. I'm developing an update for the app, but sometimes when the update is installed over the original app the app crashes right on the line below:
let userStore: NSPersistentStore? = coordinator!.addPersistentStoreWithType(NSSQLiteStoreType, configuration: "Userdata", URL: storeURL, options: self.storeOptions() as [NSObject : AnyObject], error: &errorUser)
The storeOptions() function is:
func storeOptions() -> NSDictionary {
return [NSMigratePersistentStoresAutomaticallyOption:true,
NSInferMappingModelAutomaticallyOption:true,
NSPersistentStoreRemoveUbiquitousMetadataOption:true] as NSDictionary
}
The crash I get is:
Terminating app due to uncaught exception
'NSInvalidArgumentException', reason: 'Can't use fetch request with
fetched property description (entity model mismatch).'
I created a new version of the model for Core Data.The differences between Core Data versions are: 1) 5 Fetched Properties added; 2) 1 entity added.
If the Core Data store has few objects to migrate, everything works fine without crash; but if store have hundreds objects to migrate, the crash occurs.
The crash only happens the first time I run the app after the update. After the crash, if I re-launch the app one or two times, everything works fine.
Thanks for the help!
This is console log with migration debug activated:
2015-05-11 15:47:25.635 MedAbility[36991:4938505] CoreData: annotation: Incompatible version schema for persistent store 'file:///var/mobile/Containers/Data/Application/F2E6CD21-1F14-45E4-8522-D3B21E6C2129/Documents/MedAbility.sqlite'. store metadata = {
NSPersistenceFrameworkVersion = 519;
NSStoreModelVersionHashes = {
Area = <af6226b7 0266c871 51907548 889dd0a0 cd8bb41b a5fac48e a9b6b26d 2c302f51>;
Argomento = <78466321 1b0def24 d9fd617b a5293137 6a500d03 7c970176 bd0a6fff 4119ba6a>;
Domanda = <e43a3011 c52b29d5 baa25106 2d620206 f896a866 c17f66f4 83dfe95f 5bb64011>;
Preferita = <2fd53f7e ae85e1e5 955d512e 96f33ec4 b25b5bb4 0298d201 cb5e0578 02a8ae84>;
Risposta = <cf5ea36c e2885c4a 1ea1a929 801ed4f0 35069831 911e599d 1fb011dd 9817833d>;
StatDomanda = <b4a01246 05e5504a 8c73ebcd d857b549 1ed3cb8a d0ada1eb f7e63fea 1971ef09>;
StatSimulazione = <2ebd70dc 7b935642 75957196 68eab9c4 6d53bfb7 acf7ed28 fc859da3 742e06f3>;
};
NSStoreModelVersionHashesVersion = 3;
NSStoreModelVersionIdentifiers = (
""
);
NSStoreType = SQLite;
NSStoreUUID = "F74702C7-518C-4DCF-9555-1895DFF79608";
"_NSAutoVacuumLevel" = 2;
} and current model versions = {
Area = <af6226b7 0266c871 51907548 889dd0a0 cd8bb41b a5fac48e a9b6b26d 2c302f51>;
Argomento = <78466321 1b0def24 d9fd617b a5293137 6a500d03 7c970176 bd0a6fff 4119ba6a>;
Domanda = <e43a3011 c52b29d5 baa25106 2d620206 f896a866 c17f66f4 83dfe95f 5bb64011>;
Preferita = <2fd53f7e ae85e1e5 955d512e 96f33ec4 b25b5bb4 0298d201 cb5e0578 02a8ae84>;
Risposta = <cf5ea36c e2885c4a 1ea1a929 801ed4f0 35069831 911e599d 1fb011dd 9817833d>;
Segnalibro = <7edc9c5d 72fd8f12 703cfbd8 c3e46ae7 71c7708d bbd096c5 5d278d18 40a43d38>;
StatDomanda = <b4a01246 05e5504a 8c73ebcd d857b549 1ed3cb8a d0ada1eb f7e63fea 1971ef09>;
StatSimulazione = <2ebd70dc 7b935642 75957196 68eab9c4 6d53bfb7 acf7ed28 fc859da3 742e06f3>;
}
2015-05-11 15:47:25.637 MedAbility[36991:4938505] CoreData: annotation: (migration) will attempt automatic schema migration
2015-05-11 15:47:25.804 MedAbility[36991:4938505] CoreData: annotation: (migration) looking for mapping model with
source hashes:
{
Area = <af6226b7 0266c871 51907548 889dd0a0 cd8bb41b a5fac48e a9b6b26d 2c302f51>;
Argomento = <78466321 1b0def24 d9fd617b a5293137 6a500d03 7c970176 bd0a6fff 4119ba6a>;
Domanda = <e43a3011 c52b29d5 baa25106 2d620206 f896a866 c17f66f4 83dfe95f 5bb64011>;
Preferita = <2fd53f7e ae85e1e5 955d512e 96f33ec4 b25b5bb4 0298d201 cb5e0578 02a8ae84>;
Risposta = <cf5ea36c e2885c4a 1ea1a929 801ed4f0 35069831 911e599d 1fb011dd 9817833d>;
StatDomanda = <b4a01246 05e5504a 8c73ebcd d857b549 1ed3cb8a d0ada1eb f7e63fea 1971ef09>;
StatSimulazione = <2ebd70dc 7b935642 75957196 68eab9c4 6d53bfb7 acf7ed28 fc859da3 742e06f3>;
}
destination hashes: {
Area = <af6226b7 0266c871 51907548 889dd0a0 cd8bb41b a5fac48e a9b6b26d 2c302f51>;
Argomento = <78466321 1b0def24 d9fd617b a5293137 6a500d03 7c970176 bd0a6fff 4119ba6a>;
Domanda = <e43a3011 c52b29d5 baa25106 2d620206 f896a866 c17f66f4 83dfe95f 5bb64011>;
Preferita = <2fd53f7e ae85e1e5 955d512e 96f33ec4 b25b5bb4 0298d201 cb5e0578 02a8ae84>;
Risposta = <cf5ea36c e2885c4a 1ea1a929 801ed4f0 35069831 911e599d 1fb011dd 9817833d>;
Segnalibro = <7edc9c5d 72fd8f12 703cfbd8 c3e46ae7 71c7708d bbd096c5 5d278d18 40a43d38>;
StatDomanda = <b4a01246 05e5504a 8c73ebcd d857b549 1ed3cb8a d0ada1eb f7e63fea 1971ef09>;
StatSimulazione = <2ebd70dc 7b935642 75957196 68eab9c4 6d53bfb7 acf7ed28 fc859da3 742e06f3>;
}
2015-05-11 15:47:25.811 MedAbility[36991:4938505] CoreData: annotation: (migration) checking mapping model /private/var/mobile/Containers/Bundle/Application/9CC3C576-AECB-4A57-9736-D84362930F86/MedAbility.app/MappingModel.cdm
source hashes:
{(
<51547408 0740f420 b6856444 4c3c831e 3bc0f6fb 6aee554a 873c28f4 3f79869d>,
<cf5ea36c e2885c4a 1ea1a929 801ed4f0 35069831 911e599d 1fb011dd 9817833d>,
<dca9a9da 863a890a 75944b3d cad52b45 ad9e87c3 d4c5e157 4d00600f f66ce9e4>,
<78466321 1b0def24 d9fd617b a5293137 6a500d03 7c970176 bd0a6fff 4119ba6a>,
<e04dcc45 a70018ae 00de4f4d ef5378ae 3de3b718 6a961ae9 b916288e 14573c83>
)}
destination hashes: {(
<af6226b7 0266c871 51907548 889dd0a0 cd8bb41b a5fac48e a9b6b26d 2c302f51>,
<e43a3011 c52b29d5 baa25106 2d620206 f896a866 c17f66f4 83dfe95f 5bb64011>,
<2fd53f7e ae85e1e5 955d512e 96f33ec4 b25b5bb4 0298d201 cb5e0578 02a8ae84>,
<cf5ea36c e2885c4a 1ea1a929 801ed4f0 35069831 911e599d 1fb011dd 9817833d>,
<b4a01246 05e5504a 8c73ebcd d857b549 1ed3cb8a d0ada1eb f7e63fea 1971ef09>,
<2ebd70dc 7b935642 75957196 68eab9c4 6d53bfb7 acf7ed28 fc859da3 742e06f3>,
<78466321 1b0def24 d9fd617b a5293137 6a500d03 7c970176 bd0a6fff 4119ba6a>
)}
2015-05-11 15:47:25.812 MedAbility[36991:4938505] CoreData: annotation: (migration) mismatched source and hashes for mapping model MappingModel.cdm
2015-05-11 15:47:25.812 MedAbility[36991:4938505] CoreData: annotation: (migration) no match found for 5 of 7 mapping model source hashes
2015-05-11 15:47:25.817 MedAbility[36991:4938505] CoreData: annotation: (migration) checking mapping model /System/Library/PrivateFrameworks/Notes.framework/ExternalSequenceNumberToAttachmentMappingModel.cdm
source hashes:
{(
<0f8744bb 376b0605 81c1356b 4a5cd8ce 297be0d7 76945132 057fb167 7514a61c>,
<ed35016c 16ce0c08 62093859 d635d684 c45984e6 053e9bff bf658180 3280b941>,
<9419ea78 017a215a f515f895 8a29c4a1 78b2bbd2 1a717a07 b383378f f0ae4b78>,
<e5d70b6b 962b999a 13401655 abb95b65 3048836f 47ea07c3 27d40938 5659382b>,
<2591278c 6d7773dd 13079513 fef234f6 e8f58e5a ca00f5d2 de2ab6f4 56b5b614>,
<06ae957e c9080f85 7cbd5291 4d16c9f4 9d86e1f8 92019b63 e8af3bc6 08735b9c>,
<14f5af3b 1601e79c e2a3674d d30d39ea eb55377f 132c73e9 30b9be3f 861b0450>
)}
destination hashes: {(
<68b4bd84 a77d29ef 5129d209 0bb2d107 1f549168 8eb1c43c 08e8aeb7 eece004a>,
<0f8744bb 376b0605 81c1356b 4a5cd8ce 297be0d7 76945132 057fb167 7514a61c>,
<e5d70b6b 962b999a 13401655 abb95b65 3048836f 47ea07c3 27d40938 5659382b>,
<14f5af3b 1601e79c e2a3674d d30d39ea eb55377f 132c73e9 30b9be3f 861b0450>,
<3cac738a 7e9ab953 8d2e8dd0 11c60c82 4f8dfbe4 be285cbb e0fd4d7f 003784ab>,
<2591278c 6d7773dd 13079513 fef234f6 e8f58e5a ca00f5d2 de2ab6f4 56b5b614>,
<06ae957e c9080f85 7cbd5291 4d16c9f4 9d86e1f8 92019b63 e8af3bc6 08735b9c>,
<2468f7b0 631a290c bc83720a 7287e359 3c222e59 057e9deb 6a13bd85 339bd5ef>
)}
2015-05-11 15:47:25.817 MedAbility[36991:4938505] CoreData: annotation: (migration) mismatched source and destination hashes for mapping model ExternalSequenceNumberToAttachmentMappingModel.cdm
2015-05-11 15:47:25.818 MedAbility[36991:4938505] CoreData: annotation: (migration) no suitable mapping model found
2015-05-11 15:47:25.818 MedAbility[36991:4938505] CoreData: annotation: (migration) inferring a mapping model between data models with
source hashes:
{
Area = <af6226b7 0266c871 51907548 889dd0a0 cd8bb41b a5fac48e a9b6b26d 2c302f51>;
Argomento = <78466321 1b0def24 d9fd617b a5293137 6a500d03 7c970176 bd0a6fff 4119ba6a>;
Domanda = <e43a3011 c52b29d5 baa25106 2d620206 f896a866 c17f66f4 83dfe95f 5bb64011>;
Preferita = <2fd53f7e ae85e1e5 955d512e 96f33ec4 b25b5bb4 0298d201 cb5e0578 02a8ae84>;
Risposta = <cf5ea36c e2885c4a 1ea1a929 801ed4f0 35069831 911e599d 1fb011dd 9817833d>;
StatDomanda = <b4a01246 05e5504a 8c73ebcd d857b549 1ed3cb8a d0ada1eb f7e63fea 1971ef09>;
StatSimulazione = <2ebd70dc 7b935642 75957196 68eab9c4 6d53bfb7 acf7ed28 fc859da3 742e06f3>;
}
destination hashes: {
Area = <af6226b7 0266c871 51907548 889dd0a0 cd8bb41b a5fac48e a9b6b26d 2c302f51>;
Argomento = <78466321 1b0def24 d9fd617b a5293137 6a500d03 7c970176 bd0a6fff 4119ba6a>;
Domanda = <e43a3011 c52b29d5 baa25106 2d620206 f896a866 c17f66f4 83dfe95f 5bb64011>;
Preferita = <2fd53f7e ae85e1e5 955d512e 96f33ec4 b25b5bb4 0298d201 cb5e0578 02a8ae84>;
Risposta = <cf5ea36c e2885c4a 1ea1a929 801ed4f0 35069831 911e599d 1fb011dd 9817833d>;
Segnalibro = <7edc9c5d 72fd8f12 703cfbd8 c3e46ae7 71c7708d bbd096c5 5d278d18 40a43d38>;
StatDomanda = <b4a01246 05e5504a 8c73ebcd d857b549 1ed3cb8a d0ada1eb f7e63fea 1971ef09>;
StatSimulazione = <2ebd70dc 7b935642 75957196 68eab9c4 6d53bfb7 acf7ed28 fc859da3 742e06f3>;
}
2015-05-11 15:47:25.878 MedAbility[36991:4938505] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: 'Can't use fetch request with fetched property description (entity model mismatch).'
*** First throw call stack:
(0x1847b82d8 0x195fdc0e4 0x1847b8218 0x1844e6310 0x1844e6468 0x1844dd7c4 0x184511694 0x184449564 0x18444922c 0x18457f494 0x18451e168 0x1845780ec 0x184577180 0x184578ad8 0x1845281c0 0x184534028 0x100894f94 0x10089f08c 0x184525e98 0x1844496e8 0x1000bc0d4 0x1000bb074 0x1000ba544 0x10015ff84 0x10016092c 0x1891f8c84 0x1892aef68 0x1892aee64 0x1892ae2f0 0x1892adf9c 0x1892adcbc 0x1892adc3c 0x1891f5760 0x188b3de1c 0x188b38884 0x188b38728 0x188b37ebc 0x188b37c3c 0x189484838 0x18948571c 0x189483778 0x18cfc13c8 0x18477027c 0x18476f384 0x18476d9a8 0x1846992d4 0x18926443c 0x18925efac 0x10007bc90 0x19665aa08)
libc++abi.dylib: terminating with uncaught exception of type NSException
(lldb)

Resources