Perl - c - java munmap_chunk(): invalid pointer

I am trying to use the JNI invocation interface from within some C code which in turn is invoked from Perl (Perl -> C -> Java).
The problem is, when the Perl process ends, i end up this:
*** glibc detected *** /usr/bin/perl: munmap_chunk(): invalid pointer: 0xb68d3880 ***
======= Backtrace: =========
/lib/i686/cmov/libc.so.6(+0x6b321)[0xb7e20321]
/lib/i686/cmov/libc.so.6(+0x6c59e)[0xb7e2159e]
/usr/bin/perl(perl_destruct+0x1290)[0x807dd30]
/usr/bin/perl(main+0x95)[0x80642a5]
/lib/i686/cmov/libc.so.6(__libc_start_main+0xe6)[0xb7dcbc76]
/usr/bin/perl[0x8064171]
I am simply invoking this function once, which creates the JVM and later invokes DestroyJavaVM...
static void test( void ) {
    JavaVM *jvm;
    JNIEnv *env;
    JavaVMInitArgs vm_args;
    JavaVMOption options[ 1 ];
    options[ 0 ].optionString = "-Djava.class.path=/tmp";
    vm_args.version = JNI_VERSION_1_6;
    vm_args.nOptions = 1;
    vm_args.options = options;
    vm_args.ignoreUnrecognized = 0;
    int ret = JNI_CreateJavaVM( &jvm, ( void** ) &env, &vm_args );
    if(ret < 0)
        printf("\nUnable to Launch JVM\n");
    else {
        if( (*env)->ExceptionOccurred( env ) )
           (*env)->ExceptionDescribe( env );
        (*jvm)->DestroyJavaVM( jvm );
}Can anyone offer me any clues as to what may be happening here? I am guessing that DestroyJavaVM is not freeing the resources allocated by the JVM and this interferes with garbage collection in Perl...

I am guessing that DestroyJavaVM is not freeing the resources allocated by the JVMThat definitely won't be it, as DestroyJavaVM() currently does nothing.
I would take this in three steps:
1. write a C main() that starts and stops the JVM correctly
2. write a C test() that does nothing except get called by Perl correctly
3. Have the test() start the JVM using the same code as at (1).
I would also have a look at how you are building the C exe. In my experience on Windows, sharing the C RTL doesn't work in conjunction with the JVM. Some years ago I was a whizz at fixing this sort of thing but these days I just use a static library ;-)

Similar Messages

  • Query user ACL results in exception, PortalException, Invalid pointer AxisFault

    Hi,
    I am developing a remote portlet application in Java for plumtree portal v 5.0.3, using EDK library v 5.0. The requirement is to determine if the user accessing the application has "Admin" privileges for the portlet or not.. For this, I query User (and all the user's groups) ACL to check if the AccessLevel is Admin. This method seemed to work fine on the development environment but fails on staging environment. I have checked the SOAP-API-URI and other settings like sending Login Tokens etc, and all seems to be fine. The application is written in Java hosted on a UNIX box, while the portal is on Windows environment.
    Following is the code where the error occurs:
    IPortletContext edk = PortletContextFactory.createPortletContext(request, response); IRemoteSession remoteSession = edk.getRemotePortalSession(); //IRemoteSession remoteSession = RemoteSessionFactory.getTokenContext(edk.getRequest().getRemoteAPIEndpoint(), edk.getRequest().getLoginToken()); -- Tried this but no difference
    IPortletManager portletManager = remoteSession.getPortletManager(); logger.debug("Got Remote portal session");
    int portletId = edk.getRequest().getPortletID(); IACL acl = portletManager.queryACL(portletId);<-- This is where it breaks
    Following is the exception stacktrace that I get.
    AxisFault faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server faultString: Server was unable to process request. --> Invalid pointer faultActor: null faultDetail: stackTrace: AxisFault faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server faultString: Server was unable to process request. --> Invalid pointer faultActor: null faultDetail:
    Server was unable to process request. --> Invalid pointer at org.apache.axis.message.SOAPFaultBuilder.endElement(SOAPFaultBuilder.java:135) at org.apache.axis.encoding.DeserializationContextImpl.endElement(DeserializationContextImpl.java:949) at oracle.xml.parser.v2.NonValidatingParser.parseElement(NonValidatingParser.java:1203) at oracle.xml.parser.v2.NonValidatingParser.parseRootElement(NonValidatingParser.java:294) at oracle.xml.parser.v2.NonValidatingParser.parseDocument(NonValidatingParser.java:261) at oracle.xml.parser.v2.XMLParser.parse(XMLParser.java:147) at oracle.xml.jaxp.JXSAXParser.parse(JXSAXParser.java:286) at org.apache.axis.encoding.DeserializationContextImpl.parse(DeserializationContextImpl.java:232) at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:546) at org.apache.axis.Message.getSOAPEnvelope(Message.java:377) at org.apache.axis.client.Call.invokeEngine(Call.java:2132) at org.apache.axis.client.Call.invoke(Call.java:2102) at org.apache.axis.client.Call.invoke(Call.java:1851) at org.apache.axis.client.Call.invoke(Call.java:1777) at org.apache.axis.client.Call.invoke(Call.java:1315) at com.plumtree.remote.prc.soap.DirectoryAPISoapBindingStub.queryACL(Unknown Source) at com.plumtree.remote.prc.soap.DirectoryProcedures.QueryACL(Unknown Source) at com.plumtree.remote.prc.xp.XPACLPersistence.QueryEntries(Unknown Source) at com.plumtree.remote.prc.xp.XPACLPersistence.QueryACL(Unknown Source) at com.plumtree.remote.prc.xp.XPObjectManager.queryACL(Unknown Source) at com.plumtree.remote.prc.ObjectManagerWrapper.queryACL(Unknown Source) at com.enbridge.txb.web.shared.security.PortalAuthenticationUtil.isUserACLAdmin(PortalAuthenticationUtil.java:159) at com.enbridge.txb.web.shared.security.SetAdminPrefsAction.getAdminPrefs(SetAdminPrefsAction.java:82) at java.lang.reflect.Method.invoke(Native Method) at org.apache.struts.actions.DispatchAction.dispatchMethod(DispatchAction.java:278) at com.enbridge.txb.web.shared.BaseAction.execute(BaseAction.java:116) at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:465) at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274) at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1422) at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:505) at javax.servlet.http.HttpServlet.service(HttpServlet.java:740) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:65) at oracle.security.jazn.oc4j.JAZNFilter.doFilter(JAZNFilter.java:283) at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:560) at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:306) at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:767) at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:148) at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:72) at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:803) at java.lang.Thread.run(Unknown Source)
    Server was unable to process request. --> Invalid pointer at org.apache.axis.message.SOAPFaultBuilder.endElement(SOAPFaultBuilder.java:135) at org.apache.axis.encoding.DeserializationContextImpl.endElement(DeserializationContextImpl.java:949) at oracle.xml.parser.v2.NonValidatingParser.parseElement(NonValidatingParser.java:1203) at oracle.xml.parser.v2.NonValidatingParser.parseRootElement(NonValidatingParser.java:294) at oracle.xml.parser.v2.NonValidatingParser.parseDocument(NonValidatingParser.java:261) at oracle.xml.parser.v2.XMLParser.parse(XMLParser.java:147) at oracle.xml.jaxp.JXSAXParser.parse(JXSAXParser.java:286) at org.apache.axis.encoding.DeserializationContextImpl.parse(DeserializationContextImpl.java:232) at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:546) at org.apache.axis.Message.getSOAPEnvelope(Message.java:377) at org.apache.axis.client.Call.invokeEngine(Call.java:2132) at org.apache.axis.client.Call.invoke(Call.java:2102) at org.apache.axis.client.Call.invoke(Call.java:1851) at org.apache.axis.client.Call.invoke(Call.java:1777) at org.apache.axis.client.Call.invoke(Call.java:1315) at com.plumtree.remote.prc.soap.DirectoryAPISoapBindingStub.queryACL(Unknown Source) at com.plumtree.remote.prc.soap.DirectoryProcedures.QueryACL(Unknown Source) at com.plumtree.remote.prc.xp.XPACLPersistence.QueryEntries(Unknown Source) at com.plumtree.remote.prc.xp.XPACLPersistence.QueryACL(Unknown Source) at com.plumtree.remote.prc.xp.XPObjectManager.queryACL(Unknown Source) at com.plumtree.remote.prc.ObjectManagerWrapper.queryACL(Unknown Source) at com.enbridge.txb.web.shared.security.PortalAuthenticationUtil.isUserACLAdmin(PortalAuthenticationUtil.java:159) at com.enbridge.txb.web.shared.security.SetAdminPrefsAction.getAdminPrefs(SetAdminPrefsAction.java:82) at java.lang.reflect.Method.invoke(Native Method) at org.apache.struts.actions.DispatchAction.dispatchMethod(DispatchAction.java:278) at com.enbridge.txb.web.shared.BaseAction.execute(BaseAction.java:116) at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:465) at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274) at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1422) at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:505) at javax.servlet.http.HttpServlet.service(HttpServlet.java:740) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:65) at oracle.security.jazn.oc4j.JAZNFilter.doFilter(JAZNFilter.java:283) at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:560) at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:306) at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:767) at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:148) at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:72) at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:803) at java.lang.Thread.run(Unknown Source)
    can anyone please help me? :-(
    Thanks,Gaurav

    Hi,
    By default on CE SLD is not available. Please go through this to configure SLD
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/20c58fff-0c62-2b10-4381-9ac4d920a8cc
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/c09527da-39a7-2b10-9f99-c6a007e516a5
    Regards
    Ayyapparaj

  • PDF report : glibc detected *** free(): invalid pointer

    We are having an running a PDF report concurrent program - After a while it errors out with the following message.
    emsg:was terminated by signal 6
    Enter Password:
    *** glibc detected *** free(): invalid pointer: 0x0847b6d8 ***
    Report Builder: Release 10.1.2.3.0 - Production on Fri Jan 15 13:22:11 2010
    Copyright (c) 1982, 2005, Oracle. All rights reserved.
    Program was terminated by signal 6
    Concurrent Manager encountered an error while running Oracle*Report for your concurrent request 4459737.
    Review your concurrent request log and/or report output file for more detailed information.
    Executing request completion options...
    We see this issue in all the cloned instances. In Production system also it errors out with a different error message as below.
    emsg:was terminated by signal 6
    Enter Password:
    # An unexpected error has been detected by HotSpot Virtual Machine:
    # SIGSEGV (0xb) at pc=0xb68b6745, pid=21709, tid=2377784224
    # Java VM: Java HotSpot(TM) Server VM (1.4.2_14-b05 mixed mode)
    # Problematic frame:
    # C [libca.so.0+0x13745] cadckgt+0xa5
    # An error report file with more information is saved as hs_err_pid21709.log
    # If you would like to submit a bug report, please visit:
    # http://java.sun.com/webapps/bugreport/crash.jsp
    I ran ACTIVE USERS with PDF output option. That completed successfully though.
    Any ideas ?

    Hi,
    We are having an running a PDF report concurrent program - After a while it errors out with the following message.Is this a standard or custom concurrent program?
    Do you get any error if you change the report type to Text/PostScript?
    emsg:was terminated by signal 6
    Enter Password:
    *** glibc detected *** free(): invalid pointer: 0x0847b6d8 ***
    Report Builder: Release 10.1.2.3.0 - Production on Fri Jan 15 13:22:11 2010
    Copyright (c) 1982, 2005, Oracle. All rights reserved.
    Program was terminated by signal 6
    Concurrent Manager encountered an error while running Oracle*Report for your concurrent request 4459737.
    Review your concurrent request log and/or report output file for more detailed information.
    Executing request completion options...I would suggest you enable trace/debug and see if more details about the error are collected in the logs.
    We see this issue in all the cloned instances. In Production system also it errors out with a different error message as below.
    emsg:was terminated by signal 6
    Enter Password:
    # An unexpected error has been detected by HotSpot Virtual Machine:
    # SIGSEGV (0xb) at pc=0xb68b6745, pid=21709, tid=2377784224
    # Java VM: Java HotSpot(TM) Server VM (1.4.2_14-b05 mixed mode)
    # Problematic frame:
    # C [libca.so.0+0x13745] cadckgt+0xa5
    # An error report file with more information is saved as hs_err_pid21709.logCan you find any details about the error in this log file?
    I ran ACTIVE USERS with PDF output option. That completed successfully though. Does this mean that the issue is only with custom PDF concurrent programs?
    Regards,
    Hussein

  • Invalid Pointer

    Post Author: remdev
    CA Forum: General
    Hey all,
    I am receiving the following error message when running a report:
    AN ERROR OCCURRED WHILE GENERATING THE CRYSTAL REPORT: 0X80004003 - INVALID POINTER (ARERR 1904).
    Crystal Reports is integrated with Remedy's Action Request System Software.  Any ideas on where to look regarding this error. I have already tried reinstalling the Remedy software (v7.0.1 patch 1 and installing v7.0.1 patch2). The ODBC connection looks fine and I have poked around just about everywhere. Any clues would be appreciated.

    Hi,
    try to rebuild the package.

  • Embedding perl in Java

    Are there any good websites/tutorials about how to go about embedding/using perl code in Java?
    How is it done?
    thanks, B.

    Are there any good websites/tutorials about how to go
    about embedding/using perl code in Java?
    How is it done?
    thanks, B. Try these links:
    http://www.perl.com/cs/user/query/q/6?id_topic=29
    http://www.perldoc.com/perl5.6/pod/perlfaq3.html#How-can-I-compile-Perl-into-Java-

  • Error 500 Java.Lang.Null.Pointer Exception

    Please help me:
    I have problem with starting my portlet under portal.
    Provider is registred correctly ,portlet is added corectly on
    Portal Page ,but when I test my page I have :
    The Listener Returned the folowing message-
    Error 500 Java.Lang.Null.Pointer Exception
    Note:Portlet is compiled in JDeveloper 2.0 and there look Ok.
    Thanks

    we encountered the same error on aix4.3.3. in fact the error comes from a variable, that has not been initialized, jserv error log says the following:
    [07/11/2001 10:00:54:098 GMT+00:00] esvportal/init
    [07/11/2001 10:01:08:668 GMT+00:00] esvportal/Response status: 500 : java.lang.NullPointerException
         at oracle.portal.provider.v1.http.ServletProviderRequest.getAcceptLanguage(ServletProviderRequest.java:162)
         at oracle.portal.provider.v1.http.ServletProviderResponse.showPortlet(ServletProviderResponse.java:521)
         at oracle.portal.provider.v1.http.HttpProvider.dispatchProviderAction(HttpProvider.java:662)
         at oracle.portal.provider.v1.http.HttpProvider.service(HttpProvider.java:391)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:588)
         at org.apache.jserv.JServConnection.processRequest(JServConnection.java:402)
         at org.apache.jserv.JServConnection.run(JServConnection.java:260)
         at java.lang.Thread.run(Thread.java:481)
    i habe a public page with 4 jsp portlets and one pl/sql portlet. the plsql ist working, every one of the jsp portlets gets the "getAcceptLanguage" error

  • Invalid pointer error on setting reportviewer parameter values

    Post Author: erika
    CA Forum: General
    Hi
    I'm using the crystal reports version bundled with VS2005, everything on the web reportviewer works perfectly until I set any parameter values. I then get the following error:
    Message: "Invalid Pointer",
    Source: rptcontrollers.dll,
    Stack Trace:     at CrystalDecisions.ReportAppServer.Controllers.ReportSourceClass.GetPage(PageRequestContext pPageRequestContext)\r\n   at CrystalDecisions.ReportSource.EromReportSourceBase.GetPage(PageRequestContext pageReqContext)\r\n   at CrystalDecisions.CrystalReports.Engine.FormatEngine.GetPage(PageRequestContext reqContext)\r\n   at CrystalDecisions.ReportSource.LocalReportSourceBase.GetPage(PageRequestContext pageReqContext)\r\n   at CrystalDecisions.Web.ReportAgent.GetPage(Boolean bSeparatePages)\r\n   at CrystalDecisions.Web.CrystalReportViewer.OnPreRender(EventArgs e)
    My rptcontroller DLL version is: 10.2.0.1093
    The following code is how I set the parameters:
    ParameterFields pfsReport = new ParameterFields();
    ParameterDiscreteValue pdvReport = new ParameterDiscreteValue();
    pdvReport.Value = oReportParameterValues.ToString();
    ParameterField pfdReport = new ParameterField();
    pfdReport.CurrentValues.Add(pdvReport);
    pfsReport.Add(pfdReport);
    rpvView.ParameterFieldInfo = pfsReport; //rpvView = ReportViewer
    rpvView.ReportSource = rptReport; //rptReport = ReportDocument
    rpvView.RefreshReport();
    Has anybody got any answers to how I can fix this, or maybe another way to add the parameter values that doesn't give the same error?

    This is likely an issue with order of operations.  I would try setting the dataset first, then pass parameters.  if that is what you are already doing, reverse the order and see what happens.

  • Perl from java

    hi ..
    i want to generate a graphical report after anlysing a log file... i have parsed it with perl....but how do u get the return values into the java prog to generate the graphical report..
    pls help me... i am new to perl with java........

    How about writing the perl script such that it outputs a file of data, then write a java program that reads the data and plots it?

  • Out Of Memory & Invalid Pointer exceptions on CSV export

    Iu2019m having problems when exporting more than 1 million rows of data to a CSV format.  Iu2019m running the export from C# code (see sample code below).  Depending on the template that I use, I get either a System.OutOfMemoryException or a System.Runtime.InteropServices.COMException (Invalid pointer) error.  See the full error text below.
    This worked fine with Crystal XI but now breaks with Crystal 2008.
    Is this a known problem and are there any workarounds?
    Sample Code:
    ReportDocument rptDoc = new ReportDocument();
    rptDoc.Load("C:\somereport.rpt");
    ExportOptions opts = new ExportOptions();
    opts.ExportDestinationType = ExportDestinationType.DiskFile;
    DiskFileDestinationOptions destOpts = ExportOptions.CreateDiskFileDestinationOptions();
    destOpts.DiskFileName = "C:\outputfile.csv";
    opts.ExportDestinationOptions = destOpts;
    opts.ExportFormatType = ExportFormatType.CharacterSeparatedValues;
    rptDoc.Export(opts);
    Configuration:
    Crystal Reports 2008 (Full Version)
    C#
    .NET 3.5
    VS 2008
    Exceptions:
    System.Runtime.InteropServices.COMException occurred
      Message="Invalid pointer\r"
      Source="Analysis Server"
      ErrorCode=-2147467259
      StackTrace:
           at CrystalDecisions.ReportAppServer.Controllers.ReportSourceClass.Export(ExportOptions pExportOptions, RequestContext pRequestContext)
           at CrystalDecisions.ReportSource.EromReportSourceBase.ExportToStream(ExportRequestContext reqContext)
           at CrystalDecisions.CrystalReports.Engine.FormatEngine.ExportToStream(ExportRequestContext reqContext)
           at CrystalDecisions.CrystalReports.Engine.FormatEngine.Export(ExportRequestContext reqContext)
           at CrystalDecisions.CrystalReports.Engine.ReportDocument.Export(ExportOptions options)
    System.OutOfMemoryException occurred
      Message="Exception of type 'System.OutOfMemoryException' was thrown."
      Source="CrystalDecisions.ReportAppServer.Controllers"
      StackTrace:
           at CrystalDecisions.ReportAppServer.Controllers.ReportSourceClass.Export(ExportOptions pExportOptions, RequestContext pRequestContext)
           at CrystalDecisions.ReportSource.EromReportSourceBase.ExportToStream(ExportRequestContext reqContext)
           at CrystalDecisions.CrystalReports.Engine.FormatEngine.ExportToStream(ExportRequestContext reqContext)
           at CrystalDecisions.CrystalReports.Engine.FormatEngine.Export(ExportRequestContext reqContext)
           at CrystalDecisions.CrystalReports.Engine.ReportDocument.Export(ExportOptions options)

    Hello Ludek, Thanks for the reply.
    I am using 'Crystal Report Basic For Visual Studio 2008 - version 10.5'  version of the Crystal Report.
    I have 12 columns in my Report. Out of these 12 columns 2 columns display images (one is of size 320X240 and second one is of size 120X240).
    Some description is as :-
         When Report contain 1180 events, and when I export it as .xls( Size - 21, 492 KB i.e near about 22.5 MB) and .pdf ( Size :- 153,961 KB i.e near about 154MB) it get export properly without an error.
         When Report contan 1451 events, and when I export it as .xls (size :- 26,644 KB i.e. Near about 26.6MB) it export properly without an error. But if I try to export it as .pdf it gives " Invalid Pointer" exception.
         When Report contain 2813 events and when I export it as .xls (size :- 13, 957 KB) it get export properly without an error but this xls file does not contain the images. (If you look into size of xls for 1451 Events Report and 2813 Events Report, xls for 2813 Events Report has lower size than 1451 Events Reports, because it does not contain the images.) If I export this Report as .pdf , it gives "Invalid Pointer" exception.
         I used my own code to export the report in various formats.
        What should be done to export the large sized Reports in all possible formats?
    Thanks in advance.
    Edited by: YogeshP on Sep 2, 2009 2:20 PM

  • Compleated guided procedure task throws Java.lang.null pointer exception.

    Hello,
    Compleated guided procedure task throws Java.lang.null pointer exception in UWL.
    From UWL  tracking of finished task of guided procedures throws null pointer exception .
    Guided procedure is created in local J2EE Engine not in Back end SAP System.
    Any ideas.
    Regards
    Mark

    Hi
    If u solved the problem mentioned above please tell me g\how u managed to do it.We are facing the same issue.Completed gp shows the same exception while opening from tracking tab

  • Gnome Keyboard Properties invalid pointer

    I keep getting
    *** glibc detected *** free(): invalid pointer: 0xb74ae9a0 ***
    everytime I try to run gnome-keyboard-properties.
    On a side note, the weather report applet seems to only list North America and the Middle East as possible locations, and it seems that Alaska is the only state in the US.
    Anyone else have these problems or is it only occuring on my computers?

    I updated gnome-applets, so the weather applet should work indeed
    The gnome-keyboard-properties thingy was a bug in libxklavier 1.0.4 which returns a static declared variable as a pointer, which breaks with the new glibc. Fixed that with a patch kindly grabbed from gentoo CVS

  • Unhandled COMException: Invalid Pointer

    Hello everyone,
    The company that I'm working for has a need for their crystal reports to be exported to .PDF files with the hyperlinks being maintained. A little experimentaion has show that exporting to .rtf then converting to .pdf will maintain the hyperlinks well enough.
    I've been tasked with creating an application that does just that. It exports to temporary .rtf files, converts those files to .pdf then removes the temp file. I currently have it working, with one exception. I get an 'Unhandled COMException: Invalid pointer exception on the export command of relatively small files.
    I've done some reading on the forums, and this issue seems to have been around for a while... but I can't find a solution. What I find odd is that the other people who have seen this error usually report it happening while exporting files with 4000-5000 pages, and tons of images. The largest file that I am trying to export has 111 pages, with a small 1X3 inch logo at the top of each page.
    Now, if I remove the logo, it exports fine. But still, people have reported being able to export reports with thousands of images and pages before. I don't know why I'm having such an issue with less than 200 pages.
    One issue that I've faced that may be contributing to this is that I have to use Visual C# 2010 Express Edition. The Crystal reports SDK doesn't work with the express edition, so I've been manually adding the references as I need them. I have a licensed copy of Crystal Reports 2008, and I found the DLLs on my local drive. I don't think that they're the most recent libraries, though, as I can only use them with a target .net framework of 2.0.
    I was hoping that someone out there could point me in the direction of where I can find the most recent libraries. I've tried to get them by installing 'Crystal Reports for Visual Studio 2010', but it can't install on an express edition of VS. I think that this may solve some of my troubles... that being said, if anyone out there knows of an alternate solution, I'd love to hear from you.
    Thanks for your time,
    - Scott

    Only suggestion I have;
    Don't use 2010 Express Edition. I know, sounds flip - but really...
    The Crystal reports SDK doesn't work with the express edition, so I've been manually adding the references as I need them.
    The above gives me ebee jeebees...
    How unsupported can we get ?
    OK. So I do have one suggestion that is worth the minute you spend reading this, but after I make the suggestion, I'll lock this thread as I do not want any other posts into it. E.g.; at worst the suggestion I make breaks all licensing agreements, at best it's so far out in the unsupported land that not even the Hubble telescope can see it.
    Download the crvs2010 runtime and install it (you may be then able to manually add the references).
    32 bit MSI:
    http://downloads.businessobjects.com/akdlm/cr4vs2010/CRforVS_redist_install_32bit_13_0.zip
    64 bit MSI:
    http://downloads.businessobjects.com/akdlm/cr4vs2010/CRforVS_redist_install_64bit_13_0.zip
    I'll probably get all kids of flack for posting the suggestion... your best bet is to go to "full" version of VS2010. Express may be good for students and stuff, but CR does not work with it - except when you hack it as above. Maybe...
    - Ludek

  • Can i write on perl in java?

    can i write on perl in java?

    can i write on perl in java?Listen Sscotties, not to step on too many of your toes, but if you are going to answer the question, do it write. He did not ask how to write perl, but how to write on perl. So here is the REAL answer:
    public class IThinkThisIsHowWeWouldWritePerlInJava{
       public static void main(String []args){
         System.out.print("on perl"); // not 100% sure though, maybe someone else could help
    }

  • Java Package Invalid?

    Recently I have upgraded Oracle database to 10g from 9i.
    How to check whether any java code is invalid in backend

    Here:
    Re: Java Package Invalid?

  • PTWS Invalid Pointer

    The following code runs fine whilst using server1 (PTWS, EDK 5.0.2, Win2K) while using server2 (PTWS, EDK 5.0.2, W2K3) I'm getting that Invalid Pointer exception thrown. I'm definetly getting a login token back, since a call to portletRequest.GetLoginToken() comes back fine. I've done a diff on the PTWS directories on both servers and they're both the same. I've checked the portal50 DSN and it too connects just fine. Anyone have an idea on what could be causing this?
    IPortletContext portletContext = PortletContextFactory.CreatePortletContext(this.Request, this.Response);IPortletRequest portletRequest = portletContext.GetRequest();IPortletResponse portletResponse = portletContext.GetResponse(); IRemoteSession prcSession = RemoteSessionFactory.GetTokenContext(new Uri("http://server2/ptapi/QueryInterfaceAPI.asmx"), portletRequest.GetLoginToken()); IUserManager userMgr = prcSession.GetUserManager();
    foreach(int groupID in userMgr.GetCurrentUserGroups()){ Response.Write (groupID + "<br>");}
    Response from server:
    HTTP/1.1 100 Continue
    HTTP/1.1 500 Internal Server Error.Date: Thu, 14 Jul 2005 00:23:31 GMTServer: Microsoft-IIS/6.0X-Powered-By: ASP.NETX-AspNet-Version: 1.1.4322Cache-Control: privateContent-Type: text/xml; charset=utf-8Content-Length: 978
    <?xml version="1.0" encoding="utf-8"?><soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <soap:Body> <soap:Fault> <faultcode>soap:Server</faultcode> <faultstring>System.Web.Services.Protocols.SoapException: Server was unable to process request. ---> System.NullReferenceException: Invalid pointer at com.plumtree.server.helper.IPTSession.Reconnect(String bstrToken) at com.plumtree.server.CIPTSession.Reconnect(String bstrToken) at com.plumtree.soap.basic.PTSoapAPIImplBasic.createSession(String sLoginToken) at com.plumtree.soap.basic.SessionAPIImplBasic.getCurrentUserGroupMembership(String sLoginToken) at SessionAPI.SessionAPI.getCurrentUserGroupMembership(String sLoginToken) --- End of inner exception stack trace ---</faultstring> <detail /> </soap:Fault> </soap:Body></soap:Envelope>

    It is possible the clocks are out of sync between your portal issuing the request to your portlet and the WS Server.  Make sure the clocks for the machines hosting your portal and WS Server are synced up.
    Also, you might want to trying increasing the duration of the login token.  In your Remote Portlet Web Service administration screen, where you configure it to sent the login token, there is a box that says &#034;5 minutes&#034; as the token's default duration.  Increase it to say 15 to better your chances.
    It is also possible that the new WS Server itself has a problem.

Maybe you are looking for

  • No menu items

    Hi, I just installed the latest OSX software updates, and since restarting none of the menus are in the menus bar, apart from my insomniaX icon and the spotlight search tab. When ever I check the 'show date and time in menu bar' in system pref for ex

  • Links in safari and Facebook to Youtube - Ios7

    The links in safari and Facebook to Youtube don't work anymore with ios7, what happened? What should I do to correct this?

  • Why can't i connect to my internet?

    When i go to connect my internet i enter my wifi password, and i know its correct, but it wont let me connect to it. How do i connect to the internet?

  • Java versus PL/SQL Stored Procedure Issues

    I am getting a result that is 30 times slower for Java when compared with PLSQL. Can you tell me if that is normal or am I missing something? Thanks in advance for your help, Gaurav Pal Java Developer, SCJP 1.1, SCJP 2, SCJD 2 Timing results --------

  • HELP!: Windows won't recognize the CD drive on my mac!

    Hi, i have just installed Windows on my iMac intel Core duo using "Q", another emulator (it's free!) I need to install some Microsoft software (ex: Word, Encarta Encyclopedia) on the Windows disk. It doesn't recognize the CD drive; I went to My Compu