Forms with subclass object is not compiling----AIX
Hi all,
We have OAS 10g in AIX 5.3. First of all there is no Developer in AIX, which is a big problem to fix any error. All though we have developed our application in HP-UX m/c and now change to AIX as in the production it will be AIX servers.
Now the problem is that, we have a Form, whose objects are being subclassed by all other forms. And in AIX whenever I try to compile any form it gives the error FAILED TO LOAD : MODULE NAME: <REFERNCED FORM> OBJECT NAME: <REFERENCED OBJECT>.
If I change the subclass object to copy (i.e., when I add the object from Referenced form, it ask for COPY, SUBCLASS and I select COPY), and I compile it, then it compiles without any error.
But the problem is that we have total 1000 forms in our application and it is not possible to change all these forms again. Moreover it is not a good practice to copy it.
So I need to overcome this problem. Please suggest me how to overcome this problem.
NOTE: I have put the REFERENCED form in the path $ORACLE_HOME/forms/ and all the other forms are in respective module's directory. And I have change default.env accordingly.
Hi ,
I had the same problem once and i discovered that the problem was on my Environemnt path so try to make sure you set it using :
export FORMS_PATH=<your library and Super module path>
and after that make sure it has been setted using :
echo $FORMS_PATH
so can you please take a second look on it ..
Best Regards,
Similar Messages
-
FRM-18108 Error when opening a form with subclassed objects
Dear Group,
I have 2 forms in Oracle Forms 6i. One of the forms contains an object group. The other form contains the object that I subclassed it to.
When I open the form that contains the subclassed object group, I get the FRM-18108 error.
If I open the form with the original object group, then open the subclassed form, there is no error.
Does this mean I must always open the original form in order to work on the one with the subclassed object group?
I hope there is an simple solution to what is something I am missing in my Oracle Forms setup.
Thank you in advance.
EmadHi Duncan.
Your suggestion worked.
Thank you for the fast response!
Truly,
Emad -
HFM EPMA application deployment aborted with error Object reference not set
HFM EPMA application deployment aborted with error Object reference not set to an instance of an object when trying to validate/deploy any HFM application in EPMA. This has started happending after we have deleted a Dimension in one of HFM applications. The deleted dimension is a shared dimension.
We are facing this issue in a distributed environment with version 11.1.2.1. This applications are built here newly.
Following is the error log entry
16] ERROR Object reference not set to an instance of an object.
at Hyperion.DimensionServer.CompareCriteria.<>c__DisplayClass5.<GetMemberClassProperties>b__4(Dimension dim)
at Hyperion.DimensionServer.Library.IterateDimensions(Action`1 action)
at Hyperion.DimensionServer.CompareCriteria.GetMemberClassProperties(ApplicationClass appClass, DimensionClass dimClass, MemberClass mbrClass)
at Hyperion.DimensionServer.CompareCriteria.GetCommonMemberClassProperties(RelationshipMember fromMember, RelationshipMember toMember, ApplicationClass fromAppClass, ApplicationClass toAppClass)
at Hyperion.DimensionServer.CompareMemberEvaluator.CompareProperties(RelationshipMember fromMember, RelationshipMember toMember, ApplicationClass fromAppClass, ApplicationClass toAppClass, List`1 propertyDifferences)
at Hyperion.DimensionServer.CompareMemberEvaluator.Compare(RelationshipMember sourceMember, Application sourceApp, Application targetApp, Boolean firstPass, Int32 level, Boolean continueCheckingAfterDifferences)
at Hyperion.DimensionServer.CompareMemberEvaluator.Compare(List`1 sourceTopMembers, List`1 targetTopMembers, Application sourceApp, Application targetApp, Boolean firstPass, Boolean continueCheckingAfterDifferences)
at Hyperion.DimensionServer.CompareMemberEvaluator.Execute(List`1 fromTopMembers, List`1 toTopMembers, Dimension fromDimension, Dimension toDimension, Boolean continueCheckingAfterDifferences)
at Hyperion.DimensionServer.CompareDimensionEvaluator.Execute(Dimension fromDimension, Dimension toDimension, ApplicationClass fromAppClass, ApplicationClass toAppClass)
at Hyperion.DimensionServer.CompareEngine.CompareDimensions(Dimension fromDimension, Dimension toDimension)
at Hyperion.DimensionServer.CompareEngine.StartCompare()
at Hyperion.DimensionServer.Validations.HFMApplicationValidation.CheckStaticDimension(Library snapShot, Dimension dim, Application oldApp, String[] skipProperties)
at Hyperion.DimensionServer.Validations.HFMApplicationValidation.CheckStaticDimensions(Application baselineApp)
at Hyperion.DimensionServer.Validations.ApplicationValidation.ValidateAgainstBaseline()
at Hyperion.DimensionServer.Validations.HFMApplicationValidation.InternalValidate()
at Hyperion.DimensionServer.Validations.ApplicationValidation.Validate()
at Hyperion.DimensionServer.Validations.ApplicationValidation.<ValidateAsync>b__0()System.NullReferenceException: Object reference not set to an instance of an object.
at Hyperion.DimensionServer.CompareCriteria.<>c__DisplayClass5.<GetMemberClassProperties>b__4(Dimension dim)
at Hyperion.DimensionServer.Library.IterateDimensions(Action`1 action)
at Hyperion.DimensionServer.CompareCriteria.GetMemberClassProperties(ApplicationClass appClass, DimensionClass dimClass, MemberClass mbrClass)
at Hyperion.DimensionServer.CompareCriteria.GetCommonMemberClassProperties(RelationshipMember fromMember, RelationshipMember toMember, ApplicationClass fromAppClass, ApplicationClass toAppClass)
at Hyperion.DimensionServer.CompareMemberEvaluator.CompareProperties(RelationshipMember fromMember, RelationshipMember toMember, ApplicationClass fromAppClass, ApplicationClass toAppClass, List`1 propertyDifferences)
at Hyperion.DimensionServer.CompareMemberEvaluator.Compare(RelationshipMember sourceMember, Application sourceApp, Application targetApp, Boolean firstPass, Int32 level, Boolean continueCheckingAfterDifferences)
at Hyperion.DimensionServer.CompareMemberEvaluator.Compare(List`1 sourceTopMembers, List`1 targetTopMembers, Application sourceApp, Application targetApp, Boolean firstPass, Boolean continueCheckingAfterDifferences)
at Hyperion.DimensionServer.CompareMemberEvaluator.Execute(List`1 fromTopMembers, List`1 toTopMembers, Dimension fromDimension, Dimension toDimension, Boolean continueCheckingAfterDifferences)
at Hyperion.DimensionServer.CompareDimensionEvalua
There was a bug in earlier releases for deleting dimensions with children, making the children orphans.
Heard from release notes that it has been fixed, but we are seeing this issue in 11.1.2.1 again.
Please help us out in resolving this error.Hi,
I always ask this first, have you installed all the planning and epma patches as there have been many issues addressed in 9.3.1
Cheers
John
http://john-goodwin.blogspot.com/ -
Creating form with user uploaded image (not attachment)
Is it possible to create a form with a space for user uploaded image? Not attachment.
Thank YouThis is not supported by FormsCentral.
Jeff Canepa
Software Quality Engineer
Adobe Systems, Inc.
[email protected] -
Problem with shuffle() code, will not compile
Hi,
Below is some code designed to shuffle a set of integers in the file editET.txt. Basically:
5
2
4 say:
just shuffle these randomly around, however, the code will not compile, any advice or solutions would be great
import java.io.*;
import java.util.*;
public class Shuffle3 {
public static void main (String [] args) {
if (args.length<2){
System.out.println("Usage: java Shuffle3 <input file> <output file>");
System.exit(-1);
ShuffleStringList sl = new ShuffleStringList(args[0]);
sl.shuffle();
sl.save(args[1]);
class ShuffleStringList extends StringList {
public ShuffleStringList(String "editET.txt") {
super(fileName);
public void shuffle() {
Collections.shuffle(this);
public void save (String "Shuffledok"){
PrintWriter out = null;
try {
out = new PrintWriter(new FileOutputStream("Shuffledok"), true);
for (int i=0; i < size(); i++){
out.println((String)get(i));
catch(IOException e) {
e.printStackTrace();
finally {
if(out !=null) {out.close();}
class StringList extends ArrayList{
public StringList(){
super();
public StringList(String "editET.txt") {
this();
String line = null;
BufferedReader in = null;
try {
in = new BufferedReader(new FileReader("editET.txt"));
while((line = in.readLine()) !=null) {
add(line);
catch(IOException e){
e.printStackTrace();
public void save (String "Shuffledok") {
FileWriter out = null;
try {
out = new FileWriter("Shuffledok");
for(int i =0; i < size(); i++){
out.write((String)get(i));
catch(IOException e){
e.printStackTrace();
finally {
try{out.close();} catch (IOException e) {e.printStackTrace();}
public void shuffle() {
Collections.shuffle(this);import java.io.*;
import java.util.*;
public class Shuffle3 {
public static void main (String [] args) {
ShuffleStringList sl = new ShuffleStringList("editET.txt");
sl.shuffle();
sl.save("Shuffledok");
class ShuffleStringList extends StringList {
public ShuffleStringList(String fileName) {
super(fileName);
public void shuffle() {
Collections.shuffle(this);
public void save (String target){
PrintWriter out = null;
try {
out = new PrintWriter(new FileOutputStream(target), true);
for (int i=0; i < size(); i++){
out.println((String)get(i));
catch(IOException e) {
e.printStackTrace();
finally {
if(out !=null) {out.close();}
class StringList extends ArrayList{
public StringList(){
super();
public StringList(String fileName) {
this();
String line = null;
BufferedReader in = null;
try {
in = new BufferedReader(new FileReader(fileName));
while((line = in.readLine()) !=null) {
add(line);
catch(IOException e){
e.printStackTrace();
public void save (String target) {
FileWriter out = null;
try {
out = new FileWriter(target);
for(int i =0; i < size(); i++){
out.write((String)get(i));
catch(IOException e){
e.printStackTrace();
finally {
try{out.close();} catch (IOException e) {e.printStackTrace();}
public void shuffle() {
Collections.shuffle(this);
} -
JSPs with custom components will not compile
All,
I have written a custom component, but am having trouble getting it to work. When i place it in a jsp or jspx and try to run the application using this control, i get compilation errors:
org.apache.jasper.JasperException: Unable to compile class for JSP
Generated servlet error:
[javac] C:\Sun\SDK\domains\domain1\generated\jsp\j2ee-modules\CPIDemo\org\apache\jsp\cpiMain_jsp.java:2053: cannot find symbol
[javac] symbol : method setPageContext(javax.servlet.jsp.PageContext)
[javac] location: class cpidemo.wpfRenderer
[javac] jspxth_cpi_wpf_0.setPageContext(_jspx_page_context);
[javac] ^
Generated servlet error:
[javac] C:\Sun\SDK\domains\domain1\generated\jsp\j2ee-modules\CPIDemo\org\apache\jsp\cpiMain_jsp.java:2054: cannot find symbol
[javac] symbol : method setParent(javax.servlet.jsp.tagext.Tag)
[javac] location: class cpidemo.wpfRenderer
[javac] jspxth_cpi_wpf_0.setParent((javax.servlet.jsp.tagext.Tag) jspxth_webuijsf_panelLayout_2);
[javac] ^
Generated servlet error:
[javac] C:\Sun\SDK\domains\domain1\generated\jsp\j2ee-modules\CPIDemo\org\apache\jsp\cpiMain_jsp.java:2063: cannot find symbol
[javac] symbol : method doStartTag()
[javac] location: class cpidemo.wpfRenderer
[javac] int jspxeval_cpi_wpf_0 = jspxth_cpi_wpf_0.doStartTag();
[javac] ^
Generated servlet error:
[javac] C:\Sun\SDK\domains\domain1\generated\jsp\j2ee-modules\CPIDemo\org\apache\jsp\cpiMain_jsp.java:2064: cannot find symbol
[javac] symbol : method doEndTag()
[javac] location: class cpidemo.wpfRenderer
[javac] if (_jspx_th_cpi_wpf_0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
[javac] ^
Generated servlet error:
[javac] C:\Sun\SDK\domains\domain1\generated\jsp\j2ee-modules\CPIDemo\org\apache\jsp\cpiMain_jsp.java:2065: reuse(javax.servlet.jsp.tagext.Tag) in org.apache.jasper.runtime.TagHandlerPool cannot be applied to (cpidemo.wpfRenderer)
[javac] jspxtagPool_cpi_wpf_ttlValue_rendered_paramList_formWidth_formScript_formName_formHeight_detID_nobody.reuse(_jspx_th_cpi_wpf_0);
[javac] ^
Generated servlet error:
[javac] C:\Sun\SDK\domains\domain1\generated\jsp\j2ee-modules\CPIDemo\org\apache\jsp\cpiMain_jsp.java:2068: reuse(javax.servlet.jsp.tagext.Tag) in org.apache.jasper.runtime.TagHandlerPool cannot be applied to (cpidemo.wpfRenderer)
[javac] jspxtagPool_cpi_wpf_ttlValue_rendered_paramList_formWidth_formScript_formName_formHeight_detID_nobody.reuse(_jspx_th_cpi_wpf_0);
[javac] ^
Generated servlet error:
[javac] Note: C:\Sun\SDK\domains\domain1\generated\jsp\j2ee-modules\CPIDemo\org\apache\jsp\cpiMain_jsp.java uses unchecked or unsafe operations.
Generated servlet error:
[javac] Note: Recompile with -Xlint:unchecked for details.
[javac] 6 errors
at org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:94)
at org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:384)
at org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:461)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:528)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:507)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:495)
at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:530)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:412)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:318)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
at org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilterChain.java:397)
at org.apache.catalina.core.ApplicationDispatcher.doInvoke(ApplicationDispatcher.java:850)
at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:697)
at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:532)
at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:465)
at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:353)
at com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:413)
at com.sun.faces.application.ViewHandlerImpl.executePageToBuildView(ViewHandlerImpl.java:480)
at com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:125)
at com.sun.rave.web.ui.appbase.faces.ViewHandlerImpl.renderView(ViewHandlerImpl.java:285)
at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:133)
at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:244)
at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:140)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:245)
at org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilterChain.java:397)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:184)
at com.sun.webui.jsf.util.UploadFilter.doFilter(UploadFilter.java:240)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:216)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:184)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:276)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:536)
at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:240)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:179)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566)
at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:73)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:182)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566)
at com.sun.enterprise.web.VirtualServerPipeline.invoke(VirtualServerPipeline.java:120)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:939)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:137)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:536)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:939)
at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:239)
at com.sun.enterprise.web.connector.grizzly.ProcessorTask.invokeAdapter(ProcessorTask.java:667)
at com.sun.enterprise.web.connector.grizzly.ProcessorTask.processNonBlocked(ProcessorTask.java:574)
at com.sun.enterprise.web.connector.grizzly.ProcessorTask.process(ProcessorTask.java:844)
at com.sun.enterprise.web.connector.grizzly.ReadTask.executeProcessorTask(ReadTask.java:287)
at com.sun.enterprise.web.connector.grizzly.ReadTask.doTask(ReadTask.java:212)
at com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:252)
at com.sun.enterprise.web.connector.grizzly.WorkerThread.run(WorkerThread.java:75)
After fighting with this for a while, I tried the following:
1) Copy code from a known-working example into the existing web app
2) Copy the code for the component et al into the known working example app
results:
1) Known working component generates the same compilation errors
2) everything work correctly
I have compared the tlds and faces-config.xml files and everything appears to be correct. In both cases, the faces-config.xml files are at version 1.2 and the tlds are at version 2.1
The only difference i can see is that the not-working web app uses far more libraries than the working example, though i'm not sure why this would be a problem.
From the not working webapp:
faces-config.xml
<?xml version='1.0' encoding='UTF-8'?>
<faces-config xmlns="http://java.sun.com/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-facesconfig_1_2.xsd"
version="1.2">
<!-- Set default locale and add supported locales here...
<application>
<locale-config>
<default-locale>en</default-locale>
<supported-locale>de</supported-locale>
<supported-locale>fr</supported-locale>
<supported-locale>es</supported-locale>
</locale-config>
</application>
-->
<component>
<description>A wrapper for workplace forms viewer</description>
<display-name>Embedded Form Viewer</display-name>
<component-type>cpidemo.wpfRenderer</component-type>
<component-class>cpidemo.wpfRenderer</component-class>
</component>
</faces-config>
cpi.tld
<?xml version="1.0" encoding="UTF-8"?>
<taglib version="2.1" xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee web-jsptaglibrary_2_1.xsd">
<tlib-version>1.0</tlib-version>
<short-name>cpi</short-name>
<uri>http://www.etechway.com/cpi</uri>
<!-- A validator verifies that the tags are used correctly at JSP
translation time. Validator entries look like this:
<validator>
<validator-class>com.mycompany.TagLibValidator</validator-class>
<init-param>
<param-name>parameter</param-name>
<param-value>value</param-value>
</init-param>
</validator>
-->
<!-- A tag library can register Servlet Context event listeners in
case it needs to react to such events. Listener entries look
like this:
<listener>
<listener-class>com.mycompany.TagLibListener</listener-class>
</listener>
-->
<tag>
<name>wpf</name>
<tag-class>cpidemo.wpfRenderer</tag-class>
<body-content>empty</body-content>
<attribute>
<description>A value binding that points to a bean property</description>
<name>binding</name>
<deferred-value>
<type>javax.faces.component.UIComponent</type>
</deferred-value>
</attribute>
<attribute>
<name>formName</name>
<required>true</required>
<rtexprvalue>false</rtexprvalue>
<deferred-value>
<type>String</type>
</deferred-value>
</attribute>
<attribute>
<name>rendered</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
<deferred-value>
<type>boolean</type>
</deferred-value>
</attribute>
<attribute>
<name>formScript</name>
<required>true</required>
<rtexprvalue>false</rtexprvalue>
<deferred-value>
<type>String</type>
</deferred-value>
</attribute>
<attribute>
<name>detID</name>
<required>true</required>
<rtexprvalue>false</rtexprvalue>
<deferred-value>
<type>String</type>
</deferred-value>
</attribute>
<attribute>
<name>ttlValue</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
<deferred-value>
<type>String</type>
</deferred-value>
</attribute>
<attribute>
<name>formHeight</name>
<required>true</required>
<rtexprvalue>false</rtexprvalue>
<deferred-value>
<type>String</type>
</deferred-value>
</attribute>
<attribute>
<name>formWidth</name>
<required>true</required>
<rtexprvalue>false</rtexprvalue>
<deferred-value>
<type>String</type>
</deferred-value>
</attribute>
<attribute>
<name>paramList</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
<deferred-value>
<type>String</type>
</deferred-value>
</attribute>
</tag>
</taglib>
can anyone give me a nudge in the right direction here?
Thanks in advance!![javac] C:\Sun\SDK\domains\domain1\generated\jsp\j2ee-modules\CPIDemo\org\apache\jsp\cpiMain_jsp.java:2053: cannot find symbol
[javac] symbol : method setPageContext(javax.servlet.jsp.PageContext)
[javac] location: class cpidemo.wpfRenderer
[javac] jspxth_cpi_wpf_0.setPageContext(_jspx_page_context);
[javac] ^
Assuming cpidemo.wpfRenderer is your class, does it have the method referenced above? -
C++ form with awt controls do not respond
I have created mfc project in visual studio c++ 6.0. Then I modified MainFrm.cpp.
Here in CMainFrame::OnShowWindow I initialize jvm, create WEmbeddedFrame and put Button in it. Is runs ok, but 2 problems:
1. I can't click button. Just as there is some panel over java gui and it catches all mouse and keyboard events.
2. java gui some times do not repaints itself, or repaints only part of it
The form was inspired by http://www.codeproject.com/KB/cpp/OOJNIUse.aspx (but I do not use OOJNI, as you can see).
There is a bug in WEmbeddedFrame, but it deals with swing, not awt: http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4982522. To work around it I call addNotify() method.
Can someone help me with this code?
// MainFrm.cpp : implementation of the CMainFrame class
#include "stdafx.h"
#include "mfc.h"
#include <jni.h>
#include <string.h>
#include <jawt.h>
#include <jawt_md.h>
#include <comdef.h>
#include "MainFrm.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#endif
// CMainFrame
IMPLEMENT_DYNCREATE(CMainFrame, CFrameWnd)
BEGIN_MESSAGE_MAP(CMainFrame, CFrameWnd)
ON_WM_CREATE()
ON_WM_SHOWWINDOW()
END_MESSAGE_MAP()
static UINT indicators[] =
ID_SEPARATOR, // status line indicator
ID_INDICATOR_CAPS,
ID_INDICATOR_NUM,
ID_INDICATOR_SCRL,
jobject obj_frame;
JNIEnv *env;
jclass class_JString;
// CMainFrame construction/destruction
CMainFrame::CMainFrame()
// TODO: add member initialization code here
CMainFrame::~CMainFrame()
//jvm->DestroyJavaVM();
TRACE0("JVM destroyed\n");
int CMainFrame::OnCreate(LPCREATESTRUCT lpCreateStruct)
if (CFrameWnd::OnCreate(lpCreateStruct) == -1)
return -1;
if (!m_wndToolBar.CreateEx(this, TBSTYLE_FLAT, WS_CHILD | WS_VISIBLE | CBRS_TOP
| CBRS_GRIPPER | CBRS_TOOLTIPS | CBRS_FLYBY | CBRS_SIZE_DYNAMIC) ||
!m_wndToolBar.LoadToolBar(IDR_MAINFRAME))
TRACE0("Failed to create toolbar\n");
return -1; // fail to create
if (!m_wndStatusBar.Create(this) ||
!m_wndStatusBar.SetIndicators(indicators,
sizeof(indicators)/sizeof(UINT)))
TRACE0("Failed to create status bar\n");
return -1; // fail to create
// TODO: Delete these three lines if you don't want the toolbar to be dockable
m_wndToolBar.EnableDocking(CBRS_ALIGN_ANY);
EnableDocking(CBRS_ALIGN_ANY);
DockControlBar(&m_wndToolBar);
return 0;
void CMainFrame::OnShowWindow(BOOL bShow, UINT nStatus) {
CFrameWnd::OnShowWindow(bShow, nStatus);
//******************************** JAVA
JavaVM * jvm;
long status;
JavaVMOption options[2];
JavaVMInitArgs vm_args;
options[0].optionString = ".Djava.class.path=.;c:\\";
options[1].optionString = "-verbose:jni";
memset(&vm_args, 0, sizeof(vm_args));
vm_args.ignoreUnrecognized = true;
vm_args.version = JNI_VERSION_1_4;
vm_args.nOptions = 2;
vm_args.options = options;
status = JNI_CreateJavaVM(&jvm, (void**) &env, &vm_args);
if (status == JNI_ERR) {
return;
TRACE0("JVM created\n");
//class_JString = env->FindClass("foo/Test");
TRACE0("Class found\n");
//create frame
//jmethodID id_Test = env->GetMethodID(class_JString, "<init>", "(J)V");
TRACE0("Method found\n");
//obj_frame = env->NewObject(class_JString, id_Test, m_hWnd);
TRACE0("Object created\n");
jclass class_Button = env->FindClass("java/awt/Button");
TRACE0("Class Button found\n");
jclass class_WEmbeddedFrame = env->FindClass("sun/awt/windows/WEmbeddedFrame");
TRACE0("Class WEmbeddedFrame found\n");
jclass class_Container = env->FindClass("java/awt/Container");
TRACE0("Class Container found\n");
jmethodID b_const = env->GetMethodID(class_Button, "<init>", "(Ljava/lang/String;)V");
TRACE0("Constructor Button found\n");
jmethodID f_const = env->GetMethodID(class_WEmbeddedFrame, "<init>", "(J)V");
TRACE0("Constructor WEmbeddedFrame found\n");
jmethodID f_add = env->GetMethodID(class_Container, "add", "(Ljava/awt/Component;)Ljava/awt/Component;");
TRACE0("Method WEmbeddedFrame.add found\n");
jmethodID f_setSize = env->GetMethodID(class_WEmbeddedFrame, "setSize", "(II)V");
TRACE0("Method WEmbeddedFrame.setSize found\n");
jmethodID f_show = env->GetMethodID(class_WEmbeddedFrame, "show", "()V");
TRACE0("Method WEmbeddedFrame.show found\n");
jmethodID f_addNotify = env->GetMethodID(class_WEmbeddedFrame, "addNotify", "()V");
TRACE0("Method WEmbeddedFrame.addNotify found\n");
jobject button = env->NewObject(class_Button, b_const, env->NewStringUTF("qqq"));
TRACE0("Button created\n");
jobject frame = env->NewObject(class_WEmbeddedFrame, f_const, m_hWnd);
TRACE0("WEmbeddedFrame created\n");
env->CallVoidMethod(frame, f_addNotify);
TRACE0("Frame added Notify\n");
env->CallVoidMethod(frame, f_setSize, 100, 100);
TRACE0("WEmbeddedFrame setSize called\n");
env->CallVoidMethod(frame, f_add, button);
TRACE0("Button added\n");
env->CallVoidMethod(frame, f_show);
TRACE0("Frame shown\n");
//******************************** JAVA
ShowWindow(SW_NORMAL);
BOOL CMainFrame::PreCreateWindow(CREATESTRUCT& cs)
if( !CFrameWnd::PreCreateWindow(cs) )
return FALSE;
// TODO: Modify the Window class or styles here by modifying
// the CREATESTRUCT cs
return TRUE;
// CMainFrame diagnostics
#ifdef _DEBUG
void CMainFrame::AssertValid() const
CFrameWnd::AssertValid();
void CMainFrame::Dump(CDumpContext& dc) const
CFrameWnd::Dump(dc);
#endif //_DEBUG
// CMainFrame message handlersDon't post new questions on old threads.
...in C calling a Java Applet. And your program do it.How do you figure?
I seriously doubt that the fundamental problem here is a JNI problem versus just a java one. I would expect that the applet viewer either calls a Sun class or even a Java API class. Nothing more. Asking a carefully phrased question in one of the GUI forums might get the answer as well as getting the Sun source for any recent jdk and looking at the code for the applet viewer. -
Opens a form with the middle part not the header section
i am using forms 9i.
i have a form (Form 1) whose windows size is 800X600 which is scrollable .
In Form 1 at the below (end) i have a button on cllicking which Form 2 is opened.
but Form 2 is not opening with the header section. it is opening with the below section.
Form 1 has the many item and at the end a button is avaliable say
employee Details
on clicking this button it has to open Form 2
Form 2 has the following items in it
Name:
Id:
Department:
experience:
Personal details:
on clicking the button it should open the form from the Name item right. but it
opens with the item experience . i have to scroll the form to see the header section .Thanks for your answer.
ya i have given go ittem (Name);
its working. That is control goes to that item (that item is enabled as blue) but then as it opened we can see items only from the description field. To see the name field which is on top of the form and which is in focus(due to the go_item), we need to scroll up using the browser scroll bar. Our understanding is that since the forms is running as an applet in the IE browser, do we need to do some setting in any of the config or environment files so that the form will always open with the top of the form visible to the user? Please advise.
THanks and regards, -
Exporting form with referenced objects
Hi!
Is there any way a (pdf-based) form can be exported with referenced resources (e.g images referenced via URL) included? For example when using Live Cycle Designer ES outside SAP a form can be exported to an LCA archive which contains all images and other referencesd objects.
Regards,
ChristianThanks for the answer!
Do you know if there is any standard SAP way of exporting the XFA template (xdb file) from SAP - in order to re-use it externally?
Regards,
Christian -
Error in generating form with 6i
I have installed designer 6i rel 2 with form developer 6i on NT
4.0.
When in design editor, I want to generate the form with generate
module, the system generate "CDR-21600: A running Generator or
Utility has failed."
Also in action column writes: " It is possible that the internal
cache is now in an inconsistent state. You are therefore
recommended to close and restart the application."
Could anyone tell me what is the problem and how to solve it.
thanksHere is an document which describes some known causes of CDR-
21600 errors. I hope it will help you.
PURPOSE
To describe some known causes of CDI-21600 errors and to
suggest possible solutions and workarounds.
SCOPE & APPLICATION
This note was written for users of Oracle Designer releases 2.1.x
and 6.0.
CDI-21600 errors occur most frequently during Design Capture and
when generating forms with the Forms and WebServer generators.
Investigating CDI-21600 errors
In Oracle Designer Release 2.1.2 and Release 6.0, this error has
the form:
CDI-21600 'A running generator or utility has failed'
The Release 2.1.1 error message was: 'Generator or Utility throw
an Exception'
The CDI-21600 error message means that the generator is hitting
an unhandled exception, also known as a GPF (general protection
fault). The CDI-21600 error masks the underlying exception error.
To see the real error do the following:
1. Go into the Registry Editor (REGEDIT).
2. Navigate to HKEY_LOCAL_MACHINE\software\oracle\des2_70
3. Set EXCEPT_HANDLING to 0 (by default it is 1).
Repeat the action that resulted in the error.
Known Causes of CDI-21600 Errors and Possible Solutions
Some of the reasons why CDI-21600 errors occur are listed below.
1. A common cause of CDI-21600 errors is failure to install the
necessary
Developer patches.
See [NOTE:64630.1] Developer Patches required to run
Designer with Developer
2. Check that Designer is running on a supported database. Also
check that the
TNS connection is correct.
See [NOTE:60705.1] Designer Certification Matrix (HTML)
3. Check for 'dangling' foreign keys, in other words FKs no longer
owned by any
table in the repository. Delete all invalid constraints.
Invalid constraints may be created if you use the repository
dump utility to
dump and restore external foreign keys referencing tables
shared into the
application system, without dumping and restoring the tables
that own them.
If you restore a complete dump (rather than a 'skeleton' one),
and then use
the 'Reconnect Share Links' option when restoring, you may be
able to
resolve this problem.
To get a complete list of 'dangling' constraints in your
repository, connect
using SQL*Plus and use the following query:
SELECT app.name, key.name
FROM ci_application_systems app, ci_constraints key
WHERE key.table_reference IS NULL
AND key.application_system_owned_by = app.id;
You can also run CKAZANAL.ANAL_REFERENCES on your
repository and delete all
the invalid constraints that it finds. You can run the Repository
Analyzer
from: Front Panel -> Repository Administration Utility -> Utilities.
NOTE: There may be inconsistencies in the repository that the
Repository
Analyzer cannot fix. You might solve such problems by
dropping all the
tables of your application, recreate them from the ERD,
then use the
DDT and recreate your modules.
[BUG:847190] CDI-21600 during forms generation: 'dangling'
foreign key
"Since the generator is running on a repository that contains
invalid
constraints and the Repository Analyzer solves the problem,
bug closed as
unfeasible to fix."
4. Check your modules for invalid or missing references such as
missing window
placements.
5. Try generating your module against default templates and
object libraries.
6. When capturing forms or libraries, try capturing the form or
library without
application logic, then capture the application logic on its own.
See [NOTE:1064690.6] CDI-21600 when capturing design of
form with
application logic
[BUG:757541] DESCAP: CDI-21600 error reported when
capturing with
application logic
Fixed In Ver: 6.0
[BUG:926383] Duplicate of [BUG:757541] This has been fixed in
2.1.2 patch
779559. However you would be advised to apply a later patch
such as 855635
which fixes more bugs in this area.
7. Make sure that all objects that are referenced by the form have
been
captured into the repository before capturing the form.
8. A CDI-21600 will occur if a lookup usage displays only one
column of
datatype DATE or if the column of datatype DATE is displayed
as the first
item in the block.
Workaround
Add more column usages to the lookup block and do not
display the DATE data
type column usage as the first item in the block.
9. [BUG:810472] CDI-21600 when 'Argument in Caller' is set
Fixed In Ver: 6.5.3.0
Workaround
Make sure that you have an argument in the called module that
is mapped to
the "Argument Passed Value" in the calling module. The only
way to get this
mapping back once the APV has the <Module Argument> label
is to delete it
and recreate it.
10. [BUG:801736] CDI-21600 on design capture of a form with
subclassed object
Fixed In Ver: 6.0.3.1.0 (backport)
Fixed In Ver: 6.5
You have an item that has been subclassed to an object.
Checking the Design
Capture option 'Capture Control Blocks' causes the CDI-21600
error. Uncheck
'Capture Control Blocks' and the problem does not occur. Open
the FMB in
Forms*Builder and look at Data Blocks -> Items. Break the link
to the
object, save the FMB, and the form will capture (similar to
[BUG:794872]).
Alternatively, ensure the link can be established.
11. [BUG:850436] CDI-21600 on generation of a form with template
having
subclassed object group
You try to generate a form out of Designer that uses a user-
defined
template. If a collection of objects in the template is grouped
into an
object group, dragged into the object library and then either
copied or
subclassed into a form, when the form is generated you get a
CDI-21600
error.
12. [BUG:822659] Module generation fails (CDI-21600) with multi-
column PK having
long prompt text
Fixed In Ver: 6.5.3.2
Module generation with multi-column primary key having long
prompt text
causes CDI-21600 with preference MSGSFT set.
Workaround
Shorten the prompt text of PKs may not be not applicable. You
may loose end
user information.
You may have the same problem with a mandatory compound
FK. CASEOFG tries to
generate a message '<P1> must be entered', where <P1>
contains all the
prompts of the bound items from the FK. If you reduce the
length of the
prompts, or set MSGSFT = NULL or WEDI = S or property
Mandatory?=No, it
works correctly.
13. [BUG:792542] Capturing application logic causes CDI-21600
(V2 style
triggers)
Fixed In Ver: 6.5.5
After removal of the v2 triggers, the form captures/merges OK
on 5.0.24.8,
provided patch 875027 has not been applied.
14. [BUG:790877] CDI-21600 if the primary/foreign keys have no
key components
Fixed In Ver: 6.5.11
Generating a module with tables having a primary key not
correctly defined
(no PK component) will cause a CDI-21600 error. This can
occur when
unloading a module from the RON. If you pick up the module
(and only the
module) in the unload set, the table and its PK are unloaded as
a skeleton.
Loading the .DAT file into a new application will create a PK
without a
component.
15. [BUG:771549] CDI-21600 if cannot connect to the DB with
connect string in
Options (Compile)
Fixed In Ver: 6.5.13
If you cannot connect to the DB with the connect string
specified in options
(Compile), the forms generator will fail with CDI-21600.
This problem occurs when you cannot connect to the DB
because:
- the username or password is wrong;
- or the SQL*Net alias is not defined in the TNSNAMES.ORA
file;
- or the SQL*Net listener is not started;
- or the DB is down.
16. [BUG:785106] CDI-21600 when generate master detail form
with preserve layout
[BUG:855812] is a duplicate of this bug.
Fixed In Ver: 5.0.24.6.0 (Bug:860426 Backport request for 2.1.2)
Fixed In Ver: 6.0
Fixed In Ver: 6.5.3
You have a master-detail Form with the Master having items
partly on a TAB
Canvas. Generate Module works OK. You enter Forms Builder
and move some
items on the tabs (just small changes, items are still on the
same tabs).
You change the look of the Detail and change Records
Displayed. Now in
Designer you generate the Module with Preserve Layout. You
get a CDI-21600
error. The problem might reproduce without doing any changes
in Forms
Builder, just by generating with Preserve Layout.
17. [BUG:891306] If primary key column of lookup in check
constraint comment of
base table
Fixed In Ver: 6.5.5
Workaround
Do not use the name of the bound item that is based on the
primary key
column of the lookup table in a check constraint comment of
the base table.
18. [BUG:896026] Forms gen throws assertion failure in
CVINI/BUILDACTIONITEM@/CV/CVI/CVIBNI.CPP
Fixed In Ver: 6.5.7
A problem is caused by a PL/SQL definition (function, package,
procedure)
being defined as a called module for the module you are trying
to generate.
To resolve the problem and enable the module to be generated,
remove all
Called Modules that are PL/SQL definitions (functions,
procedures or
packages).
See [NOTE:2107207.6] CDI-21600 during generation of module
or Assertion
Failure \cv\cvi\cvibni.cpp
19. [BUG:812333] CDI-21600 generating a web module after
adding an unbound item
Fixed In Ver: 6.5.3.0
Backport [BUG:1280667] raised to fix by 6.0.3.9
You add an unbound item (SQL expression) to a Web module.
When you try to
generate the module you get a CDI-21600 error. If you delete the
unbound
item the Web module generates correctly.
In a test case the problem occurred during validation of the
derivation
text, if the master module component was in a different module.
A workaround
was to rearrange module components so that this was not the
case.
20. [BUG:1627963] CCVDIAG::TRACEGENERATORMESSAGE
WHEN GENERATING INCORRECT
DERIVATION EXPRESSION
Message
CDR-21605: Failed while processing Module <mod> in function
CCVDiag::TraceGeneratorMessage BOF
Cause
The generator failed due to an unexpected error - the
error indicates the object the generator was processing
when it failed.
Helena -
Subclassing objects from Object Library
Hi,
We have an Object Library that is ever-changing.
We have several procedures and function in the Object Lib. that
we subclass in many different forms.
I expect those subclassed proc/functions to inherit the new
changes automatically when I re-compile, but I don't see any new
changes. In fact, the red arrow(subclassed items have red-
arrows to show that they are subclassed) disappear from the
subclassed forms.
I have a source form where I edit/write all the property
classes, visual attributes, procedures, and functions. Once I
write/edit them, then, I move(drag) them to object library. Am
I doing something wrong?Once you have an object in the OLB and you dragged it to a form
it will be marked with a red arrow as subclassed.
Now if you change the object in the OLB (but keep the previous
object name, you'll get a replace option message) and save the
olb, you need to open the form that has the subclassed object
and re compile it. Make sure the olb is also opened in the forms
developer. This will make the changes appear in the form's
object.
If the arrow disapear then have a look at the subclass property
of the item in question to see what went wrong. -
I created a very simple Microsoft Access database with one table and one form. When I published it to SharePoint, everythng worked fine. It published succesfully and there were no errors. I continued to make enhancements to the database and when I attempted
to sync to SharePoint, I got a message that the operation failed. I clicked OK and the issues table noted the following:
Move to SharePoint Site Issues
Issue
Reason
Object Type
Object Name
Field Name
The object could not be committed to the server.
Table
Vendor Location Information
The object could not be committed to the server.
Form
Add a New Vendor
The object could not be committed to the server.
Navigation Pane
Navigation Pane
The object could not be committed to the server.
VBA Properties
VBA References
The object could not be committed to the server.
Database Properties
DBProps
An error occurred while recording the local application status. Please re-synchronize with the Web application. No current record.
<tfoot></tfoot>
I thought this was weird so I downloaded the Assets database from Microsoft to determine if it was my database or something else. After it was downloaded and saved to my computer, I attempted to publish it to SharePoint and I got the same error.
What is weird, though, is that if I use the assets web database template in SharePoint (the one that is preloaded), it works fine. Once I open that database it in Access though and click sync, I get the same error message.
Does anyone know why this is happening?I tried it again this morning creating a completely new table / form and this is the error I get:
Move to SharePoint Site Issues
Issue
Reason
Object Type
Object Name
Field Name
The object could not be committed to the server.
Table
VLI
The object could not be committed to the server.
Form
ANV
The object could not be committed to the server.
Navigation Pane
Navigation Pane
The object could not be committed to the server.
VBA Properties
VBA References
The object could not be committed to the server.
Database Properties
DBProps
An error occurred while recording the local application status. Please re-synchronize with the Web application. No current record.
<tfoot></tfoot> -
Hello
We're trying to use a Model-First with Entity Framework in Visual Studio, targeting an Oracle XE 11g installation.
No matter from what angle we're approaching the issue, we always end up with an "Object reference not set to an instance of an object" in Visual Studio:
First way:
- Add new ADO.NET Entity Framework Model to a .NET Framework 4.5 project
- Empty model
- Add some entities and associations
- Set Database Generation Workflow to "Generate Oracle Via T4 (TPT).xaml"
- Set DDL Generation Template to "SSDLToOracle.tt"
- Generate Database From Model
- VS asks for DB connection ==> Click "New Connection"
- Enter the connection properties to the Oracle XE database. "Test Connection" tells me the connection is okay.
- Click OK. Visual Studio shows the following error message:
(here's the image if it's not visible: https://dl.dropboxusercontent.com/u/35614983/vs2012_oracle_ef_error.png)
We also tried to generate the model in VS2010 and then manually transform it to an EF5 / VS2012 model. At the "Generate Database from Model" step, the same error appeared.
We also tried to generate the model from database (Database-First approach). Same error.
My configuration:
- Windows 7 Ultimate 64-bit
- Installed Oracle client: ODTwithODAC1120320_32bit.zip, so the version is 11.2.0.3.20
- Visual Studio 2012 Update 3 (11.0.60610.01)
Thanks for any hints!
EDIT: I just read that ODP.NET doesn't seem to support Entity Framework 5, so I tried a new project with Entity Framework 4.1, but I get the same errors.
EDIT 2: On a 32-bit Windows 7 virtual machine, everything works fine. Seems the problem is only there on my 64-bit Windows 7 machine.Sorry for the delay on this one. Let me know if you are still seeing this and I will see if we can get more diagnostic info somehow.
That error is basically an exception fault. It means a bug or a misconfiguration of Oracle Developer Tools. Can you try to reinstall ODT and see if you notice any unusual errors during install.. and see if a reinstall fixes the problem? -
Pdf form with fields ppl can type into
I have a pdf form with fields that are not able to be typed in. How can I edit them so that ppl can type into the field?
Hi courtneyp58664902,
I would recommend you to follow the steps detailed on the page associated with this link (http://wwwimages.adobe.com/content/dam/Adobe/en/products/acrobat/pdfs/adobe-acrobat-xi-con vert-forms-into-fillable-pdf-c… ).
I would recommend you to Save the pdf with reader rights enabled [ File -> 'Save as other' -> 'Reader extender PDF' -> 'Enable More tools ( includes form fill-in and save)' ].
Please let me know if you face any challenges or need any further assistance.
Regards,
Rahul -
ESS~ WebDynpro ~ZERO object reference not possible
Hello,
this is about ESS (Mexican) -> IT 021
I ESS Prtaol I am getting the follwing error.
Root Cause
The initial exception that caused the request to fail, was:
com.sap.tc.webdynpro.modelimpl.dynamicrfc.WDDynamicRFCExecuteException: Access with ZERO object reference not possible., error key: RFC_ERROR_SYSTEM_FAILURE
at com.sap.pcuigp.xssfpm.java.MessageManager.raiseException(MessageManager.java:102)
at com.sap.xss.per.fc.persinfo.FcPersInfo.onCleanup(FcPersInfo.java:499)
at com.sap.xss.per.fc.persinfo.wdp.InternalFcPersInfo.onCleanup(InternalFcPersInfo.java:536)
at com.sap.xss.per.fc.persinfo.FcPersInfoInterface.onCleanup(FcPersInfoInterface.java:247)
at com.sap.xss.per.fc.persinfo.wdp.InternalFcPersInfoInterface.onCleanup(InternalFcPersInfoInterface.java:249)
... 38 more
Inputs to solve this are welcome
~ThanksHi ,
Are you editing ESS WebDynpro applications ? If its a error in the standard component its a product issue and u can raise a OSS message.
But I doubt , you have edited the same.
In that case , can u post the code in FcPersonalInfo s interface controller 's onCleanUp function.
Regards
Bharathwaj
Maybe you are looking for
-
The font color has always been black and the tabs in color, but now when I choose a different Personna, the font fades and/or turns white, sometimes fuzzy. This has never happened before. I even uninstalled and reinstalled Firefox. Please help.
-
I have some PDF files saved in my flash drive and I cant open them " Adobe Reader could not open because it is either not a supported file type or because the file has been damaged (for example, it was sent as an email attachment and wasn't correctl
-
In below given query, i get the opening stock details for the item AAA. But i get wrong results when accounting year is changed. i.e when i change the condition AND S_ACNT_YEAR = 3, the output is wrong. Note : - S_ACNT_YEAR = 4 is (APR-2010 - MAR-201
-
How to Run Applets using HTML ?
I am trying to add a java applet in an html file, by adding the line <applet code = "XXX.class" width = XXX height = XXX> and using AppletViewer I can see it, but my Explorer (IE6) just draws a gray frame, and echoes something like "class XXX not fou
-
Problem after updating iPhone 3G to iOS 4
I have an iPhone 3G. I updated it with the iOS 4 software from iTunes. It backed-up all my information and then restored my phone. Everything was fine, but now I frequently see a keypad the with the message "Voice mail password incorrect." If anyone