Output Link and Command link problem

I have this command link that I want to redirect to a certain url, a complete one with the Http://www.webpage.com.. and its value is Goto This Page..
lets say I want it to pass through a certain backing bean before redirecting how am i supposed to do it...?
before it was this simple:
               <h:outputLink  value="http://www.wepbage.com">
                    <h:outputText value="Go to this page"/>
               </h:outputLink> but this could says that the action attribute is not valid for an outputLink..
thanks in advance.. :)

Here's the stack trace but i can't seem to find which particular thing is causing this..
16:30:33,921 ERROR [[Faces Servlet]] Servlet.service() for servlet Faces Servlet
threw exception
java.lang.IllegalStateException: Cannot forward after response has been committe
d
at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationD
ispatcher.java:313)
at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDis
patcher.java:301)
at org.apache.myfaces.context.servlet.ServletExternalContextImpl.dispatc
h(ServletExternalContextImpl.java:415)
at org.apache.myfaces.application.jsp.JspViewHandlerImpl.renderView(JspV
iewHandlerImpl.java:234)
at org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:
352)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:107)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
icationFilterChain.java:252)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
ilterChain.java:173)
at org.apache.myfaces.component.html.util.ExtensionsFilter.doFilter(Exte
nsionsFilter.java:92)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
icationFilterChain.java:202)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
ilterChain.java:173)
at org.apache.myfaces.component.html.util.ExtensionsFilter.doFilter(Exte
nsionsFilter.java:92)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
icationFilterChain.java:202)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
ilterChain.java:173)
at org.apache.myfaces.component.html.util.ExtensionsFilter.doFilter(Exte
nsionsFilter.java:122)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
icationFilterChain.java:202)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
ilterChain.java:173)
at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFi
lter.java:96)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
icationFilterChain.java:202)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
ilterChain.java:173)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV
alve.java:213)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextV
alve.java:178)
at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(Securit
yAssociationValve.java:175)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(Authentica
torBase.java:432)
at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValv
e.java:74)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j
ava:126)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j
ava:105)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal
ve.java:107)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.jav
a:148)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java
:869)
at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.p
rocessConnection(Http11BaseProtocol.java:664)
at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpo
int.java:527)
at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWor
kerThread.java:112)
at java.lang.Thread.run(Thread.java:595)
here's the bean
public void link(){
         HttpServletResponse response = (HttpServletResponse) FacesContext.getCurrentInstance().getExternalContext().getResponse();
         try {
              searchController.setNewSearch(true);
              response.sendRedirect("http://www.shipserv.com");
          } catch (IOException e) {
               // TODO Auto-generated catch block
               e.printStackTrace();
     }

Similar Messages

  • Solaris 10 x86 cdrw trouble.  Gnome and command line problems writing.

    I'm experiencing general weirdness trying to write CD's and DVD's using a new internal DVD-RW device -- It's a Sony NEC AD 7220 A CD / DVD RW drive on a Solaris 10 x86 AMD system. I have searched far and wide for other threads of similar instances but no one has posted an issue like the one I'm having.
    I have a Sony Optiarc AD 7220 A CD-RW on a x86 AMD Athalon 1.6 ghz based server with 2 GB RAM.
    The DVD-RW drive gets detected by BIOS (Phoenix TrustedCore 2.3) and reads disks fine. I installed Solaris 10.08 from DVD using this DVD-RW drive.
    However, trying to write to new blank media does not work properly, (effectively at all).
    I've tried different brands of brands of blank CD's and CD-R and CD+R (have not tried using CD-RW disks yet). Ditto with DVD's - tried DVD-R and DVD+R's.
    1. Inside the Solaris 10 GUI (Gnome, a.k.a. Java Desktop), when I put in a blank CD-R, a dialog box "Format Media...?" pops up. If I click "Ok" it formats the blank CD and closes the session, CD has been written to and is ruined.
    2. I open a terminal window, as root, and put in a blank CD. "mkisofs –r /home/foo 2>/dev/null | cdrw –i –p 1" will write a directory tree OK, but if I go back into gnome GUI and open and close the CD tray, again, up pops the "Format Media..." dialog box instead of the CD appearing on the desktop. If I restart vold (svcadm restart volfs) then open and close the CD tray, voila, the contents appear on desktop as CD icon.
    3. When I try to write to a DVD-R: "cdrw -i /local/iso_image" It always fails with: Write Track 1....Failed. after a few minutes. It did in fact write part of the .iso but bails out with a failure.
    I've tried various other write commands (specifying the device ID, speed, so on and so forth) and command line switch options (following the rules of course) and it seems to me to be more than a syntax / media issue. However if it is I would like to know. I did see a similar CDRW device on the HCL for OpenSolaris with a 'reported to work' rating. That was for a Optiarc AD-5200A, which is going away thus my company has chosen to use the AD 7220A in speciality racks we build and deliver to the U.S. Navy.
    I really need to get a handle on this CD-RW device issue and decide if a different brand / model is what it's going to take to solve this and move on to producing and delivering these systems in working conditions.

    Sony systems are often very particular about what CD's and DVD's they'll take. I have several Sony systems that I use for video work and they'll read almost anything but they'll only write to DVD RW.  They also don't like cheap brand CD's and DVD's.  Be sure to try both CD RW and DVD RW before doing anything else.  Because of the requirement for DVD RW, they won't take fast speed (16x) DVD's, just 4x. If all of this turns out to be the case, you may want to go with a different manufacturer for the drive, DVD +RW 4x aren't always easy to find in the store.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • Sound problem and command prompt problem

    hi
    My new cq40 610tu compaq laptop works with only left side speaker is it build with only one left side speaker?  Is there no dual speaker?  But with head phone two headphone speaker works properly.  tell me details.
    another problem when we open command prompt in winxpSP2 it is not stable after few seconds it turns off automatically.  When I type large things in ms word 2003 cursor goes different place automatically.  whats the problem? 
    I purchase this laptop just 15 days ago.  What's the solutions?
    thanks
    Dhiman

    Hi kbzone,
    ... there should difinitely be no sparks  ) I recommend that you start with checking the wiring ... is the computer connected to earth, is the amplifier? Are they connected via the same power socket? Are you sure that the amplifier is OK?
    Then, will it be possible to have any sound from the card if the amplifier is not used? You can try removing cards, uninstalling drivers and then re-install ...
    It is well possible that by now you have damaged your soundcard, btw
    Hans

  • Hyper link of public image(hyperlink or image) can not be saved on windows server 2012 and sharepoint 2010 problem

    hyper link of public image(hyperlink or image) can not be saved on windows server 2012 and sharepoint 2010 problem, is this a bug?
    thanks for any reply.
    Rosone

    It is not a bug, you might be using IE in Windows server 2012 and and browser might be restricting your site actions to respond properly.
    Check this in a different browser or access site in a differ OS.
    Adnan Amin MCT, SharePoint Architect | If you find this post useful kindly please mark it as an answer.

  • Hi my name Abukar I had an old apple ID and I had problem with signing it so I decided to make a new apple ID with a new email address, so how can I link with two apple IDs and how can I get back all my previous apps that I purchased before, I cloud stuff

    Hi my name Abukar I had an old apple ID and I had problem with signing it so I decided to make a new apple ID with a new email address, so how can I link with two apple IDs and how can I get back all my previous apps that I purchased before, I cloud stuff

    It is not possible to do that.
    Allan

  • Link between output type and the email id in me22n ?

    Hi,
        Can anyone plz explain the link between the output type and the email id maintained in the address data in ME22n ?
    The output type is configured fo rsending Email .Whenever i maintain the email id in the address data the outptu type gets triggered automatically but if I leave it as plank the output type does not get triggered.
    Can any one explain this dependency?
    thanks in advance
    regards,
    Ashwin

    Hi,
    It depends on the output record that you have used, what is the key?
    It is no different that printed POs where the Printer Id is not specified in the communications tab of the output record. If the systen can't find where to send the output to it will not generate the record.
    If it did generate the record without the email address, what would you expect to happen? Where could it send it?
    It is far better to get the warning message "unable to determine ......" that to simply save the PO without the email addrerss.
    So I would simply see the warning message as an indication that the email address is missing and fill it in before saving.
    Steve B

  • The iPad does not ship unless he closed  ITunes does not recognize or computer  If he shipped fully closed device  I bought a charger and bought Link and the same problem persists  IPad without Jelbrak

    The iPad does not ship unless he closed
    ITunes does not recognize or computer
    If he shipped fully closed device
    I bought a charger and bought Link and the same problem persists
    IPad without Jelbrak

    What do you mean 'does not ship unless he closed' ? What are you trying to do with your iPad, and what happens when you do it ?
    If your computer's iTunes isn't recognising the iPad then do you have the latest version of iTunes installed on your computer ?
    device not showing in iTunes on a PC : http://support.apple.com/kb/TS1538
    on a Mac : http://support.apple.com/kb/TS1591

  • JSF Command Button and Command Links

    The main page of my JSF application has a Save button and Command Links. After making any changes on the main page the user should click Save before using any of the Links. Most of the time almost all users do this. However, some users are making changes then clicking a Link, thereby losing their changes.
    I could always execute my save method in the backing bean when a link is clicked, but, most of the time this would be doing a lot of processing which usually would not be necessry.
    Is their some way to check if any changes have been made and then doing the save only when necessary?
    Regards,
    Al Malin

    Anybody?
    What would be beneficial is something like this. If somehow it could be determined if any of the JSF fields on the page were modified. Then, in the backing bean method that handles the ActionEvents for the links, I would check if changes were made and, if so, call my save method.
    In other words is it possible to determine, in the backing bean, whether or not JSF fields have changed?
    Regards,
    Al Malin

  • Have been running version 4 for a week without problems. Today, downloaded MS live security update, and have had problems since. when I click on a favorite site, it takes 20 to 40 seconds before the page load's and the same if I click a link on the page.

    been running version 4 for a week without problems. Today, downloaded MS live security update, and have had problems since. when I click on a favorite site, it takes 20 to 40 seconds before the page load's.'''bold text'''

    http://portableapps.com/apps/internet/firefox_portable/localization#legacy36

  • InDesign to Adobe Acrobat to Adobe Reader Link problem

    Hi - I'm responsible for a long conversation about link problems in creating file links in InDesign that did not work in Acrobat. At the end of that long discussion, I thought I solved the problem, but didn't. Since then, I've been MUCH more observant.
    The problem appears to take place in Adobe Reader.
    My home computer on Win7 is different than my work Computer (XP), but I have the same software on both.
    At work, I discovered that when I clicked on a PDF, it worked fine, that its links opened a new PDF window, but when I clicked on links on the second document, the links failed and Microsoft returned an error message telling me that I was screwed. Because I was screwed, I couldn't see what was in the path of that error.
    It turns out that for some unknown reason (which you might clarify for me), my Adobe Readers are attempting to open my documents in Internet Explorer and that just won't work.
    What I observed at home is that I made 5 test documents in ID, and ported them to Acrobat. As it turns out, my default for opening PDFs is Adobe Reader, which I saw on the chrome of the first document I opened. When I clicked a link, and I got the error message, I noticed my browser was up.
    When I set my default for opening in Acrobat, everything worked like a charm! How about that!
    Now then, what that says to me is that Adobe Reader is to be used exclusively with a browser, so if the people who are going to read your internal PDF files with Reader without those files being on a web server of some type, you are totally screwed. The only way you can use Reader is if you click on the file and bring it up directly. Don't rely on linking to other documents.
    I mean, that is what it seems to me.
    Now, I am creating a big project for an environment without a webserver and obviously my sense of panic is palpable. That said, I believe that all my users can read my files using Acrobat (to be tested tomorrow), which I hope means I can breathe a bit easier.
    Do any of you have any thoughts on this subject? If you are really curious, I can make a packet of test files available.

    Karen_Little wrote:
    The files and the PDFs are all in the same directory.
    The tests are on local drives. All indesign files and their related PDFs were in the same directory.
    The same for Word and its related PDFs. Note that the PDFs created by Word then read by Adobe Reader worked correctly. They all opened in Adobe Reader.
    If the default program for opening PDFs is Acrobat, everything works correctly, with the added benefit of everything opening in a different window, which is what I want (yet to be tested at work). If the default program is Adobe Reader, the second generation of links do NOT work because Reader opens in Internet Explorer.
    When I open a Word-created PDF with Acrobat, view the link, and click to the Actions menu, the action is "Open a file"
    When I open an InDesign PDF with Acrobat and do the same, the action says "Open a web link"
    Big BIG BIG bug.
    Are you seeing the link commands by editing them in Acrobat? If not, try, so you can see the exact command and file or URL instruction. It still may be a bug, but you'll have better evidence when you report it here:
    Adobe - Feature Request/Bug Report Form
    And, you might want to try correcting a link command in Acrobat, to see if can work for both Acrobat and Reader.
    HTH
    Regards,
    Peter
    Peter Gold
    KnowHow ProServices

  • Oracle 9.2.0.1.0 installation link problems.....HELP !!!!!!

    Hi All
    During installation of Oracle 9.2.0.1.0 on Linux, I received the following error:
    Error:
    Error in invoking target install of makefile
    /opt/oracle/product/9.2.0.1.0/network/lib/ins_oemagent.mk
    I did some research and found that it is executing the "relink" script. So I tried to debug it it. Here is the output:
    [oracle@redash oracle]$ cd /opt/oracle/product/9.2.0.1.0/bin/
    [oracle@redash bin]$ relink oemagent
    chmod 755 /opt/oracle/product/9.2.0.1.0/bin
    if [ linux = aix ]; then \
    gcc -L/opt/oracle/product/9.2.0.1.0/lib/ -L/opt/oracle/product/9.2.0.1.0/rdbms/lib -L/opt/oracle/product/9.2.0.1.0/network/lib -L/opt/oracle/product/9.2.0.1.0/lib/ -L/opt/oracle/product/9.2.0.1.0/rdbms/lib -L/opt/oracle/product/9.2.0.1.0/network/lib -o dbsnmp /opt/oracle/product/9.2.0.1.0/network/lib/s0nmi.o -lvppdc /opt/oracle/product/9.2.0.1.0/network/lib/libvps.a \
    /opt/oracle/product/9.2.0.1.0/network/lib/libnmi.a \
    /opt/oracle/product/9.2.0.1.0/network/lib/libnmd.a /opt/oracle/product/9.2.0.1.0/network/lib/libnms.a /opt/oracle/product/9.2.0.1.0/network/lib/libnmt.a /opt/oracle/product/9.2.0.1.0/network/lib/libnml.a \
    /opt/oracle/product/9.2.0.1.0/network/lib/libnmi.a /opt/oracle/product/9.2.0.1.0/net[i]Long postings are being truncated to ~1 kB at this time.

    Before installing Oracle 9.2 on linux (i'm using redhat 7.2), there are some steps you have to issue.
    Those link problems are related to the wrong version of binutils, you need binutils-2.10.0.18-1.i386.rpm
    You need also JDK,to set some kernel parameters and so on..
    However follow the steps of this link http://www.puschitz.com/OracleOnLinux.shtml
    For me it worked.
    Hope this helps
    Tarek

  • Linker problems

    Hello
    I am transitioning from jb to borland nb5(so much faster) and I have an app that works fine in jb that I have packaged into a jar, aa.jar. In nb5 I have an applet that uses a class from aa.jar and it compiles. However when it runs I get the NoClassDefFoundError. This is like an old C linker problem. What commands do I need in build to create an execution environment to use the class form another "external" jar? tia.

    Here's a hint: drop those IDEs for a minute (or a week), step back, go to the command line and learn how to do all that stuff with just the stuff the JDK provides. This way you'll learn pretty much everything you need to learn about classpath and co and you'll have a much better understanding on what to look for when you need to do it with the IDE.
    The IDE should help you do stuff, but you should not be depending on it.

  • "Link Problem" in Incident Form does not seem to work right? How do I do it correctly?

    1. The Link Problem tool in the task pane on our Incidents, do not seem to actually link the Incident to the Problem.
    2. I can link the two by going to the Problem and adding it on the related items tab, but this is very time consuming in a call center environment, especially during an outage where we are relying a lot more on Problem and root cause analysis.
    3. I have tried creating the incident and applying, then doing the Link Problem tool and selecting the problem, then applying again and selecting OK to close the incident. Again it doesn't work for me.
    What am I doing wrong, number one?
    Can we do this without manually opening the problem for every incident and attaching from there?
    3. Can I build an incident template that will automate the Attachment to the problem at creation? (Tried this today to and it wouldn't work, but then again, the Link Problem might again be the culprit) This would be great for real time  saving during
    an outage. Once outage is found, I could create the template with all the necessary items filled out, and would like to have it automatically attach to the specific problem I choose at template creation, and that way analysts can simply apply template, and
    click OK when they get a call related to the outage.

    Thanks  for the response Thomas!
    The functionality seems to work just fine. I use the LINK PROBLEM and it pops up the problem search box, I search for and select a Problem, I then select it and click ok, and I get no error saying the relationship was not created.
    The problem is, when I open the problem after that, there is never any relationship showing in related items there, as it says there should be.
    Also, to point out, I am talking about newly created Incidents. I tried even using APPLY prior to doing the LINK PROBLEM but it still did not work. I suspect it may be a workflow problem, where the workflow to create the incident has not completed, there
    for the relationship is not completed.... and I get no error.
    In my work environment, we have analysts during outages taking a call every 30 seconds, and I need a more efficient way for this system to work. As of now, they spend 1-2 minutes doing the ticket, and that is too long.
    I have decided to try a newb way, where I created an Incident (GENERIC OUTAGE) that folks can use, and every 15-30 minutes during an outage, I can open the problem and search for open incidents with that title, and attach all that I find from the problem
    side. This is assuming that once attached they will not show up in the search to attach the next time lol. Also this assumes that if attached from the problem, they will auto resolve when the problem is resolved.
    I am rusty on my programming, and am currently trying to get refreshed. I am sure that would come in handy for this :)
    Oh and lastly, one additional tidbit that will make this clearer, with regard to work flow, we re also running our Service Manager in our help desk, virtualized, as they have not upgraded to Win 7 yet :(. So that compiles my time to add ticket issue :(.

  • CSV Output link not shown

    Hi,
    the CSV output link is now shown in Easy- and SQL report. How to ? - I did check Yes and named it in the report attributes page.(1.5.0.00.33 - IE6.0)
    TIA brgds
    Bernhard

    two things are necessary for your csv download link to appear:
    1) you need to have enabled csv output in your report. you said you've done that.
    2) the report template you're using needs to have the substitution string #CSV_LINK# somewhere on it. that's the string into which your link is substituted.
    please take a look at your report template to see if you have that sub string it. hopefully that's your issue.
    regards,
    raj

  • Problem with output string to command

    hey i have no idea why this aint working
    its a simple output string to command.
    what it is supposed to do is make a new directory given by the input string
    e.g. mkdir /home/luke/dep
    thanks for the help
    //methods input save files
         saveFile = JOptionPane.showInputDialog("Save Files To : ");
         //method command for saving files
         //Stream to write file
         FileOutputStream fout;          
         try { Process myProcess = Runtime.getRuntime().exec("mkdir" + saveFile );
          InputStreamReader myIStreamReader = new InputStreamReader(myProcess.getInputStream());
          fout = new FileOutputStream ("file.txt");
          while ((ch = myIStreamReader.read()) != -1) { new PrintStream(fout).print((char)ch); } }
              catch (IOException anIOException) { System.out.println(anIOException); }

    What you fail to understand is that "aint working" and "Problem with output string to command" tells us absolutely squat about what your problem is. This is the same as saying to the doctor "I'm sick" and expecting him to cure you. As mentioned by Enceph you need to provide details. Do you get error messages? If so post the entire error and indicate the line of code it occurs on. Do you get incorrect output? Then post what output you get, what output you expect. The more effort you put into your question the more effort others will put in their replies. So until you can manage to execute a little common sense then the only responses you will get will be flames. Now is your tiny little brain able to comprehend that?

  • Re: Fwd: Link Problems With Borland C++ 4.52

    I have seen this problem before in another context, and I'll offer the
    cause and solution in the hope that they will apply to the Crystal problem.
    Many Windows based applications rely on PASCAL calling conventions, which
    change the way parameters are handled in function/method calls. They
    indicate this by placing one of the following immediately before the
    function name in the prototype declarations:
    - pascal_far (or something like that)
    - WINAPI
    - some other typedef of either of the above
    For example:
    int WINAPI AddTotal(int valueA, int valueB);
    Unfortunately, v2.0 of Forte does not provide any mechanisms for changing
    the calling conventions of the prototypes in the generated C++ wrapper
    library, so when you compile that code, the linker fails. I think that the
    compiler may generate different symbols depending on calling conventions,
    so that's why it fails.
    To fix this, don't autocompile your code, but generate the distribution, go
    into the generated C++ files and look for the function prototypes (I think
    you can search for FORTE_NO_PROTOTYPES), add WINAPI to the appropriate
    places in the prototype definitions (see above) and use fcompile to build
    the library. Instructions for fcompile are in the Interfacing With
    External Systems manual.
    Hope this helps,
    James
    At 11:05 AM 5/29/97 PDT, you wrote:
    >
    We are trying to wrapper Crystal Reports from Forte. I know that there
    are a number of other people in this same boat, as I've seen messages
    posted here at various points during the past few weeks. We are having
    a particular problem with getting the compile to go through, which we
    have sent in to Forte Tech Support. I'm forwarding the message I sent
    Tech Support to this group in the hopes that someone here may have
    already seen and resolved a similar problem.
    Thanks in advance for any help you can offer!
    Dale V. Georg
    Indus Consultancy Services [email protected]
    Mack Trucks, Inc. [email protected]
    >
    Date: Wed, 28 May 97 13:47:20 PDT
    From: dg7077a
    To: Forte Technical Support
    Cc: Gardner, Steve
    Subject: Link Problems With Borland C++ 4.52
    Name of requestor: [Dale V. Georg / Alaiah Chandrashekar]
    Company: [Indus Consultancy Services]
    Phone for callback: [(610) 709-3956]
    Customer Site: [Mack Trucks, Inc.]
    Product: [Forte]
    Version of Forte: [2.0.H.1]
    Server OS: [SunOS 5.5.1]
    Client OS: [Windows 3.1]
    DBMS: [Oracle 7.2.3]
    Reproducible?: [Yes]
    Brief description: [Link Problems With Borland C++ 4.52]
    Complete description of problem or question:
    We are attempting to write a C-wrapper interface from Forte to Crystal
    Reports' Report Engine. We are using Borland C++ version 4.52.
    Unfortunately, we have been unable to get a clean compile after a day
    and half of effort. We get as far as the link stage of the
    compilation, and
    the compiler aborts with an "Unknown symbol" error message for each
    of the functions we are trying to wrapper. We have tried a number of
    ideas to fix this problem, and are continuing to try to solve it on
    our own,
    but any help would be greatly appreciated. Please have someone call
    Alaiah Chandrashekar at the number above as soon as possible.
    Thanks!
    Dale V. Georg
    Indus Consultancy Services [email protected]
    Mack Trucks, Inc. [email protected]
    James Urquhart [email protected]
    Product Manager phone: (510) 986-3513
    Forte Software, Inc. fax: (510) 869-2092

    James,
    Thanks for your quick response. Yesterday we had been running down
    the path of examining the calling conventions and trying to change them
    to PASCAL, but without much success. After receiving your note, we
    went back over it again, and this time we were able to finally to piece it
    together. In addition to editing the Forte-generated .cc file to declare
    the functions as PASCAL, we also had to turn off the compiler's case
    sensitivity. (The Crystal .lib file had the function names in mixed case,
    but the Borland compiler was generating all uppercase for the names.)
    Now I had actually tried this yesterday and it didn't work (in fact it
    generated a whole bunch of new errors) - because until we took a
    second look at it today, I didn't realize that Borland's linker actually has
    TWO flags that control case sensitivity. If you only turn one or the
    other off, things can get pretty ugly looking. As soon as we turned
    both of them off, the compile and link went beautifully. Again, thanks
    for your help; hopefully we are over the worst of it now!
    Dale
    I have seen this problem before in another context, and I'll offer the
    cause and solution in the hope that they will apply to the Crystalproblem.
    >
    Many Windows based applications rely on PASCAL callingconventions, which
    change the way parameters are handled in function/method calls.They
    indicate this by placing one of the following immediately before the
    function name in the prototype declarations:
    - pascal_far (or something like that)
    - WINAPI
    - some other typedef of either of the above
    For example:
    int WINAPI AddTotal(int valueA, int valueB);
    Unfortunately, v2.0 of Forte does not provide any mechanisms forchanging
    the calling conventions of the prototypes in the generated C++wrapper
    library, so when you compile that code, the linker fails. I think thatthe
    compiler may generate different symbols depending on callingconventions,
    so that's why it fails.
    To fix this, don't autocompile your code, but generate thedistribution, go
    into the generated C++ files and look for the function prototypes (I think
    you can search for FORTE_NO_PROTOTYPES), add WINAPI tothe appropriate
    places in the prototype definitions (see above) and use fcompile tobuild
    the library. Instructions for fcompile are in the Interfacing With
    External Systems manual.
    Hope this helps,
    James
    At 11:05 AM 5/29/97 PDT, you wrote:
    We are trying to wrapper Crystal Reports from Forte. I know that
    there
    are a number of other people in this same boat, as I've seenmessages
    posted here at various points during the past few weeks. We arehaving
    a particular problem with getting the compile to go through, whichwe
    have sent in to Forte Tech Support. I'm forwarding the message Isent
    Tech Support to this group in the hopes that someone here mayhave
    already seen and resolved a similar problem.
    Thanks in advance for any help you can offer!
    Dale V. Georg
    Indus Consultancy Services [email protected]
    Mack Trucks, Inc.
    [email protected]
    >
    >>
    Date: Wed, 28 May 97 13:47:20 PDT
    From: dg7077a
    To: Forte Technical Support
    Cc: Gardner, Steve
    Subject: Link Problems With Borland C++ 4.52
    Name of requestor: [Dale V. Georg / AlaiahChandrashekar
    Company: [Indus Consultancy Services]
    Phone for callback: [(610) 709-3956]
    Customer Site: [Mack Trucks, Inc.]
    Product: [Forte]
    Version of Forte: [2.0.H.1]
    Server OS: [SunOS 5.5.1]
    Client OS: [Windows 3.1]
    DBMS: [Oracle 7.2.3]
    Reproducible?: [Yes]
    Brief description: [Link Problems With Borland C++ 4.52]
    Complete description of problem or question:
    We are attempting to write a C-wrapper interface from Forte to
    Crystal
    >>
    Reports' Report Engine. We are using Borland C++ version 4.52.
    Unfortunately, we have been unable to get a clean compile after aday
    and half of effort. We get as far as the link stage of the
    compilation, and
    the compiler aborts with an "Unknown symbol" error message foreach
    of the functions we are trying to wrapper. We have tried a numberof
    ideas to fix this problem, and are continuing to try to solve it on
    our own,
    but any help would be greatly appreciated. Please have someonecall
    Alaiah Chandrashekar at the number above as soon as possible.
    Thanks!
    Dale V. Georg
    Indus Consultancy Services [email protected]
    Mack Trucks, [email protected]
    James Urquhart [email protected]
    Product Manager phone: (510) 986-3513
    Forte Software, Inc. fax: (510) 869-2092-----------------------------------------------------------------------------------
    Dale V. Georg
    Indus Consultancy Services [email protected]
    Mack Trucks, Inc. [email protected]
    [email protected]------------------

Maybe you are looking for

  • Uninstall of Adobe Reader 9.5.5 to install Adobe 11

    Odd problem with Adobe Reader on Windows XP SP3... I hope. I had 9.5.5 installed after a reinstall of XP, and want to upgrade to Adobe 11. When I try to uninstll from Add/Remove in my Control Panel, the process fails saying 9.5.5 is installed on Driv

  • Real time Integration between Oracle i-Procurement with MUMPS based System

    Folks, Has anybody worked on integrating Oracle Applications with any Legacy System? I'm interested in discussing real time integration between Oracle i-Procurement and Legacy System. Can 9iAS Advanced Queue be used to accomplish this? If anybody has

  • Univers Designer : JZ0C1, IOException closed the connection

    Hi ! We get a very strange error when we work in Univers Designer (we're in BO 4.1) when we're working with Derived Table. For some reason when we edit a Derived table in a universe (connected to a Sybase database), we received an error message "JZ0C

  • Restrict upload to certain extensions...???

    Hi, I have file upload program using apache commons file upload. though i want to know, how to restrict the certain files to be upload and display the messege (if extension of file selected is invalid ) while he click the upload button. Since i have

  • PDFs appear on top of everything?

    I'm trying to view a PDF in AIR using <mx:HTML location="/path/to/pdf"/> but for example if a popup loads with a modal effect, the PDF appears on-top of the popup/modal background. Does anyone know why this is happening and how to address this? Thank