<div dir="ltr">
        
        
        


<p style="margin-bottom:0cm;line-height:100%"><span style="line-height:100%">Ho un problema che
riguarda il passaggio di file da GeoBatch a GeoServer.</span><br></p>
<p style="margin-bottom:0cm;line-height:100%">In pratica inserisco
una tif in input a GeoBatch, e quando parte il processing per
passarlo a GeoServer, mi si blocca al 30%. Dopodichè, quando noto il
blocco, cancello l'immagine. A quel punto il processo riparte
(fallendo, ovviamente) e alla fine di tutto in GeoServer viene creato
uno store vuoto.</p>
<p style="margin-bottom:0cm;line-height:100%">L'errore è questo:</p>
<p style="margin-bottom:0cm;line-height:100%"><span style="line-height:100%">INFO 
FileBasedEventGenerator$GBEventListener - Event: FILE_ADDED
/cartella/prova/immagine.tif</span><br></p>
<p style="margin-bottom:0cm;line-height:100%">INFO 
LoggingProgressListener - Started</p>
<p style="margin-bottom:0cm;line-height:100%">INFO 
LoggingProgressListener - Progressing 10.0% -- Managing events</p>
<p style="margin-bottom:0cm;line-height:100%">INFO 
LoggingProgressListener - Progressing 20.0% -- Creating backup dir</p>
<p style="margin-bottom:0cm;line-height:100%">INFO 
FileBasedEventConsumer - [pool-2-thread-5]: new element retrieved
from the MailBox.</p>
<p style="margin-bottom:0cm;line-height:100%">INFO 
LoggingProgressListener - Progressing 30.0% -- Preprocessing event
immagine.tif</p>
<p style="margin-bottom:0cm;line-height:100%"><span style="line-height:100%"><br></span></p><p style="margin-bottom:0cm;line-height:100%"><u><span style="line-height:100%">A questo punto il
processo è bloccato. Appena cancello l'immagine prosegue:</span><br></u></p>
<p style="margin-bottom:0cm;line-height:100%"><br></p>
<p style="margin-bottom:0cm;line-height:100%">INFO 
LoggingProgressListener - Progressing 40.0% -- Creating backup files</p>
<p style="margin-bottom:0cm;line-height:100%">INFO 
FileBasedEventConsumer - [pool-2-thread-3]: accepted file
/cartella/prova/immagine.tif</p>
<p style="margin-bottom:0cm;line-height:100%">INFO 
FileBasedEventConsumer - [pool-2-thread-3]: new element processed.</p>
<p style="margin-bottom:0cm;line-height:100%">INFO 
LoggingProgressListener - Progressing 50.0% -- Running actions</p>
<p style="margin-bottom:0cm;line-height:100%">INFO 
LoggingProgressListener - Progressing 0.0% -- Running GEOBATCH
Script(1/1)</p>
<p style="margin-bottom:0cm;line-height:100%">INFO 
ScriptingAction - Runtime class-loading from moduleFolder ->
/cartella/prova/config/jars</p>
<p style="margin-bottom:0cm;line-height:100%">INFO 
ScriptingAction -  Adding script property: geoserverPWD : password</p>
<p style="margin-bottom:0cm;line-height:100%">INFO 
ScriptingAction -  Adding script property: geoserverUID : userid</p>
<p style="margin-bottom:0cm;line-height:100%">INFO 
ScriptingAction -  Adding script property: defaultNamespace : default</p>
<p style="margin-bottom:0cm;line-height:100%">INFO 
ScriptingAction -  Adding script property: restGeoserverURL :
<a href="http://localhost:8181/geoserver">http://localhost:8181/geoserver</a></p>
<p style="margin-bottom:0cm;line-height:100%">INFO 
ScriptingAction -  Adding script property: maxNumberCoverage : 290</p>
<p style="margin-bottom:0cm;line-height:100%">INFO  Logger$info - 
</p>
<p style="margin-bottom:0cm;line-height:100%"><br>

</p>
<p style="margin-bottom:0cm;line-height:100%">--------------------------------
GEOBATCH SCRIPT</p>
<p style="margin-bottom:0cm;line-height:100%"><br>

</p>
<p style="margin-bottom:0cm;line-height:100%">INFO  Logger$info -
***GeoServerRestReader------>
it.geosolutions.geoserver.rest.GeoServerRESTReader@31395750</p>
<p style="margin-bottom:0cm;line-height:100%">INFO  Logger$info -
***GeoServerRestPublisher------>
it.geosolutions.geoserver.rest.GeoServerRESTPublisher@2b935e6f</p>
<p style="margin-bottom:0cm;line-height:100%">INFO  Logger$info -
Filename input:immagine</p>
<p style="margin-bottom:0cm;line-height:100%">INFO  Logger$info -
Check convention filename 
</p>
<p style="margin-bottom:0cm;line-height:100%">INFO  Logger$info -
File is valid for convention</p>
<p style="margin-bottom:0cm;line-height:100%">INFO  Logger$info - 
</p>
<p style="margin-bottom:0cm;line-height:100%"><br>

</p>
<p style="margin-bottom:0cm;line-height:100%"> --- 1. ACTION
WORKSPACE</p>
<p style="margin-bottom:0cm;line-height:100%">INFO  Logger$info -
WS inputFileName: workspace</p>
<p style="margin-bottom:0cm;line-height:100%">INFO  Logger$info -
Retrieve ws from the geoserver...</p>
<p style="margin-bottom:0cm;line-height:100%">INFO 
GeoServerRESTReader - Loading from REST path /rest/workspaces.xml</p>
<p style="margin-bottom:0cm;line-height:100%">INFO  Logger$info -
lista dei workspaces.…
it.geosolutions.geoserver.rest.decoder.RESTWorkspaceList@dee55c</p>
<p style="margin-bottom:0cm;line-height:100%">INFO 
GeoServerRESTReader - Loading from REST path /rest/workspaces.xml</p>
<p style="margin-bottom:0cm;line-height:100%">INFO  Logger$info -
WS workspace exists and applied.</p>
<p style="margin-bottom:0cm;line-height:100%">INFO  Logger$info - 
</p>
<p style="margin-bottom:0cm;line-height:100%"><br>

</p>
<p style="margin-bottom:0cm;line-height:100%"> --- 2. ACTION STYLE</p>
<p style="margin-bottom:0cm;line-height:100%">INFO  Logger$info -
Style inputFileName: style</p>
<p style="margin-bottom:0cm;line-height:100%">INFO  Logger$info -
Retrieve styles from the geoserver...</p>
<p style="margin-bottom:0cm;line-height:100%">INFO 
GeoServerRESTReader - Loading from REST path /rest/styles.xml</p>
<p style="margin-bottom:0cm;line-height:100%">INFO  Logger$info -
STYLE style exists and applied.</p>
<p style="margin-bottom:0cm;line-height:100%">INFO  Logger$info - 
</p>
<p style="margin-bottom:0cm;line-height:100%"><br>

</p>
<p style="margin-bottom:0cm;line-height:100%"> --- 3. ACTION DATE
CHECK LAYER</p>
<p style="margin-bottom:0cm;line-height:100%">INFO  Logger$info -
Check layer date :layer</p>
<p style="margin-bottom:0cm;line-height:100%">INFO  Logger$info -
Retrieve layer with prefix :::immagine</p>
<p style="margin-bottom:0cm;line-height:100%">INFO 
GeoServerRESTReader - Loading from REST path /rest/layers.xml</p>
<p style="margin-bottom:0cm;line-height:100%">INFO  Logger$info -
MAX NUMBER COVERAGES:290</p>
<p style="margin-bottom:0cm;line-height:100%">INFO  Logger$info -
NUMBER SAME COVERAGES LOADED:0</p>
<p style="margin-bottom:0cm;line-height:100%">INFO  Logger$info -
NEW DATE arrived: date</p>
<p style="margin-bottom:0cm;line-height:100%">INFO  Logger$info - 
</p>
<p style="margin-bottom:0cm;line-height:100%"><br>

</p>
<p style="margin-bottom:0cm;line-height:100%"> --- 4. PUBLISHED</p>
<p style="margin-bottom:0cm;line-height:100%">INFO  HTTPUtils -
HTTP Created: 
</p>
<p style="margin-bottom:0cm;line-height:100%">INFO 
GeoServerRESTPublisher - Store successfully created using ( file:
/cartella/prova/immagine.tif)</p>
<p style="margin-bottom:0cm;line-height:100%">WARN  HTTPUtils -
Bad response: code[500] msg[Internal Server Error]
url[<a href="http://localhost:8181/geoserver/rest/workspaces/workspace/coveragestores/immagine/coverages.xml">http://localhost:8181/geoserver/rest/workspaces/workspace/coveragestores/immagine/coverages.xml</a>]
method[PostMethod]: :Failed to create reader from
file:/cartella/prova//immagine.geotiff and hints Hints:</p>
<p style="margin-bottom:0cm;line-height:100%"> 
FORCE_AXIS_ORDER_HONORING        = http                              
                                                                     
                          
</p>
<p style="margin-bottom:0cm;line-height:100%"> 
GRID_COVERAGE_FACTORY            = GridCoverageFactory               
                                                                     
                          
</p>
<p style="margin-bottom:0cm;line-height:100%">    TILE_ENCODING   
              = null                                                 
                                                                     
       
</p>
<p style="margin-bottom:0cm;line-height:100%">  EXECUTOR_SERVICE  
              =
java.util.concurrent.ThreadPoolExecutor@1e11c391[Running, pool size =
3, active threads = 0, queued tasks = 0, completed tasks = 3]</p>
<p style="margin-bottom:0cm;line-height:100%"> 
LENIENT_DATUM_SHIFT              = true                              
                                                                     
                          
</p>
<p style="margin-bottom:0cm;line-height:100%">  STYLE_FACTORY     
              = StyleFactoryImpl                                     
                                                                     
       
</p>
<p style="margin-bottom:0cm;line-height:100%"> 
FORCE_LONGITUDE_FIRST_AXIS_ORDER = true                              
                                                                     
                          
</p>
<p style="margin-bottom:0cm;line-height:100%"> 
COMPARISON_TOLERANCE             = 1.0E-9                            
                                                                     
                          
</p>
<p style="margin-bottom:0cm;line-height:100%">  FEATURE_FACTORY   
              =
org.geotools.feature.LenientFeatureFactoryImpl@3be9bb55              
                                                             
</p>
<p style="margin-bottom:0cm;line-height:100%">  FILTER_FACTORY    
              = FilterFactoryImpl                                    
                                                                     
       
</p>
<p style="margin-bottom:0cm;line-height:100%"><br>

</p>
<p style="margin-bottom:0cm;line-height:100%">ERROR
GeoServerRESTPublisher - Error creating coverage
workspace:store:layer (null)</p>
<p style="margin-bottom:0cm;line-height:100%">ERROR
GeoServerRESTPublisher - Unable to create a coverage store for
coverage: /cartella/prova/immagine.tif</p>
<p style="margin-bottom:0cm;line-height:100%">INFO  Logger$info - 
</p>
<p style="margin-bottom:0cm;line-height:100%"><br>

</p>
<p style="margin-bottom:0cm;line-height:100%"> --- 5. ACTION
INTERPOLATION</p>
<p style="margin-bottom:0cm;line-height:100%">INFO  Logger$info -
Interpolation inputFileName: BL</p>
<p style="margin-bottom:0cm;line-height:100%">WARN  HTTPUtils -
Bad response: code[404] msg[Not Found]
url[<a href="http://localhost:8181/geoserver/rest/workspaces/workspace/coveragestores/store/coverages/store">http://localhost:8181/geoserver/rest/workspaces/workspace/coveragestores/store/coverages/store</a>]
method[PutMethod]: No such coverage: workspace,store,layer</p>
<p style="margin-bottom:0cm;line-height:100%">INFO  Logger$info -
Interpolation update to BILINEAR</p>
<p style="margin-bottom:0cm;line-height:100%">INFO  Logger$info - 
</p>
<p style="margin-bottom:0cm;line-height:100%"><br>

</p>
<p style="margin-bottom:0cm;line-height:100%"> --- 6. ACTION SET
LAST_LOADED</p>
<p style="margin-bottom:0cm;line-height:100%">INFO  Logger$info -
---->class org.postgresql.Driver<----</p>
<p style="margin-bottom:0cm;line-height:100%">INFO  Logger$info -
Split Name File to product Id properly Started.... 
</p>
<p style="margin-bottom:0cm;line-height:100%">INFO  Logger$info -
---->[workspace, style, interpolation, srs, immagine, data]<----</p>
<p style="margin-bottom:0cm;line-height:100%">INFO  Logger$info -
Id product identified is: immagine</p>
<p style="margin-bottom:0cm;line-height:100%">INFO  Logger$info -
Connection Established...!!!</p>
<p style="margin-bottom:0cm;line-height:100%">INFO  Logger$info -
SQL update for last_loaded Started...!!!</p>
<p style="margin-bottom:0cm;line-height:100%">INFO  Logger$info -
SQL update Executed...!!!</p>
<p style="margin-bottom:0cm;line-height:100%">INFO  Logger$info -
Last_loaded updated is: immagine</p>
<p style="margin-bottom:0cm;line-height:100%">INFO  Logger$info -
Connection Properly Closed...!!!</p>
<p style="margin-bottom:0cm;line-height:100%">INFO  Logger$info -
-------------------------------- DONE!!!</p>
<p style="margin-bottom:0cm;line-height:100%"><br>

</p>
<p style="margin-bottom:0cm;line-height:100%">INFO 
BaseEventConsumer - There are 1 events left in the queue after last
action (GEOBATCH Script)</p>
<p style="margin-bottom:0cm;line-height:100%">INFO 
LoggingProgressListener - Progressing 100.0% -- Running actions</p>
<p style="margin-bottom:0cm;line-height:100%">INFO 
FileBasedEventConsumer - pool-2-thread-3 DONE!</p>
<p style="margin-bottom:0cm;line-height:100%">INFO 
LoggingProgressListener - Completed</p></div>