Code generation using Visual cafe
I'm using visual cafe for GUI development. It includes it's own libraries though the equivalent ones are available in JDK.
For example: to place a component in GRid Bag layout it generates code with symantec's constructor
new com.symantec.itools.awt.GridBagConstraintsD(,...) instead of java.awt.GridBagContraints(,...) constructor.
Is there any way to tell Visualcafe to use jdk instead of it's own libraries when applicable? let me know if anyone knows how to do this?
thanks,
sampath
The simple answer is NO, or its not simple nor reliable.
The unsolicited answer is; stop using that garbage. I used it for 4 years. Symantec completely dropped the ball. I use the free Jbuilder version. It uses ALL official classes and does NOT force you into code conventions, nor does it complain about many things. VC has its own private section in the code where you can not manually edit it. headache. VC does geenrate much less anonymous classes, but all in all, try JBuilder. Maybe even Forte as I hear good things about that too.
When I converted to JBuilder, I simply changed the symanted gridbag class into the sun gridbag class. In general the symantec class is EXACTLY the same, but symantec was ahead of its time, and needed to make its own classes in order to have the GUI editing since sun didnt have completel beans available at the time. But sun has not privided these beans for years, and still symantec has not adapted. I think they are arrogant now and hope this keeps you forced into their IDE since changing seems hard(though "replace" works just fine in these situations)...
Similar Messages
-
SAP RF/ Bar code generation using IM
Hi folks
Can any one experiencing in using SAP Console / Bar code generation using Inventory Management .Please read this article
http://tdworld.com/info_systems/highlights/peak-pepco-inventory-management/
Is it possible to generate the barcoding using Handling unit or any other module without WMS ?
Thanks for your input
Jeevan -
Debugging JSPs using Visual Cafe
I am using WL 5.1 and trying to figure out how to debug JSPs using Visual Cafe 4.0.(Enterprise Edition). The JSP file is running fine if I use plain "javac" for compilation. If I change the compiler to include -g option (for debug), I get the following error.
Thu Aug 31 15:46:37 CDT 2000:<E> <ServletContext-General> Servlet failed with Exception
java.lang.NumberFormatException: error=2
at java.lang.Integer.parseInt(Integer.java:409)
at java.lang.Integer.parseInt(Integer.java:458)
at weblogic.servlet.jsp.JspStub.compilePage JspStub.java:303)
at weblogic.servlet.jsp.JspStub.prepareServlet(JspStub.java:174)
at weblogic.servlet.jsp.JspStub.checkForReload(JspStub.java:92)
at weblogic.servlet.internal.ServletStubImpl.getServlet(ServletStubImpl.
java:168)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
pl.java:99)
at weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletCon
textImpl.java:742)
at weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletCon
textImpl.java:686)
at weblogic.servlet.internal.ServletContextManager.invokeServlet(Servlet
ContextManager.java:247)
at weblogic.socket.MuxableSocketHTTP.invokeServlet(MuxableSocketHTTP.jav
a:361)
at weblogic.socket.MuxableSocketHTTP.execute(MuxableSocketHTTP.java:261)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
weblogic.properties
weblogic.httpd.initArgs.*.jsp=\
pageCheckSeconds=1,\
compileCommand=C:/VisualCafeEE/java2/bin/javac.exe -g,\
workingDir=C:/weblogic/myserver/classfiles,\
verbose=true
If I don't use -g option, the page gets displayed correctly. Any help would be appreciated.
Thanks
Sree Pillai
assuming you are running on Windows, you can use a .cmd file with the
following command in it
javac -g %*
if you name it c:/java/bin/javac.cmd, then replace the line with
compileCommand=C:/java/bin/javac.cmd,\
Barry
Sree <[email protected]> wrote in message
news:[email protected]...
>
> I am using WL 5.1 and trying to figure out how to debug JSPs using Visual
Cafe 4.0.(Enterprise Edition). The JSP file is running fine if I use plain
"javac" for compilation. If I change the compiler to include -g option (for
debug), I get the following error.
>
> Thu Aug 31 15:46:37 CDT 2000:<E> <ServletContext-General> Servlet failed
with Exception
> java.lang.NumberFormatException: error=2
> at java.lang.Integer.parseInt(Integer.java:409)
> at java.lang.Integer.parseInt(Integer.java:458)
> at weblogic.servlet.jsp.JspStub.compilePage JspStub.java:303)
> at weblogic.servlet.jsp.JspStub.prepareServlet(JspStub.java:174)
> at weblogic.servlet.jsp.JspStub.checkForReload(JspStub.java:92)
> at
weblogic.servlet.internal.ServletStubImpl.getServlet(ServletStubImpl.
> java:168)
> at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
> pl.java:99)
> at
weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletCon
> textImpl.java:742)
> at
weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletCon
> textImpl.java:686)
> at
weblogic.servlet.internal.ServletContextManager.invokeServlet(Servlet
> ContextManager.java:247)
> at
weblogic.socket.MuxableSocketHTTP.invokeServlet(MuxableSocketHTTP.jav
> a:361)
> at
weblogic.socket.MuxableSocketHTTP.execute(MuxableSocketHTTP.java:261)
>
> at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
>
>
>
> weblogic.properties
> -------
> weblogic.httpd.initArgs.*.jsp=\
> pageCheckSeconds=1,\
> compileCommand=C:/VisualCafeEE/java2/bin/javac.exe -g,\
> workingDir=C:/weblogic/myserver/classfiles,\
> verbose=true
> --------------
>
>
> If I don't use -g option, the page gets displayed correctly. Any help
would be appreciated.
>
> Thanks
> Sree Pillai
-
Hi Folks,
I just found that using Studio 4 when I generated the ViewBean using
RAD tools, the code is just not the code I can use with my existing
application written/migrated with Jato 1.2.
Is there any way we can generate the code as per the old JATO api
with Studio 4 and S1AF 2.0 ?
As per some of the ealier messages, it sounds like not possible.
Checking again with all of you.
Any help?Correction: Studio 4/4u1 uses JATO 2.0. Studio 5u1 uses JATO 2.1.
Rajesh, it is true you cannot use the Studio-generated code with JATO 1.2. However, you can run your existing JATO 1.2 code with the later versions of JATO. This means that once you bring your existing JATO application into the Studio, you can continue to develop it using JATO 2.0, and existing JATO 1.2 code will continue to run with the new version.
Todd -
Code Generation Using Annotation Processing
I'm trying to figure out how to do something like thus:
Given this source file with the following custom annotation:
@Composite(interfaces=Mammal.class)
public class Dog implements IComposite
};I want to create an annotation processor that inserts a data member, implementation into the constructor, and a public method into this class:
@Composite(interfaces=Mammal.class)
public class Dog implements IComposite
IComponent[] m_inner_objects;
public Dog()
m_inner_objects = new IComponent[1];
m_inner_objects[0] = Mammal.compose(this);
public IComponent getComponent(Class<?> inInterface)
if(inInterface == Mammal.class)
return m_inner_objects[0];
return null;
};Are all three tasks possible? Are any of the three tasks possible? If yes to any of my questions how would I go about this. I've gotten just past the 'hello world' state in writing a custom annotation processor so I just need the more advanced knowledge of how to actually affect the code once I'm actively processing it.
cheers,brucechapman wrote:
sednivo wrote:
I can get the CompilationUnitTree. Yes
Then I can modify it with Compiler Tree API.Really?
Where is a pitfall in my train of thought?The Tree API is an immutable API, you can look, but not modify.Here is example of modifying compiler tree.
http://svntrac.hanhuy.com/repo/browser/hanhuy/trunk/panno/src/com/hanhuy/panno/processing/PropertyProcessor.java
Also, the javax.annotation.processing.Filer will not allow you to overwrite an existing compilation unit, and you must use the Filer if you wish a generated class to be compiled in the next round.I don't use Filer class. Method writeCompilationUnit that I've wrote works well for existed files.
There is a fundamental principle of java that the same program always has the same meaning. See the 3rd paragraph of the Preface to the first edition of the Java Language Spec . >This is the reason why you can't modify existing source code.We can mark generated methods in a class with @Generated annotation. -
Urgent pls ! Error during Container code generation using weblogic.ejbc
HI all,
Iam using weblogic6.1 and EJB 2.0. I have to communicate session and entity ejb's and iam using local interfaces for entity beans and access the entity beans thru session ejb's. After creating my programs and jar files, when i use java weblogic.ejbc code.jar Containercode.jar, i get the following error....
--------- Error -------------
C:\Sathish\Ejb\wl6.1\LocalInterfaces\Code\ejbcgen\CodeBean_tvm2r0_ELOImpl.java:34
0: cannot resolve symbol
symbol : constructor EJBException (java.lang.String,java.lang.Exception)
location: class javax.ejb.EJBException
throw new javax.ejb.EJBException("Unexpected exception in " +
^
1 errors
Exec failed .. exiting
Can anyone say why this error is occuring......
regards
sathishIn J2EE 1.3, EJBException added a third constructor of the form:
EJBException(java.lang.String, java.lang.Exception)
WebLogic contains a file called j2ee12.jar in the lib directory that when placed in front of the classpath, disables J2EE 1.3 features and replaces them with J2EE 1.2. In J2EE 1.2 this constructor did not exist.
So in order to compile using J2EE 1.3 features, you must make sure that j2ee12.jar is not in your classpath. -
WL 4.51 - Visual Cafe Expert Edition
From: Romin Irani <[email protected]>
Subject: Re: VM options in Visual Cafe debugger
Date: Friday, June 30, 2000 12:52 PM
Hi,
We are using WebLogic 4.51 and Visual Cafe 4.0a Expert Edition. Can someone
send me detailed instructions on setting up the Visual Cafe IDE to debug my
servlets/JSP code with WebLogic. Kindly help me on the same.
Thanks and appreciate the help,
Romin Irani.
WebLogic <[email protected]> wrote in message
news:8j8l15$3nj$[email protected]..
Hi,
I am using Visual Cafe 4.0 Expert Edition with WebLogic v4.51. I have
configured a VM to spawn the weblogic.Server class such that
Project-->Execute works fine. When I run in the debugger, however, the
system properties aren't being sent to the JVM. How do I pass thefollowing
arguments to the VM when debugging?
-Dweblogic.system.name=myproject
-Duser.dir=d:\weblogic4.5
-Dweblogic.system.home=d:\weblogic4.5
Thank You,
-Ernesto -
Unable to create ear after installing Visual Cafe plug-in for app server 6 sp3.
Installed WebGain plugin for app server 6 sp3. Now anytime I attempt to add a war to an ear in the deployment tool I get the following: xml file or ias xml file missing. Make sure that source archive "d:\......war" is saved before dragging. Obviously I have done this, but has this IDE plugin changed the xml parsers to a different version that could be causing this? Has anyone else ran across this error?
Hi,
Can you confirm to me, if you are using Visual Cafe Enterprise 4.5.1
and iAS 6.0 SP3. Also let me know the the name & version of O/S please.
Regards
Raj
Bob Pfingsten wrote:
Installed WebGain plugin for app server 6 sp3. Now anytime I attempt
to add a war to an ear in the deployment tool I get the following: xml
file or ias xml file missing. Make sure that source archive
"d:\......war" is saved before dragging. Obviously I have done this,
but has this IDE plugin changed the xml parsers to a different version
that could be causing this? Has anyone else ran across this error?
Try our New Web Based Forum at http://softwareforum.sun.com
Includes Access to our Product Knowledge Base! -
Visual Cafe and Oracle thin driver
I have created a java applet using visual cafe and oracle think
driver. The applet connects to database within the visual cafe
environment. If I try launching applet locally within a browser
I get the following error "Error:securit. Couldn't connect to
'host' within origin from 'local_classpath_classes" Any help is
greatly appreciated.
THanks
John Famolaro
nullJohn
I also had this problem. Its a general security problem.
Because your trying to connect to another machine, you
must sign your applet to get full security privelages from
within your browser. The sandbox within the JVM of the browser
doesn't let you open connections to other machines.
(Although my original understanding was that if the applet
was stored locally, then you had full privelages - but it
didn't work like this for me.)
Try signing your applet.
steve
John Famolaro (guest) wrote:
: I have created a java applet using visual cafe and oracle think
: driver. The applet connects to database within the visual cafe
: environment. If I try launching applet locally within a
browser
: I get the following error "Error:securit. Couldn't connect to
: 'host' within origin from 'local_classpath_classes" Any help
is
: greatly appreciated.
: THanks
: John Famolaro
null -
Visual Cafe Enterprise ftp deployment?
Hi,
I am using VC EE to write Enterprise Java Beans which I'm deploying
directly to a Sun E450 running Solaris 7. These Jar files will then be
used by WebLogic Server. I have configured my project
options/deployment tab so that it has the IP address of the Sun machine,
my user account and password. I've also selected FTP as the desired
transport. It mostly works in as much as it copies the file across
but then it just sits there with the progress bar mostly complete. Is
this a known problem? It there are workaround if so?
Thanks for any help,
Ian.
PS I'm using NT 4.0 SP6 on my PC.OK fixed. We downloaded WU ftpd, installed it on another port on the Sun and
it all works fine.
Ian Butcher wrote:
OK,
This is just an update - I haven't completely fixed the problem yet but I
have the following additional information. I have managed to deploy to Red
Hat Linux and Windows NT using ftp using Visual Cafe. Our Unix system
manager has contacted Sun and they are aware of this problem - that said
they said that it was a bug with 'TCP' (I must admit I thought that FTP was
normally implemented of UDP). For fun I tried to see how long Sun have had
this feature and this feature is present in Soloris 8,7 and 2.6. They
don't have this one very far up the bug hit list. Sun did say that they
plan to fix it in 'some' version of Solaris 8.
Our current plan of action (suggested by another Sun admin) is to install a
third party ftp daemon on the Sun to see if that fixes it.
Ian.
ian butcher wrote:
Hi,
I am using VC EE to write Enterprise Java Beans which I'm deploying
directly to a Sun E450 running Solaris 7. These Jar files will then be
used by WebLogic Server. I have configured my project
options/deployment tab so that it has the IP address of the Sun machine,
my user account and password. I've also selected FTP as the desired
transport. It mostly works in as much as it copies the file across
but then it just sits there with the progress bar mostly complete. Is
this a known problem? It there are workaround if so?
Thanks for any help,
Ian.
PS I'm using NT 4.0 SP6 on my PC. -
Could Weblogic fellows put some instruction to debug (Remote JVM Debug) EJBs
using Visual Cafe 3.1?
It never worked successfully for me. Is there any other way debug the
EJBs(Session Beans).
New Developers really struggle to understand where the prpblem is?. I would
really appreciate if any body gives any idea.
Thanks
/selvan
Captura Software IncDownload the patch Visual Cafe 3.1a from
http://www.symantec.com/domain/cafe/downloads.html. The patch.htm file mentions some
generic replacement files - vcdbg_generic_1.2.exe and vcdbg_generic_1.2.tar that must
be installed to facilitate debugging on JDK 1.2.
Nirav.
Paul White wrote:
Visual Cafe 3.1 does support JDK 1.1/1.2 switching for debuggging (see
Environment Options). Hosting on JDK 1.2 will be avaiable with the
version 4.0 of Enterprise Suite (currently available with the Expert
edition but this does not have the EJB support or Weblogic integration).
VC has had JDK 1.2 denbugging support since March 1999.
Visual Cafe Enterprise allows you to attach to almost any VM for
distributed debugging.
If you want further insructions on EJB debugging take a look at the
Knowledgebase at www.visualcafe.com or post a message to the newsgroups
at
news://service.symantec.com/symantec.support.itools.win.vcafe3.distributed
Note that WebGain is the new company which has acquired VisualCafe from
Symantec and is funded partly by BEA Systems. More info at
http://www.webgain.com
Dana Jeffries wrote:
It's fairly stright forward out-of-the-box.
You do need the VCafe 3.1 Enterprise Suite product.
Let me know what your particular issues are.
(As noted in the follow up message, the debugging API has changed for JVM 1.2
and the debuggers have not yet fully supported this iterface. I have personally
debugged into a 1.2 JVM though only a "remote VM" running on my local machine.
VCafe and Solaris have problems at the moment which are being addressed.)
Dana Jeffries
Companion Products Group
Tamilselvan Ramasamy wrote:
Could Weblogic fellows put some instruction to debug (Remote JVM Debug) EJBs
using Visual Cafe 3.1?
It never worked successfully for me. Is there any other way debug the
EJBs(Session Beans).
New Developers really struggle to understand where the prpblem is?. I would
really appreciate if any body gives any idea.
Thanks
/selvan
Captura Software Inc
Learn how to build reliable, personalised e-commerce Web sites -- and
walk away with FREE BEA software.
Visit http://www.bea.com/events/instant/ to sign up for one of BEA's
European 'Instant E-Commerce' seminars.--
Nirav Chanchani
Product Manager, Tools Integration
BEA Systems, Inc.,
2315 North First Street,
San Jose, CA 95131, USA.
Phone +1 408 570-8159
Fax +1 408 570-8901
E-mail [email protected]
Web http://www.bea.com
[att1.html] -
Hi
I am trying to set up a distributed debugging on a Sun solaris 2.6 with
Sun jdk 1.1.8 and trying to connect to this using Visual Cafe 3.1 . The
debug dameon on remote machine is being recognised but visual cafe
comes back saying "No JVM" found .
any help would be appreciated
aniruddhaDo not use JDK1.1.8. Use JDK1.1.7 instead.
Wei Guan
ANIRUDDHA <[email protected]> wrote in message
news:[email protected]..
Hi
I am trying to set up a distributed debugging on a Sun solaris 2.6 with
Sun jdk 1.1.8 and trying to connect to this using Visual Cafe 3.1 . The
debug dameon on remote machine is being recognised but visual cafe
comes back saying "No JVM" found .
any help would be appreciated
aniruddha -
Automatic Code generation from UML for C++ in Visual Studio 2013 Ultimate
Hi all,
I am using Visual Studio 2013 Ultimate to design UML diagrams and want to use the class diagram to generate C++ code,
however I found that there seems only support C# generation.
Is there any way to do the code generation (even round-trip engineering with C++/UML model) from Visual Studio 2013 Ultimate?
There is a way to do C++ code generation by customize the text template file right? but it is time consuming and we don't have much time to do it.:(
Thanks a lot!Hello Grib,
>>is there anyway to integrate an STE code generator to Visual Studio 2013. I know there is EF5.x STE Generator but only for VS 2012.
Yes, you can.
Since the STEs are T4 template and you can just take template and code any changes or improvements you require yourselves! As you mentions, there is a EF5.x STE generator, you could download it and edit it. You could check this article:
Upgrading to EF6, we could see that from EF5 to EF6, the team moves classes to a new namespace, so we need to modify the T4 template to generate the new namespace.
Regards.
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey. -
I am trying to integrate simulink model (.mdl) file with SIT of Labview for RCP and HIL purpose. I am using Labview 8.6, Simulink 6.6 with RTW 6.6 and RTW embedded coder 4.6 ,Visual C Express 2008 and Visual C++ Express 2008. I have selected system target file as nidll.tlc,make command as make_rtw and template nidll_vs.tmf. When I try to generate .dll file I get the following error.
Attachments:
SITProblem.JPG 101 KBHi,
No . I could not solve the issue. Presently we are using microautobox (from Dspace)for doing the RCP.
Himadri -
Code generation from use cases
I have to build a system that inputs use cases and outputs code. I am as yet unsure how to do this. I assume the easiest way would be to go via class diagrams because code generation seems not a huge leap from there, but how would you suggest I get from the text use cases to a class diagram? Any help and pointers would be very very welcome.
Cheers,
NicholasIf you invent this, they will have to create a new Nobel prize for computing. And we as developers will all be out of business. Best of luck.
- Saish
Maybe you are looking for
-
Error while creating Process flows in OWB 11gR2
Hi I have never faced this before and thats why it baffles me. I am trying to create a new process flow module which has already been configured to the OWF_LOCATION(Oracle workflow location). I get Java exception error window with long list of detail
-
SCCM 2012 R2 CU3 - Drivers Not Installing, Local Administrator Account Disabled
After PXE OSD for a Thick Image of Win 7 x64 Ent completes, several Task Sequence steps are not complete. Namely, 3 device drivers are missing (NIC, SM Bus and some other chipset driver), the built-in Administrator Account is disabled and it's not Do
-
Netconnection.connect.failed
hi, all. i am a freshman in the flash media server. I write the client with the flex, and the server is the flash media server2, when i connect to the server, the test information tells me the message: netconnection.connect.failed. but i write some t
-
I have Mac Pro running 10.6.8 and has been running well in a golden triangle for 3 years. Ldap database corrupt so I deleted OD master and reconfigured. Augmented users from AD and they log on no problems except the home directory is unavailable afte
-
Look for a tool to view BLOB value
Hi all, Although I know that I can write a simple java program to view and insert values to BLOB field, I hope there could be a tool by which I can handle BLOB field easily and quickly. Can anybody recommend a tool or some SQL statement? Thank you in