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

Langage Java Discussion :

PatternSyntaxException: Illegal repetition pour un String


Sujet :

Langage Java

  1. #1
    Inactif  
    Profil pro
    Inscrit en
    Mai 2006
    Messages
    2 189
    Détails du profil
    Informations personnelles :
    Âge : 43
    Localisation : Suisse

    Informations forums :
    Inscription : Mai 2006
    Messages : 2 189
    Points : 2 336
    Points
    2 336
    Par défaut PatternSyntaxException: Illegal repetition pour un String
    Hello,

    J'ai un petit soucie avec l'affectation d'une variable de type string avec le code suivante :

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
     
    for (Iterator wit = selectedWidget.getProperties().iterator(); wit.hasNext();) {
      Property p = (Property) wit.next();
     //TODO ajq remove hardcoded value
      if ("code".equals(p.getTypeName())) {
          text.setText(p.getValue());
          break;
    }
    la ligne text.setText(p.getValue()); me renvoye une exception de type
    java.util.regex.PatternSyntaxException: Illegal repetition near index 783

    voici le contenu mon string si ca peut avoir une incidence

    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
     
    <udp:udp>
    	<udp:model-ref>
    		cdmParticipant.contacts
    	</udp:model-ref>
    	<udp:build>
    		<udp:filter>
    			<udp:compare column="CDM_CONTACT_TYPES" operation="equal">
    				8
    			</udp:compare>
    		</udp:filter>
    		<udp:list>
    			<udp:sort>
    				<udp:handle>
    					<scope:get-module-rank>
    					</scope:get-module-rank>
    					s
    				</udp:handle>
    				<udp:sort-column>
    					DIFFS_ORDER
    				</udp:sort-column>
    			</udp:sort>
    			<udp:page>
    				<udp:size>
    					100
    				</udp:size>
    				<udp:handle>
    					<scope:get-module-rank>
    					</scope:get-module-rank>
    					p
    				</udp:handle>
    			</udp:page>
    		</udp:list>
    	</udp:build>
    	<udp:render-list>
    		<xgui:vbox>
    			<xi:include href="../../general/EmptyResult.xml">
    			</xi:include>
    			<xsp:logic>
    				if(
    				<udp:row-count>
    				</udp:row-count>
    				>
    				0) {
    			</xsp:logic>
    			<xgui:table>
    				<xi:include href="../../general/TableHeaderFromIndexTwo.xml">
    				</xi:include>
    				<udp:for-each-row>
    					<xgui:row>
    						<udp:for-each-item from-index="2">
    							<xgui:cell>
    								<xgui:label>
    									<xsp:attribute name="class">
    										<udp:item column="COLOR_DIFFS">
    										</udp:item>
    									</xsp:attribute>
    									<xsp:logic>
    										if(
    										<udp:item-index>
    										</udp:item-index>
    										== 2){
    									</xsp:logic>
    									<xgui:text>
    										<i18n:text>
    											CdmConfig.Party.Contact.ContactTypes.
    											<udp:item>
    											</udp:item>
    										</i18n:text>
    									</xgui:text>
    									<xsp:logic>
    										} else {
    									</xsp:logic>
    									<xgui:text>
    										<udp:item>
    										</udp:item>
    									</xgui:text>
    									<xsp:logic>
    										}
    									</xsp:logic>
    								</xgui:label>
    							</xgui:cell>
    						</udp:for-each-item>
    					</xgui:row>
    				</udp:for-each-row>
    			</xgui:table>
    			<xi:include href="../../general/TableFooter.xml">
    			</xi:include>
    			<xsp:logic>
    				}
    			</xsp:logic>
    		</xgui:vbox>
    	</udp:render-list>
    </udp:udp>

  2. #2
    Inactif  
    Profil pro
    Inscrit en
    Mai 2006
    Messages
    2 189
    Détails du profil
    Informations personnelles :
    Âge : 43
    Localisation : Suisse

    Informations forums :
    Inscription : Mai 2006
    Messages : 2 189
    Points : 2 336
    Points
    2 336
    Par défaut
    j ai contourné le probleme en utilisant la méthode getContent().setText de styledText

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

Discussions similaires

  1. Quel parseur XML pour des Strings ?
    Par krokmitaine dans le forum XML
    Réponses: 13
    Dernier message: 19/12/2006, 21h01
  2. Taille max pour un String
    Par arasium dans le forum Langage
    Réponses: 9
    Dernier message: 16/06/2006, 08h14
  3. Aide pour un String
    Par Kpone dans le forum Langage
    Réponses: 2
    Dernier message: 21/03/2006, 12h25
  4. Réponses: 2
    Dernier message: 23/01/2006, 15h51
  5. [C#] Fonction pour convertir string[] vers ArrayList
    Par luimême dans le forum Windows Forms
    Réponses: 6
    Dernier message: 07/04/2005, 13h25

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