Persistent configuration files of the ALE middleware

15 views
Skip to first unread message

Diogo Correia

unread,
May 18, 2020, 11:25:28 AM5/18/20
to fosstrak
The ALE middleware doesn't seem to pick the InputGenerators.properties  file. I've tried messing around with it, but I'm not very experienced with Java.
I followed the documentation and placed both files in the designated directory (/usr/local/tomcat/webapps/fc-server-1.2.0/WEB-INF/classes).
I'm doing my master thesis and the objective right now was to get the EPCIS server & repository, middleware and capture application working, publishing EPCIS events of a physical Impinj Speedway reader.
I'm orchestrating everything with docker, using tomcat 7 (above versions generate errors, didn't look deep in to that) and openjdk version "1.8.0_252" .

I've put the log level to ERROR and this is what I get:

INFO  2020-05-18 15:09:11,604 [localhost-startStop-1] org.fosstrak.ale.server.persistence.impl.PersistenceInitImpl:51: ALE Persistence => start

DEBUG 2020-05-18 15:09:11,605 [localhost-startStop-1] org.fosstrak.ale.server.persistence.impl.PersistenceInitImpl:53: ALE Persistence real path of the webapp: /usr/local/tomcat/webapps/fc-server-1.2.0/

DEBUG 2020-05-18 15:09:11,605 [localhost-startStop-1] org.fosstrak.ale.server.persistence.type.PersistenceConfig:38: set real path of webapp: /usr/local/tomcat/webapps/fc-server-1.2.0/

INFO  2020-05-18 15:09:11,606 [localhost-startStop-1] org.fosstrak.ale.server.persistence.impl.PersistenceInitImpl:56: ALE Persistence initialize configuration

DEBUG 2020-05-18 15:09:11,608 [localhost-startStop-1] org.fosstrak.ale.server.persistence.impl.ReadConfigImpl:239: start read and load all lrspec

DEBUG 2020-05-18 15:09:11,608 [localhost-startStop-1] org.fosstrak.ale.server.persistence.util.FileUtils:84: list of file: []

DEBUG 2020-05-18 15:09:11,609 [localhost-startStop-1] org.fosstrak.ale.server.persistence.impl.ReadConfigImpl:243: end read and load all lrspec

DEBUG 2020-05-18 15:09:11,610 [localhost-startStop-1] org.fosstrak.ale.server.persistence.impl.ReadConfigImpl:118: start read and load all ecspec

DEBUG 2020-05-18 15:09:11,611 [localhost-startStop-1] org.fosstrak.ale.server.persistence.util.FileUtils:84: list of file: []

DEBUG 2020-05-18 15:09:11,611 [localhost-startStop-1] org.fosstrak.ale.server.persistence.impl.ReadConfigImpl:124: end read and load all ecspec

DEBUG 2020-05-18 15:09:11,612 [localhost-startStop-1] org.fosstrak.ale.server.persistence.impl.ReadConfigImpl:173: start read and load all ecspec subscriber

DEBUG 2020-05-18 15:09:11,613 [localhost-startStop-1] org.fosstrak.ale.server.persistence.util.FileUtils:84: list of file: []

DEBUG 2020-05-18 15:09:11,613 [localhost-startStop-1] org.fosstrak.ale.server.persistence.impl.ReadConfigImpl:178: end read and load all ecspec subscriber

DEBUG 2020-05-18 15:09:11,614 [localhost-startStop-1] org.fosstrak.ale.server.persistence.impl.ReadConfigImpl:294: start read and load all rospecs

DEBUG 2020-05-18 15:09:11,615 [localhost-startStop-1] org.fosstrak.ale.server.persistence.util.FileUtils:84: list of file: []

DEBUG 2020-05-18 15:09:11,616 [localhost-startStop-1] org.fosstrak.ale.server.persistence.impl.ReadConfigImpl:321: end read and load all rospec

DEBUG 2020-05-18 15:09:11,617 [localhost-startStop-1] org.fosstrak.ale.server.persistence.impl.ReadConfigImpl:326: start read and load all accessspecs

DEBUG 2020-05-18 15:09:11,618 [localhost-startStop-1] org.fosstrak.ale.server.persistence.util.FileUtils:84: list of file: []

DEBUG 2020-05-18 15:09:11,618 [localhost-startStop-1] org.fosstrak.ale.server.persistence.impl.ReadConfigImpl:352: end read and load all acccessspec

INFO  2020-05-18 15:09:11,619 [localhost-startStop-1] org.fosstrak.ale.server.persistence.impl.PersistenceInitImpl:59: ALE Persistence => end

DEBUG 2020-05-18 15:09:11,620 [localhost-startStop-1] org.fosstrak.ale.server.ALEApplicationContext:86: ... initialization done.


InputGenerators.properties:
# Specification of initial readers files
readerAPI=/LLRPReader.xml

LLRPReader.xml
<?xml version="1.0" encoding="UTF-8"?>
<LogicalReaders xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="/resources/LogicalReaders.xsd">
       <LogicalReader name="LogicalReader1">
               <LRSpec isComposite="false" readerType="org.fosstrak.ale.server.readers.llrp.LLRPAdaptor">
                       <LRProperty name="Description" value="LLRP Impinj Speedway Revolution Reader"/>
                       <LRProperty name="PhysicalReaderName" value="LogicalReader1"/>
                       <LRProperty name="ip" value="169.254.1.1"/>
                       <LRProperty name="port" value="5084"/>
                       <LRProperty name="AdaptorClass" value="LLRPReader"/>
                       <LRProperty name="ImplClass" value="org.fosstrak.ale.server.readers.llrp.LLRPAdaptor"/>
                       <LRProperty name="clientInitiated" value="true"/>
               </LRSpec>
       </LogicalReader>
</LogicalReaders>


Diogo Correia

unread,
May 18, 2020, 11:30:34 AM5/18/20
to fosstrak
Missed some lines in the log:

ERROR 2020-05-18 14:24:47,037 [localhost-startStop-1] org.fosstrak.ale.server.readers.llrp.LLRPManager:112: no config file - therefore using defaults...
INFO 2020-05-18 14:24:47,038 [localhost-startStop-1] org.fosstrak.llrp.adaptor.AdaptorManagement:926: config not specified -> create a default configuration
ERROR 2020-05-18 14:24:47,409 [localhost-startStop-1] org.fosstrak.ale.server.readers.llrp.LLRPManager:129: Could not initialize the repository - disabling it.
Reply all
Reply to author
Forward
0 new messages