IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)
Navigation

Inscrivez-vous gratuitement
pour pouvoir participer, suivre les réponses en temps réel, voter pour les messages, poser vos propres questions et recevoir la newsletter

Format d'échange (XML, JSON...) Java Discussion :

[XALAN] Content prolog not allowed


Sujet :

Format d'échange (XML, JSON...) Java

  1. #1
    Membre averti Avatar de supernova
    Profil pro
    Développeur informatique
    Inscrit en
    Juillet 2005
    Messages
    447
    Détails du profil
    Informations personnelles :
    Localisation : France, Moselle (Lorraine)

    Informations professionnelles :
    Activité : Développeur informatique

    Informations forums :
    Inscription : Juillet 2005
    Messages : 447
    Points : 415
    Points
    415
    Par défaut [XALAN] Content prolog not allowed
    Bonjour le forum,

    Je travaille sur une appli java/xml basée sur le parser XALAN. Lors de l'exécution de tests unitaires j'obtiens le message suivant "Content prolog not allowed" et mon test s'arrête illico. Une idée ?
    Il est difficile d’attraper un chat noir dans une pièce sombre. Surtout lorsqu'il n’y est pas.

  2. #2
    Membre averti Avatar de supernova
    Profil pro
    Développeur informatique
    Inscrit en
    Juillet 2005
    Messages
    447
    Détails du profil
    Informations personnelles :
    Localisation : France, Moselle (Lorraine)

    Informations professionnelles :
    Activité : Développeur informatique

    Informations forums :
    Inscription : Juillet 2005
    Messages : 447
    Points : 415
    Points
    415
    Par défaut
    Le core suivant est généré par Eclipse :
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    66
    67
    68
    69
    70
    71
    72
    73
    74
    75
    76
    77
    78
    79
    80
    81
    82
    83
    84
    85
    86
    87
    88
    89
    ---------------------- Exception Information ---------------------------
    JVM Exception 0x4 (subcode 0x0) occurred in thread "main" (TID:0x9719D8)
     
    Native stack at exception generation:
    Program Name                                 Entry Name                       Statement ID 
     
     
    ---------------------- System Properties -------------------------------
    J2RE 1.3.1 IBM Windows 32 build cn131-20020710
    C:\applinat\euclide\IBM\WebSphere Studio\eclipse\jre\bin\javaw.exe -Xbootclasspath:C:\applinat\EUCLIDE\IBM\WebSphere Studio\eclipse\jre\lib\rt.jar -classpath C:/applinat/EUCLIDE/IBM/WebSphere Studio/eclipse/plugins/org.eclipse.jdt.junit_2.0.1/junitsupport.jar;D:\Workspacepalier0\DV_A\bin;D:\Workspacepalier0\DV_G\bin;D:\Workspacepalier0\DV_G\lib\junit.jar;D:\Workspacepalier0\DV_G\lib\log4j-1.2.9.jar;D:\Workspacepalier0\DV_G\lib\serializer.jar;D:\Workspacepalier0\DV_G\lib\xalan.jar;D:\Workspacepalier0\DV_G\lib\xercesImpl.jar;D:\Workspacepalier0\DV_G\lib\xml-apis.jar;D:\Workspacepalier0\DV_G\lib\sunjce_provider.jar;D:\Workspacepalier0\DV_G\lib\jce1_2_2.jar;D:\Workspacepalier0\DV_A\lib\Archi_RFE.jar;D:\Workspacepalier0\DV_A\lib\PatServiceCastor.jar;D:\Workspacepalier0\DV_A\lib\castor.jar;D:\Workspacepalier0\DV_A\lib\j2ee.jar;D:\Workspacepalier0\DV_A\lib\patclient.jar;D:\Workspacepalier0\DV_A\lib\patinter.jar;D:\Workspacepalier0\DV_A\lib\servlet.jar;D:\Workspacepalier0\DV_A\lib\tuxdyngatewayclient.jar;D:\Workspacepalier0\DV_A\lib\tuxgatewayclient.jar;D:\Workspacepalier0\DV_A\lib\webservice_client.jar org.eclipse.jdt.internal.junit.runner.RemoteTestRunner -port 14172 -classNames cnamts.ise.seh.test.opsortie.AllTestsOPS
    Java Home Dir:	C:\applinat\euclide\IBM\WebSphere Studio\eclipse\jre
    Java DLL Dir:	C:\applinat\euclide\IBM\WebSphere Studio\eclipse\jre\bin
    Sys Classpath:	C:\applinat\euclide\IBM\WebSphere Studio\eclipse\jre\lib\rt.jar;C:\applinat\euclide\IBM\WebSphere Studio\eclipse\jre\lib\i18n.jar;C:\applinat\euclide\IBM\WebSphere Studio\eclipse\jre\classes
    UserArgs:
    	-Djava.class.path=.
    	-Xbootclasspath:C:\applinat\EUCLIDE\IBM\WebSphere Studio\eclipse\jre\lib\rt.jar
    	-Djava.class.path=C:/applinat/EUCLIDE/IBM/WebSphere Studio/eclipse/plugins/org.eclipse.jdt.junit_2.0.1/junitsupport.jar;D:\Workspacepalier0\DV_A\bin;D:\Workspacepalier0\DV_G\bin;D:\Workspacepalier0\DV_G\lib\junit.jar;D:\Workspacepalier0\DV_G\lib\log4j-1.2.9.jar;D:\Workspacepalier0\DV_G\lib\serializer.jar;D:\Workspacepalier0\DV_G\lib\xalan.jar;D:\Workspacepalier0\DV_G\lib\xercesImpl.jar;D:\Workspacepalier0\DV_G\lib\xml-apis.jar;D:\Workspacepalier0\DV_G\lib\sunjce_provider.jar;D:\Workspacepalier0\DV_G\lib\jce1_2_2.jar;D:\Workspacepalier0\DV_A\lib\Archi_RFE.jar;D:\Workspacepalier0\DV_A\lib\PatServiceCastor.jar;D:\Workspacepalier0\DV_A\lib\castor.jar;D:\Workspacepalier0\DV_A\lib\j2ee.jar;D:\Workspacepalier0\DV_A\lib\patclient.jar;D:\Workspacepalier0\DV_A\lib\patinter.jar;D:\Workspacepalier0\DV_A\lib\servlet.jar;D:\Workspacepalier0\DV_A\lib\tuxdyngatewayclient.jar;D:\Workspacepalier0\DV_A\lib\tuxgatewayclient.jar;D:\Workspacepalier0\DV_A\lib\webservice_client.jar
    	-Dinvokedviajava
    ---------------------- XM component Dump Routine  ----------------------
    Full thread dump Classic VM (J2RE 1.3.1 IBM Windows 32 build cn131-20020710, native threads):
        "ReaderThread" (TID:0x9717E0, sys_thread_t:0x21B34388, state:R, native ID:0x200) prio=5
    	at java.net.SocketInputStream.socketRead(Native Method)
    	at java.net.SocketInputStream.read(SocketInputStream.java:113)
    	at java.net.SocketInputStream.read(SocketInputStream.java:91)
    	at java.io.InputStreamReader.fill(InputStreamReader.java:188)
    	at java.io.InputStreamReader.read(InputStreamReader.java:264)
    	at java.io.BufferedReader.fill(BufferedReader.java:155)
    	at java.io.BufferedReader.readLine(BufferedReader.java(Compiled Code))
    	at java.io.BufferedReader.readLine(BufferedReader.java:378)
    	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner$ReaderThread.run(RemoteTestRunner.java:105)
        "Finalizer" (TID:0x971900, sys_thread_t:0x8F1FA8, state:CW, native ID:0x804) prio=8
    	at java.lang.Object.wait(Native Method)
    	at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:133)
    	at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:148)
    	at java.lang.ref.Finalizer$FinalizerThread.run(Finalizer.java:213)
        "Reference Handler" (TID:0x971948, sys_thread_t:0x8EE040, state:CW, native ID:0xBA0) prio=10
    	at java.lang.Object.wait(Native Method)
    	at java.lang.Object.wait(Object.java:429)
    	at java.lang.ref.Reference$ReferenceHandler.run(Reference.java:131)
        "Signal dispatcher" (TID:0x971990, sys_thread_t:0x8EB5A8, state:R, native ID:0xFC) prio=5
        "main" (TID:0x9719D8, sys_thread_t:0x829390, state:R, native ID:0xDCC) prio=5
    **** Exception 4 received when dumping Java stack.
    ---------------------- LK component Dump Routine  ----------------------
    Monitor pool info:
      Initial monitor count: 32
      Minimum number of free monitors before expansion: 5
      Pool will next be expanded by: 16
      Current total number of monitors: 32
      Current number of free monitors: 28
    Monitor Pool Dump (flat & inflated object-monitors):
      sys_mon_t:0x00267D28 infl_mon_t: 0x00267920:
        java.lang.ref.Reference$Lock@97F8C0/97F8C8: <unowned>
    	Waiting to be notified:
    	    "Reference Handler" (0x8EE040)
      sys_mon_t:0x00267D68 infl_mon_t: 0x00267960:
        java.lang.ref.ReferenceQueue$Lock@97F4D0/97F4D8: <unowned>
    	Waiting to be notified:
    	    "Finalizer" (0x8F1FA8)
    JVM System Monitor Dump (registered monitors):
        Evacuation Region lock: <unowned>
        Heap Promotion lock: <unowned>
        Sleep lock: <unowned>
        Method trace lock: <unowned>
        Heap lock: owner "main" (0x829390), entry count 1
        Monitor Cache lock: owner "main" (0x829390), entry count 1
        JNI Pinning lock: <unowned>
        JNI Global Reference lock: <unowned>
        Classloader lock: <unowned>
        Binclass lock: <unowned>
        Monitor Registry lock: owner "main" (0x829390), entry count 1
        Thread queue lock: owner "main" (0x829390), entry count 1
    Thread identifiers (as used in flat monitors):
        ident 0x06 "ReaderThread" (0x21B34388) ee 0x21B34178
        ident 0x05 "Finalizer" (0x8F1FA8) ee 0x008F1D98
        ident 0x04 "Reference Handler" (0x8EE040) ee 0x008EDE30
        ident 0x03 "Signal dispatcher" (0x8EB5A8) ee 0x008EB398
        ident 0x02 "main" (0x829390) ee 0x00829180
    Java Object Monitor Dump (flat & inflated object-monitors):
        java.lang.ref.ReferenceQueue$Lock@97F4D0/97F4D8
            locknflags 80000400 Monitor inflated infl_mon 0x00267960
        java.lang.ref.Reference$Lock@97F8C0/97F8C8
            locknflags 80000200 Monitor inflated infl_mon 0x00267920
        java.net.SocketInputStream@AD4D10/AD4D18
            locknflags 00060000 Flat locked by thread ident 0x06, entry count 1
        java.io.InputStreamReader@AD4E70/AD4E78
            locknflags 00060000 Flat locked by thread ident 0x06, entry count 1
        org.apache.xpath.axes.IteratorPool@12D6938/12D6940
            locknflags 00020000 Flat locked by thread ident 0x02, entry count 1
    ---------------------- END OF DUMP -------------------------------------
    Il est difficile d’attraper un chat noir dans une pièce sombre. Surtout lorsqu'il n’y est pas.

  3. #3
    Membre averti
    Profil pro
    Inscrit en
    Janvier 2006
    Messages
    352
    Détails du profil
    Informations personnelles :
    Âge : 57
    Localisation : Suisse

    Informations forums :
    Inscription : Janvier 2006
    Messages : 352
    Points : 445
    Points
    445
    Par défaut
    En général cette erreur apparaît lorsque tu as quelquechose avant la balise de début de fichier xml
    <?xml version ...
    . Attention, il se peut que tu aies des cacactères non affichés, il faut vérifier avec un éditeur hexa.

    Jacques Desmazières

  4. #4
    Membre averti Avatar de supernova
    Profil pro
    Développeur informatique
    Inscrit en
    Juillet 2005
    Messages
    447
    Détails du profil
    Informations personnelles :
    Localisation : France, Moselle (Lorraine)

    Informations professionnelles :
    Activité : Développeur informatique

    Informations forums :
    Inscription : Juillet 2005
    Messages : 447
    Points : 415
    Points
    415
    Par défaut
    Bonjour Jacques,

    C'était bien le cas .. merci je pose résolu.
    Il est difficile d’attraper un chat noir dans une pièce sombre. Surtout lorsqu'il n’y est pas.

+ Répondre à la discussion
Cette discussion est résolue.

Discussions similaires

  1. Content is not allowed in prolog.
    Par dominou73 dans le forum Tomcat et TomEE
    Réponses: 1
    Dernier message: 03/09/2007, 10h00
  2. Content is not allowed in prolog
    Par zulad dans le forum XSL/XSLT/XPATH
    Réponses: 2
    Dernier message: 17/07/2007, 19h31
  3. Content is not allowed in prolog
    Par Battosaiii dans le forum Général JavaScript
    Réponses: 2
    Dernier message: 10/11/2006, 11h02
  4. [Xerces] SAX Exception Content is not allowed in prolog
    Par be_tnt dans le forum Format d'échange (XML, JSON...)
    Réponses: 2
    Dernier message: 18/10/2006, 08h10
  5. [Castor] Content is not allowed in prolog.
    Par marsupilamuf dans le forum Format d'échange (XML, JSON...)
    Réponses: 2
    Dernier message: 01/09/2004, 07h59

Partager

Partager
  • Envoyer la discussion sur Viadeo
  • Envoyer la discussion sur Twitter
  • Envoyer la discussion sur Google
  • Envoyer la discussion sur Facebook
  • Envoyer la discussion sur Digg
  • Envoyer la discussion sur Delicious
  • Envoyer la discussion sur MySpace
  • Envoyer la discussion sur Yahoo