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

Intégration Continue Discussion :

API Client XML-RPC [Continuum]


Sujet :

Intégration Continue

  1. #1
    Membre à l'essai
    Profil pro
    Inscrit en
    Juin 2007
    Messages
    86
    Détails du profil
    Informations personnelles :
    Âge : 41
    Localisation : France, Paris (Île de France)

    Informations forums :
    Inscription : Juin 2007
    Messages : 86
    Points : 19
    Points
    19
    Par défaut API Client XML-RPC
    Bonjour tout le monde,

    J'utilise l'API Client XML-RPC avec la alpha1 (apparement c'est pas compatibe avec la alpha2 même en changeant le port !!), tout ce que je peux faire c'est afficher les information sur les projets et executer les builds, et dès qu'il s'agit d'ajouter un nouveau projet ou modifier les parametres d'un projet existant ça déclenche l'exception suivante:

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    ERROR XML RPC !! (add project)
    org.apache.xmlrpc.XmlRpcException: java.lang.NoSuchMethodException: org.apache.maven.continuum.xmlrpc.DefaultContinuumXmlRpc.addnullProject(java.util.Hashtable)
    	at org.apache.xmlrpc.XmlRpcClientResponseProcessor.decodeException(XmlRpcClientResponseProcessor.java:102)
    	at org.apache.xmlrpc.XmlRpcClientResponseProcessor.decodeResponse(XmlRpcClientResponseProcessor.java:69)
    	at org.apache.xmlrpc.XmlRpcClientWorker.execute(XmlRpcClientWorker.java:72)
    	at org.apache.xmlrpc.XmlRpcClient.execute(XmlRpcClient.java:193)
    	at org.apache.xmlrpc.XmlRpcClient.execute(XmlRpcClient.java:184)
    	at org.apache.xmlrpc.XmlRpcClient.execute(XmlRpcClient.java:177)
    	at org.apache.maven.continuum.rpc.ProjectsReader.addProject(ProjectsReader.java:148)
    	at sofinco.liv.servlet.TestApi.main(TestApi.java:87)
    j'ai essayé même de remplir tous les parametres que j'ai pu, voici un bout de mon code :

    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
    Project project = new Project();
    		project.setExecutorId( "maven2" );
    		project.setScmUrl( "scm:svn:https://serapis/projets_java/DataManager/branches/DataManager_V1.4" );
    		project.setId(41);
    		project.setName("koko");
    		project.setVersion("1.0.3");
    		project.setWorkingDirectory("c:/Amine");
    		project.setScmUsername("t02168");
    		project.setScmPassword("Po97j25");
    		project.setScmTag("scm");
    		
    		
    
    		
    		
    		try {
    			//pr.refreshProject(project);
    			pr.addProject( project );
    //			Project p = pr.readProjects()[0];			//p.setScmUrl("scm:svn:https://serapis/projets_java/DataManager/branches/DataManager_V1.4");
    //			pr.refreshProject(p);
    //			build(0);
    			
    		
    			
    		} catch (XmlRpcException xre) {
    			// TODO: handle exception
    			System.out.println("ERROR! XML RPC !! (add project)");
    			xre.printStackTrace();
    		}catch (IOException ioe) {
    			// TODO: handle exception
    			System.out.println("ERROR! I/O !!");
    			ioe.printStackTrace();
    		}
    Si quelqu'un pourrait me recommander une documentatation, javadoc, ou des programmes de test qui marchent je suis prenneur.

    Voilà! j'attend votre aide...

    ((((MERCI))))

  2. #2
    Membre expérimenté

    Profil pro
    Inscrit en
    Mai 2006
    Messages
    1 172
    Détails du profil
    Informations personnelles :
    Âge : 49
    Localisation : France, Yvelines (Île de France)

    Informations forums :
    Inscription : Mai 2006
    Messages : 1 172
    Points : 1 524
    Points
    1 524
    Par défaut
    J'ai fait un refactoring complet du xmlrpc dans la alpha-2

    Maintenant, il se trouve sur le même port que continuum (8080, par défaut)
    Tu trouveras la classe de base du client, anisi qu'un example ici
    Regardes le pom, pour connaitre les dépendances.

  3. #3
    Membre à l'essai
    Profil pro
    Inscrit en
    Juin 2007
    Messages
    86
    Détails du profil
    Informations personnelles :
    Âge : 41
    Localisation : France, Paris (Île de France)

    Informations forums :
    Inscription : Juin 2007
    Messages : 86
    Points : 19
    Points
    19
    Par défaut
    Merci emmanuel

    c'est exactement ce dont j'avais besoin !

    Merci encore une fois.

  4. #4
    Membre expérimenté

    Profil pro
    Inscrit en
    Mai 2006
    Messages
    1 172
    Détails du profil
    Informations personnelles :
    Âge : 49
    Localisation : France, Yvelines (Île de France)

    Informations forums :
    Inscription : Mai 2006
    Messages : 1 172
    Points : 1 524
    Points
    1 524
    Par défaut
    N'hésite pas à me faire un retour sur l'API, méthodes manquantes...

  5. #5
    Membre à l'essai
    Profil pro
    Inscrit en
    Juin 2007
    Messages
    86
    Détails du profil
    Informations personnelles :
    Âge : 41
    Localisation : France, Paris (Île de France)

    Informations forums :
    Inscription : Juin 2007
    Messages : 86
    Points : 19
    Points
    19
    Par défaut
    T'inquiète,

    s'il s'ajit que de faire des remarques je suis le champion du monde

    Merci.

  6. #6
    Membre expérimenté

    Profil pro
    Inscrit en
    Mai 2006
    Messages
    1 172
    Détails du profil
    Informations personnelles :
    Âge : 49
    Localisation : France, Yvelines (Île de France)

    Informations forums :
    Inscription : Mai 2006
    Messages : 1 172
    Points : 1 524
    Points
    1 524
    Par défaut
    SUPER

  7. #7
    Membre à l'essai
    Profil pro
    Inscrit en
    Juin 2007
    Messages
    86
    Détails du profil
    Informations personnelles :
    Âge : 41
    Localisation : France, Paris (Île de France)

    Informations forums :
    Inscription : Juin 2007
    Messages : 86
    Points : 19
    Points
    19
    Par défaut
    Emmanuel,

    Tu veux bien me donner la réf de la dérniere version de l'API Continuum, j'arrive pas à l'avoir avec :

    <dependency>
    <groupId>org.apache.maven.continuum</groupId>
    <artifactId>continuum-xmlrpc-api</artifactId>
    <version>1.1-SNAPSHOT</version>
    </dependency>

    Merci.

  8. #8
    Membre expérimenté

    Profil pro
    Inscrit en
    Mai 2006
    Messages
    1 172
    Détails du profil
    Informations personnelles :
    Âge : 49
    Localisation : France, Yvelines (Île de France)

    Informations forums :
    Inscription : Mai 2006
    Messages : 1 172
    Points : 1 524
    Points
    1 524
    Par défaut
    Il faut ajouter un snapshot repository dans ton pom avec cette adresse: http://people.apache.org/repo/m2-snapshot-repository

  9. #9
    Membre à l'essai
    Profil pro
    Inscrit en
    Juin 2007
    Messages
    86
    Détails du profil
    Informations personnelles :
    Âge : 41
    Localisation : France, Paris (Île de France)

    Informations forums :
    Inscription : Juin 2007
    Messages : 86
    Points : 19
    Points
    19
    Par défaut
    bizar.. ça marche pas !

    J'avais l'impression qu'on le déclare comme ça non ?

    <repositories>
    <repository>
    <id>central</id>
    <name>Maven Repository Switchboard</name>
    <layout>default</layout>
    <url>http://people.apache.org/repo/m2-snapshot-repository</url>
    <snapshots>
    <enabled>true</enabled>
    </snapshots>
    </repository>
    </repositories>

  10. #10
    Membre expérimenté

    Profil pro
    Inscrit en
    Mai 2006
    Messages
    1 172
    Détails du profil
    Informations personnelles :
    Âge : 49
    Localisation : France, Yvelines (Île de France)

    Informations forums :
    Inscription : Mai 2006
    Messages : 1 172
    Points : 1 524
    Points
    1 524
    Par défaut
    tu dois utiliser un autre repository id, par exemple: apache-snapshot

  11. #11
    Membre à l'essai
    Profil pro
    Inscrit en
    Juin 2007
    Messages
    86
    Détails du profil
    Informations personnelles :
    Âge : 41
    Localisation : France, Paris (Île de France)

    Informations forums :
    Inscription : Juin 2007
    Messages : 86
    Points : 19
    Points
    19
    Par défaut
    ça marche tjrs pas

    c'est surement à cause du proxy !

    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
    [INFO] Scanning for projects...
    [INFO] ----------------------------------------------------------------------------
    [INFO] Building Maven Webapp Archetype
    [INFO]    task-segment: [compile]
    [INFO] ----------------------------------------------------------------------------
    [INFO] [resources:resources]
    [INFO] Using default encoding to copy filtered resources.
    [INFO] snapshot org.apache.maven.continuum:continuum-xmlrpc-api:1.1-SNAPSHOT: checking for updates from apache-snapshot
    [WARNING] repository metadata for: 'snapshot org.apache.maven.continuum:continuum-xmlrpc-api:1.1-SNAPSHOT' could not be r
    etrieved from repository: apache-snapshot due to an error: Error transferring file
    [INFO] Repository 'apache-snapshot' will be blacklisted
    [INFO] ------------------------------------------------------------------------
    [ERROR] BUILD ERROR
    [INFO] ------------------------------------------------------------------------
    [INFO] Failed to resolve artifact.
    
    Missing:
    ----------
    1) org.apache.maven.continuum:continuum-xmlrpc-api:jar:1.1-SNAPSHOT
    
      Try downloading the file manually from the project website.
    
      Then, install it using the command:
          mvn install:install-file -DgroupId=org.apache.maven.continuum -DartifactId=continuum-xmlrpc-api \
              -Dversion=1.1-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file
    
      Path to dependency:
            1) org.sofinco.liv:DeployManager:war:1.0-SNAPSHOT
            2) org.apache.maven.continuum:continuum-xmlrpc-api:jar:1.1-SNAPSHOT
    
    ----------
    1 required artifact is missing.
    
    for artifact:
      org.sofinco.liv:DeployManager:war:1.0-SNAPSHOT
    
    from the specified remote repositories:
      apache-snapshot (http://people.apache.org/repo/m2-snapshot-repository),
      central (http://repo1.maven.org/maven2)
    
    
    [INFO] ------------------------------------------------------------------------
    [INFO] For more information, run Maven with the -e switch
    [INFO] ------------------------------------------------------------------------
    [INFO] Total time: 22 seconds
    [INFO] Finished at: Fri Jun 29 14:38:20 CEST 2007
    [INFO] Final Memory: 2M/5M
    [INFO] ------------------------------------------------------------------------

  12. #12
    Membre expérimenté

    Profil pro
    Inscrit en
    Mai 2006
    Messages
    1 172
    Détails du profil
    Informations personnelles :
    Âge : 49
    Localisation : France, Yvelines (Île de France)

    Informations forums :
    Inscription : Mai 2006
    Messages : 1 172
    Points : 1 524
    Points
    1 524
    Par défaut
    curieux.

    tu peux lancer maven avec l'option -X pour voir si il te donne une erreur http lors de la requete sur le repo.

    Sionon, tu peux faire un checkout de continuum et faire un build de ce module.

  13. #13
    Membre à l'essai
    Profil pro
    Inscrit en
    Juin 2007
    Messages
    86
    Détails du profil
    Informations personnelles :
    Âge : 41
    Localisation : France, Paris (Île de France)

    Informations forums :
    Inscription : Juin 2007
    Messages : 86
    Points : 19
    Points
    19
    Par défaut
    Voici ce qu'il donne avec -X, (je crois pas que c'est une erreur http);

    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
    90
    91
    92
    93
    94
    95
    96
    97
    98
    99
    100
    101
    102
    103
    104
    105
    106
    107
    108
    109
    110
    111
    112
    113
    114
    115
    116
    117
    118
    119
    120
    121
    122
    123
    124
    125
    126
    127
    128
    129
    130
    131
    132
    133
    134
    135
    136
    Downloading: http://people.apache.org/repo/m2-snapshot-repository/org/apache/maven/continuum/continuum-xmlrpc-api/1.1-SNA
    PSHOT/continuum-xmlrpc-api-1.1-SNAPSHOT.jar
    [DEBUG] Unable to get resource 'org.apache.maven.continuum:continuum-xmlrpc-api:jar:1.1-SNAPSHOT' from repository apache-
    snapshot (http://people.apache.org/repo/m2-snapshot-repository)
    [DEBUG] Skipping disabled repository central
    [DEBUG] Unable to download the artifact from any repository
    
    Try downloading the file manually from the project website.
    
    Then, install it using the command:
        mvn install:install-file -DgroupId=org.apache.maven.continuum -DartifactId=continuum-xmlrpc-api \
            -Dversion=1.1-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file
    
    Path to dependency:
            1) org.sofinco.liv:DeployManager:war:1.0-SNAPSHOT
            2) org.apache.maven.continuum:continuum-xmlrpc-api:jar:1.1-SNAPSHOT
    
    
      org.apache.maven.continuum:continuum-xmlrpc-api:jar:1.1-SNAPSHOT
    
    from the specified remote repositories:
      apache-snapshot (http://people.apache.org/repo/m2-snapshot-repository),
      central (http://repo1.maven.org/maven2)
    
    [INFO] ------------------------------------------------------------------------
    [ERROR] BUILD ERROR
    [INFO] ------------------------------------------------------------------------
    [INFO] Failed to resolve artifact.
    
    Missing:
    ----------
    1) org.apache.maven.continuum:continuum-xmlrpc-api:jar:1.1-SNAPSHOT
    
      Try downloading the file manually from the project website.
    
      Then, install it using the command:
          mvn install:install-file -DgroupId=org.apache.maven.continuum -DartifactId=continuum-xmlrpc-api \
              -Dversion=1.1-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file
    
      Path to dependency:
            1) org.sofinco.liv:DeployManager:war:1.0-SNAPSHOT
            2) org.apache.maven.continuum:continuum-xmlrpc-api:jar:1.1-SNAPSHOT
    
    ----------
    1 required artifact is missing.
    
    for artifact:
      org.sofinco.liv:DeployManager:war:1.0-SNAPSHOT
    
    from the specified remote repositories:
      apache-snapshot (http://people.apache.org/repo/m2-snapshot-repository),
      central (http://repo1.maven.org/maven2)
    
    
    [INFO] ------------------------------------------------------------------------
    [DEBUG] Trace
    org.apache.maven.lifecycle.LifecycleExecutionException: Missing:
    ----------
    1) org.apache.maven.continuum:continuum-xmlrpc-api:jar:1.1-SNAPSHOT
    
      Try downloading the file manually from the project website.
    
      Then, install it using the command:
          mvn install:install-file -DgroupId=org.apache.maven.continuum -DartifactId=continuum-xmlrpc-api \
              -Dversion=1.1-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file
    
      Path to dependency:
            1) org.sofinco.liv:DeployManager:war:1.0-SNAPSHOT
            2) org.apache.maven.continuum:continuum-xmlrpc-api:jar:1.1-SNAPSHOT
    
    ----------
    1 required artifact is missing.
    
    for artifact:
      org.sofinco.liv:DeployManager:war:1.0-SNAPSHOT
    
    from the specified remote repositories:
      apache-snapshot (http://people.apache.org/repo/m2-snapshot-repository),
      central (http://repo1.maven.org/maven2)
    
            at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:556)
            at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:480
    )
            at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:459)
            at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java
    :311)
            at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:278)
            at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:143)
            at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:334)
            at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:125)
            at org.apache.maven.cli.MavenCli.main(MavenCli.java:272)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:585)
            at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
            at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
            at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
            at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
    Caused by: org.apache.maven.artifact.resolver.MultipleArtifactsNotFoundException: Missing:
    ----------
    1) org.apache.maven.continuum:continuum-xmlrpc-api:jar:1.1-SNAPSHOT
    
      Try downloading the file manually from the project website.
    
      Then, install it using the command:
          mvn install:install-file -DgroupId=org.apache.maven.continuum -DartifactId=continuum-xmlrpc-api \
              -Dversion=1.1-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file
    
      Path to dependency:
            1) org.sofinco.liv:DeployManager:war:1.0-SNAPSHOT
            2) org.apache.maven.continuum:continuum-xmlrpc-api:jar:1.1-SNAPSHOT
    
    ----------
    1 required artifact is missing.
    
    for artifact:
      org.sofinco.liv:DeployManager:war:1.0-SNAPSHOT
    
    from the specified remote repositories:
      apache-snapshot (http://people.apache.org/repo/m2-snapshot-repository),
      central (http://repo1.maven.org/maven2)
    
            at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolveTransitively(DefaultArtifactResolver.java:30
    5)
            at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolveTransitively(DefaultArtifactResolver.java:27
    2)
            at org.apache.maven.plugin.DefaultPluginManager.resolveTransitiveDependencies(DefaultPluginManager.java:1238)
            at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:397)
            at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:539)
            ... 16 more
    [INFO] ------------------------------------------------------------------------
    [INFO] Total time: 43 seconds
    [INFO] Finished at: Fri Jun 29 14:59:54 CEST 2007
    [INFO] Final Memory: 2M/5M
    [INFO] ------------------------------------------------------------------------
    J'ai récuperer les src continuum, mais j'arrive pas à les compiler, c tjrs la même errue !

    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
    Downloading: http://snapshots.repository.codehaus.org//org/codehaus/plexus/plexus-utils/1.4.3-SNAPSHOT/plexus-utils-1.4.3
    -SNAPSHOT.pom
    Downloading: http://people.apache.org/repo/m2-snapshot-repository/org/codehaus/plexus/plexus-utils/1.4.3-SNAPSHOT/plexus-
    utils-1.4.3-SNAPSHOT.pom
    Downloading: http://snapshots.repository.codehaus.org//org/codehaus/plexus/plexus-utils/1.4.3-SNAPSHOT/plexus-utils-1.4.3
    -SNAPSHOT.jar
    Downloading: http://people.apache.org/repo/m2-snapshot-repository/org/codehaus/plexus/plexus-utils/1.4.3-SNAPSHOT/plexus-
    utils-1.4.3-SNAPSHOT.jar
    Downloading: http://snapshots.repository.codehaus.org/org/codehaus/plexus/plexus-utils/1.4.3-SNAPSHOT/plexus-utils-1.4.3-
    SNAPSHOT.jar
    [INFO] ------------------------------------------------------------------------
    [ERROR] BUILD ERROR
    [INFO] ------------------------------------------------------------------------
    [INFO] Failed to resolve artifact.
    
    Missing:
    ----------
    1) org.codehaus.plexus:plexus-utils:jar:1.4.3-SNAPSHOT
    
      Try downloading the file manually from the project website.
    
      Then, install it using the command:
          mvn install:install-file -DgroupId=org.codehaus.plexus -DartifactId=plexus-utils \
              -Dversion=1.4.3-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file
    
      Path to dependency:
            1) org.apache.maven.continuum:continuum-model:jar:1.1-SNAPSHOT
            2) org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-20
            3) org.codehaus.plexus:plexus-utils:jar:1.4.3-SNAPSHOT
    
    ----------
    1 required artifact is missing.
    
    for artifact:
      org.apache.maven.continuum:continuum-model:jar:1.1-SNAPSHOT
    
    from the specified remote repositories:
      codehaus.org (http://snapshots.repository.codehaus.org/),
      central (http://repo1.maven.org/maven2),
      apache.snapshots (http://people.apache.org/repo/m2-snapshot-repository)
    
    
    [INFO] ------------------------------------------------------------------------
    [INFO] For more information, run Maven with the -e switch
    [INFO] ------------------------------------------------------------------------
    [INFO] Total time: 1 minute 50 seconds
    [INFO] Finished at: Fri Jun 29 14:57:59 CEST 2007
    [INFO] Final Memory: 11M/20M
    [INFO] ------------------------------------------------------------------------
    je comprend rien

    dis... t'aurais pas le jar de l'api ? comme ça je pourrai avancer

  14. #14
    Membre expérimenté

    Profil pro
    Inscrit en
    Mai 2006
    Messages
    1 172
    Détails du profil
    Informations personnelles :
    Âge : 49
    Localisation : France, Yvelines (Île de France)

    Informations forums :
    Inscription : Mai 2006
    Messages : 1 172
    Points : 1 524
    Points
    1 524
    Par défaut
    Bon pour plexus-itils, c'est un autre repository, mais il est déclaré dans le pom parent de continuum, je ne vois pas pourquoi il ne peut pas téléchargé les jars

    Je ne pense pas que tu souhaites modifier les sources de continuum, donc tu devrais plutôt faire un checkout du tag de la 1.1-alpha-2

    Si tu veux installer manuellement le jar (je penses que ce n'est pas une bonne idée), il est ici: http://people.apache.org/repo/m2-sna.../1.1-SNAPSHOT/

  15. #15
    Membre à l'essai
    Profil pro
    Inscrit en
    Juin 2007
    Messages
    86
    Détails du profil
    Informations personnelles :
    Âge : 41
    Localisation : France, Paris (Île de France)

    Informations forums :
    Inscription : Juin 2007
    Messages : 86
    Points : 19
    Points
    19
    Par défaut
    je vais devenir fouuuu!

    avec l'autre version de l'API, j'arrivais au moins à me connecter à continuum, mais avec la nouvelle version (1.1-SNAPSHOT), je suis incapable même de comminuquer avec continuum, je ne fais qu'appeler le main() de SampleClient;

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    String[] args1 = {"http://localhost:8080/continuum", "admin", "koko09"};
    			SampleClient.main(args1);
    et.. voilà ce que j'obtiens:

    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
    Adding project...
    ERROR !!!!!!!!!!!!!
    org.apache.maven.continuum.ContinuumException: The remote method failed.
    	at org.apache.maven.continuum.xmlrpc.client.ContinuumXmlRpcClient.addMavenTwoProject(ContinuumXmlRpcClient.java:371)
    	at org.apache.maven.continuum.xmlrpc.client.SampleClient.main(SampleClient.java:51)
    	at sofinco.liv.servlet.TestApi.main(TestApi.java:91)
    Caused by: org.apache.xmlrpc.client.XmlRpcClientException: Failed to read servers response: Connection timed out: connect
    	at org.apache.xmlrpc.client.XmlRpcStreamTransport.readResponse(XmlRpcStreamTransport.java:179)
    	at org.apache.xmlrpc.client.XmlRpcStreamTransport.sendRequest(XmlRpcStreamTransport.java:145)
    	at org.apache.xmlrpc.client.XmlRpcHttpTransport.sendRequest(XmlRpcHttpTransport.java:94)
    	at org.apache.xmlrpc.client.XmlRpcSunHttpTransport.sendRequest(XmlRpcSunHttpTransport.java:39)
    	at org.apache.xmlrpc.client.XmlRpcClientWorker.execute(XmlRpcClientWorker.java:53)
    	at org.apache.xmlrpc.client.XmlRpcClient.execute(XmlRpcClient.java:166)
    	at org.apache.xmlrpc.client.XmlRpcClient.execute(XmlRpcClient.java:136)
    	at org.apache.xmlrpc.client.XmlRpcClient.execute(XmlRpcClient.java:125)
    	at org.apache.xmlrpc.client.util.ClientFactory$1.invoke(ClientFactory.java:104)
    	at $Proxy0.addMavenTwoProject(Unknown Source)
    	at org.apache.maven.continuum.xmlrpc.client.ContinuumXmlRpcClient.addMavenTwoProject(ContinuumXmlRpcClient.java:367)
    	... 2 more
    je ne conprend vraiment rien !!

  16. #16
    Membre à l'essai
    Profil pro
    Inscrit en
    Juin 2007
    Messages
    86
    Détails du profil
    Informations personnelles :
    Âge : 41
    Localisation : France, Paris (Île de France)

    Informations forums :
    Inscription : Juin 2007
    Messages : 86
    Points : 19
    Points
    19
    Par défaut
    Même le ping() il marche pas, et pourtant le serveur il est bien démarré, l'URL est bonne, login et pwd aussi !!

  17. #17
    Membre expérimenté

    Profil pro
    Inscrit en
    Mai 2006
    Messages
    1 172
    Détails du profil
    Informations personnelles :
    Âge : 49
    Localisation : France, Yvelines (Île de France)

    Informations forums :
    Inscription : Mai 2006
    Messages : 1 172
    Points : 1 524
    Points
    1 524
    Par défaut
    l'URL n'est pas bonne
    il faut utiliser http://localhost:8080/continuum/xmlrpc

  18. #18
    Membre à l'essai
    Profil pro
    Inscrit en
    Juin 2007
    Messages
    86
    Détails du profil
    Informations personnelles :
    Âge : 41
    Localisation : France, Paris (Île de France)

    Informations forums :
    Inscription : Juin 2007
    Messages : 86
    Points : 19
    Points
    19
    Par défaut
    j'ai cru pour un moment que ça allait marché, mais.... hélas
    toujours la même erreur ! avec une ptite nouveauté cette fois-ci:

    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
    org.apache.maven.continuum.ContinuumException: The remote method failed.
    	at org.apache.maven.continuum.xmlrpc.client.ContinuumXmlRpcClient.addMavenTwoProject(ContinuumXmlRpcClient.java:371)
    	at org.apache.maven.continuum.xmlrpc.client.SampleClient.main(SampleClient.java:51)
    	at sofinco.liv.servlet.TestApi.main(TestApi.java:20)
    Caused by: org.apache.xmlrpc.client.XmlRpcClientException: Failed to parse servers response: Failed to read result object: org.apache.maven.continuum.xmlrpc.project.AddingResult; local class incompatible: stream classdesc serialVersionUID = -817525679630480653, local class serialVersionUID = 7347479606088153239
    	at org.apache.xmlrpc.client.XmlRpcStreamTransport.readResponse(XmlRpcStreamTransport.java:177)
    	at org.apache.xmlrpc.client.XmlRpcStreamTransport.sendRequest(XmlRpcStreamTransport.java:145)
    	at org.apache.xmlrpc.client.XmlRpcHttpTransport.sendRequest(XmlRpcHttpTransport.java:94)
    	at org.apache.xmlrpc.client.XmlRpcSunHttpTransport.sendRequest(XmlRpcSunHttpTransport.java:39)
    	at org.apache.xmlrpc.client.XmlRpcClientWorker.execute(XmlRpcClientWorker.java:53)
    	at org.apache.xmlrpc.client.XmlRpcClient.execute(XmlRpcClient.java:166)
    	at org.apache.xmlrpc.client.XmlRpcClient.execute(XmlRpcClient.java:136)
    	at org.apache.xmlrpc.client.XmlRpcClient.execute(XmlRpcClient.java:125)
    	at org.apache.xmlrpc.client.util.ClientFactory$1.invoke(ClientFactory.java:104)
    	at $Proxy0.addMavenTwoProject(Unknown Source)
    	at org.apache.maven.continuum.xmlrpc.client.ContinuumXmlRpcClient.addMavenTwoProject(ContinuumXmlRpcClient.java:367)
    	... 2 more
    et ce qui est bizar, c que le ping() ne leve pas d'exception, mais il n'affiche rien non plus !


    j'ai besoin de ton savoir faire emmanuel...

  19. #19
    Membre expérimenté

    Profil pro
    Inscrit en
    Mai 2006
    Messages
    1 172
    Détails du profil
    Informations personnelles :
    Âge : 49
    Localisation : France, Yvelines (Île de France)

    Informations forums :
    Inscription : Mai 2006
    Messages : 1 172
    Points : 1 524
    Points
    1 524
    Par défaut
    Curieux.

    Remplace les jars continuum-xmlrpc-* que tu as mis dans ton repo par ceux présents dans le répertoire lib de Continuum.
    Ils ne sont peut-être pas compilé avec la même version de java.

  20. #20
    Membre à l'essai
    Profil pro
    Inscrit en
    Juin 2007
    Messages
    86
    Détails du profil
    Informations personnelles :
    Âge : 41
    Localisation : France, Paris (Île de France)

    Informations forums :
    Inscription : Juin 2007
    Messages : 86
    Points : 19
    Points
    19
    Par défaut
    J'ai l'impression que ça a un rapport avec le ClassLoader

+ Répondre à la discussion
Cette discussion est résolue.
Page 1 sur 2 12 DernièreDernière

Discussions similaires

  1. Développer un client XML-RPC sous Android
    Par randriano dans le forum Android
    Réponses: 10
    Dernier message: 05/08/2011, 08h25
  2. XML-RPC Obtenir l'ip d'un client
    Par Niak74 dans le forum Réseau/Web
    Réponses: 1
    Dernier message: 09/07/2008, 17h50
  3. [Continuum] API XML-RPC : remarques !
    Par dev09 dans le forum Intégration Continue
    Réponses: 27
    Dernier message: 10/07/2007, 15h33
  4. Client XML RPC qui marche pas
    Par ruby_robber dans le forum Ruby on Rails
    Réponses: 1
    Dernier message: 09/07/2007, 11h19
  5. Client XML-RPC java qui interroge un serveur XML-RPC PHP : pb de paramètre de retour
    Par sbelli dans le forum Format d'échange (XML, JSON...)
    Réponses: 3
    Dernier message: 13/06/2006, 11h09

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