楼主: lk_limin

问一个forms6i中取客户端IP的问题?

[复制链接]
论坛徽章:
6
ITPUB元老
日期:2005-02-28 12:57:00授权会员
日期:2005-10-30 17:05:33管理团队2006纪念徽章
日期:2006-04-16 22:44:45会员2006贡献徽章
日期:2006-04-17 13:46:34生肖徽章2007版:鸡
日期:2008-01-02 17:35:53生肖徽章2007版:鼠
日期:2008-01-02 17:35:53
11#
发表于 2003-5-7 17:09 | 只看该作者
Yes. i tested the sample for 6i.
It works, except a error will occur if you click 'Get Username' button. 'Get Hostname' and 'Get IP' functions are O.K.

My test environment:
Windows 2000 Pro + SP3
Forms6i + Patch13
Jinitiator 1.3.1.9

使用道具 举报

回复
论坛徽章:
0
12#
 楼主| 发表于 2003-5-7 17:27 | 只看该作者
我的环境是:windows/xp /sp1
                     froms6i/nopatch
                     jinitiator1.1.7.31
老大,能详细告诉我如何在server 中设置PJC吗?我在运行getclientinof时,click 'Get Username' button. 'Get Hostname' and 'Get IP' functions 时没有反应,到底怎么设置的呀,能说的详细点吗????

多谢多谢!!!!!!!!!!!!!!!!!!!!!!帮帮我吧!!!!!!!!!!!!!

使用道具 举报

回复
论坛徽章:
6
ITPUB元老
日期:2005-02-28 12:57:00授权会员
日期:2005-10-30 17:05:33管理团队2006纪念徽章
日期:2006-04-16 22:44:45会员2006贡献徽章
日期:2006-04-17 13:46:34生肖徽章2007版:鸡
日期:2008-01-02 17:35:53生肖徽章2007版:鼠
日期:2008-01-02 17:35:53
13#
发表于 2003-5-8 10:21 | 只看该作者
Maybe your problem is Jinitiator could not download the getclientinfo.jar file. When you run web forms, a java console icon will appear at bottem right corner of screen. Right click on this icon, select Show Console, you can find whether jar files are loaded.

Improper config in formsweb.cfg could cause this problem. Try archive_jini=f60all_jinit.jar, getclientinfo.jar or archive=f60all.jar, getclientinfo.jar.

Another way to run this web form is use getclientinfo_jinit.html or getclientinfo.html, and I found param "CODEBASE" need a liitte modification.

使用道具 举报

回复
论坛徽章:
0
14#
 楼主| 发表于 2003-5-8 11:08 | 只看该作者
我把我的java console写一下您看有问题吗??????????????????????

Oracle JInitiator version 1.1.7.31

Using JRE version 1.1.7.31o

User home directory = C:\Documents and Settings\aiya

JAR caching enabled.
  Cache directory: C:\PROGRA~1\Oracle\JINITI~1.31\jcache
  Maximum cache size: 50000000 bytes

Opening http://90.1.1.52/forms60java/f60web.jar no proxy

Opening http://90.1.1.52/forms60java/ora ... /MainBeanInfo.class no proxy

Opening http://90.1.1.52/forms60java/sun/beans/infos/MainBeanInfo.class no proxy

Opening http://90.1.1.52/forms60java/ora ... ppletBeanInfo.class no proxy

Opening http://90.1.1.52/forms60java/sun ... ppletBeanInfo.class no proxy

Opening http://90.1.1.52/forms60java/ora ... ppletBeanInfo.class no proxy

Opening http://90.1.1.52/forms60java/sun ... ppletBeanInfo.class no proxy

Opening http://90.1.1.52/forms60java/ora ... ppletBeanInfo.class no proxy

Opening http://90.1.1.52/forms60java/sun ... ppletBeanInfo.class no proxy

Opening http://90.1.1.52/forms60java/ora ... mBundle_zh_CN.class no proxy

Opening http://90.1.1.52/forms60java/ora ... le_zh_CN.properties no proxy

Opening http://90.1.1.52/forms60java/ora ... formBundle_zh.class no proxy

Opening http://90.1.1.52/forms60java/ora ... undle_zh.properties no proxy

Opening http://90.1.1.52/forms60java/ora ... mBundle_zh_CN.class no proxy

Opening http://90.1.1.52/forms60java/ora ... le_zh_CN.properties no proxy

Opening http://90.1.1.52/forms60java/ora ... formBundle_zh.class no proxy

Opening http://90.1.1.52/forms60java/ora ... undle_zh.properties no proxy

Opening http://90.1.1.52/forms60java/oracle/forms/registry/Registry.dat no proxy

Opening http://90.1.1.52/forms60java/oracle/forms/registry/default.dat no proxy

connectMode=Socket

serverHost=90.1.1.52

serverPort=9000

Forms Applet version is : 608

Opening http://90.1.1.52/forms60java/ora ... GetClientInfo.class no proxy

java.lang.ClassNotFoundException: oracle.forms.demos.GetClientInfo

        at java.lang.Throwable.<init>(Compiled Code)

        at java.lang.Exception.<init>(Compiled Code)

        at java.lang.ClassNotFoundException.<init>(ClassNotFoundException.java:55)

        at sun.applet.AppletClassLoader.loadClass(Compiled Code)

        at java.lang.ClassLoader.loadClassInternal(Compiled Code)

        at oracle.forms.handler.UICommon.instantiate(Compiled Code)

        at oracle.forms.handler.UICommon.onCreate(Unknown Source)

        at oracle.forms.handler.JavaContainer.onCreate(Unknown Source)

        at oracle.forms.engine.Runform.onCreateHandler(Unknown Source)

        at oracle.forms.engine.Runform.processMessage(Compiled Code)

        at oracle.forms.engine.Runform.processSet(Compiled Code)

        at oracle.forms.engine.Runform.onMessageReal(Compiled Code)

        at oracle.forms.engine.Runform.onMessage(Compiled Code)

        at oracle.forms.engine.Runform.sendInitialMessage(Unknown Source)

        at oracle.forms.engine.Runform.startRunform(Unknown Source)

        at oracle.forms.engine.Main.createRunform(Unknown Source)

        at oracle.forms.engine.Main.start(Unknown Source)

        at sun.applet.JinitAppletPanel.run(Compiled Code)

        at java.lang.Thread.run(Thread.java:466)

Opening http://90.1.1.52/forms60java/oracle/forms/beans/Encoder.class no proxy

Opening http://90.1.1.52/forms60java/ora ... opertyManager.class no proxy

Opening http://90.1.1.52/forms60java/ora ... xedPropertyPM.class no proxy

Opening http://90.1.1.52/forms60java/oracle/forms/beans/ListenerPM.class no proxy

Opening http://90.1.1.52/forms60java/oracle/forms/beans/MethodPM.class no proxy

Opening http://90.1.1.52/forms60java/oracle/forms/beans/ArgumentPM.class no proxy

Opening http://90.1.1.52/forms60java/oracle/forms/beans/PropertyPM.class no proxy

Opening http://90.1.1.52/forms60java/ora ... nEventEncoder.class no proxy

Opening http://90.1.1.52/forms60java/ora ... /EventEncoder.class no proxy

Opening http://90.1.1.52/forms60java/ora ... /FormsEncoder.class no proxy

Opening http://90.1.1.52/forms60java/ora ... ooleanEncoder.class no proxy

Opening http://90.1.1.52/forms60java/oracle/forms/beans/ByteEncoder.class no proxy

Opening http://90.1.1.52/forms60java/ora ... racterEncoder.class no proxy

Opening http://90.1.1.52/forms60java/ora ... tEventEncoder.class no proxy

Opening http://90.1.1.52/forms60java/ora ... rEventEncoder.class no proxy

Opening http://90.1.1.52/forms60java/ora ... ensionEncoder.class no proxy

Opening http://90.1.1.52/forms60java/ora ... DoubleEncoder.class no proxy

Opening http://90.1.1.52/forms60java/ora ... /FloatEncoder.class no proxy

Opening http://90.1.1.52/forms60java/ora ... sEventEncoder.class no proxy

Opening http://90.1.1.52/forms60java/ora ... /ImageEncoder.class no proxy

Opening http://90.1.1.52/forms60java/ora ... InsetsEncoder.class no proxy

Opening http://90.1.1.52/forms60java/ora ... ntegerEncoder.class no proxy

Opening http://90.1.1.52/forms60java/ora ... mEventEncoder.class no proxy

Opening http://90.1.1.52/forms60java/ora ... yEventEncoder.class no proxy

Opening http://90.1.1.52/forms60java/oracle/forms/beans/LongEncoder.class no proxy

Opening http://90.1.1.52/forms60java/ora ... eEventEncoder.class no proxy

Opening http://90.1.1.52/forms60java/ora ... /PointEncoder.class no proxy

Opening http://90.1.1.52/forms60java/ora ... eEventEncoder.class no proxy

Opening http://90.1.1.52/forms60java/ora ... tangleEncoder.class no proxy

Opening http://90.1.1.52/forms60java/ora ... /ShortEncoder.class no proxy

Opening http://90.1.1.52/forms60java/ora ... tEventEncoder.class no proxy

Opening http://90.1.1.52/forms60java/ora ... wEventEncoder.class no proxy

Opening http://90.1.1.52/forms60java/ora ... /ArrayEncoder.class no proxy

使用道具 举报

回复
论坛徽章:
0
15#
 楼主| 发表于 2003-5-8 11:12 | 只看该作者
我的: formsweb.cfg 文件也发一下:

; Forms Web CGI Configuration File
; --------------------------------
; This file defines parameter values used by the Forms Web CGI

; ********************************
; PARAMETER VALUES USED BY DEFAULT
; ********************************
  ; SYSTEM PARAMETERS
  ; -----------------
  ; These have fixed names and give information required by the Forms
  ; Web CGI in order to function.  They cannot be specified in the URL query
  ; string.  But they can be overriden in a named configuration (see below).
baseHTML=%FORMS60%\server\base.htm
baseHTMLJInitiator=%FORMS60%\server\basejini.htm
HTMLdelimiter=%
MetricsServerPort=9020
MetricsServerErrorURL=
  ; The next parameter specifies how to execute the Forms applet under
  ; Microsoft Internet Explorer 5.0.  Put IE50=native if you want the
  ; Forms applet to run in the browser's native JVM.  
IE50=JInitiator

  ; USER PARAMETERS
  ; ---------------  
  ; These match variables (e.g. %form%) in the baseHTML file. Their values
  ; may be overridden by specifying them in the URL query string
  ; (e.g. "http://myhost.mydomain.com/ifcgi60.exe?form=myform&width=700"
  ; or by overriding them in a specific, named configuration (see below)

  ; 1) Runform arguments:
form=test.fmx
userid=
otherparams=

  ; 2) HTML page title, attributes for the BODY tag, and HTML to add before and
  ;    after the form:
pageTitle=Oracle Forms Server
HTMLbodyAttrs=
HTMLbeforeForm=
HTMLafterForm=

  ; 3) Values for the Forms applet parameters:
width=800
height=600
separateFrame=false
splashScreen=no
    ; select default background by not specifying a value
background=
lookAndFeel=Oracle
colorScheme=teal
serverApp=default
serverPort=9000
serverHost=
connectMode=Socket
archive=f60web.jar
archive_jini=f60all_jinit.jar
archive_ie=f60all.cab

  ; 4) Parameters for JInitiator
    ; Page displayed to Netscape users to allow them to download JInitiator.  
    ; If you create your own version, set this parameter to point to it.
jinit_download_page=/jinitiator/us/jinit_download.htm
    ; Parameters related to the version of JInitiator.
jinit_classid=clsid:7d0314a8-7851-11d4-a3e1-00c04fa32518
jinit_exename=jinit.exe#Version=1,1,7,31
jinit_mimetype=application/x-jinit-applet;version=1.1.7.31

; ********************************
; SPECIFIC CONFIGURATIONS
; ********************************
;  You may define your own specific, named configurations (sets of parameters)
;  by adding special sections as illustrated in the following examples.  
;  Note that you need only specify the parameters you want to change.  The
;  default values (defined above) will be used for all other parameters.
;  Use of a specific configuration can be requested by including the text
;  "config=<your_config_name>" in the query string of the URL used to run
;  a form.  For example, to use the sepwin configuration, your could issue
;  a URL like "http://myhost.mydomain.com/ifcgi60.exe?config=sepwin".

; Example 1: configuration to run forms in a separate browser window with
;            "generic" look and feel (include "config=sepwin" in the URL)
[sepwin]
separateFrame=True
lookandfeel=Generic

; Example 2: configuration affecting users of MicroSoft Internet Explorer 5.0.  
;            Forms applet will run under the browser's native JVM rather than
;            using Oracle JInitiator.
[ie50native]
IE50=native

; Example 3: configuration forcing use of the base.htm base HTML file in all
;            cases (means applet-style tags will always be generated and
;            JInitiator will never be used).  
[applet]
baseHTMLJInitiator=

[getclientinfo]
form=getclientinfo
archive_jini=f60all_jinit.jar, getclientinfo.jar

使用道具 举报

回复
论坛徽章:
6
ITPUB元老
日期:2005-02-28 12:57:00授权会员
日期:2005-10-30 17:05:33管理团队2006纪念徽章
日期:2006-04-16 22:44:45会员2006贡献徽章
日期:2006-04-17 13:46:34生肖徽章2007版:鸡
日期:2008-01-02 17:35:53生肖徽章2007版:鼠
日期:2008-01-02 17:35:53
16#
发表于 2003-5-8 19:27 | 只看该作者
最初由 lk_limin 发布
[B]Opening http://90.1.1.52/forms60java/ora ... GetClientInfo.class no proxy

java.lang.ClassNotFoundException: oracle.forms.demos.GetClientInfo

        [/B]

Hi lk_limin,

The error is forms java client can not load getclientinfo.class file. However, it seems that your formsweb.cfg have not mistake.

I don't know why. Maybe you should try to put getclientinfo.class to <forms_home>\forms60\java\oracle\forms\demos folder.

Another way, you can try to use getclientinfo_jini.html instead of modify formsweb.cfg. I found you have to do a little modification in getclientinfo_jini.html:
change <PARAM NAME="CODEBASE"    VALUE="/web_forms/" > to <PARAM NAME="CODEBASE"    VALUE="http://your_server/forms60java/" >

Hope this helps.
And good luck, buddy!

使用道具 举报

回复
论坛徽章:
0
17#
 楼主| 发表于 2003-5-9 14:22 | 只看该作者
非常感谢你的帮助,我这里有几个问题想说一下:
1、我又在其它机器上进行了测试,没有修改formsweb.cfg文件。
2、下载getclientinfo.rar文件解压至e:\getclientinfo目录下
              3、复制e:\getclientinfo\classes下的文件至\forms60\java目录下
              4、运行e:\getclientinfo\misc\cert-maker.bat和jarfile-signer.bat  
              5、cd c:\program files\oracle\jinitiator 1.1.7.31\bin
                javakey -c PJC true
                javakey -ic PJC  e:\getclientinfo\misc\pjc\PJC.x509
            
              5、在客户端IE中打入:http://90.1.1.52/dev60cgi/ifcgi60.exe?form=getclientinfo

              系统运后就出现的情况:一、 get hostname=localhost;get ip=127.0.0.1而且在点击get username时报错,报frm:92100的错误;二、而我在服务器端运行getclientinfo则可以显示出ip及hostname;三、为什么不通过web方式在forms builder中运行getclientinfo时点击哪一个何都没有反应?
这是为什么?????????

使用道具 举报

回复
论坛徽章:
0
18#
发表于 2003-7-16 21:56 | 只看该作者

我拷在9iAS下没有通过

我在9iAS下没有通过,而返回9iAS服务器的IP地址。

使用道具 举报

回复
论坛徽章:
6
ITPUB元老
日期:2005-02-28 12:57:00授权会员
日期:2005-10-30 17:05:33管理团队2006纪念徽章
日期:2006-04-16 22:44:45会员2006贡献徽章
日期:2006-04-17 13:46:34生肖徽章2007版:鸡
日期:2008-01-02 17:35:53生肖徽章2007版:鼠
日期:2008-01-02 17:35:53
19#
发表于 2003-7-17 10:03 | 只看该作者
最初由 lk_limin 发布
[B]              系统运后就出现的情况:一、 get hostname=localhost;get ip=127.0.0.1而且在点击get username时报错,报frm:92100的错误;
我测试也是这样
二、而我在服务器端运行getclientinfo则可以显示出ip及hostname;
我也是一样,在浏览器和forms server在同一台机器上才能得到ip和hostname。
三、为什么不通过web方式在forms builder中运行getclientinfo时点击哪一个何都没有反应?
这个只能在web方式下运行吧
这是为什么?????????

似乎这个demo有较多bug:(。下次试试forms9i demos中的getclientinfo。
[/B]

使用道具 举报

回复
论坛徽章:
6
ITPUB元老
日期:2005-02-28 12:57:00授权会员
日期:2005-10-30 17:05:33管理团队2006纪念徽章
日期:2006-04-16 22:44:45会员2006贡献徽章
日期:2006-04-17 13:46:34生肖徽章2007版:鸡
日期:2008-01-02 17:35:53生肖徽章2007版:鼠
日期:2008-01-02 17:35:53
20#
发表于 2003-7-17 10:06 | 只看该作者

Re: 我拷在9iAS下没有通过

9iAS release1 支持forms6i,9iAS release2 支持forms9i。你的是什么版本?
抱歉我不懂配置9iAS,给不了你更多帮助。

最初由 yclxj 发布
[B]我在9iAS下没有通过,而返回9iAS服务器的IP地址。 [/B]

使用道具 举报

回复

您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

TOP技术积分榜 社区积分榜 徽章 团队 统计 知识索引树 积分竞拍 文本模式 帮助
  ITPUB首页 | ITPUB论坛 | 数据库技术 | 企业信息化 | 开发技术 | 微软技术 | 软件工程与项目管理 | IBM技术园地 | 行业纵向讨论 | IT招聘 | IT文档
  ChinaUnix | ChinaUnix博客 | ChinaUnix论坛
CopyRight 1999-2011 itpub.net All Right Reserved. 北京盛拓优讯信息技术有限公司版权所有 联系我们 未成年人举报专区 
京ICP备16024965号-8  北京市公安局海淀分局网监中心备案编号:11010802021510 广播电视节目制作经营许可证:编号(京)字第1149号
  
快速回复 返回顶部 返回列表