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

Forms Oracle Discussion :

Javabean Lecture RS232 à utiliser au niv Forms 10G


Sujet :

Forms Oracle

Vue hybride

Message précédent Message précédent   Message suivant Message suivant
  1. #1
    Membre averti
    Inscrit en
    Décembre 2007
    Messages
    50
    Détails du profil
    Informations forums :
    Inscription : Décembre 2007
    Messages : 50
    Par défaut Javabean Lecture RS232 à utiliser au niv Forms 10G
    Bonjour,

    1) avez vous un Javabean pour lire de port série.

    2) j'ai essayé de créer un javabean mais lors d'appel :

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    FBean.Register_Bean('BLOCK3.PORTSERIE', 1, 'automate.SimpleRead');

    j'obtiens
    erreur FRM-92101
    avez vous une idée, Merci

  2. #2
    Expert confirmé
    Avatar de SheikYerbouti
    Profil pro
    Inscrit en
    Mai 2003
    Messages
    6 760
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Mai 2003
    Messages : 6 760
    Par défaut
    Systématiquement, lorsque vous utilisez un Java Bean, il faut afficher la Console Java à l'exécution pour visualiser les erreurs Java.

  3. #3
    Membre averti
    Inscrit en
    Décembre 2007
    Messages
    50
    Détails du profil
    Informations forums :
    Inscription : Décembre 2007
    Messages : 50
    Par défaut
    oracle.forms.net.ConnectionException: Abandon de la session Forms <1> : communication avec le processus runtime impossible.

    at oracle.forms.net.ConnectionException.createConnectionException(Unknown Source)

    at oracle.forms.net.HTTPNStream.getResponse(Unknown Source)

    at oracle.forms.net.HTTPNStream.doFlush(Unknown Source)

    at oracle.forms.net.HTTPNStream.flush(Unknown Source)

    at java.io.DataOutputStream.flush(Unknown Source)

    at oracle.forms.net.StreamMessageWriter.run(Unknown Source)

  4. #4
    Expert confirmé
    Avatar de SheikYerbouti
    Profil pro
    Inscrit en
    Mai 2003
    Messages
    6 760
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Mai 2003
    Messages : 6 760
    Par défaut
    Et bien il va vous falloir débugger votre Java Bean
    L'avez-vous testé dans un autre environnement (JDeveloper par example) pour valider ses fonctionalités ?
    Sinon, dans votre Java Bean, mettez un maximum de trace (System.out.println) pour le debug.

  5. #5
    Membre averti
    Inscrit en
    Décembre 2007
    Messages
    50
    Détails du profil
    Informations forums :
    Inscription : Décembre 2007
    Messages : 50
    Par défaut
    j'ai crée un javabean , prière m'aider à resoudre ce problème :
    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
    proxyHost=null
    proxyPort=0
    connectMode=HTTP, native.
    La version Forms Applet est : 9.0.4.0
    setProperty : UI_PARENT 16
    setProperty : LOCATION java.awt.Point[x=1,y=1]
    setProperty : OUTERSIZE java.awt.Point[x=2,y=2]
    setProperty : BGPATTERN null
    setProperty : FOREGROUND java.awt.Color[r=0,g=0,b=0]
    setProperty : BGPATTERN null
    setProperty : BACKGROUND java.awt.Color[r=0,g=0,b=0]
    setProperty : FONT java.awt.Font[family=dialog,name=Dialog,style=plain,size=12]
    setProperty : LANGUAGE_DIRECTION oracle.forms.properties.LanguageDirection@5d3388
    setProperty : DEFAULTKEYS 1
    setProperty : CLASSNAME automate.PortSerie
    setProperty : VISIBLE true
    setProperty : INIT_DRIVER false
    Debut inititalisation driver
     
    Security Exception win32com: java.security.AccessControlException: access denied (java.lang.RuntimePermission loadLibrary.win32com)
     
    Fin inititalisation driver
     
    *** PortSerie Init ***
     
    setProperty : SETCOM COM1
     
    Exception occurred during event dispatching:
     
    java.lang.ExceptionInInitializerError: java.security.AccessControlException: access denied (java.util.PropertyPermission javax.comm.properties read)
     
    	at java.security.AccessControlContext.checkPermission(Unknown Source)
     
    	at java.security.AccessController.checkPermission(Unknown Source)
     
    	at java.lang.SecurityManager.checkPermission(Unknown Source)
     
    	at java.lang.SecurityManager.checkPropertyAccess(Unknown Source)
     
    	at java.lang.System.getProperty(Unknown Source)
     
    	at javax.comm.CommPortIdentifier.<clinit>(CommPortIdentifier.java:678)
     
    	at automate.PortSerie.setPort(PortSerie.java:105)
     
    	at automate.PortSerie.setProperty(PortSerie.java:294)
     
    	at oracle.forms.handler.ComponentItem.setCustomProperty(Unknown Source)
     
    	at oracle.forms.handler.ComponentItem.onUpdate(Unknown Source)
     
    	at oracle.forms.handler.JavaContainer.onUpdate(Unknown Source)
     
    	at oracle.forms.handler.UICommon.onUpdate(Unknown Source)
     
    	at oracle.forms.engine.Runform.onUpdateHandler(Unknown Source)
     
    	at oracle.forms.engine.Runform.processMessage(Unknown Source)
     
    	at oracle.forms.engine.Runform.processSet(Unknown Source)
     
    	at oracle.forms.engine.Runform.onMessageReal(Unknown Source)
     
    	at oracle.forms.engine.Runform.onMessage(Unknown Source)
     
    	at oracle.forms.engine.Runform.processEventEnd(Unknown Source)
     
    	at oracle.ewt.lwAWT.LWComponent.redispatchEvent(Unknown Source)
     
    	at oracle.ewt.lwAWT.LWComponent.processEvent(Unknown Source)
     
    	at java.awt.Component.dispatchEventImpl(Unknown Source)
     
    	at java.awt.Container.dispatchEventImpl(Unknown Source)
     
    	at java.awt.Component.dispatchEvent(Unknown Source)
     
    	at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
     
    	at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
     
    	at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
     
    	at java.awt.Container.dispatchEventImpl(Unknown Source)
     
    	at java.awt.Window.dispatchEventImpl(Unknown Source)
     
    	at java.awt.Component.dispatchEvent(Unknown Source)
     
    	at java.awt.EventQueue.dispatchEvent(Unknown Source)
     
    	at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
     
    	at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
     
    	at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
     
    	at java.awt.EventDispatchThread.run(Unknown Source)

  6. #6
    Membre averti
    Inscrit en
    Décembre 2007
    Messages
    50
    Détails du profil
    Informations forums :
    Inscription : Décembre 2007
    Messages : 50
    Par défaut
    Merci, c'est résolu

    j'ai ajouté permission java.security.AllPermission; au java.policy

    C:/Program Files/Oracle/JInitiator 1.3.1.xx/lib/security/java.policy file

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

Discussions similaires

  1. Réponses: 0
    Dernier message: 17/03/2011, 13h50
  2. Tuto JavaBean Forms 10g
    Par yLaplace dans le forum Forms
    Réponses: 7
    Dernier message: 18/12/2009, 11h23
  3. Réponses: 2
    Dernier message: 28/09/2009, 13h15
  4. utilisation d'oracle forms 10g
    Par ziadiala dans le forum Forms
    Réponses: 0
    Dernier message: 07/02/2009, 11h00
  5. Forms 10g + zone composant JavaBean
    Par olivier.axin dans le forum Forms
    Réponses: 8
    Dernier message: 27/05/2008, 08h09

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