Problem report with no problem
I've made an additional discovery about this problem and I've amended my original post below:
For some unknown reason, after I save my Premiere Pro CC project and "Quit", I get a "Problem Report" that "Adobe Premiere Pro CC has quit unexpectedly."
This happens only if the sequence is open in the timeline. The sequence plays fine otherwise. If the sequence is closed, there's no "quit unexpectedly" message.
Either way, the project file is saved and fine. It reopens fine. But everytime I quit with the sequence open, the same problem report.
It doesn't seem to be causing any further problems other than unnerving me.
I restarted holding the option (alt) key on my Mac, but that didn't help. Any other thoughts? I can post the error thread if someone knows how to read those. Thank you.
You could ask for a manager at the Apple Store and see if they will let you try a swap, but I agree if it is a post paid plan problem with Verizon then swapping out the iPad is not going to accomplish anything. But you can try, just remember to make a Genius Bar appointment and ask for a manager.
Since this is not a problem with Verizon users on a different plan, and not at all with AT&T or Sprint, this will definitely be something Verizon will have to rectify. Apple has no authority to do that so your energies would be better spent with customer service at Verizon.
Similar Messages
-
Problem reports with graphics in 11.1.1.2.0 (64 bits)
HI.
I have a problem wiith a OFM 64 bits.
In a 32 bits machine (2003Server), i generate a report with pdf format thats run ok!.
if compiled the report in 64 bits machine (Windows2008R2), compiled correctly.
But if i run the report, don´t show the report, and show me the error: " problem to read the document (135)".
Any idea???,.
thanks!HI.
I find a partial solution.
If the param REPORTS_OUTPUTIMAGEFORMAT are GIF value, the pdfs works ok!!!.
But if the reports has a image, this image have the GIF format too.
It´s posible that only the gif format are correctly in 64 bits to generate PDFs????? -
Custom PDF/RTF reports with Cocoon (problem with special characters)
Hi all,
I've setup application (APEX 3.0.1) with some custom PDF reports (using Cocoon 2.1.10),
I'm generating my own hierarchical xml structure, using query with xmlelement() and xmlagg() functions,
I cannot use built-in xml generator, because I need to get master-detail report with sub-grouping.
Everything works fine if data in report doesn't contains special characters like "&",
but Cocoon stops processing XML data when it found special character, following error is written to cocoon log:
INFO (2007-10-02) 12:34.16:828 [sitemap.transformer.log] (/cocoon/fop_post/) http-8888-1/LogTransformer: [startElement] uri=,local=PRZEDMIOT,raw=PRZEDMIOT
INFO (2007-10-02) 12:34.16:828 [sitemap.transformer.log] (/cocoon/fop_post/) http-8888-1/LogTransformer: [startCDATA]
INFO (2007-10-02) 12:34.16:828 [sitemap.transformer.log] (/cocoon/fop_post/) http-8888-1/LogTransformer: [characters] PPHU "T
ERROR (2007-10-02) 12:34.16:828 [sitemap.generator.stream] (/cocoon/fop_post/) http-8888-1/StreamGenerator: StreamGenerator.generate()
org.xml.sax.SAXParseException: XML document structures must start and end within the same entity.
ERROR (2007-10-02) 12:34.16:828 [sitemap.handled-errors] (/cocoon/fop_post/) http-8888-1/ErrorHandlerHelper: Failed to process pipeline
at <map:serialize type="xml"> - file:/D:/oraclexe/apache-tomcat-6.0.13/webapps/cocoon/fop_post/sitemap.xmap:22:32
at <map:generate type="stream"> - file:/D:/oraclexe/apache-tomcat-6.0.13/webapps/cocoon/fop_post/sitemap.xmap:18:33
at <map:serialize type="fo2pdf"> - file:/D:/oraclexe/apache-tomcat-6.0.13/webapps/cocoon/fop_post/sitemap.xmap:58:37
at <map:transform> - file:/D:/oraclexe/apache-tomcat-6.0.13/webapps/cocoon/fop_post/sitemap.xmap:51:39
at <map:transform type="log"> - file:/D:/oraclexe/apache-tomcat-6.0.13/webapps/cocoon/fop_post/sitemap.xmap:45:35
at <map:generate> - file:/D:/oraclexe/apache-tomcat-6.0.13/webapps/cocoon/fop_post/sitemap.xmap:42:38
at <map:mount> - file:/D:/oraclexe/apache-tomcat-6.0.13/webapps/cocoon/sitemap.xmap:1034:92
org.xml.sax.SAXParseException: XML document structures must start and end within the same entity.
This error occur when Cocoon process folowing XML entity:
<PRZEDMIOT><![CDATA[PPHU "T&M" Ltd.]]></PRZEDMIOT>
I tried to escape "&" character with CDATA section, but it didn't work.
I tested following alternatives:
<pre>
<PRZEDMIOT>PPHU "T&M" Ltd</PRZEDMIOT>
<PRZEDMIOT><PPHU "T&M" Ltd.></PRZEDMIOT> --remove '<' and '>' characters
<PRZEDMIOT><![CDATA[PPHU "T&M" Ltd.]]></PRZEDMIOT>
</pre>
but I still get the same error.
Can anyone help me with this ?
Thanks
Tomasz K.Ok, I found that only '&' and '%' characters breaks Cocoon processing.
The workaround is to use replace() function and change:
'&' to '%26' and '%' to '%25', but I think that is a dirty way...
Other characters like " - 'double citation' are succesfully escaped with xmlcdata() function.
Perhaps someone know the simpler way to get Master/Detail PDF reports from APEX without using BI Publisher ???
Actually I have page process invoked by button, which generates XML data, post it to Cocoon with UTL_HTTP and save generated PDF to database table (for future use).
The same button invokes branch to URL with download procedure.
Standard APEX reporting is not very usefull for me, because I don't know how to generate "complex" documents, with several grouping sections.
I will be gratefull for any aid. -
I have a process that approves activities by clicking on the checkbox of my report. This is my first column called htmldb_application.g_f01. When I try to approve activities and I try to return the value of htmldb_application.g_f11(i), it always stays on the first value. Here is my code :
Declare
--Niveau_Approb number;
Retard number;
Date_Prevue_Active date;
Approbation1 number;
Delegue2 number;
Approbateur2 number;
Approb2 number;
l_count number;
Usager_Approb2 number;
Niveau number;
Begin
for i in 1..htmldb_application.g_f01.count
loop
select count(*)
into Usager_Approb2
from Approbateur, tache, activite
where activite.code_activite = htmldb_application.g_f01(i)
And activite.code_tache = tache.code_tache
And tache.code_tache = approbateur.code_tache
and approbateur.niveau_approbation = 2
and approbateur.pein = :USAGER_ACTIF
and code_activite not in
select code_activite
from Delegation, tache, activite
where activite.code_activite = htmldb_application.g_f01(i)
And activite.code_tache = tache.code_tache
And tache.code_tache = delegation.code_tache
and to_date(activite.date_prevue, 'YYYY-MM-DD')
between to_date(delegation.date_debut, 'YYY-MM-DD') and to_date(delegation.date_fin, 'YYYY-MM-DD')
and delegation.niveau_approbation = 2
and delegation.pein = :USAGER_ACTIF);
select count(*)
into Approbation1
from approbation
where code_activite = htmldb_application.g_f01(i)
and niveau_approbation = 1;
into Delegue2
from Delegation, tache, activite
where activite.code_activite = htmldb_application.g_f01(i)
And activite.code_tache = tache.code_tache
And tache.code_tache = delegation.code_tache
and delegation.niveau_approbation = 2;
select count(*)
into Approbateur2
from Approbateur, tache, activite
where activite.code_activite = htmldb_application.g_f01(i)
And activite.code_tache = tache.code_tache
And tache.code_tache = approbateur.code_tache
and approbateur.niveau_approbation = 2;
Niveau :=htmldb_application.g_f11(i);
RAISE_application_error(-20000,Niveau,TRUE);
IF (htmldb_application.g_f11(i)=2) And (Approbation1 <= 0)
THEN
RAISE_application_error(-20000,' An approbation from level 1 needs to be done before you approve level 2./ Une approbation de niveau 1 doit avoir été effectuée pour que vous puissiez approuver avec un niveau 2.',TRUE);
elsif (htmldb_application.g_f11(i)=1) and (usager_approb2 >= 1)
then
RAISE_application_error(-20000,'You already have to approve level 2 so you can not approve level 1/ Vous devez déjà approuver un niveau 2 alors vous ne pouvez approuver un niveau 1.',TRUE);
ELSE
Insert into Approbation (PEIN, CODE_ACTIVITE, DATE_APPROBATION, DATE_CREATION, PEIN_CREATION,
NIVEAU_APPROBATION, PEIN_REVISION, DATE_REVISION)
Values (:USAGER_ACTIF, htmldb_application.g_f01(i),sysdate, sysdate,
:USAGER_ACTIF,htmldb_application.g_f11(i), :USAGER_ACTIF, sysdate);
commit;
Select NBJRS_RETARD into Retard from tache, activite where activite.code_activite =
htmldb_application.g_f01(i) and activite.code_tache = tache.code_tache;
Select date_prevue into Date_Prevue_Active from activite where activite.code_activite =
htmldb_application.g_f01(i);
if (trunc(sysdate) > trunc(Date_Prevue_Active)+Retard)
then
if (htmldb_application.g_f11(i)= 1 ) And (Delegue2 <=0) And (
Approbateur2 <= 0)
then
Update activite set succes = 'T', STATUT_QUALITE = 'En Retard',DATE_REVISION = sysdate,
pein_revision = :USAGER_ACTIF
where code_activite = htmldb_application.g_f01(i);
elsif (htmldb_application.g_f11(i) = 1) And ((Delegue2 > 0) OR (
Approbateur2 > 0))
then
Update activite set succes = 'C', STATUT_QUALITE = '2',
DATE_REVISION = sysdate,
pein_revision = :USAGER_ACTIF
where code_activite = htmldb_application.g_f01(i);
elsif (htmldb_application.g_f11(i) = 2) and (Approbation1 > 0)
then
Update activite set succes = 'T', STATUT_QUALITE = 'En Retard',
DATE_REVISION = sysdate,
pein_revision = :USAGER_ACTIF
where code_activite = htmldb_application.g_f01(i);
end if;
else
if (htmldb_application.g_f11(i)= 1 ) And (Delegue2 <=0) And ( Approbateur2 <= 0)
then
Update activite set succes = 'T', STATUT_QUALITE = 'À Temps',
DATE_REVISION = sysdate,
pein_revision = :USAGER_ACTIF
where code_activite = htmldb_application.g_f01(i);
elsif (htmldb_application.g_f11(i) = 1) And ((Delegue2 > 0) OR ( Approbateur2 > 0))
then
Update activite set succes = 'C', STATUT_QUALITE = '2',DATE_REVISION = sysdate,
pein_revision = :USAGER_ACTIF
where code_activite = htmldb_application.g_f01(i);
elsif (htmldb_application.g_f11(i)= 2) and (Approbation1 > 0)
then
Update activite set succes = 'T', STATUT_QUALITE = 'À Temps',
DATE_REVISION = sysdate,
pein_revision = :USAGER_ACTIF
where code_activite = htmldb_application.g_f01(i) ;
end if;
end if;
Anyone can help me ??
Thanks
Chantale
commit;
end if;
-- RAISE_application_error(-20000,Niveau,TRUE);
end loop;
end;Hi all,
I have the same problem with another report, here is part of my code :
DECLARE
q VARCHAR2 (30000);
tbl VARCHAR2 (30000);
w varchar2(500);
n varchar2(3);
BEGIN
q := ' select APEX_ITEM.CHECKBOX(14,rownum) id,x.Nom,' ||
'APEX_ITEM.SELECT_LIST_FROM_LOV(11,x.IdHoraire,''' ||
'LISTE DES HORAIRES DE TRAVAIL' || ''',null,''' || 'NO' || ''') as Horaire,' ||
'APEX_ITEM.CHECKBOX(12,x.TechAccredite,' ||
'decode(x.TechAccredite,null,null,' || '''CHECKED''' || ')) Accredite, ' ||
'APEX_ITEM.TEXT(13,x.Numero,10,10,' ||
'''onblur="javascript:if(!valider_telephone(1,this.value)){alert(''' ||
'''Numero non valide''' || '''); this.focus();};"''' || ') Tel, ' ||
'APEX_ITEM.HIDDEN(10,x.IdCT) as ICT';
q := q || ' from (';
tbl := ' a valide select statement';
q := q || tbl || ' ) x ';
w := ' where ';
w := w || ' x.IdDepot = decode(:P97_IDDEPOT,-1,x.IdDepot,:P97_IDDEPOT) ';
w := w || ' or x.IdDepot is null ';
w:= w || ' order by 2';
q := q || w;
RETURN q;
END;
and I created a process :
declare
res varchar2(100);
id number;
Begin
res := 'res';
for i in 1..APEX_APPLICATION.G_F14.count loop
id := to_number(APEX_APPLICATION.G_F14(i));
res := res || ' i=' || i || ' rownum ' || id || ' th ' ||
APEX_APPLICATION.G_F11(APEX_APPLICATION.G_F14(i));
end loop;
:P97_POUB := res;
End;
My process just print the 'res' in an item named P97_POUB, so I can see if evry thing works.
But I still have a no data found error.
Benn -
Upgrade kernel26-firmware to linux-firmware report with some problem
Just now I upgrade my system from kernel26-firmware to linux-firmware, in X (Awesome WM).
After press Y and pacman start downloading, I'm afk for a while (take a bath), when I'm come back
My system freeze and proses show that system still make mkinitcpio for fallback.
I hard reset, and boot. Boot failed in 10 seconds message because it can't detect my filesystem.
Follow suggestion that I need add some parameters I can boot.
Then I check with pacman -Syu, and you can guess there's still db.lck. Then I remove it, and invoke pacman -Syu again, pacman failed because there's already file from linux-firmware on disk.
I try to downgrade, but failed with the same reason. Then I remove all folder and file that conflict, and install kernel26-firmware then upgrade to linux-firmware, now I have linux-firmware on my system.
Learn a lot from that problem, any thought guys ?! Maybe some of you have a better way to solve something like that ?!
regards,
igndenok
Edit:
After I read pacman man, there's a force option (-f). Can I used that just in case (maybe) I have the same problem again ?
Last edited by igndenok (2010-06-21 15:11:27)All I can say is that when the linux-firmware package got into [testing], I switched without problems on my laptop. I 'migrated' to the linux-firmware package on my server a few hours ago and it went smoothly too. I don't really think your problem has anything to do with the firmware package, since that doesn't trigger an initcpio rebuild, nor are there any file conflicts between both firmware packages.
-
When I want to open Notes on my macbook air, 1 second later the program stoppes and I get the following message:
Application Specific Information:
*** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Got more than one folder with folderId AAMkAGQwZWFmYWJjLTdkY2EtNDQzYy1iNjM1LTEwN2VjY2RkMmE3ZgAuAAAAAACE8u/dnKl2QrFavLE 7ajTCAQD16rvcIyGQR6i8d7b+zDcTAdQEygtWAAA='
abort() called
terminate called throwing an exception
At least, this is a part of it. I've tried a lot but the program stil doenst work. What can I do?Message was edited by: leroydouglas
better yet, try this solution:
https://discussions.apple.com/message/12351186#12351186 -
I have the health report add on running on our recently installed Windows 2012 essential server. I am receiving the following error:
The DFS Replication service stopped replication on volume C:. This occurs when a DFSR JET database is not shut down cleanly
and Auto Recovery is disabled. To resolve this issue, back up the files in the affected replicated folders, and then use the
ResumeReplication WMI method to resume replication.
Additional Information:
Volume: C:
GUID: 43AB7407-312B-11E3-93EE-806E6F6E6963
Recovery Steps
1. Back up the files in all replicated folders on the volume.
Failure to do so may result in data loss due to unexpected
conflict resolution during the recovery of the replicated folders.
2. To resume the replication for this volume, use the WMI method
ResumeReplication of the DfsrVolumeConfig class.
For example, from an elevated command prompt, type the following command:
wmic /namespace:\\root\microsoftdfs path dfsrVolumeConfig where volumeGuid="43AB7407-312B-11E3-93EE-806E6F6E6963" call ResumeReplication
For more information, see
http://support.microsoft.com/kb/2663685.
Last occurrence: Wednesday, December 11, 2013 11:02:19 PM
We currently have no other server connected to this network and I am not sure why this service would even be running, it's my understanding that this service is for replication of files or folders across servers. I don't think
I need this. Is there a way of turning this off? And what should I do about the supposedly corrupted database file.
Thanks,
RobHi,
Please confirm the question that Robert Pearman provided firstly. Meanwhile, would you please let me know if an
unexpected reboot was detected before this DFS replication issue occurred? This error may caused by the unexpected reboot. For more details, please refer to the following article.
DFS Replication service stopped replication
http://www.darrylvanderpeijl.nl/dfs-replication-service-stopped-replication/
This was done to allow users to take a backup of existing replicated folders on the volume before the recovery operation. You can follow the solution that the report
provided.
Hope this helps.
Best regards,
Justin Gu -
Hi, My english its not perfect but i'll try to explain my situation. I bought an iPad air with a problem in the monitor, yellow stains in the border with black screen and i went to an official apple repair in Portugal and they sent me for the third time an iPad with the same problem and with more problems like white graphics lines in the animation horizontal/vertical switch sides of the iPad view. At the fourth iPad that was sent with the same problem, Apple refused to replace for another iPad and said to me that was not their problem anymore and now I'm going to sue the company because nobody in Portugal can solve this situation in the costumer line. Im very sad with that, but i'm going till the end. I BOUGHT an iPad with FABRICATION PROBLEM and you guys don't care about to fix it. Thanks.
What should i do more??crusherPT wrote:
Ok, but i can't find the email of apple ireland. Someone have it?? i can't make a phone call to their line because it's not free from Portugal.
Apple doesn't do support by email. All the contact information that is available can be found by using the Contact Us link at the bottom right of every page.
If the call is not free, you may need to pay to call them. -
Report Conversion Tool - problem with logging in table OBJ_G_MIGRATION
Hello Community-Members,
since several days I am searching different BO-Communities for a solution, but I didn't find any threats about my problem.
I am new to BO XI R3.1 and I want to convert deski-reports with the report conversion tool.
I tried it directly on the server-machine and all is ok (report is converted inclusive the logging in the audit-table OBJ_G_MIGRATION).
When I try it on my client-machine, the conversion is made successfully, but there is no result in the audit-table.
On the client-machine, I use the same connection like on the server machine and on both machines, I am logged on (in the report conversion tool) with the "Administrator"-user.
Has anyone an idea? Could it be a problem of user-rights in the Oracle-DB?
kind regards
GuennyHello Denis,
thank you for your reply.
From my client machine I can successfully test the connection to the Audit-DB. With non BO-Tools like "SQL Tools1.4.1" I can also connect to that DB.
After your reply I have tested once again and I have found something else strange.
If I convert a deski-report, and the conversion-status is "not converted", the Audit-DB is written (for example: error-text = "document cannot be read" / workaround = "remove protection password if set").
But when I convert the same report together with an other report, which will result in "partially converted", nothing is written to the Audit-DB (same effect as when I convert only reports with status "partially convertet").
regards
Guenny -
Safari wont open, quit unexpectedly with a problem report
New macbook air, safari app wont open when i click on it.
Problem report keeps coming up.You may have installed the "Genieo" or "InstallMac" ad-injection malware. Follow the instructions on this Apple Support page to remove it.
Back up all data before making any changes.
Besides the files listed in the linked support article, you may also need to remove this file in the same way:
~/Library/LaunchAgents/com.genieo.completer.ltvbit.plist
If there are other items with a name that includes "Genieo" or "genieo" alongside any of those you find, remove them as well.
One of the steps in the article is to remove malicious Safari extensions. Do the equivalent in the Chrome and Firefox browsers, if you use either of those. If Safari crashes on launch, skip that step and come back to it after you've done everything else.
If you don't find any of the files or extensions listed, or if removing them doesn't stop the ad injection, then you may have one of the other kinds of adware covered by the support article. Follow the rest of the instructions in the article.
Make sure you don't repeat the mistake that led you to install the malware. Chances are you got it from an Internet cesspit such as "Softonic" or "CNET Download." Never visit either of those sites again. You might also have downloaded it from an ad in a page on some other site. The ad would probably have included a large green button labeled "Download" or "Download Now" in white letters. The button is designed to confuse people who intend to download something else on the same page. If you ever download a file that isn't obviously what you expected, delete it immediately.
In the Security & Privacy pane of System Preferences, select the General tab. The radio button marked Anywhere should not be selected. If it is, click the lock icon to unlock the settings, then select one of the other buttons. After that, don't ignore a warning that you are about to run or install an application from an unknown developer.
Still in System Preferences, open the App Store or Software Update pane and check the box marked
Install system data files and security updates
if it's not already checked. -
Problem of POP LOV in a SQL Report with pagination
I am using a pop up lov (along with some other fields), HTMLDB_ITEM.POPUP_FROM_LOV(5, null, 'EMPLOYEE_LIST', '20', '50')), in a sql report. This is a report with pagination. Whenever I select any value from pop up lov on first page of the report it gets populated properly in the corresponding text field. But from second page onwards it doesnt populate any value.
For example, my report fetches a total of 50 rows, of which I am displaying 15 at a time. The popup lov comes with a text field for each row. Whenever I do select from popup lov for 1-15 rows which come on page 1, the values come up in the text field properly, but for rows 16-30 on second page, 31-45 on third 46-50 on fourth the values do not get populated. When I changed the pagination settings to display 40 rows..the values were still coming properly on page 1(1-40 rows) and not on the next page. Any clues how to resolve this problem?good find. this is a bug that has already been identified and will be corrected in the upcoming patch release for htmldb. a good work-around for now is to use the equivalent declarative options in the tool. so rather than coding your query like...
select ename , HTMLDB_ITEM.POPUP_FROM_LOV(2, null, 'DEPARTMENT', '20', '50') as "department" from emp
...just code it like this...
select ename , null as "department" from emp
...and then use the column attributes screen for your "department" column to indicate that you'd like that col to be rendered as a "Popup LOV (named LOV)" using your DEPARTMENT list of values.
hope this helps,
raj -
A big problem of Generate report with PDF format....Urgent
I want to generate a report with pdf format through one java file, it have two page 1)gen_report.jsp 2) report_gen.java , the compliation was failed. However, i don't what the problem is .... i hope anyone can help me as it is very argent for me ....Thanks a lot
1)gen_report.jsp
<table id="AutoNumber1">
<tr>
<td background="images/top5movie.png">
<p align="center"> </p>
</td>
</tr>
<tr>
<td >
<div align="center">
<table id="AutoNumber2" >
<form method="GET" action="../report_gen" name="report_gen" target="_blank" onSubmit="javascript:return checkr1(this)">
<tr>
<td ><b>Report Description:</b></td>
<td >This report is to show the top five popular movies in cinemix for a period </td>
</tr>
<tr>
<td><b>Data scope:</b></td>
<td >Start from
<input type="text" name="start" value="2003-1-1" >to
<input type="text" name="end" value="2006-1-1" ></td>
</tr>
<tr>
<td><b>Data processing:</b></td>
<td >Show
<select name="order_by">
<option value="desc" selected>top</option>
<option value="asc">bottom</option>
</select>
5 films</td>
</tr>
<tr>
<td> <p align="center">
<input type="submit" value="View_Report" name="subm">
</p></td>
</tr>
<input type="hidden" name="report" value="r1">
</form>
<form method="GET" action="../report_gen" name="report_gen" target="_blank" onSubmit="javascript:return checkr2(this)">
<input type="hidden" name="report" value="r2">
</form>
</table>
</div>
</td>
</tr>
</table>Then my java code is here
report_gen.java
import java.io.*;
import java.net.*;
import javax.servlet.*;
import javax.servlet.http.*;
import java.util.*;
import java.sql.*;
// chart and pdf out
import java.awt.Graphics2D;
import java.awt.geom.Rectangle2D;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import org.jfree.chart.ChartFactory;
import org.jfree.chart.JFreeChart;
import org.jfree.chart.plot.PlotOrientation;
import org.jfree.data.category.DefaultCategoryDataset;
import org.jfree.data.xy.*;
import org.jfree.data.xy.XYBarDataset;
import org.jfree.data.general.DefaultPieDataset;
import org.jfree.data.statistics.SimpleHistogramDataset;
import org.jfree.data.xy.XYSeries;
import org.jfree.data.xy.XYSeriesCollection;
import com.lowagie.text.Document;
import com.lowagie.text.DocumentException;
import com.lowagie.text.Rectangle;
import com.lowagie.text.pdf.DefaultFontMapper;
import com.lowagie.text.pdf.PdfContentByte;
import com.lowagie.text.pdf.PdfTemplate;
import com.lowagie.text.pdf.PdfWriter;
import com.lowagie.text.*;
import com.lowagie.text.pdf.*;
import com.lowagie.text.pdf.PdfPCell;
public class report_gen extends HttpServlet
private final String titles[] = {"Top Five popular movies ",
"Financial cirumstance of cinemas",
"Distribution of time segment",
"Distribution of favourite movie type"
private final String descs[] = {"This report is to show the top five popular movies in cinemix for a period ",
"This report is to show the financial circumstance of each cinema site ",
"This report is to analysis the customer when is the most visit time ",
"This report is to analysis the customer which type of movie do they watch the most"
private final String bigTitle = "Cinemix";
private final String driver = "org.gjt.mm.mysql.Driver";
private final String url= "jdbc:mysql://localhost:3306/cinemix";
private final String userID = "abc";
private final String passwd = "abc";
public void init(ServletConfig config) throws ServletException
super.init(config);
protected void doGet(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException
final int width = 550;
final int height = 200;
/ title font (centre and report title)
final Font fTitle0 = FontFactory.getFont("Helvetica", 42, Font.BOLD);
final Font fTitle1 = FontFactory.getFont("Helvetica", 30, Font.BOLD);
// centre name:
final String title0 = bigTitle;
// Default category for DefaultCategoryDataset
final String cat = "data";
Connection conn;
JFreeChart chart;
String title1 = "xyz Report";
String chartDesc = "description";
String notes[] = new String[4];
String chartTitle = "so bad this is title";
String chartXTitle = "this is x";
String chartYTitle = "this is y.";
String report = request.getParameter("report");
int max=-10000;
int min=10000;
int j=0;
// do some basic checking
if (report == null || report.equals(""))
report = "-1"; // this course unknow report error message
String start = request.getParameter("start");
String end = request.getParameter("end");
String order_by = request.getParameter("order_by"); // ToDo: check invalid string
int topN = 5;
String order = (order_by.equals("desc")) ? "Top" : "Last";
String inv[] = {"08:30", "09:30", "10:30", "11:30", "12:30", "11:30", "12:30", "13:30", "14:30", "15:30", "16:30", "17:30","18:30","19:30","20:30","21:30","22:30","23:30"};
int inv_val[] = new int[inv.length - 1];
try
Class.forName(driver).newInstance();
catch(Exception e)
printE("Cannot load mysql database driver!", response);
e.printStackTrace();
return;
try
conn = DriverManager.getConnection(url, userID, passwd);
if (report.equals("r1")) { // report 1
DefaultCategoryDataset dataset = new DefaultCategoryDataset();
Statement stmt = conn.createStatement();
String sql = "select *,count(f.Name),f.Name from film f, filmDetail fd, ticket t where f.startDate > '" + start + "' and f.endDate < '" + end + "'and fd.filmID = f.filmID and fd.filmDetailID = t.filmDetailID group by f.name order by fd.filmDetailID asc limit '" +topN+"'";
ResultSet rs = stmt.executeQuery(sql);
while (rs.next())
if (rs.getInt("fd.filmDetailID") > max) max = rs.getInt("fd.filmDetailID");
if (rs.getInt("fd.filmDetailID") < min) min = rs.getInt("fd.filmDetailID");
j++;
ataset.setValue(rs.getInt("fd.filmDetailID"), cat,rs.getString("f.Name"));
title1 = titles[0];
chartDesc = descs[0];
chartTitle = order + " " + topN + " popular movie";
chartYTitle = "Box Office record";
chartXTitle = "Film Name";
gender = " ";
chart = ChartFactory.createBarChart(chartTitle, chartXTitle, chartYTitle, dataset,PlotOrientation.VERTICAL, false, true, false);
else
print("Error: I don't inderstand your request!", response);
return;
catch (SQLException e)
printE("Cannot open database connection? <br>", response);
// printE(e.toString);
e.printStackTrace();
return;
response.setContentType("application/pdf");
Document document = new Document(PageSize.A4, 5, 5, 5, 5);
try
PdfWriter writer;
writer = PdfWriter.getInstance(document, response.getOutputStream());
HeaderFooter footer = new HeaderFooter(new Phrase("Page: "), true);
footer.setBorder(Rectangle.NO_BORDER);
document.setFooter(footer);
footer.setAlignment(Element.ALIGN_CENTER);
// step 3
document.open();
document.add(getHeader(title0, title1, start, end, gender, order, topN, chartDesc));
document.add(printChart(chart, writer));
document.add(getFooter(notes));
catch(DocumentException de)
de.printStackTrace();
// step 5
document.close();
return;
}// end doGet()
/** Handles the HTTP <code>POST</code> method.
* @param request servlet request
* @param response servlet response
protected void doPost(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException
// processRequest(request, response);
/** Returns a short description of the servlet.
public String getServletInfo()
return "Generate reports for " + bigTitle;
/* To print en error and exit(?) */
private void printE(Object obj, HttpServletResponse response) throws IOException
response.setContentType("text/html");
PrintWriter out;
out = response.getWriter();
out.print(obj.toString());
out.close();
// To-Do: how to force exiting?
// create data chart
private PdfPTable getHeader(String title0, String title1, String start, String end, String sex, String order, int topN, String desc)
Font fTitle0 = FontFactory.getFont("Helvetica", 42, Font.BOLD);
Font fTitle1 = FontFactory.getFont("Helvetica", 24, Font.BOLD);
Font fTitle3 = FontFactory.getFont("Helvetica", 12, Font.BOLD);
Font fValue = FontFactory.getFont("Helvetica", 12, Font.UNDERLINE);
Paragraph parStartEnd = new Paragraph();
parStartEnd.add(new Phrase("Data start from: ", fTitle3));
parStartEnd.add(new Phrase(start, fValue));
parStartEnd.add(new Phrase(" to ", fTitle3));
parStartEnd.add(new Phrase(end, fValue));
Paragraph parGenerateDate = new Paragraph();
parGenerateDate.add(new Phrase("Report generated at: ", fTitle3));
parGenerateDate.add(new Phrase(new java.util.Date().toString(), fValue));
Paragraph parGender = new Paragraph();
parGender.add(new Phrase("Current show gender: ", fTitle3));
parGender.add(new Phrase(sex, fValue));
Paragraph parTopN = new Paragraph();
parTopN.add(new Phrase("Now is showing ", fTitle3));
parTopN.add(new Phrase(order, fValue));
parTopN.add(new Phrase(" ", fValue));
parTopN.add(new Phrase(new Integer(topN).toString(), fValue));
parTopN.add(new Phrase(" record(s)", fTitle3));
// Start main table
PdfPTable tblMain = new PdfPTable(1);
tblMain.getDefaultCell().setBorder(0);
// Print title
tblMain.getDefaultCell().setHorizontalAlignment(Element.ALIGN_CENTER);
tblMain.addCell(new Paragraph(title0, fTitle0));
tblMain.addCell(new Paragraph(title1, fTitle1));
tblMain.addCell("");
tblMain.addCell("");
tblMain.addCell("");
// Print headers data
//tblMain.getDefaultCell().setHorizontalAlignment(Element.ALIGN_RIGHT);
//tblMain.addCell(parInvoiceNum);
//tblMain.addCell("");
tblMain.getDefaultCell().setHorizontalAlignment(Element.ALIGN_LEFT);
tblMain.addCell(parStartEnd);
tblMain.addCell("");
tblMain.addCell(parGenerateDate);
tblMain.addCell("");
if (sex != " ")
tblMain.addCell(parGender);
else if(order != null && topN > 0)
tblMain.addCell(parTopN);
else
tblMain.addCell(" \n");
tblMain.addCell("");
tblMain.setWidthPercentage(96);
tblMain.addCell(new Paragraph("Description of this report:", fTitle3));
tblMain.addCell(desc);
tblMain.addCell("\n");
// Finish main table
return tblMain;
// print a chart _directly_ to pdf and return a empty Pdftable...
public PdfPTable printChart(JFreeChart chart, PdfWriter writer)
PdfContentByte cb = writer.getDirectContent();
int width = 550;
int height = 450;
PdfTemplate tp = cb.createTemplate(width, height);
Graphics2D g2d = tp.createGraphics(width, height, new DefaultFontMapper());
Rectangle2D r2d = new Rectangle2D.Double(0, 0, width, height); //->,
chart.draw(g2d, r2d);
g2d.dispose();
cb.addTemplate(tp, 20, 170);
// quick method to push down the footer text
// the only things this method return
PdfPTable tblDownDown = new PdfPTable(1);
tblDownDown.getDefaultCell().setBorder(0);
tblDownDown.addCell(" \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n");
tblDownDown.addCell(" \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n");
tblDownDown.addCell(" \n \n \n \n \n \n");
return tblDownDown;
public PdfPTable getFooter(String notes[])
Font fNote = FontFactory.getFont("Helvetica", 14, Font.UNDERLINE);
Font fComment = FontFactory.getFont("Helvetica", 12, Font.ITALIC);
Font fTitle1 = FontFactory.getFont("Helvetica", 30, Font.ITALIC);
// Start footer table
PdfPTable tblFooter = new PdfPTable(1);
tblFooter.getDefaultCell().setBorder(0);
if (notes != null)
tblFooter.addCell(new Paragraph("Notes:", fNote));
tblFooter.addCell("");
tblFooter.addCell("");
tblFooter.getDefaultCell().setHorizontalAlignment(Element.ALIGN_LEFT);
for (int i=0;i<notes.length;i++)
if (notes[i] != null)
tblFooter.addCell(new Paragraph("" + (i+1) + ". " + notes[i] + "", fComment));
tblFooter.addCell("");
tblFooter.addCell("");
tblFooter.getDefaultCell().setHorizontalAlignment(Element.ALIGN_CENTER);
tblFooter.addCell(new Paragraph("- End of report -", fComment));
return tblFooter;
}Go to the cache directory and see if you can open the report directly from here (not in IE).
I have seen posts on problems with Acrobat Reader Plugin for IE (I believe it was version 6 of Reader). -
Safari keeps crashing every time I try to open a link from a different application, i.e. Mail. The trouble report says that some problem occurs with libcooliris.dylib plug-in. Can any one help?
Thanks!Dear Linc,
Thank you for the advice, John Blanchard1 and Linc Davis
As suggested in your reference thread I removed "/Library/Printers/hp/PDEs/hpPostScriptPDE.plugin" and the problem has been resolved.
I am guessing the the plug-in for the hp printers got corrupted and effected every thing, or became unsuitable when I installed an Apple update. I would be most grateful if you can confirm how the problem was coursed so I can understand and learn from this experiance.
Ash -
Custom Report with Problems and incidents
I'm trying to create a custom report of all problems and related incidents. I can query the problemDimvw table, but I need some assistance linking to the incidents. Anyone have a query or point me in a direction to join the necessary tables?
What I'm trying to get is Problem ID, Title, Description, and Incident IDs linked to it. Thanks.
ChrisI know PowerShell can help you with the Get-SCSMRelatedObject command but you would have to write a small script to get that to work en mass.
http://smlets.codeplex.com/ -
Report with subreports. Web Service/XML problem. Please help!
Hi,
I have a composite report (main report with 9 subreports). The report uses web service as datasorce and is provided with single xml file containing the schema and all the tables for the main reports and its subreports.
The problem I encounter is that i have to establish a connection for each subreport in order to get it work and it is the same connection. Moreover, I have observed that each time a subreport is drilled there is distinct call to the web service.
So, i end up having a single .rpt file which makes up to 10 unnecessary calls over http just get the same xml data ???
I've tried everything to solve this problem without any success.
Option 1: Removing subreports. Not posible because main report can not handle multiple detail section separately.
Option 2: Using multiple detail section in main report and conditionally suppress rows. Not possible
Option 3: Removing datasource from subreports and pass array variables instead. Not posible
Option 4: Remove subreports and use crosstabs in main report. Not posible
Any ideas?
Please I would greatly appreciate any input, I am getting quite desperate about this.
Thank you very much.Subreports make their own data connection, the reason why subreports are used for other data sources.
Post to the Report Design forum to help on redesigning the report
Maybe you are looking for
-
N85 & Parrot bluetooth oddities
Hi everyone, I've recently tried using my N85 with my Parrot 3200LS car kit and found a few issues that I'm wondering if there's a fix for. In short, the Parrot is not A2DP compatible....it's for calls only, but the phone tries piping everything thro
-
I recently bought an ibook g4 with osx 10.5.8 I would like to downgrade to 10.3.9. I spoke to 2 people at the genious bar. One said to buy osx 10.3 9 on amazon. another said that might not work as the upgrade to 10.5 could have made internal chang
-
Help! problem installing quick time for windows
every time I try to install the install shield wizard goes all the way to the end like it's install and then says "The wizard was interrupted before Quick Time could be completely installed. .... The system has not been modified. To install this prog
-
Setting env variables through scheduler
Hi All, I am trying to run a PERL script which makes database connection using DBI module through scheduler. The script works fine if I run it manually but from scheduler it fails because it can't fine libclnt.sh.10.1 lib file. I have LD_LIBRARY_PATH
-
Multi-language JRE via auto-download?
It seems that the JRE installed via the auto-download cab file for Windows is not the multi-language version. If I install the JRE by hand and then launch my Web Start application, I have no issues accessing other encodings like JIS_X0201. However, i