FAQ  •  Register  •  Login

[SOLVED] Error after modify profiles.xml

<<

xpto09

Streaming enthusiast

Posts: 25

Joined: Wed Sep 21, 2011 9:14 pm

Post Fri Sep 30, 2011 2:45 am

[SOLVED] Error after modify profiles.xml

I am using XML copy editor.
I added the lines:
<MediaFormatProfiles>
<MediaFormatProfile mime-type="video/mp4" name="">avi</MediaFormatProfile>

Now I have:
(the message from xml copy editor is: profiles.xml is valid)

  Code:
<Profile id="8" name="LG TV / player" extendsProfileId="1">
      <Detection>
         <HttpHeaders>
            <friendlyName.dlna.org>LG.*</friendlyName.dlna.org>
         </HttpHeaders>
      </Detection>
      <MediaFormatProfiles>
      <MediaFormatProfile mime-type="video/mp4" name="">avi</MediaFormatProfile>
      </MediaFormatProfiles>
      <SubtitlesMimeType>text/srt</SubtitlesMimeType>
      <Transcoding>         
         <Video targetContainer="mpegts" targetACodec="mp3">
            <Matches container="matroska" aCodec="ac3" />
         </Video>
      </Transcoding>
   </Profile>


However, this modification only works when I make it "on the fly".

After a reboot, when I try to start serviio.sh:

  Code:
2011-09-29 23:29:17,448 INFO  [MediaServer] ------------------------------------------------------------------------
2011-09-29 23:29:17,459 INFO  [MediaServer] Serviio DLNA media streaming server v 0.6.0.1 (rev. 8e4ee98bff12)
2011-09-29 23:29:17,459 INFO  [MediaServer] Petr Nejedly 2009-2011
2011-09-29 23:29:17,459 INFO  [MediaServer] http://www.serviio.org
2011-09-29 23:29:17,460 INFO  [MediaServer]
2011-09-29 23:29:17,460 INFO  [MediaServer] Java 1.6.0_22-Sun Microsystems Inc.
2011-09-29 23:29:17,460 INFO  [MediaServer] OS Linux i386 2.6.38-11-generic
2011-09-29 23:29:17,460 INFO  [MediaServer] File encoding: UTF-8
2011-09-29 23:29:17,461 INFO  [MediaServer] Headless mode enabled: true
2011-09-29 23:29:17,461 INFO  [MediaServer] User home dir: /home/mrcs
2011-09-29 23:29:17,461 INFO  [MediaServer] Temp dir: /tmp
2011-09-29 23:29:17,461 INFO  [MediaServer] ------------------------------------------------------------------------
2011-09-29 23:29:17,900 INFO  [RestletServer] Starting Restlet server exposed on port 23423
2011-09-29 23:29:17,967 INFO  [DBSchemaUpdateExecutor] Checking if DB schema needs to be updated
2011-09-29 23:29:19,960 INFO  [DBSchemaUpdateExecutor] Updating DB schema
2011-09-29 23:29:33,027 ERROR [XmlUtils] XML Profiles.xsd didn't pass validation, reason: Content is not allowed in prolog.
2011-09-29 23:29:33,029 ERROR [MediaServer] An unexpected error occured. Ending the application. Message: org.serviio.profile.ProfilesDefinitionException: Profiles XML file is not valid (according to the schema). Check the log.
java.lang.RuntimeException: org.serviio.profile.ProfilesDefinitionException: Profiles XML file is not valid (according to the schema). Check the log.
   at org.serviio.profile.ProfileManager.loadProfiles(ProfileManager.java:156)
   at org.serviio.MediaServer.main(MediaServer.java:105)
Caused by: org.serviio.profile.ProfilesDefinitionException: Profiles XML file is not valid (according to the schema). Check the log.
   at org.serviio.profile.ProfilesDefinitionParser.validateXML(ProfilesDefinitionParser.java:693)
   at org.serviio.profile.ProfilesDefinitionParser.parseDefinition(ProfilesDefinitionParser.java:128)
   at org.serviio.profile.ProfileManager.loadProfiles(ProfileManager.java:154)
   ... 1 more
2011-09-29 23:30:16,859 INFO  [ServiioConsole] Starting Serviio Console
2011-09-29 23:30:19,511 INFO  [ServiioConsole] Connecting to Serviio REST on localhost:23423
2011-09-29 23:30:24,699 WARN  [ServiioConsole] Cannot connect to the server to get DB initialization info
2011-09-29 23:30:28,824 WARN  [ServiioConsole] Cannot connect to server: Communication Error (1001) - Conexão recusada
2011-09-29 23:30:28,958 INFO  [Messages] Loaded console message bundle for locale: en
2011-09-29 23:30:32,999 WARN  [ServiioConsole] Cannot connect to server: Communication Error (1001) - Conexão recusada
2011-09-29 23:30:44,099 INFO  [ServiioConsole] Leaving Serviio Console


Error:
2011-09-29 23:29:33,027 ERROR [XmlUtils] XML Profiles.xsd didn't pass validation, reason: Content is not allowed in prolog.
2011-09-29 23:29:33,029 ERROR [MediaServer] An unexpected error occured. Ending the application. Message: org.serviio.profile.ProfilesDefinitionException: Profiles XML file is not valid (according to the schema). Check the log.


What do I have to do to solve this?
Last edited by xpto09 on Sat Oct 01, 2011 1:47 pm, edited 1 time in total.
<<

Cerberus

User avatar

DLNA master

Posts: 4116

Joined: Sun Jan 02, 2011 5:20 pm

Location: Reading, UK

Post Fri Sep 30, 2011 5:16 am

Re: Error after modify profiles.xml

edit it in notepad instead, obviously your xml copy editor is adding something to the file serviio doesnt like..
Phil Bennett
Beta Tester Group
Wiki | FAQ

Samsung LE40C750 LCD | Samsung BD-C5900 | Sony PS3 | Windows 7 |
HowTo: Provide supported formats of a device HowTo: Record a new ticket on Bitbucket
HowTo: Provide details of a video file that doesn't play HowTo: Turn on detailed logging
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17079

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Fri Sep 30, 2011 10:16 am

Re: Error after modify profiles.xml

yep, there is probably some (hidden) character/byte at the beginning of the file, possibly also wrong encoding
<<

xpto09

Streaming enthusiast

Posts: 25

Joined: Wed Sep 21, 2011 9:14 pm

Post Sat Oct 01, 2011 1:45 pm

Re: Error after modify profiles.xml

The problem is not the editor.
I put the line:

  Code:
<MediaFormatProfile mime-type="video/mp4" name="">AVI</MediaFormatProfile>


here:

  Code:
   <Profile id="1" name="Generic DLNA profile">
      <ContentDirectoryMessageBuilder>org.serviio.upnp.service.contentdirectory.GenericDLNAMessageBuilder</ContentDirectoryMessageBuilder>
      <ProtocolInfo>DLNA</ProtocolInfo>
      <DeviceDescription>
         <FriendlyName>Serviio ({computerName})</FriendlyName>
         <ModelName>Serviio Media Server</ModelName>
         <Manufacturer>Petr Nejedly</Manufacturer>
      </DeviceDescription>
      <MediaFormatProfiles>
         <MediaFormatProfile mime-type="audio/mpeg">MP3</MediaFormatProfile>
         <MediaFormatProfile mime-type="audio/L16;rate=44100;channels=1" name="LPCM">LPCM16_44_MONO</MediaFormatProfile>
         .
                        .
                        .
         <MediaFormatProfile mime-type="video/3gpp">MPEG4_P2_3GPP_SP_L0B_AMR</MediaFormatProfile>
         <MediaFormatProfile mime-type="video/3gpp">AVC_3GPP_BL_QCIF15_AAC</MediaFormatProfile>
         <MediaFormatProfile mime-type="video/mp4" name="">AVI</MediaFormatProfile>
      </MediaFormatProfiles>
                        .
                        .
                        .
<<

Cerberus

User avatar

DLNA master

Posts: 4116

Joined: Sun Jan 02, 2011 5:20 pm

Location: Reading, UK

Post Sat Oct 01, 2011 1:55 pm

Re: Error after modify profiles.xml (solved)

erm that line is wrong anyways and from the portion of the profile.xml file you posted show as corrupted.

should be this
  Code:
<MediaFormatProfile mime-type="video/mp4">AVI</MediaFormatProfile>



attach your profile.xml file here and will try and sort it out for you so its correct.
Phil Bennett
Beta Tester Group
Wiki | FAQ

Samsung LE40C750 LCD | Samsung BD-C5900 | Sony PS3 | Windows 7 |
HowTo: Provide supported formats of a device HowTo: Record a new ticket on Bitbucket
HowTo: Provide details of a video file that doesn't play HowTo: Turn on detailed logging
<<

xpto09

Streaming enthusiast

Posts: 25

Joined: Wed Sep 21, 2011 9:14 pm

Post Sun Oct 02, 2011 12:58 pm

Re: Error after modify profiles.xml (solved)

There is only way to work.
This line

  Code:
<MediaFormatProfile mime-type="video/mp4" name="">AVI</MediaFormatProfile>


must be inside

  Code:
<Profile id="1" name="Generic DLNA profile">
      <ContentDirectoryMessageBuilder>org.serviio.upnp.service.contentdirectory.GenericDLNAMessageBuilder</ContentDirectoryMessageBuilder>
      <ProtocolInfo>DLNA</ProtocolInfo>
      <DeviceDescription>
         <FriendlyName>Serviio ({computerName})</FriendlyName>
         <ModelName>Serviio Media Server</ModelName>
         <Manufacturer>Petr Nejedly</Manufacturer>
      </DeviceDescription>
      <MediaFormatProfiles>
         <MediaFormatProfile mime-type="audio/mpeg">MP3</MediaFormatProfile>
         <MediaFormatProfile mime-type="audio/L16;rate=44100;channels=1" name="LPCM">LPCM16_44_MONO</MediaFormatProfile>
         <MediaFormatProfile mime-type="audio/L16;rate=44100;channels=2" name="LPCM">LPCM16_44_STEREO</MediaFormatProfile>
         <MediaFormatProfile mime-type="audio/L16;rate=48000;channels=1" name="LPCM">LPCM16_48_MONO</MediaFormatProfile>
         <MediaFormatProfile mime-type="audio/L16;rate=48000;channels=2" name="LPCM">LPCM16_48_STEREO</MediaFormatProfile>
         <MediaFormatProfile mime-type="audio/x-ms-wma">WMA_BASE</MediaFormatProfile>
         <MediaFormatProfile mime-type="audio/x-ms-wma">WMA_FULL</MediaFormatProfile>
         <MediaFormatProfile mime-type="audio/mp4">AAC_ISO</MediaFormatProfile>
         <MediaFormatProfile mime-type="audio/mp4">AAC_ISO_320</MediaFormatProfile>
         <MediaFormatProfile mime-type="audio/flac">FLAC</MediaFormatProfile>
         <MediaFormatProfile mime-type="audio/ogg">OGG</MediaFormatProfile>
         <MediaFormatProfile mime-type="image/jpeg">JPEG_SM</MediaFormatProfile>
         <MediaFormatProfile mime-type="image/jpeg">JPEG_MED</MediaFormatProfile>
         <MediaFormatProfile mime-type="image/jpeg">JPEG_LRG</MediaFormatProfile>
         <MediaFormatProfile mime-type="image/jpeg">JPEG_TN</MediaFormatProfile>
         <MediaFormatProfile mime-type="image/png">PNG_LRG</MediaFormatProfile>
         <MediaFormatProfile mime-type="image/png">PNG_TN</MediaFormatProfile>
         <MediaFormatProfile mime-type="image/gif">GIF_LRG</MediaFormatProfile>
         <MediaFormatProfile mime-type="video/mpeg">MPEG1</MediaFormatProfile>
         <MediaFormatProfile mime-type="video/mpeg">MPEG_PS_PAL</MediaFormatProfile>
         <MediaFormatProfile mime-type="video/mpeg">MPEG_PS_NTSC</MediaFormatProfile>         
         <MediaFormatProfile mime-type="video/vnd.dlna.mpeg-tts">MPEG_TS_SD_EU</MediaFormatProfile>
         <MediaFormatProfile mime-type="video/vnd.dlna.mpeg-tts">MPEG_TS_SD_EU_T</MediaFormatProfile>
         <MediaFormatProfile mime-type="video/mpeg">MPEG_TS_SD_EU_ISO</MediaFormatProfile>
         <MediaFormatProfile mime-type="video/vnd.dlna.mpeg-tts">MPEG_TS_SD_NA</MediaFormatProfile>
         <MediaFormatProfile mime-type="video/vnd.dlna.mpeg-tts">MPEG_TS_SD_NA_T</MediaFormatProfile>
         <MediaFormatProfile mime-type="video/mpeg">MPEG_TS_SD_NA_ISO</MediaFormatProfile>
         <MediaFormatProfile mime-type="video/vnd.dlna.mpeg-tts">MPEG_TS_SD_KO</MediaFormatProfile>
         <MediaFormatProfile mime-type="video/vnd.dlna.mpeg-tts">MPEG_TS_SD_KO_T</MediaFormatProfile>
         <MediaFormatProfile mime-type="video/mpeg">MPEG_TS_SD_KO_ISO</MediaFormatProfile>
         <MediaFormatProfile mime-type="video/x-msvideo">AVI</MediaFormatProfile>
         <MediaFormatProfile mime-type="video/x-matroska">MATROSKA</MediaFormatProfile>
         <MediaFormatProfile mime-type="video/x-flv">FLV</MediaFormatProfile>
         <MediaFormatProfile mime-type="video/x-ms-dvr">DVR_MS</MediaFormatProfile>
         <MediaFormatProfile mime-type="video/wtv">WTV</MediaFormatProfile>
         <MediaFormatProfile mime-type="video/ogg">OGV</MediaFormatProfile>
         <MediaFormatProfile mime-type="video/mp4">AVC_MP4_MP_SD_AAC_MULT5</MediaFormatProfile>         
         <MediaFormatProfile mime-type="video/mp4">AVC_MP4_MP_SD_MPEG1_L3</MediaFormatProfile>
         <MediaFormatProfile mime-type="video/mp4">AVC_MP4_MP_SD_AC3</MediaFormatProfile>
         <MediaFormatProfile mime-type="video/mp4">AVC_MP4_MP_HD_720p_AAC</MediaFormatProfile>
         <MediaFormatProfile mime-type="video/mp4">AVC_MP4_MP_HD_1080i_AAC</MediaFormatProfile>
         <MediaFormatProfile mime-type="video/mp4">AVC_MP4_HP_HD_AAC</MediaFormatProfile>
         <MediaFormatProfile mime-type="video/mp4">AVC_MP4_LPCM</MediaFormatProfile>
         <MediaFormatProfile mime-type="video/mp4">MPEG4_P2_MP4_ASP_AAC</MediaFormatProfile>
         <MediaFormatProfile mime-type="video/mp4">MPEG4_P2_MP4_SP_L6_AAC</MediaFormatProfile>
         <MediaFormatProfile mime-type="video/mp4">MPEG4_P2_MP4_NDSD</MediaFormatProfile>         
         <MediaFormatProfile mime-type="video/vnd.dlna.mpeg-tts">MPEG4_P2_TS_ASP_AAC</MediaFormatProfile>
         <MediaFormatProfile mime-type="video/vnd.dlna.mpeg-tts">MPEG4_P2_TS_ASP_AAC_T</MediaFormatProfile>
         <MediaFormatProfile mime-type="video/mpeg">MPEG4_P2_TS_ASP_AAC_ISO</MediaFormatProfile>         
         <MediaFormatProfile mime-type="video/vnd.dlna.mpeg-tts">MPEG4_P2_TS_ASP_AC3</MediaFormatProfile>
         <MediaFormatProfile mime-type="video/vnd.dlna.mpeg-tts">MPEG4_P2_TS_ASP_AC3_T</MediaFormatProfile>
         <MediaFormatProfile mime-type="video/mpeg">MPEG4_P2_TS_ASP_AC3_ISO</MediaFormatProfile>
         <MediaFormatProfile mime-type="video/vnd.dlna.mpeg-tts">MPEG4_P2_TS_ASP_MPEG1_L3</MediaFormatProfile>
         <MediaFormatProfile mime-type="video/vnd.dlna.mpeg-tts">MPEG4_P2_TS_ASP_MPEG1_L3_T</MediaFormatProfile>
         <MediaFormatProfile mime-type="video/mpeg">MPEG4_P2_TS_ASP_MPEG1_L3_ISO</MediaFormatProfile>      
         <MediaFormatProfile mime-type="video/vnd.dlna.mpeg-tts">AVC_TS_MP_SD_AAC_MULT5</MediaFormatProfile>
         <MediaFormatProfile mime-type="video/vnd.dlna.mpeg-tts">AVC_TS_MP_SD_AAC_MULT5_T</MediaFormatProfile>
         <MediaFormatProfile mime-type="video/mpeg">AVC_TS_MP_SD_AAC_MULT5_ISO</MediaFormatProfile>
         <MediaFormatProfile mime-type="video/vnd.dlna.mpeg-tts">AVC_TS_MP_SD_MPEG1_L3</MediaFormatProfile>
         <MediaFormatProfile mime-type="video/vnd.dlna.mpeg-tts">AVC_TS_MP_SD_MPEG1_L3_T</MediaFormatProfile>
         <MediaFormatProfile mime-type="video/mpeg">AVC_TS_MP_SD_MPEG1_L3_ISO</MediaFormatProfile>
         <MediaFormatProfile mime-type="video/vnd.dlna.mpeg-tts">AVC_TS_MP_SD_AC3</MediaFormatProfile>
         <MediaFormatProfile mime-type="video/vnd.dlna.mpeg-tts">AVC_TS_MP_SD_AC3_T</MediaFormatProfile>
         <MediaFormatProfile mime-type="video/mpeg">AVC_TS_MP_SD_AC3_ISO</MediaFormatProfile>
         <MediaFormatProfile mime-type="video/vnd.dlna.mpeg-tts">AVC_TS_MP_HD_AAC_MULT5</MediaFormatProfile>
         <MediaFormatProfile mime-type="video/vnd.dlna.mpeg-tts">AVC_TS_MP_HD_AAC_MULT5_T</MediaFormatProfile>
         <MediaFormatProfile mime-type="video/mpeg">AVC_TS_MP_HD_AAC_MULT5_ISO</MediaFormatProfile>
         <MediaFormatProfile mime-type="video/vnd.dlna.mpeg-tts">AVC_TS_MP_HD_MPEG1_L3</MediaFormatProfile>
         <MediaFormatProfile mime-type="video/vnd.dlna.mpeg-tts">AVC_TS_MP_HD_MPEG1_L3_T</MediaFormatProfile>
         <MediaFormatProfile mime-type="video/mpeg">AVC_TS_MP_HD_MPEG1_L3_ISO</MediaFormatProfile>
         <MediaFormatProfile mime-type="video/vnd.dlna.mpeg-tts">AVC_TS_MP_HD_AC3</MediaFormatProfile>
         <MediaFormatProfile mime-type="video/vnd.dlna.mpeg-tts">AVC_TS_MP_HD_AC3_T</MediaFormatProfile>
         <MediaFormatProfile mime-type="video/mpeg">AVC_TS_MP_HD_AC3_ISO</MediaFormatProfile>
         <MediaFormatProfile mime-type="video/vnd.dlna.mpeg-tts">AVC_TS_HD_DTS_T</MediaFormatProfile>
         <MediaFormatProfile mime-type="video/mpeg">AVC_TS_HD_DTS_ISO</MediaFormatProfile>
         <MediaFormatProfile mime-type="video/vnd.dlna.mpeg-tts">AVC_TS_HD_50_LPCM_T</MediaFormatProfile>
         <MediaFormatProfile mime-type="video/mpeg">AVC_TS_HP_SD_MPEG1_L2_ISO</MediaFormatProfile>         
         <MediaFormatProfile mime-type="video/vnd.dlna.mpeg-tts">AVC_TS_HP_SD_MPEG1_L2_T</MediaFormatProfile>
         <MediaFormatProfile mime-type="video/mpeg">AVC_TS_HP_HD_MPEG1_L2_ISO</MediaFormatProfile>         
         <MediaFormatProfile mime-type="video/vnd.dlna.mpeg-tts">AVC_TS_HP_HD_MPEG1_L2_T</MediaFormatProfile>
         <MediaFormatProfile mime-type="video/x-ms-wmv">WMVMED_BASE</MediaFormatProfile>
         <MediaFormatProfile mime-type="video/x-ms-wmv">WMVMED_FULL</MediaFormatProfile>
         <MediaFormatProfile mime-type="video/x-ms-wmv">WMVHIGH_FULL</MediaFormatProfile>
         <MediaFormatProfile mime-type="video/x-ms-wmv">WMVMED_PRO</MediaFormatProfile>
         <MediaFormatProfile mime-type="video/x-ms-wmv">WMVHIGH_PRO</MediaFormatProfile>
         <MediaFormatProfile mime-type="video/x-ms-asf">VC1_ASF_AP_L1_WMA</MediaFormatProfile>
         <MediaFormatProfile mime-type="video/x-ms-asf">VC1_ASF_AP_L2_WMA</MediaFormatProfile>
         <MediaFormatProfile mime-type="video/x-ms-asf">VC1_ASF_AP_L3_WMA</MediaFormatProfile>
         <MediaFormatProfile mime-type="video/mpeg">VC1_TS_AP_L1_AC3_ISO</MediaFormatProfile>
         <MediaFormatProfile mime-type="video/mpeg">VC1_TS_AP_L2_AC3_ISO</MediaFormatProfile>
         <MediaFormatProfile mime-type="video/mpeg">VC1_TS_HD_DTS_ISO</MediaFormatProfile>
         <MediaFormatProfile mime-type="video/vnd.dlna.mpeg-tts">VC1_TS_HD_DTS_T</MediaFormatProfile>         
         <MediaFormatProfile mime-type="video/3gpp">MPEG4_P2_3GPP_SP_L0B_AAC</MediaFormatProfile>
         <MediaFormatProfile mime-type="video/3gpp">MPEG4_P2_3GPP_SP_L0B_AMR</MediaFormatProfile>
         <MediaFormatProfile mime-type="video/3gpp">AVC_3GPP_BL_QCIF15_AAC</MediaFormatProfile>
         <MediaFormatProfile mime-type="video/mp4" name="">AVI</MediaFormatProfile>
      </MediaFormatProfiles>
      <OnlineTranscoding>
         <Video targetContainer="mpegts" targetACodec="ac3" aBitrate="384">
            <Matches container="mp4"/>
            <Matches container="flv"/>
         </Video>
         <Audio targetContainer="mp3">
            <Matches container="flv"/>
         </Audio>
      </OnlineTranscoding>
      <AutomaticImageRotation>false</AutomaticImageRotation>
      <LimitImageResolution>true</LimitImageResolution>
   </Profile>

   <!--
      ========================= DO NOT EDIT - end   ====================================
   -->


I put it in

  Code:
   <Profile id="8" name="LG TV / player" extendsProfileId="1">
      <Detection>
         <HttpHeaders>
            <friendlyName.dlna.org>LG.*</friendlyName.dlna.org>
         </HttpHeaders>
      </Detection>
      <MediaFormatProfile mime-type="video/mp4" name="">avi</MediaFormatProfile>
      <SubtitlesMimeType>text/srt</SubtitlesMimeType>
      <Transcoding>         
         <Video targetContainer="mpegts" targetACodec="mp3">
            <Matches container="matroska" aCodec="ac3" />
         </Video>
      </Transcoding>
   </Profile>


there is error.

I tried put the line
  Code:
<MediaFormatProfile mime-type="video/mp4">AVI</MediaFormatProfile>


but there is error.
<<

Cerberus

User avatar

DLNA master

Posts: 4116

Joined: Sun Jan 02, 2011 5:20 pm

Location: Reading, UK

Post Sun Oct 02, 2011 5:03 pm

Re: Error after modify profiles.xml (solved)

DO NOT edit the generic profile or you will break all the other profile.

now i will look at this once im at work and give you a working profile to test for your pannasoic.

EDIT: here is corrected profiles.xml file please copy this to your serviio installation folder.

profiles.xml
(55.21 KiB) Downloaded 607 times


FYI: the correct information you needed to add is below but as you messed up your profile.xml file using an XML editor, please use the copy above

  Code:
<MediaFormatProfiles>
   <MediaFormatProfile mime-type="video/mp4" name="">AVI</MediaFormatProfile>
</MediaFormatProfiles>
Phil Bennett
Beta Tester Group
Wiki | FAQ

Samsung LE40C750 LCD | Samsung BD-C5900 | Sony PS3 | Windows 7 |
HowTo: Provide supported formats of a device HowTo: Record a new ticket on Bitbucket
HowTo: Provide details of a video file that doesn't play HowTo: Turn on detailed logging
<<

xpto09

Streaming enthusiast

Posts: 25

Joined: Wed Sep 21, 2011 9:14 pm

Post Sun Oct 02, 2011 8:05 pm

Re: Error after modify profiles.xml (solved)

Not worked.

  Code:
2011-10-02 16:51:55,725 INFO  [MediaServer] ------------------------------------------------------------------------
2011-10-02 16:51:55,739 INFO  [MediaServer] Serviio DLNA media streaming server v 0.6.0.1 (rev. 8e4ee98bff12)
2011-10-02 16:51:55,739 INFO  [MediaServer] Petr Nejedly 2009-2011
2011-10-02 16:51:55,739 INFO  [MediaServer] http://www.serviio.org
2011-10-02 16:51:55,739 INFO  [MediaServer]
2011-10-02 16:51:55,739 INFO  [MediaServer] Java 1.6.0_22-Sun Microsystems Inc.
2011-10-02 16:51:55,739 INFO  [MediaServer] OS Linux i386 2.6.38-11-generic
2011-10-02 16:51:55,739 INFO  [MediaServer] File encoding: US-ASCII
2011-10-02 16:51:55,740 INFO  [MediaServer] Headless mode enabled: true
2011-10-02 16:51:55,740 INFO  [MediaServer] User home dir: /root
2011-10-02 16:51:55,740 INFO  [MediaServer] Temp dir: /tmp
2011-10-02 16:51:55,740 INFO  [MediaServer] ------------------------------------------------------------------------
2011-10-02 16:51:55,927 INFO  [RestletServer] Starting Restlet server exposed on port 23423
2011-10-02 16:51:55,988 INFO  [DBSchemaUpdateExecutor] Checking if DB schema needs to be updated
2011-10-02 16:51:58,217 ERROR [XmlUtils] XML Profiles.xsd didn't pass validation, reason: cvc-elt.1: Cannot find the declaration of element 'MediaFormatProfile'.
2011-10-02 16:51:58,218 ERROR [MediaServer] An unexpected error occured. Ending the application. Message: org.serviio.profile.ProfilesDefinitionException: Profiles XML file is not valid (according to the schema). Check the log.
java.lang.RuntimeException: org.serviio.profile.ProfilesDefinitionException: Profiles XML file is not valid (according to the schema). Check the log.
   at org.serviio.profile.ProfileManager.loadProfiles(ProfileManager.java:156)
   at org.serviio.MediaServer.main(MediaServer.java:105)
Caused by: org.serviio.profile.ProfilesDefinitionException: Profiles XML file is not valid (according to the schema). Check the log.
   at org.serviio.profile.ProfilesDefinitionParser.validateXML(ProfilesDefinitionParser.java:693)
   at org.serviio.profile.ProfilesDefinitionParser.parseDefinition(ProfilesDefinitionParser.java:128)
   at org.serviio.profile.ProfileManager.loadProfiles(ProfileManager.java:154)


The problem is this:

  Code:
2011-10-02 16:51:58,217 ERROR [XmlUtils] XML Profiles.xsd didn't pass validation, reason: cvc-elt.1: Cannot find the declaration of element 'MediaFormatProfile'.


If I return the profile that is modified, there is no error:

  Code:
2011-10-02 16:57:19,296 INFO  [MediaServer] ------------------------------------------------------------------------
2011-10-02 16:57:19,318 INFO  [MediaServer] Serviio DLNA media streaming server v 0.6.0.1 (rev. 8e4ee98bff12)
2011-10-02 16:57:19,318 INFO  [MediaServer] Petr Nejedly 2009-2011
2011-10-02 16:57:19,318 INFO  [MediaServer] http://www.serviio.org
2011-10-02 16:57:19,318 INFO  [MediaServer]
2011-10-02 16:57:19,318 INFO  [MediaServer] Java 1.6.0_22-Sun Microsystems Inc.
2011-10-02 16:57:19,318 INFO  [MediaServer] OS Linux i386 2.6.38-11-generic
2011-10-02 16:57:19,318 INFO  [MediaServer] File encoding: US-ASCII
2011-10-02 16:57:19,319 INFO  [MediaServer] Headless mode enabled: true
2011-10-02 16:57:19,319 INFO  [MediaServer] User home dir: /root
2011-10-02 16:57:19,319 INFO  [MediaServer] Temp dir: /tmp
2011-10-02 16:57:19,319 INFO  [MediaServer] ------------------------------------------------------------------------
2011-10-02 16:57:19,495 INFO  [RestletServer] Starting Restlet server exposed on port 23423
2011-10-02 16:57:19,569 INFO  [DBSchemaUpdateExecutor] Checking if DB schema needs to be updated
2011-10-02 16:57:22,049 INFO  [ProfilesDefinitionParser] Parsing Profiles definition
2011-10-02 16:57:22,584 INFO  [ProfilesDefinitionParser] Added profile 'Generic DLNA profile' (id=1)
2011-10-02 16:57:22,808 INFO  [ProfilesDefinitionParser] Added profile 'Samsung TV (B-series)' (id=2)
2011-10-02 16:57:22,919 INFO  [ProfilesDefinitionParser] Added profile 'XBox 360' (id=3)
2011-10-02 16:57:23,034 INFO  [ProfilesDefinitionParser] Added profile 'Playstation 3' (id=4)
2011-10-02 16:57:23,125 INFO  [ProfilesDefinitionParser] Added profile 'Samsung TV (A-series)' (id=5)
2011-10-02 16:57:23,211 INFO  [ProfilesDefinitionParser] Added profile 'DirecTV HD-DVR' (id=6)
2011-10-02 16:57:23,407 INFO  [ProfilesDefinitionParser] Added profile 'Samsung TV / player (C/D-series)' (id=7)
2011-10-02 16:57:23,441 INFO  [ProfilesDefinitionParser] Added profile 'LG TV / player' (id=8)
2011-10-02 16:57:23,712 INFO  [ProfilesDefinitionParser] Added profile 'Sony Bravia TV' (id=9)
2011-10-02 16:57:24,122 INFO  [ProfilesDefinitionParser] Added profile 'Sony BD Player' (id=10)
2011-10-02 16:57:24,285 INFO  [ProfilesDefinitionParser] Added profile 'Panasonic Viera' (id=12)
2011-10-02 16:57:24,463 INFO  [ProfilesDefinitionParser] Added profile 'Toshiba REGZA' (id=13)
2011-10-02 16:57:24,507 INFO  [ProfilesDefinitionParser] Added profile 'WDTV Live' (id=14)
2011-10-02 16:57:24,531 INFO  [ProfilesDefinitionParser] Added profile 'LaCie LaCinema Media Player' (id=15)
2011-10-02 16:57:24,606 INFO  [ProfilesDefinitionParser] Added profile 'Manta WIFI Centre' (id=16)
2011-10-02 16:57:24,642 INFO  [ProfilesDefinitionParser] Added profile 'Pure Flow' (id=17)
2011-10-02 16:57:24,725 INFO  [ProfilesDefinitionParser] Added profile 'Sharp Aquos' (id=18)
2011-10-02 16:57:25,063 INFO  [ProfilesDefinitionParser] Added profile 'Sony Bravia TV 2011' (id=19)
2011-10-02 16:57:25,332 INFO  [ProfilesDefinitionParser] Added profile 'Sony SMP-N100' (id=20)
2011-10-02 16:57:25,406 INFO  [CompositeCacheManager] Creating cache manager from config file: /cache.ccf
2011-10-02 16:57:25,440 INFO  [ThreadPoolManager] thread_pool.default PoolConfiguration = useBoundary = [true] boundarySize = [2000] maximumPoolSize = [150] minimumPoolSize = [4] keepAliveTime = [300000] whenBlockedPolicy = [RUN] startUpSize = [4]
2011-10-02 16:57:25,443 INFO  [CompositeCacheConfigurator] Setting default auxiliaries to null
2011-10-02 16:57:25,443 INFO  [CompositeCacheConfigurator] No special CompositeCacheAttributes class defined for key [jcs.default.cacheattributes], using default class.
2011-10-02 16:57:25,445 INFO  [CompositeCacheConfigurator] setting defaultCompositeCacheAttributes to [ useLateral = true, useRemote = true, useDisk = true, maxObjs = 100, maxSpoolPerRun = -1, diskUsagePattern = 0 ]
2011-10-02 16:57:25,445 INFO  [CompositeCacheConfigurator] No special ElementAttribute class defined for key [jcs.default.elementattributes], using default class.
2011-10-02 16:57:25,445 INFO  [CompositeCacheConfigurator] setting defaultElementAttributes to [ IS_LATERAL = true, IS_SPOOL = true, IS_REMOTE = true, IS_ETERNAL = true, MaxLifeSeconds = -1, IdleTime = -1, CreateTime = 1317585445445, LastAccessTime = 1317585445445, getTimeToLiveSeconds() = -1, createTime = 1317585445445 ]
2011-10-02 16:57:25,469 INFO  [LRUMemoryCache] initialized LRUMemoryCache for thumbnails
2011-10-02 16:57:25,469 INFO  [CompositeCache] Constructed cache with name [thumbnails] and cache attributes [ useLateral = true, useRemote = true, useDisk = true, maxObjs = 1000, maxSpoolPerRun = -1, diskUsagePattern = 0 ]
2011-10-02 16:57:25,469 INFO  [LRUMemoryCache] initialized LRUMemoryCache for online_feeds
2011-10-02 16:57:25,469 INFO  [CompositeCache] Constructed cache with name [online_feeds] and cache attributes [ useLateral = true, useRemote = true, useDisk = true, maxObjs = 1000, maxSpoolPerRun = -1, diskUsagePattern = 0 ]
2011-10-02 16:57:25,469 INFO  [CompositeCacheConfigurator] No special ElementAttribute class defined for key [jcs.region.local_default.elementattributes], using default class.
2011-10-02 16:57:25,469 INFO  [LRUMemoryCache] initialized LRUMemoryCache for local_default
2011-10-02 16:57:25,469 INFO  [CompositeCache] Constructed cache with name [local_default] and cache attributes [ useLateral = true, useRemote = true, useDisk = true, maxObjs = 1000, maxSpoolPerRun = -1, diskUsagePattern = 0 ]
2011-10-02 16:57:25,469 INFO  [CompositeCacheConfigurator] No special ElementAttribute class defined for key [jcs.region.local_resetafterplay.elementattributes], using default class.
2011-10-02 16:57:25,470 INFO  [LRUMemoryCache] initialized LRUMemoryCache for local_resetafterplay
2011-10-02 16:57:25,470 INFO  [CompositeCache] Constructed cache with name [local_resetafterplay] and cache attributes [ useLateral = true, useRemote = true, useDisk = true, maxObjs = 1000, maxSpoolPerRun = -1, diskUsagePattern = 0 ]
2011-10-02 16:57:25,470 INFO  [CompositeCacheConfigurator] Parsed regions [thumbnails, online_feeds, local_default, local_resetafterplay]
2011-10-02 16:57:25,470 INFO  [CompositeCacheConfigurator] Finished configuration in 28 ms.
2011-10-02 16:57:25,156 INFO  [WebServer] Socket buffer set to 65535 bytes
2011-10-02 16:57:25,156 INFO  [Device] Created UPnP Device with UUID: c40a518f-6e4b-3d4a-b2ea-f39bd2e8b629, bound address: 192.168.0.10
2011-10-02 16:57:25,431 INFO  [PluginCompilerThread] Looking for plugins at /home/mrcs/pms/serviio-0.6.0.1/plugins
2011-10-02 16:57:25,431 INFO  [PluginCompilerThread] Started looking for plugins
2011-10-02 16:57:27,351 INFO  [AbstractTranscodingDeliveryEngine] Cleaning transcode engine and its data
2011-10-02 16:57:27,695 INFO  [WebServer] WebServer starting on port 8895
2011-10-02 16:57:27,782 INFO  [EventDispatcher] Starting EventDispatcher
2011-10-02 16:57:27,783 INFO  [EventSubscriptionExpirationChecker] Starting EventSubscriptionExpirationChecker
2011-10-02 16:57:27,784 INFO  [DiscoveryAdvertisementNotifier] Starting DiscoveryAdvertisementNotifier
2011-10-02 16:57:27,820 INFO  [DiscoverySSDPMessageListener] Starting DiscoverySSDPMessageListener using interface eth0 (eth0) and address 192.168.0.10, timeout = 0
2011-10-02 16:57:27,824 INFO  [RendererSearchSender] Searching for Renderer devices
2011-10-02 16:57:27,824 INFO  [RendererExpirationChecker] Starting RendererExpirationChecker
2011-10-02 16:57:29,511 INFO  [PluginCompilerThread] Added plugin SnotrUrlExtractor (Snotr.groovy)
2011-10-02 16:57:29,805 INFO  [PluginCompilerThread] Added plugin YouTubeUrlExctractor (Youtube.groovy)
2011-10-02 16:57:30,213 INFO  [PluginCompilerThread] Added plugin SC2CastUrlExctractor (SC2Casts.groovy)
2011-10-02 16:57:53,996 INFO  [FeedUpdaterThread] Started looking for information about online feeds
2011-10-02 16:57:54,009 INFO  [LibraryAdditionsCheckerThread] Started looking for newly added files
2011-10-02 16:57:54,030 INFO  [LibraryUpdatesCheckerThread] Started looking for updates to currently shared files
<<

Cerberus

User avatar

DLNA master

Posts: 4116

Joined: Sun Jan 02, 2011 5:20 pm

Location: Reading, UK

Post Sun Oct 02, 2011 8:08 pm

Re: Error after modify profiles.xml (solved)

ok maybe i typed it wrong, let me check.

Edit yep i typed it wrong lol mybad see below working version.
profiles.xml
(55.14 KiB) Downloaded 845 times
Phil Bennett
Beta Tester Group
Wiki | FAQ

Samsung LE40C750 LCD | Samsung BD-C5900 | Sony PS3 | Windows 7 |
HowTo: Provide supported formats of a device HowTo: Record a new ticket on Bitbucket
HowTo: Provide details of a video file that doesn't play HowTo: Turn on detailed logging
<<

xpto09

Streaming enthusiast

Posts: 25

Joined: Wed Sep 21, 2011 9:14 pm

Post Sun Oct 02, 2011 9:15 pm

Re: Error after modify profiles.xml (solved)

Worked!
<<

Cerberus

User avatar

DLNA master

Posts: 4116

Joined: Sun Jan 02, 2011 5:20 pm

Location: Reading, UK

Post Sun Oct 02, 2011 9:33 pm

Re: Error after modify profiles.xml (solved)

xpto09 wrote:Worked!


Of course it did and now the other profiles arent broken either and yur LG works :P
Phil Bennett
Beta Tester Group
Wiki | FAQ

Samsung LE40C750 LCD | Samsung BD-C5900 | Sony PS3 | Windows 7 |
HowTo: Provide supported formats of a device HowTo: Record a new ticket on Bitbucket
HowTo: Provide details of a video file that doesn't play HowTo: Turn on detailed logging

Return to LG

Who is online

Users browsing this forum: No registered users and 2 guests

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.