Bug with code folding margin
Hi all.
I'm using SQL Developer 3.1.07.42 for win32, windows 7.
Not sure but probably bug - Tools|Preferences|Code Editor|Display|Show Code Folding Margin works only for current worksheet.
If I open any another worksheet (no matter unshared it or not) this margin comes up even if checkbox Show Code Folding Margin is unchecked.
Is it bug or feature?
I can reproduce it, but I'm not sure where the bug lies.
The worksheet and the code editor aren't the same (perhaps they should be) and the bug may be that the preference affects the current worksheet at all. The preference seems to work correctly for code editors.
Similar Messages
-
BUG? Code folding is unreliable.
Code folding for PL/SQL does not work consistently.
Some blocks won't fold although inner blocks can. When I click on the [-] for a non-folding block, all the [-] below that point in the file disappear.
Hovering over the [-] shows that for blocks which don't fold, the scope of the block is only a single line, while for blocks which do fold, the scope is shown correctly.CREATE OR REPLACE
PACKAGE BODY "CAP_PLUGINS" AS
-- $Header: h:\\cvs/capmgmt/ddl/cap_plugins.pkb,v 1.3 2005/08/30 10:41:38 jim.smith Exp $
-- $Log: cap_plugins.pkb,v $
-- Revision 1.3 2005/08/30 10:41:38 jim.smith
-- Implemented do_segment_space procedure
-- Revision 1.2 2005/08/04 13:51:28 jim.smith
-- Modified to ues new tablesructures
-- Revision 1.1 2005/08/04 12:14:26 jim.smith
-- Initial versions
-- =======================================================================
procedure do_table_counts(rundate in date,collection_name in varchar2,schema in varchar2) is
type thingy is record (
table_name varchar2(30),
object_name varchar2(30),
object_id number);
type tablelist is table of thingy;
tlist tablelist;
collection_id number;
new_co_id number;
stmt varchar2(100);
stat_rec collected_stat%rowtype;
tcount number;
begin
-- FIRST GET THE collection id
begin
select coll_id
into collection_id
from collection
where coll_name = collection_name;
exception
WHEN no_data_found then
return;
WHEN OTHERS THEN RAISE;
end;
-- get the list of tables
-- including tables which are not in collection_objects
begin
select table_name,co_name,co_id
bulk collect
into tlist
from dba_tables
left outer join ( SELECT co_name ,co_id
from collection_objects
inner join collection
on co_coll_id=coll_id
where coLL_object_type='TABLE'
and coll_name=collection_name)
on table_name=co_name
where owner=schema;
exception
when no_data_found then
return;
when others then
raise;
end;
-- Now process the list
for i in tlist.first..tlist.last
loop
-- if the table isn't already in the collection, add it
if tlist(i).object_name is null then
elx_capmgmt.create_collection_object(collection_id,tlist(i).table_name,tlist(i).table_name,new_co_id);
else
new_co_id:=tlist(i).object_id;
end if;
-- collect the stats
begin
stmt:='select count(*) from '||schema||'.'||tlist(i).table_name;
execute immediate(stmt) into tcount;
exception
when others then
raise;
end;
stat_rec.cs_co_id:=new_co_id;
stat_rec.cs_timestamp:=rundate;
stat_rec.cs_stat_value:=tcount;
elx_capmgmt.CREATE_STATISTIC(stat_rec);
end loop;
commit;
end;
procedure do_tablespace_size ( rundate in date, collection_name in varchar2 ) is
collection_id number ;
new_co_id number;
stat_rec collected_stat%rowtype;
cursor tablespace_size is
select * from (
SELECT T.TABLESPACE_NAME TBLSPC,
ROUND(sum(T.BYTES)) TOTAL
from (select * from DBA_DATA_FILES union select * from dba_temp_files) T
GROUP BY TABLESPACE_NAME
) left outer join ( SELECT coll_id,co_id,co_name
from collection_objects
inner join collection
on co_coll_id=coll_id
where coll_name=collection_name)
on tblspc = co_name;
ts2 tablespace_size%rowtype;
begin
-- FIRST GET THE collection id
begin
select coll_id
into collection_id
from collection
where coll_name = collection_name;
exception
WHEN no_data_found then
return;
WHEN OTHERS THEN RAISE;
end;
-- now get the data
begin
for ts in tablespace_size
loop
ts2:=ts;
-- if the tablespace is not part of the collection, add it
if ts.co_id is null then
elx_capmgmt.create_collection_object(collection_id,ts.tblspc,ts.tblspc,new_co_id);
else
new_co_id:=ts.co_id;
end if;
-- now load the statistics
stat_rec.cs_co_id:=new_co_id;
stat_rec.cs_timestamp:=rundate;
stat_rec.cs_stat_value:=ts.total;
elx_capmgmt.create_statistic(stat_rec);
end loop;
exception
when dup_val_on_index then
return;
when others then
raise;
end;
end;
procedure do_tablespace_usage ( rundate in date, collection_name in varchar2 ) is
cursor tablespace_usage is
select * from (
SELECT T.TABLESPACE_NAME TBLSPC,
ROUND(sum(T.BYTES)) TOTAL
from DBA_segments T
GROUP BY TABLESPACE_NAME
) left outer join ( SELECT coll_id,co_id,co_name
from collection_objects
inner join collection
on co_coll_id=coll_id
where coll_name=collection_name)
on tblspc = co_name;
collection_id number ;
new_co_id number;
stat_rec collected_stat%rowtype;
begin
-- FIRST GET THE collection id
begin
select coll_id
into collection_id
from collection
where coll_name = collection_name;
exception
WHEN OTHERS THEN RAISE;
end;
-- now get the data
begin
for ts in tablespace_usage
loop
-- if the tablespace is not part of the collection, add it
if ts.co_id is null then
elx_capmgmt.create_collection_object(collection_id,ts.tblspc,ts.tblspc,new_co_id);
else
new_co_id:=ts.co_id;
end if;
-- now load the statistics
stat_rec.cs_co_id:=new_co_id;
stat_rec.cs_timestamp:=rundate;
stat_rec.cs_stat_value:=ts.total;
elx_capmgmt.create_statistic(stat_rec);
end loop;
exception
when others then raise;
end;
end;
procedure do_tablespace_free ( rundate in date, collection_name in varchar2 ) is
cursor tablespace_free is
select * from (
SELECT T.TABLESPACE_NAME TBLSPC,
ROUND(sum(T.BYTES)) TOTAL
from DBA_free_space T
GROUP BY TABLESPACE_NAME
) left outer join ( SELECT coll_id,co_id,co_name
from collection_objects
inner join collection
on co_coll_id=coll_id
where coll_name=collection_name)
on tblspc = co_name;
collection_id number ;
new_co_id number;
stat_rec collected_stat%rowtype;
begin
-- FIRST GET THE collection id
begin
select coll_id
into collection_id
from collection
where coll_name = collection_name;
exception
WHEN OTHERS THEN RAISE;
end;
-- now get the data
begin
for ts in tablespace_free
loop
-- if the tablespace is not part of the collection, add it
if ts.co_id is null then
elx_capmgmt.create_collection_object(collection_id,ts.tblspc,ts.tblspc,new_co_id);
else
new_co_id:=ts.co_id;
end if;
-- now load the statistics
stat_rec.cs_co_id:=new_co_id;
stat_rec.cs_timestamp:=rundate;
stat_rec.cs_stat_value:=ts.total;
elx_capmgmt.create_statistic(stat_rec);
end loop;
exception
when others then raise;
end;
end;
procedure do_tablespaces(rundate in date) is
running_job_id number:=-1;
begin
elx_utilities.make_job_log_entry(running_job_id,elx_utilities.STAGE_ENTRY,0,'Capmgmt.do_tablespace_size','0');
do_tablespace_size(rundate,'TBLSPCSIZE');
elx_utilities.make_job_log_entry(running_job_id,elx_utilities.STAGE_ENTRY,0,'Capmgmt.do_tablespace_free','0');
do_tablespace_free(rundate,'TBLSPCFREE');
elx_utilities.make_job_log_entry(running_job_id,elx_utilities.STAGE_ENTRY,0,'Capmgmt.do_tablespace_used','0');
do_tablespace_usage(rundate,'TBLSPCUSED');
commit;
end;
procedure do_segment_space(rundate in date,collection_name in varchar2,schema in varchar2) is
type thingy is record (
segment_name varchar2(30),
total_size number,
coll_id number,
object_id number,
object_name varchar2(30));
type segmentlist is table of thingy;
slist segmentlist;
collection_id number;
new_co_id number;
stat_rec collected_stat%rowtype;
begin
-- FIRST GET THE collection id
begin
select coll_id
into collection_id
from collection
where coll_name = collection_name;
exception
WHEN no_data_found then
return;
WHEN OTHERS THEN RAISE;
end;
begin
select *
bulk collect
into slist
from ( select segment_name, sum(size2 ) totalsize
from ( select segment_name,' ',segment_type,bytes size2
from dba_segments
where owner=SCHEMA
and segment_type='TABLE'
union
select i.table_name,segment_name,segment_type,s.bytes size2
from dba_segments s
inner join dba_indexes i
on segment_name=index_name
where s.owner=SCHEMA
and segment_type='INDEX')
group by segment_name )
left outer join ( SELECT coll_id,co_id,co_name
from collection_objects
inner join collection
on co_coll_id=coll_id
where coLL_object_type='SEGMENT'
and coll_name=collection_name)
on segment_name = co_name;
exception
when others
then raise;
end;
for i in slist.first..slist.last
loop
-- if the table isn't already in the collection, add it
if slist(i).object_name is null then
elx_capmgmt.create_collection_object(collection_id,slist(i).segment_name,slist(i).segment_name,new_co_id);
else
new_co_id:=slist(i).object_id;
end if;
-- collect the stats
stat_rec.cs_co_id:=new_co_id;
stat_rec.cs_timestamp:=rundate;
stat_rec.cs_stat_value:=slist(i).total_size;
elx_capmgmt.CREATE_STATISTIC(stat_rec);
end loop;
null;
end;
END; -
WIKI Editor Bug with Code Blocks!
This is a reminder of a problem that was talked lot of time and still an issue!
For example this thread:
http://social.technet.microsoft.com/Forums/en-US/8645bd04-474a-468f-8c0f-0f8678689437/code-block-edit-bug?forum=reportabug
and Here is a new image to show the problem again:
>> In the left you can see there is a code block without style formatting! The format messed up.
looking at the HTML code we can notice the problem!
All the style properties in regarding the code blocks disappeared
1. the main div should be like this:
<div class="reCodeBlock" style="border:1px solid #7f9db9;width:97%;overflow-y:auto;">
but it become like this:
<div class="reCodeBlock">
each line in the code in in DIV and should be:
<div style="background-color:#ffffff;">
but it become:
<div>
>> I took a screenshot of the bug and I will take another screenshot in moment after I will fix it
[Personal Site] [Blog] [Facebook]Is this the color problem, where all colors (not just in code) that are specified in the HTML with RGB values (decimal or hex) are lost when the article is saved in certain browsers? If so, we have found that even after the article is "fixed", if it
is later saved in certain browers it will be broken again.
I thought the fix was to replace all RGB values with standard color names. However, when the article is later saved, the standard color names can get converted back to RGB values, which get lost after another save (in the wrong browser). If this is the issue,
it has been known for some time, but gets complicated and difficult to understand fully. It is believed that using Firefox or Chrome avoids the problem, but if someone later edits the article in IE, no matter how minor the edit, the colors can still be
lost.
Richard Mueller - MVP Directory Services -
Bug with code assist and "extends"?
I get the yellow "Unresolved function" marker for any functions that exist in the base CFC, when the variable reference points to another CFC that extends it. The doc says extended CFCs are supported, is this not the case?
CFB2 plugin on Eclipse Helios, Mac 32bit Cocoa.Does your "extends" attribute also have the yellow line? If so, ColdFusion Builder is unable to locate the CFC you are extending, and therefore has no knowledge of the methods available in the parent CFC.
-
Bug with "Show Constant Folding" in LV 8.2
The attached picture shows where the problem is : LV thinks that the inside nested loop generates a constant.
The vi must be run twice to generate a proper result. The first run always generates an array with a column number corresponding to the previous value of Numeric
Workaround : carefull with the new show option () and wait for the next version...
Message Edité par chilly charly le 09-01-2006 10:19 PM
Chilly Charly (aka CC)
E-List Master - Kudos glutton - Press the yellow button on the left...
Attachments:
Bug Show Constant Folding.png 20 KBFrom what I can tell, you cannot disable constant folding. You can only decide to either show or hide the hash marks that indicate folding.
Some observations:
The result is correct of you replace the control with a diagram constant.
The behavior is correct if you wire both N to the control instead of relaying throught the outer N (Image top).
The only real use to wire from inside the N is in cases where the outer loop count is determined by autoindexing only. In this scenario the bug shows again (image bottom).
Message Edited by altenbach on 09-01-2006 06:20 PM
LabVIEW Champion . Do more with less code and in less time .
Attachments:
FoldingBug.png 8 KB -
Help with code to print HTML in Java 5
Hi,
The following code works and runs successfully..
However, the printing in Java 1.4.2_03 is better than Java 5 (latest version).
i.e in particular the characters are not monospaced compared with compiling with Java 1.4.2_03. e.g si so ss squashed together.
This issue does not seem to occur when running the same code in Java 1.4.2_03. (I haven't tried other 1.4.2 java versions).
Any help would be appreciated. We really need this working under Java 5 or bust.
Here is the complete listing ... PrintHtml.java (it uses the DocumentRenderer)
and following this is the input file.
import javax.swing.text.html.HTMLDocument;
import java.net.URL;
import java.net.MalformedURLException;
import java.io.IOException;
import java.io.DataInputStream;
import java.io.InputStream;
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
import java.io.*;
import javax.swing.*;
import javax.swing.text.*;
import javax.swing.text.html.*;
import java.lang.reflect.*;
import java.awt.Graphics;
import java.awt.Graphics2D;
import java.awt.Rectangle;
import java.awt.Shape;
import java.awt.print.PageFormat;
import java.awt.print.Printable;
import java.awt.print.PrinterException;
import java.awt.print.PrinterJob;
import javax.swing.JEditorPane;
import javax.swing.text.Document;
import javax.swing.text.PlainDocument;
import javax.swing.text.View;
import javax.swing.text.html.HTMLDocument;
import java.awt.*;
import javax.swing.*;
import java.awt.print.*;
import java.text.ParseException;
public class PrintHtml {
* Utility helper to convert HTML Text to HTML Document.
* @param baseUrl URL to be used in order
* to resolve relative HTML references, in lieu of an
* HTML BASE tag. May be null, if not required or HTML
* BASE tag is to be used.
* @see jbox.view.jfx.JboxHtmlEditor
* @see jbox.utility.JboxPrint
* @see jbox.utility.JboxPrintUtil
public static HTMLDocument htmlTextToHtmlDoc(String htmlText, URL baseUrl)
try
// JboxHtmlEditorKit editorKit = new JboxHtmlEditorKit();
HTMLEditorKit editorKit = new HTMLEditorKit();
HTMLDocument doc = (HTMLDocument)editorKit.createDefaultDocument();
if (baseUrl != null)
try
doc.setBase(baseUrl);
catch(Exception e)
//JboxTraceManager.trace(e);
StringReader reader = new StringReader(htmlText);
editorKit.read(reader, doc, 0);
return doc;
catch(Exception e)
//JboxTraceManager.trace(e);
return null;
public static void main(String[] args) {
System.out.println("printing...");
HTMLDocument x = new HTMLDocument();
DocumentRenderer invoice = new DocumentRenderer();
//invoice.setScaleWidthToFit(false);
String s = "";
try {
BufferedInputStream bis = new BufferedInputStream(new FileInputStream("mark.html"));
InputStreamReader in = new InputStreamReader(bis , "ASCII");
StringWriter sw = new StringWriter();
while (true) {
int datum = in.read();
if (datum == -1) break;
sw.write(datum);
in.close();
s = sw.toString();
System.out.println("s="+s);
catch (IOException e) {
System.err.println(e);
HTMLDocument htmldoc = htmlTextToHtmlDoc(s, null);
invoice.print(htmldoc);
// the good old infamous DocumentRenderer.
/* Copyright 2002
Kei G. Gauthier
Suite 301
77 Winsor Street
Ludlow, MA 01056
class DocumentRenderer implements Printable {
/* DocumentRenderer prints objects of type Document. Text attributes, including
fonts, color, and small icons, will be rendered to a printed page.
DocumentRenderer computes line breaks, paginates, and performs other
formatting.
An HTMLDocument is printed by sending it as an argument to the
print(HTMLDocument) method. A PlainDocument is printed the same way. Other
types of documents must be sent in a JEditorPane as an argument to the
print(JEditorPane) method. Printing Documents in this way will automatically
display a print dialog.
As objects which implement the Printable Interface, instances of the
DocumentRenderer class can also be used as the argument in the setPrintable
method of the PrinterJob class. Instead of using the print() methods
detailed above, a programmer may gain access to the formatting capabilities
of this class without using its print dialog by creating an instance of
DocumentRenderer and setting the document to be printed with the
setDocument() or setJEditorPane(). The Document may then be printed by
setting the instance of DocumentRenderer in any PrinterJob.
protected int currentPage = -1; //Used to keep track of when
//the page to print changes.
protected JEditorPane jeditorPane; //Container to hold the
//Document. This object will
//be used to lay out the
//Document for printing.
protected double pageEndY = 0; //Location of the current page
//end.
protected double pageStartY = 0; //Location of the current page
//start.
protected boolean scaleWidthToFit = true; //boolean to allow control over
//whether pages too wide to fit
//on a page will be scaled.
/* The DocumentRenderer class uses pFormat and pJob in its methods. Note
that pFormat is not the variable name used by the print method of the
DocumentRenderer. Although it would always be expected to reference the
pFormat object, the print method gets its PageFormat as an argument.
protected PageFormat pFormat;
protected PrinterJob pJob;
/* The constructor initializes the pFormat and PJob variables.
public DocumentRenderer() {
pFormat = new PageFormat();
pJob = PrinterJob.getPrinterJob();
/* Method to get the current Document
public Document getDocument() {
if (jeditorPane != null) return jeditorPane.getDocument();
else return null;
/* Method to get the current choice the width scaling option.
public boolean getScaleWidthToFit() {
return scaleWidthToFit;
/* pageDialog() displays a page setup dialog.
public void pageDialog() {
pFormat = pJob.pageDialog(pFormat);
/* The print method implements the Printable interface. Although Printables
may be called to render a page more than once, each page is painted in
order. We may, therefore, keep track of changes in the page being rendered
by setting the currentPage variable to equal the pageIndex, and then
comparing these variables on subsequent calls to this method. When the two
variables match, it means that the page is being rendered for the second or
third time. When the currentPage differs from the pageIndex, a new page is
being requested.
The highlights of the process used print a page are as follows:
I. The Graphics object is cast to a Graphics2D object to allow for
scaling.
II. The JEditorPane is laid out using the width of a printable page.
This will handle line breaks. If the JEditorPane cannot be sized at
the width of the graphics clip, scaling will be allowed.
III. The root view of the JEditorPane is obtained. By examining this root
view and all of its children, printView will be able to determine
the location of each printable element of the document.
IV. If the scaleWidthToFit option is chosen, a scaling ratio is
determined, and the graphics2D object is scaled.
V. The Graphics2D object is clipped to the size of the printable page.
VI. currentPage is checked to see if this is a new page to render. If so,
pageStartY and pageEndY are reset.
VII. To match the coordinates of the printable clip of graphics2D and the
allocation rectangle which will be used to lay out the views,
graphics2D is translated to begin at the printable X and Y
coordinates of the graphics clip.
VIII. An allocation Rectangle is created to represent the layout of the
Views.
The Printable Interface always prints the area indexed by reference
to the Graphics object. For instance, with a standard 8.5 x 11 inch
page with 1 inch margins the rectangle X = 72, Y = 72, Width = 468,
and Height = 648, the area 72, 72, 468, 648 will be painted regardless
of which page is actually being printed.
To align the allocation Rectangle with the graphics2D object two
things are done. The first step is to translate the X and Y
coordinates of the graphics2D object to begin at the X and Y
coordinates of the printable clip, see step VII. Next, when printing
other than the first page, the allocation rectangle must start laying
out in coordinates represented by negative numbers. After page one,
the beginning of the allocation is started at minus the page end of
the prior page. This moves the part which has already been rendered to
before the printable clip of the graphics2D object.
X. The printView method is called to paint the page. Its return value
will indicate if a page has been rendered.
Although public, print should not ordinarily be called by programs other
than PrinterJob.
public int print(Graphics graphics, PageFormat pageFormat, int pageIndex) {
double scale = 1.0;
Graphics2D graphics2D;
View rootView;
// I
graphics2D = (Graphics2D) graphics;
disableDoubleBuffering(jeditorPane);
// II
jeditorPane.setSize((int) pageFormat.getImageableWidth(),Integer.MAX_VALUE);
jeditorPane.validate();
// III
rootView = jeditorPane.getUI().getRootView(jeditorPane);
// IV
if ((scaleWidthToFit) && (jeditorPane.getMinimumSize().getWidth() >
pageFormat.getImageableWidth())) {
scale = pageFormat.getImageableWidth()/
jeditorPane.getMinimumSize().getWidth();
graphics2D.scale(scale,scale);
// V
graphics2D.setClip((int) (pageFormat.getImageableX()/scale),
(int) (pageFormat.getImageableY()/scale),
(int) (pageFormat.getImageableWidth()/scale),
(int) (pageFormat.getImageableHeight()/scale));
// VI
if (pageIndex > currentPage) {
currentPage = pageIndex;
pageStartY += pageEndY;
pageEndY = graphics2D.getClipBounds().getHeight();
// VII
graphics2D.translate(graphics2D.getClipBounds().getX(),
graphics2D.getClipBounds().getY());
// VIII
Rectangle allocation = new Rectangle(0,
(int) -pageStartY,
(int) (jeditorPane.getMinimumSize().getWidth()),
(int) (jeditorPane.getPreferredSize().getHeight()));
// X
if (printView(graphics2D,allocation,rootView)) {
return Printable.PAGE_EXISTS;
else {
pageStartY = 0;
pageEndY = 0;
currentPage = -1;
return Printable.NO_SUCH_PAGE;
/** The speed and quality of printing suffers dramatically if
* any of the containers have double buffering turned on.
* So this turns if off globally.
* @see enableDoubleBuffering
public static void disableDoubleBuffering(Component c) {
RepaintManager currentManager = RepaintManager.currentManager(c);
currentManager.setDoubleBufferingEnabled(false);
/** Re-enables double buffering globally. */
public static void enableDoubleBuffering(Component c) {
RepaintManager currentManager = RepaintManager.currentManager(c);
currentManager.setDoubleBufferingEnabled(true);
/* print(HTMLDocument) is called to set an HTMLDocument for printing.
public void print(HTMLDocument htmlDocument) {
setDocument(htmlDocument);
printDialog();
/* print(JEditorPane) prints a Document contained within a JEDitorPane.
public void print(JEditorPane jedPane) {
setDocument(jedPane);
printDialog();
/* print(PlainDocument) is called to set a PlainDocument for printing.
public void print(PlainDocument plainDocument) {
setDocument(plainDocument);
printDialog();
/* A protected method, printDialog(), displays the print dialog and initiates
printing in response to user input.
protected void printDialog() {
if (pJob.printDialog()) {
pJob.setPrintable(this,pFormat);
try {
pJob.print();
catch (PrinterException printerException) {
pageStartY = 0;
pageEndY = 0;
currentPage = -1;
System.out.println("Error Printing Document");
/* printView is a recursive method which iterates through the tree structure
of the view sent to it. If the view sent to printView is a branch view,
that is one with children, the method calls itself on each of these
children. If the view is a leaf view, that is a view without children which
represents an actual piece of text to be painted, printView attempts to
render the view to the Graphics2D object.
I. When any view starts after the beginning of the current printable
page, this means that there are pages to print and the method sets
pageExists to true.
II. When a leaf view is taller than the printable area of a page, it
cannot, of course, be broken down to fit a single page. Such a View
will be printed whenever it intersects with the Graphics2D clip.
III. If a leaf view intersects the printable area of the graphics clip and
fits vertically within the printable area, it will be rendered.
IV. If a leaf view does not exceed the printable area of a page but does
not fit vertically within the Graphics2D clip of the current page, the
method records that this page should end at the start of the view.
This information is stored in pageEndY.
protected boolean printView(Graphics2D graphics2D, Shape allocation,
View view) {
boolean pageExists = false;
Rectangle clipRectangle = graphics2D.getClipBounds();
Shape childAllocation;
View childView;
if (view.getViewCount() > 0 &&
!view.getElement().getName().equalsIgnoreCase("td")) {
for (int i = 0; i < view.getViewCount(); i++) {
childAllocation = view.getChildAllocation(i,allocation);
if (childAllocation != null) {
childView = view.getView(i);
if (printView(graphics2D,childAllocation,childView)) {
pageExists = true;
} else {
// I
if (allocation.getBounds().getMaxY() >= clipRectangle.getY()) {
pageExists = true;
// II
if ((allocation.getBounds().getHeight() > clipRectangle.getHeight()) &&
(allocation.intersects(clipRectangle))) {
view.paint(graphics2D,allocation);
} else {
// III
if (allocation.getBounds().getY() >= clipRectangle.getY()) {
if (allocation.getBounds().getMaxY() <= clipRectangle.getMaxY()) {
view.paint(graphics2D,allocation);
} else {
// IV
if (allocation.getBounds().getY() < pageEndY) {
pageEndY = allocation.getBounds().getY();
return pageExists;
/* Method to set the content type the JEditorPane.
protected void setContentType(String type) {
jeditorPane.setContentType(type);
/* Method to set an HTMLDocument as the Document to print.
public void setDocument(HTMLDocument htmlDocument) {
jeditorPane = new JEditorPane();
setDocument("text/html",htmlDocument);
/* Method to set the Document to print as the one contained in a JEditorPane.
This method is useful when Java does not provide direct access to a
particular Document type, such as a Rich Text Format document. With this
method such a document can be sent to the DocumentRenderer class enclosed
in a JEditorPane.
public void setDocument(JEditorPane jedPane) {
jeditorPane = new JEditorPane();
setDocument(jedPane.getContentType(),jedPane.getDocument());
/* Method to set a PlainDocument as the Document to print.
public void setDocument(PlainDocument plainDocument) {
jeditorPane = new JEditorPane();
setDocument("text/plain",plainDocument);
/* Method to set the content type and document of the JEditorPane.
protected void setDocument(String type, Document document) {
setContentType(type);
jeditorPane.setDocument(document);
/* Method to set the current choice of the width scaling option.
public void setScaleWidthToFit(boolean scaleWidth) {
scaleWidthToFit = scaleWidth;
}The sample input file is "mark.html":::
<html>
<head>
<style type="text/css">
<!--
ol { list-style-type: decimal; margin-top: 10; margin-left: 50; margin-bottom: 10 }
u { text-decoration: underline }
s { text-decoration: line-through }
p { font-weight: normal; font-size: medium; margin-top: 15 }
dd p { margin-top: 0; margin-left: 40; margin-bottom: 0 }
ol li p { margin-top: 0; margin-bottom: 0 }
address { color: blue; font-style: italic }
i { font-style: italic }
h6 { font-weight: bold; font-size: xx-small; margin-top: 10; margin-bottom: 10 }
h5 { font-weight: bold; font-size: x-small; margin-top: 10; margin-bottom: 10 }
h4 { font-weight: bold; font-size: small; margin-top: 10; margin-bottom: 10 }
h3 { font-weight: bold; font-size: medium; margin-top: 10; margin-bottom: 10 }
dir li p { margin-top: 0; margin-bottom: 0 }
h2 { font-weight: bold; font-size: large; margin-top: 10; margin-bottom: 10 }
b { font-weight: bold }
h1 { font-weight: bold; font-size: x-large; margin-top: 10; margin-bottom: 10 }
a { color: blue; text-decoration: underline }
ul li ul li ul li { margin-right: 0; margin-top: 0; margin-left: 0; margin-bottom: 0 }
menu { margin-top: 10; margin-left: 40; margin-bottom: 10 }
menu li p { margin-top: 0; margin-bottom: 0 }
table table { border-color: Gray; margin-right: 0; border-style: outset; margin-top: 0; margin-left: 0; margin-bottom: 0 }
sup { vertical-align: sup }
body { margin-right: 0; font-size: 14pt; font-family: SansSerif; color: black; margin-left: 0 }
ul li ul li ul { list-style-type: square; margin-left: 25 }
blockquote { margin-right: 35; margin-top: 5; margin-left: 35; margin-bottom: 5 }
samp { font-size: small; font-family: Monospaced }
cite { font-style: italic }
sub { vertical-align: sub }
em { font-style: italic }
table table table { border-color: Gray; margin-right: 0; border-style: outset; margin-top: 0; margin-left: 0; margin-bottom: 0 }
ul li p { margin-top: 0; margin-bottom: 0 }
ul li ul li { margin-right: 0; margin-top: 0; margin-left: 0; margin-bottom: 0 }
var { font-weight: bold; font-style: italic }
table { border-color: Gray; margin-right: 7; border-style: outset; margin-top: 7; margin-left: 7; margin-bottom: 17 }
dfn { font-style: italic }
menu li { margin-right: 0; margin-top: 0; margin-left: 0; margin-bottom: 0 }
strong { font-weight: bold }
ul { list-style-type: disc; margin-top: 10; margin-left: 50; margin-bottom: 10 }
center { text-align: center }
ul li ul { list-style-type: circle; margin-left: 25 }
kbd { font-size: small; font-family: Monospaced }
dir li { margin-right: 0; margin-top: 0; margin-left: 0; margin-bottom: 0 }
th p { font-weight: bold; padding-left: 2; padding-bottom: 3; padding-right: 2; margin-top: 0; padding-top: 3 }
ul li menu { list-style-type: circle; margin-left: 25 }
dt { margin-top: 0; margin-bottom: 0 }
ol li { margin-right: 0; margin-top: 0; margin-left: 0; margin-bottom: 0 }
li p { margin-top: 0; margin-bottom: 0 }
strike { text-decoration: line-through }
dl { margin-top: 10; margin-left: 10; margin-bottom: 10 }
tt { font-family: Monospaced }
ul li { margin-right: 0; margin-top: 0; margin-left: 0; margin-bottom: 0 }
dir { margin-top: 10; margin-left: 40; margin-bottom: 10 }
pre p { margin-top: 0 }
th { border-color: Gray; border-style: solid; padding-left: 3; padding-bottom: 3; padding-right: 1; padding-top: 1 }
pre { font-family: Monospaced; margin-top: 5; margin-bottom: 5 }
td { border-color: Gray; border-style: inset; padding-left: 3; padding-bottom: 3; padding-right: 1; padding-top: 1 }
td p { padding-left: 2; padding-bottom: 3; padding-right: 2; margin-top: 0; padding-top: 3 }
code { font-size: small; font-family: Monospaced }
small { font-size: x-small }
big { font-size: x-large }
-->
</style>
</head>
<body>
<p style="margin-top: 0">
</p>
<table width="500" cellspacing="20" border="1">
<tr>
<td height="330" valign="top">
<table border="0">
<tr>
<td>
<font size="2">This is to certify that [[Client Name]], born
on [[Client Date of Birth]], of [[Client Residential
Address]], was the holder of motor vehicle driver
licence number [[Client Licence Number]], first issued on
[[First Issue Date of Holding]] and expired on [[Holding
Expiry Date]].<br></font>
</td>
</tr>
</table>
</td>
</tr>
</table>
<table width="500" border="2">
<tr>
<td>
<table width="480" border="0">
<tr>
<td align="right">
<font size="2"><br>
<b>Fred Flintstone<br>Manager</b><br>Records Services Division<br>State
Police<br>An authorised person for the purposes of the
Road Act 1986</font>
</td>
</tr>
<tr>
<td align="left">
<font size="2"><b>User ID: wzvqv7<br>Dated: 29 November 2006</b>
</font>
</td>
</tr>
</table>
</td>
</tr>
</table>
</body>
</html>I have finally cracked it!!!!!!!!!!!!!!!!
The issue is definitely with Java Sun. "Uneven character spacing when printing JTextComponent"
It is raised on the http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6488219
And currently in OPEN state, and raised on 31 Oct 2006 and mentions it was caused by fix 4352983.
So where do we go from here. It's not good because I have tried all later version of the JVM and the issue is still there.
Why? Because it hasn't been fixed yet. Read the bug report above, as it gives more insight -- and mentions the workaround is NOT good for existing code.
So the way forward is to use an earlier version of the JVM 5.
I download the JVM version 1.5.0 (starting version) and works Ok... I would probably think version prior to 4352983 would be Ok too.
Please vote for this.... We have a workaround (use older version of the JVM).
So I am very happy. -
Problem/bug with AIR 3.0
Hi guys,
I'm here again. I got this error when I tried to publish my project with AIR 3.0.. Actually, I've created an application usign AIR 2.6 (default comes with CS 5.5). It was used to get published and I used to update it on regular basis. Few days back I had to copy AIRSDK3 folder to Adobe's program files' folder, where I renamed AIR2.6 to anything else and AIRSDK3 to AIR2.6... Today, when I tried to publish my same project, I got this following error. Hope that would help adobe (as it is beta version).
(By the way, when I renamed the folders to their original names, it worked and published).Steve,
We have seen the same thing and reported it to Forte. We have not yet
heard back with a bug report number...
For now, we have removed all comments from our sql code.
Derk
>
We have just switched from version 2.0.H.1 to version 3.0.F.2 in development,
and have discovered a bug with comments in SQL code.
Anywhere in a cursor definition, or within SQL code in a method, if we use the
multi-line comment format "/* ... */" even on a single line, then the code
compiles fine, but crashes at runtime with a "Invalid SQL Command" error. It
looks as though Forte is including the comment as part of the SQL!
Has anyone else seen this problem? We have not found it in the known bugs list
for 3.0.F.2 or the fixed bugs list for 3.0.G
This worked fine for us prior to version 2, and if we don't get it fixed in
Forte, it means a lot of rework to change the existing comments to single-line
"// ..." format.
Regards,
Steve Isaac
Senior Consultant, Information Services Group
Hydro Electric Corporation of Tasmania
4 Elizabeth St, Hobart, Australia, 7000
Phone : +61 03 6230 5161
e-mail: [email protected]
Check out: http://mama.indstate.edu/users/sodana/lucado.html
*** Derk Norton ***
*** U S WEST Communications Voice : (303) 965-8772 ***
*** 1801 California Street FAX : (303) 896-3565 ***
*** Denver, Colorado 80202 Email : [email protected] ***
********************************************************************** -
Code Folding Colors 10.1.3 EA
Hi
It doesn't seem possible to set the colors for the folding 'tooltip' popup that shows the folded code and also the folding margin colors don't seem to be changable. I always operate with a modified version of the 'twilight' scheme and some icons or items always seem unsupported for this. The cursor should be made white by default when selecting this scheme. The folding + icons can't be black either. I'm not using folding now due to this.
Regards.OK, some new discoveries...
It seems that JDev's ant integration can't correctly parse the following ant import/inheritance setup that I have, as follows:
build.xml snippet (I point JDev to this file)
<property name="shared.home" value="../client-shared"/>
<import file="${shared.home}/clientbuild.xml"/>
clientbuild.xml snippet (which is what is imported into build.xml above)
<dirname property="clientbuild.basedir"
file="${ant.file.clientbuild}"/>
<import file="${clientbuild.basedir}/commonbuild.xml"/>
JDev seems unable to correcly deal with my dirname task in clientbuild.xml. If I change the import in clientbuild.xml to be the following then I am able to see the imported targets in JDev: <import file="commonbuild.xml"/>. We need to leverage the use of dirname though, for purposes I won't go into here.
Any ideas?
Thanks,
Chris -
Code Folding - Applescript issue ?
can't find this anywhere as an issue discussed
I must be special
this is happening on Xcode 3.1.2 on 10.5.6 intel
I make an Applescript Application with a few handlers and a few if then statements
when the if then statements are on one line they seem to screw up the code folding and the list of available handlers
I have a small screenshot of it here http://www.metzinger.us/Pictures/code_folding.jpg
the Xcode window thinks handler 4 is nested in handler 1 and doesn't even mention the other two
I can fix the issue by expanding my if then statements to multiple lines with an end line
is there something else I can do besides changing all of my if then statements?
thanks
.billbump whoops
be first to answer this and win a prize
still baffled here
I've reproduced this on another xcode 3.1.2
make new applescript application
paste this as a script
if 1 = 2 then say "dooh"
if 3 = 4 then
say "dooh"
end if
the "code folding" feature of xcode is confused by the first line
having an if then statement with no "end" bums it out
seems like I'm missing something simple here
is this a known bug or am I just bugging you?
thanks
.bill -
30EA3: German language bug with user defined reports still not fixed
In 30EA2: Limited folder functionality with German language
I wrote about a bug in 30EA2. Was this message noticed by the developers?
The bug still exists in 30EA3.
In new folders for user definded reports only the options "Kopieren" and "Exportieren" (copy and export) are available, when SQL-Deverloper runs in German language mode.
A workaround is to force language to English with the line
AddVMOption -Duser.language=en
in sqldeveloper.confI made a new thread for the same bug in 3.1EA2:
3.1EA2 Old bug with German language settings still exists
I have some hope, that my problem finally got noticed by the developers. -
3.1EA2 Old bug with German language settings still exists
In the past I wrote several times about a bug in SQL Developer when running in German language mode. This bug is still not fixed in 3.1 EA2:
In new folders for user definded reports only the options "Kopieren" and "Speichern unter ..." ('Copy' and 'Cave as') are available, when SQL-Deverloper runs in German language mode. Other options like "Bearbeiten, Neuer Ordner, Neuer Bericht, Ausschneiden, Einfügen, Löschen" (Edit, New Folder, New Report, Cut, Paste, Delete) are missing. A workaround is to force language to English with the line
AddVMOption -Duser.language=en
in sqldeveloper.conf
I mentioned it first in Re: Folders with limited functionality about version 2.1.1.64 and then in 30EA2: Limited folder functionality with German language 3.0 EA2 and German language bug with user defined reports still not fixed Beta Release 3.0 EA3
Edited by: user1775992 on 22.11.2011 03:30I have raised a bug on this issue and I am actively looking into it.
-
Error MSB3073: The command exited with code -1
I am getting this error while deploying the biztalk project from visual studio using Deployment Framework for Biztalk (BTDF).
Please guide me what needs to be done. Here's the code :-
<?xml version="1.0" encoding="utf-8"?>
<!--
Deployment Framework for BizTalk
Copyright (C) 2008-14 Thomas F. Abraham, 2004-08 Scott Colestock
-->
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003" DefaultTargets="Installer" ToolsVersion="4.0">
<PropertyGroup>
<Configuration Condition="'$(Configuration)' == ''">Debug</Configuration>
<Platform Condition="'$(Platform)' == ''">x86</Platform>
<SchemaVersion>1.0</SchemaVersion>
<ProjectName>HelloWorld</ProjectName>
<ProjectVersion>1.0</ProjectVersion>
<IncludeOrchestrations>False</IncludeOrchestrations>
<IncludeTransforms>False</IncludeTransforms>
<IncludeSSO>True</IncludeSSO>
<UsingMasterBindings>True</UsingMasterBindings>
<RequireXmlPreprocessDirectives>False</RequireXmlPreprocessDirectives>
<ApplyXmlEscape>True</ApplyXmlEscape>
<SkipIISReset>True</SkipIISReset>
</PropertyGroup>
<PropertyGroup>
<!-- Properties related to building an MSI for server deployments -->
<!-- BizTalk App Version Upgrade -->
<!-- For each new product release to be deployed to your BizTalk servers: -->
<!-- 1) Increment ProductVersion -->
<!-- 2) Generate a new GUID and update ProductId with the new GUID -->
<!-- This allows the new MSI to automatically uninstall (not undeploy!) the old MSI and install the new one. -->
<ProductVersion>1.0.0</ProductVersion>
<ProductId>084986b1-d675-4383-b0ed-da2e3f4e3998</ProductId>
<!-- BizTalk App Version Upgrade -->
<ProductName>HelloWorld for BizTalk</ProductName>
<Manufacturer>Deployment Framework User</Manufacturer>
<PackageDescription>HelloWorld</PackageDescription>
<PackageComments>HelloWorld</PackageComments>
<!-- NEVER change the ProductUpgradeCode. -->
<ProductUpgradeCode>4975288c-1b94-4d42-868b-f166cdc02224</ProductUpgradeCode>
</PropertyGroup>
<!-- Under TFS Team Build, set CustomizableOutDir property to true in TFS 2005/2008/2010 UpgradeTemplate. -->
<!-- With a workflow build, copy the default template then modify the MSBuild task for the solution build. Set OutDir to blank and -->
<!-- CommandLineArguments to String.Format("/p:SkipInvalidConfigurations=true;TeamBuildOutDir=""{0}"" {1}", BinariesDirectory, MSBuildArguments). -->
<PropertyGroup Condition="'$(Configuration)' == 'Debug'">
<DeploymentFrameworkTargetsPath>$(MSBuildExtensionsPath)\DeploymentFrameworkForBizTalk\5.0\</DeploymentFrameworkTargetsPath>
<OutputPath Condition="'$(TeamBuildOutDir)' == ''">bin\Debug\</OutputPath>
<OutputPath Condition="'$(TeamBuildOutDir)' != ''">$(TeamBuildOutDir)</OutputPath>
<DeployPDBsToGac>false</DeployPDBsToGac>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)' == 'Release'">
<DeploymentFrameworkTargetsPath>$(MSBuildExtensionsPath)\DeploymentFrameworkForBizTalk\5.0\</DeploymentFrameworkTargetsPath>
<OutputPath Condition="'$(TeamBuildOutDir)' == ''">bin\Release\</OutputPath>
<OutputPath Condition="'$(TeamBuildOutDir)' != ''">$(TeamBuildOutDir)</OutputPath>
<DeployPDBsToGac>false</DeployPDBsToGac>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)' == 'Server'">
<DeploymentFrameworkTargetsPath>Framework\</DeploymentFrameworkTargetsPath>
<!-- Get our PDBs into the GAC so we get file/line number information in stack traces. -->
<DeployPDBsToGac>true</DeployPDBsToGac>
</PropertyGroup>
<ItemGroup>
<PropsFromEnvSettings Include="SsoAppUserGroup;SsoAppAdminGroup" />
</ItemGroup>
<!-- !!! TODO !!! -->
<!-- Add ItemGroup elements that contain one or more Schemas, Orchestrations, Transforms, etc. elements that describe -->
<!-- the specific artifacts in your solution that need to be deployed. Use IntelliSense as a guide. -->
<ItemGroup>
<Schemas Include="HelloWorld.dll">
<LocationPath>..\$(ProjectName)\bin\$(Configuration)</LocationPath>
</Schemas>
</ItemGroup>
<!-- !!! TODO !!! -->
<Import Project="$(DeploymentFrameworkTargetsPath)BizTalkDeploymentFramework.targets" />
<!--
The Deployment Framework automatically packages most files into the server install MSI.
However, if there are special folders that you need to include in the MSI, you can
copy them to the folder $(RedistDir) in the CustomRedist target.
To include individual files, add an ItemGroup with AdditionalFiles elements.
-->
<Target Name="CustomRedist">
</Target>
</Project>
Error :-
Starting build...
C:\Windows\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe "C:\BTDF\Walkthrough1\HelloWorld.Deployment\Deployment.btdfproj" /nologo /t:Deploy /p:Configuration=Debug
Build started 08-04-2015 17:43:51.
Project "C:\BTDF\Walkthrough1\HelloWorld.Deployment\Deployment.btdfproj" on node 1 (Deploy target(s)).
SetModeDeploy:
DEPLOYING APPLICATION TO BIZTALK...
SetWinVer:
Running on Windows V62
Detected IIS 7
Detected 64-bit OS
GetSoftwarePaths:
Using .NET Framework Install Path 'C:\Windows\Microsoft.NET\Framework\v4.0.30319'.
Using BizTalk Install Path 'C:\Program Files (x86)\Microsoft BizTalk Server 2013\'.
Using Deployment Framework Install Path 'C:\Program Files (x86)\Deployment Framework for BizTalk 5.5\'.
Using Deployment Framework Tools Path 'C:\Program Files (x86)\Deployment Framework for BizTalk 5.5\Framework\DeployTools'.
Using BizTalk ESB Toolkit Install Path 'C:\Program Files (x86)\Microsoft BizTalk ESB Toolkit\'.
ExportSettings:
"C:\Program Files (x86)\Deployment Framework for BizTalk 5.5\Framework\DeployTools\EnvironmentSettingsExporter.exe" "C:\BTDF\Walkthrough1\HelloWorld.Deployment\EnvironmentSettings\SettingsFileGenerator.xml" "C:\BTDF\Walkthrough1\HelloWorld.Deployment\EnvironmentSettings"
Environment Settings Spreadsheet to XML Exporter 1.6.1
[http://EnvSettingsManager.codeplex.com]
Copyright (C) 2007-11 Thomas F. Abraham. All Rights Reserved.
Importing from SettingsFileGenerator.xml...
Output format is XmlPreprocess (multi-file).
Exporting to Exported_LocalSettings.xml...
Exporting to Exported_DevSettings.xml...
Exporting to Exported_TestSettings.xml...
Exporting to Exported_ProdSettings.xml...
Finished.
InitSettingsFilePath:
Using settings file C:\BTDF\Walkthrough1\HelloWorld.Deployment\EnvironmentSettings\Exported_LocalSettings.xml
SetPropertiesFromEnvironmentSettings:
Setting properties from environment settings file (C:\BTDF\Walkthrough1\HelloWorld.Deployment\EnvironmentSettings\Exported_LocalSettings.xml)
Setting property to value 'BizTalk Application Users'.
Setting property to value 'BizTalk Server Administrators'.
InitializeAppName:
BizTalk Application Name is HelloWorld
PreprocessBindings:
Checking syntax of XML file 'C:\BTDF\Walkthrough1\HelloWorld.Deployment\PortBindingsMaster.xml'...
Syntax of XML file 'C:\BTDF\Walkthrough1\HelloWorld.Deployment\PortBindingsMaster.xml' appears to be valid.
Clearing file attributes for 'PortBindings.xml'.
"C:\Program Files (x86)\Deployment Framework for BizTalk 5.5\Framework\DeployTools\xmlpreprocess.exe" /v /c /noDirectives /i:"C:\BTDF\Walkthrough1\HelloWorld.Deployment\PortBindingsMaster.xml" /o:"C:\BTDF\Walkthrough1\HelloWorld.Deployment\PortBindings.xml" /d:CurDir="C:\BTDF\Walkthrough1" /s:"C:\BTDF\Walkthrough1\HelloWorld.Deployment\EnvironmentSettings\Exported_LocalSettings.xml"
XmlPreprocess v2.0.18.0
Copyright (c) 2004-2013 Loren M Halvorson
XML File Preprocessor
Settings XML file: "C:\BTDF\Walkthrough1\HelloWorld.Deployment\EnvironmentSettings\Exported_LocalSettings.xml"
Preprocessing "C:\BTDF\Walkthrough1\HelloWorld.Deployment\PortBindingsMaster.xml" to "C:\BTDF\Walkthrough1\HelloWorld.Deployment\PortBindings.xml"...
PortBindings.xml : Set the value 'HelloWorld' of 2 node(s) matching XPath '//ApplicationName'.
"C:\Program Files (x86)\Deployment Framework for BizTalk 5.5\Framework\DeployTools\ElementTunnel.exe" /i:"C:\BTDF\Walkthrough1\HelloWorld.Deployment\PortBindings.xml" /o:"C:\BTDF\Walkthrough1\HelloWorld.Deployment\PortBindings.xml" /x:"C:\Program Files (x86)\Deployment Framework for BizTalk 5.5\Framework\DeployTools\adapterXPaths.txt" /encode+
Nested XML Encoder/Decoder v5.5.100.0
Copyright (C) 2005-2014 Scott Colestock, Tim Rayburn, Thomas F. Abraham
XML encodes/decodes content of element(s) by XPath. Applies escaping rules such
as > for '<'. Namespace decls, PIs, etc. of nested XML are not preserved.
XPaths : 16
Transformed Nodes : 0
Empty Nodes (skipped) : 3
No Transform Req'd (skipped) : 3
Total Matched Nodes : 6
Complete - output file has been saved.
Checking syntax of XML file 'C:\BTDF\Walkthrough1\HelloWorld.Deployment\PortBindings.xml'...
Syntax of XML file 'C:\BTDF\Walkthrough1\HelloWorld.Deployment\PortBindings.xml' appears to be valid.
DeployFileAdapterPhysicalPaths:
Configuring FILE adapter physical paths from binding file PortBindings.xml...
Processing FILE adapter physical paths (Send)...
Setting up path 'C:\BTDF\Walkthrough1\Out'...
Directory already exists.
Granted 'BUILTIN\Users' Full Access permissions.
Processing FILE adapter physical paths (Receive)...
Setting up path 'C:\BTDF\Walkthrough1\In'...
Directory already exists.
Granted 'BUILTIN\Users' Full Access permissions.
TerminateServiceInstancesConditional:
Attempting to terminate all service instances for BizTalk app 'HelloWorld'...
Terminated 0 service instances for BizTalk app 'HelloWorld'.
VerifyBizTalkAppExists:
Checking for existence of BizTalk application 'HelloWorld'...
Did not find BizTalk application 'HelloWorld'.
DeployAppDefinition:
BTSTask.exe AddApp -ApplicationName:"HelloWorld" -Description:"HelloWorld"
Microsoft (R) BizTalk Application Deployment Utility Version 3.10.229.0
Copyright (c) 2013 Microsoft Corporation. All rights reserved.
Information: Adding new BizTalk application "HelloWorld" to configuration database (server="BDDBESBWMV01", database="BizTalkMgmtDb")...
Information: Added application "HelloWorld".
Command succeeded with 0 errors, 0 warnings.
UndeploySchemas:
Adding assembly name 'HelloWorld, Version=1.0.0.0, Culture=neutral, PublicKeyToken=1a3b87e04e203d0f' to item group.
"C:\Program Files (x86)\Deployment Framework for BizTalk 5.5\Framework\DeployTools\gacutil.exe" /u "HelloWorld, Version=1.0.0.0, Culture=neutral, PublicKeyToken=1a3b87e04e203d0f"
Microsoft (R) .NET Global Assembly Cache Utility. Version 4.0.30319.1
Copyright (c) Microsoft Corporation. All rights reserved.
Number of assemblies uninstalled = 0
Number of failures = 0
DeploySchemas:
BTSTask.exe AddResource -Type:BizTalkAssembly -Source:"..\HelloWorld\bin\Debug\HelloWorld.dll" -ApplicationName:"HelloWorld" -Options:GacOnAdd,GacOnImport,GacOnInstall
Microsoft (R) BizTalk Application Deployment Utility Version 3.10.229.0
Copyright (c) 2013 Microsoft Corporation. All rights reserved.
Information: Adding resource (-Type="System.BizTalk:BizTalkAssembly" -Luid="HelloWorld, Version=1.0.0.0, Culture=neutral, PublicKeyToken=1a3b87e04e203d0f") to application "HelloWorld"...
Serialized BizTalk assembly "HelloWorld, Version=1.0.0.0, Culture=neutral, PublicKeyToken=1a3b87e04e203d0f" from "..\HelloWorld\bin\Debug\HelloWorld.dll".
Information: Validating resources (count=1)...
* Validating resource (-Type="System.BizTalk:BizTalkAssembly" -Luid="HelloWorld, Version=1.0.0.0, Culture=neutral, PublicKeyToken=1a3b87e04e203d0f")...
Information: Performing change requests...
Information: Calling BeginTypeChangeRequest for all selected resource types...
PerformingBeginChangeRequest
Adding resource (-Type="System.BizTalk:BizTalkAssembly" -Luid="HelloWorld, Version=1.0.0.0, Culture=neutral, PublicKeyToken=1a3b87e04e203d0f") to store.
Information: * Performing change request on type "System.BizTalk:BizTalkAssembly" (count=1)...
Information: Deploy server="BDDBESBWMV01" database="BizTalkMgmtDb" assembly="C:\Users\dopdevbiztalkadmin1\AppData\Local\Temp\BT\PID9536\BizTalkAssembly\4b4a4387187988d2dc55c72b16113199\HelloWorld.dll"
Information: Installed the "C:\Users\dopdevbiztalkadmin1\AppData\Local\Temp\BT\PID9536\BizTalkAssembly\4b4a4387187988d2dc55c72b16113199\HelloWorld.dll" assembly into the Global Assembly Cache. (force=True)
Information: Deploy operation succeeded.
Information: Deploy server="BDDBESBWMV01" database="BizTalkMgmtDb" assembly="C:\Users\dopdevbiztalkadmin1\AppData\Local\Temp\BT\PID9536\BizTalkAssembly\4b4a4387187988d2dc55c72b16113199\HelloWorld.dll"
Saved schema "Microsoft.Samples.BizTalk.HelloWorld.POSchema, HelloWorld, Version=1.0.0.0, Culture=neutral, PublicKeyToken=1a3b87e04e203d0f".
Saved schema "Microsoft.Samples.BizTalk.HelloWorld.InvoiceSchema, HelloWorld, Version=1.0.0.0, Culture=neutral, PublicKeyToken=1a3b87e04e203d0f".
Saved map "Microsoft.Samples.BizTalk.HelloWorld.POToInvoice".
Saved message type "Microsoft.Samples.BizTalk.HelloWorld.POMessageType".
Saved message type "Microsoft.Samples.BizTalk.HelloWorld.InvoiceMessageType".
Saved port type "Microsoft.Samples.BizTalk.HelloWorld.ReceivePOPortType".
Saved port type "Microsoft.Samples.BizTalk.HelloWorld.SendInvoicePortType".
Saved orchestration "Microsoft.Samples.BizTalk.HelloWorld.HelloSchedule".
Saved schema "Microsoft.Samples.BizTalk.HelloWorld.POSchema, HelloWorld, Version=1.0.0.0, Culture=neutral, PublicKeyToken=1a3b87e04e203d0f".
Saved schema "Microsoft.Samples.BizTalk.HelloWorld.InvoiceSchema, HelloWorld, Version=1.0.0.0, Culture=neutral, PublicKeyToken=1a3b87e04e203d0f".
Saved map "Microsoft.Samples.BizTalk.HelloWorld.POToInvoice".
Saved message type "Microsoft.Samples.BizTalk.HelloWorld.POMessageType".
Saved message type "Microsoft.Samples.BizTalk.HelloWorld.InvoiceMessageType".
Saved port type "Microsoft.Samples.BizTalk.HelloWorld.ReceivePOPortType".
Saved port type "Microsoft.Samples.BizTalk.HelloWorld.SendInvoicePortType".
Saved orchestration "Microsoft.Samples.BizTalk.HelloWorld.HelloSchedule".
Information: Installed the "C:\Users\dopdevbiztalkadmin1\AppData\Local\Temp\BT\PID9536\BizTalkAssembly\4b4a4387187988d2dc55c72b16113199\HelloWorld.dll" assembly into the Global Assembly Cache. (force=True)
Information: Deploy operation succeeded.
Information: Deployed the following 1 BizTalk assemblies:
HelloWorld.dll
EXEC : warning : If any of the assemblies were previously loaded by a Host Instance, it may be necessary to restart the Host Instance for changes to take effect. [C:\BTDF\Walkthrough1\HelloWorld.Deployment\Deployment.btdfproj]
Information: Commit the change requests...
* Performing EndTypeChangeRequest for resource type "System.BizTalk:BizTalkAssembly".
Command succeeded with 0 errors, 0 warnings.
DeploySharedAssemblies:
Deploying additional assemblies to GAC...
"C:\Program Files (x86)\Deployment Framework for BizTalk 5.5\Framework\DeployTools\gacutil.exe" /f /i "C:\Program Files (x86)\Deployment Framework for BizTalk 5.5\Framework\DeployTools\SSOSettingsFileReader.dll"
Microsoft (R) .NET Global Assembly Cache Utility. Version 4.0.30319.1
Copyright (c) Microsoft Corporation. All rights reserved.
Assembly successfully added to the cache
Finished deploying additional assemblies to GAC.
ImportBindings:
Copying file from "C:\BTDF\Walkthrough1\HelloWorld.Deployment\PortBindings.xml" to "C:\BTDF\Walkthrough1\HelloWorld.Deployment\HelloWorld_PortBindings.xml".
BTSTask.exe AddResource -Type:BizTalkBinding -Overwrite -Source:"C:\BTDF\Walkthrough1\HelloWorld.Deployment\HelloWorld_PortBindings.xml" -ApplicationName:"HelloWorld"
Microsoft (R) BizTalk Application Deployment Utility Version 3.10.229.0
Copyright (c) 2013 Microsoft Corporation. All rights reserved.
Information: Adding resource (-Type="System.BizTalk:BizTalkBinding" -Luid="HelloWorld_PortBindings.xml") to application "HelloWorld"...
Information: Validating resources (count=1)...
* Validating resource (-Type="System.BizTalk:BizTalkBinding" -Luid="HelloWorld_PortBindings.xml")...
Information: Performing change requests...
Information: Calling BeginTypeChangeRequest for all selected resource types...
PerformingBeginChangeRequest
Updating resource (-Type="System.BizTalk:BizTalkBinding" -Luid="HelloWorld_PortBindings.xml") in store.
Information: * Performing change request on type "System.BizTalk:BizTalkBinding" (count=1)...
Information: Commit the change requests...
* Performing EndTypeChangeRequest for resource type "System.BizTalk:BizTalkBinding".
Command succeeded with 0 errors, 0 warnings.
Deleting file "C:\BTDF\Walkthrough1\HelloWorld.Deployment\HelloWorld_PortBindings.xml".
BTSTask.exe ImportBindings -Source:"C:\BTDF\Walkthrough1\HelloWorld.Deployment\PortBindings.xml" -ApplicationName:"HelloWorld"
Microsoft (R) BizTalk Application Deployment Utility Version 3.10.229.0
Copyright (c) 2013 Microsoft Corporation. All rights reserved.
Information: Importing bindings "C:\BTDF\Walkthrough1\HelloWorld.Deployment\PortBindings.xml" into application "HelloWorld" in BizTalk configuration database (server="BDDBESBWMV01", database="BizTalkMgmtDb")...
Information: Imported application "HelloWorld" bindings.
Command succeeded with 0 errors, 0 warnings.
DeploySSO:
"C:\Program Files (x86)\Deployment Framework for BizTalk 5.5\Framework\DeployTools\SSOSettingsFileImport.exe" "HelloWorld" /settingsFile:"C:\BTDF\Walkthrough1\HelloWorld.Deployment\EnvironmentSettings\Exported_LocalSettings.xml" /userGroupName:"BizTalk Application Users" /adminGroupName:"BizTalk Server Administrators"
Error persisting to SSO:
System.Runtime.InteropServices.COMException (0xC0002A18): The format of the account name is not valid. Domain accounts must include the domain name. Local accounts must not include a domain or computer name.
at Microsoft.BizTalk.SSOClient.Interop.ISSOAdmin.CreateApplication(String applicationName, String description, String contactInfo, String userGroupName, String adminGroupName, Int32 flags, Int32 numFields)
at SSOSettingsFileManager.SSOHelper.CreateApp(String appName, String userGroup, String adminGroup)
at SSOSettingsFileManager.SettingsFileImport.SaveSettingsToSSO(String affiliateAppName, String inSettings, String userGroupName, String adminGroupName)
at SSOSettingsFileManager.SettingsFileImport.Main(String[] args)
C:\Program Files (x86)\MSBuild\DeploymentFrameworkForBizTalk\5.0\BizTalkDeploymentFramework.targets(1701,5): error MSB3073: The command ""C:\Program Files (x86)\Deployment Framework for BizTalk 5.5\Framework\DeployTools\SSOSettingsFileImport.exe" "HelloWorld" /settingsFile:"C:\BTDF\Walkthrough1\HelloWorld.Deployment\EnvironmentSettings\Exported_LocalSettings.xml" /userGroupName:"BizTalk Application Users" /adminGroupName:"BizTalk Server Administrators"" exited with code -1. [C:\BTDF\Walkthrough1\HelloWorld.Deployment\Deployment.btdfproj]
Done Building Project "C:\BTDF\Walkthrough1\HelloWorld.Deployment\Deployment.btdfproj" (Deploy target(s)) -- FAILED.
Build FAILED.
"C:\BTDF\Walkthrough1\HelloWorld.Deployment\Deployment.btdfproj" (Deploy target) (1) ->
(DeploySchemas target) ->
EXEC : warning : If any of the assemblies were previously loaded by a Host Instance, it may be necessary to restart the Host Instance for changes to take effect. [C:\BTDF\Walkthrough1\HelloWorld.Deployment\Deployment.btdfproj]
"C:\BTDF\Walkthrough1\HelloWorld.Deployment\Deployment.btdfproj" (Deploy target) (1) ->
(DeploySSO target) ->
C:\Program Files (x86)\MSBuild\DeploymentFrameworkForBizTalk\5.0\BizTalkDeploymentFramework.targets(1701,5): error MSB3073: The command ""C:\Program Files (x86)\Deployment Framework for BizTalk 5.5\Framework\DeployTools\SSOSettingsFileImport.exe" "HelloWorld" /settingsFile:"C:\BTDF\Walkthrough1\HelloWorld.Deployment\EnvironmentSettings\Exported_LocalSettings.xml" /userGroupName:"BizTalk Application Users" /adminGroupName:"BizTalk Server Administrators"" exited with code -1. [C:\BTDF\Walkthrough1\HelloWorld.Deployment\Deployment.btdfproj]
1 Warning(s)
1 Error(s)
Time Elapsed 00:00:54.94Hi Pratibha,
Thank you for posting in MSND forum.
Since
this forum is to discuss: Visual Studio WPF/SL Designer, Visual Studio Guidance Automation Toolkit, Developer Documentation and Help System, and Visual Studio Editor.
Based
on your issue, since it is related to the Deployment Framework for Biztalk (BTDF), so I suggest you could consult this issue directly to this Deployment Framework for Biztalk (BTDF) website:
https://biztalkdeployment.codeplex.com/discussions , you will get better support.
Thanks for your understanding.
Best Regards,
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey. -
Optimization bug with C++ inlining
Hi,
While evaluating Sun Studio 11 I have identified an optimization bug with C++ inlining.
The bug can easily be reproduced with the small program below. The program produces
wrong results with -xO2, because an inline access function always returns the value 0.0
instead of the value given on the commandline:
djerba{ru}16 : CC -o polybug polybug.cc
djerba{ru}17 : ./polybug 1.0
coeff(0): 1.000000
djerba{ru}18 : CC -o polybug -xO2 polybug.cc
djerba{ru}19 : ./polybug 1.0
coeff(0): 0.000000 <<<<<<<<<< wrong, should be 1.000000This occurs only with optimization level O2; levels below or above O2 don't
exhibit the bug.
Compiler version is
Sun C++ 5.8 Patch 121017-01 2005/12/11
on Solaris 8 / Sparc.
I include a preliminary analysis at the end.
Best Regards
Dieter R.
-------------------- polybug.cc -------------------------
// note: this may look strange, but this is a heavily stripped down
// version of actual working application code...
#include <stdio.h>
#include <stdlib.h>
class Poly {
public:
// constructor initializes number of valid coefficients to zero:
Poly() { numvalid = 0; };
~Poly() {};
// returns coefficient with index j, if valid. Otherwise returns 0.0:
double coeff(int j) {
if (j < numvalid) {
return coefficients[j];
} else {
return 0.0;
// copies contents of this Object to other Poly:
void getPoly(Poly& q) { q = *this; };
// data members:
// valid coefficients: 0 ... (numvalid - 1)
double coefficients[6];
int numvalid;
void troublefunc(Poly* pC) {
// copies Poly-Object to local Poly, extracts coefficient
// with index 0 and prints it. Should be the value given
// on commandline.
// Poly constructor, getPoly and coeff are all inline!
if (pC) {
Poly pol;
pC->getPoly(pol);
printf("coeff(0): %f\n",pol.coeff(0));
int main(int argc,char* argv[]) {
double d = atof(argv[1]);
// creates Poly object and fills coefficient with index
// 0 with the value given on commandline
Poly* pC = new Poly;
pC->coefficients[0] = d;
pC->numvalid = 1;
troublefunc(pC);
return 0;
The disassembly fragment below shows that the access function coeff(0), instead
of retrieving coefficient[0] simply returns the fixed value 0.0 (presumably because the
optimizer "thinks" numvalid holds still the value 0 from the constructor and that therefore
the comparison "if (i < numvalid)" can be omitted).
Note: disassembly created from code compiled with -features=no%except for simplicity!
00010e68 <___const_seg_900000102>:
... holds the value 0.0
00010e80 <__1cLtroublefunc6FpnEPoly__v_>:
10e80: 90 90 00 08 orcc %g0, %o0, %o0 if (pC) {
10e84: 02 40 00 14 be,pn %icc, 10ed4
10e88: 9c 03 bf 50 add %sp, -176, %sp
local Poly object at %sp + 120
numvalid at %sp + 0xa8 (168)
10e8c: c0 23 a0 a8 clr [ %sp + 0xa8 ] Poly() { numvalid = 0; };
pC->getPoly(pol):
loop copies *pC to local Poly object
10e90: 9a 03 a0 80 add %sp, 0x80, %o5
10e94: 96 10 20 30 mov 0x30, %o3
10e98: d8 5a 00 0b ldx [ %o0 + %o3 ], %o4
10e9c: 96 a2 e0 08 subcc %o3, 8, %o3
10ea0: 16 4f ff fe bge %icc, 10e98
10ea4: d8 73 40 0b stx %o4, [ %o5 + %o3 ]
pol.coeff(0):
load double value 0.0 at
___const_seg_900000102 in %f0
(and address of format string in %o0)
10ea8: 1b 00 00 43 sethi %hi(0x10c00), %o5
10eac: 15 00 00 44 sethi %hi(0x11000), %o2
10eb0: c1 1b 62 68 ldd [ %o5 + 0x268 ], %f0
10eb4: 90 02 a0 ac add %o2, 0xac, %o0
10eb8: 82 10 00 0f mov %o7, %g1
store 0.0 in %f0 to stack and load it
from there to %o1/%o2
10ebc: c1 3b a0 60 std %f0, [ %sp + 0x60 ]
10ec0: d2 03 a0 60 ld [ %sp + 0x60 ], %o1
10ec4: d4 03 a0 64 ld [ %sp + 0x64 ], %o2
10ec8: 9c 03 a0 b0 add %sp, 0xb0, %sp
call printf
10ecc: 40 00 40 92 call 21114 <_PROCEDURE_LINKAGE_TABLE_+0x54>
10ed0: 9e 10 00 01 mov %g1, %o7
10ed4: 81 c3 e0 08 retl
10ed8: 9c 03 a0 b0 add %sp, 0xb0, %sp
Hmmm... This seems to stress this formatting tags thing to its limits...Thanks for confirming this.
No, this happens neither in an Open Source package nor in an important product. This is an internal product, which is continuously developed with Sun Tools since 1992 (with incidents like this one being very rare).
I am a bit concerned with this bug though, because it might indicate a weakness in the area of C++ inlining (after all, the compiler fails to correctly aggregate a sequence of three fairly simple inline functions, something which is quite common in our application). If, on the other hand, this is a singular failure caused by unique circumstances which we have hit by sheer (un)luck, it is always possible to work around this: explicitly defining a assignment operator instead of relying on the compiler-generated one is sufficient to make the bug go away. -
How to create folder with sub folder ?
How to create folder with sub folder ?
Hi,
Questions. 17 / 17 unresolved -> very bad reputation
but ok - let's help anyway ...
1. create everything in Screen Painter
2. set FromPane and ToPane property correct.
example:
Items in MainFolder: FromPane & ToPane: 1 to 3
Items in SubFolderA (From 2 To 2) - SubFolderB (From 3 To 3)
shouldn't be that difficult
in your Code set oForm.PaneLevel when the user clicks on the Folder
lg David -
E71 Firmware Bug with USB Mass Storage.
Hi,
Just got a e71, it has the latest firmware, it's mostly good except for this bug.
If you install a new theme on a memory card and then attempt to use the USB for mass storage it will always lock the card no matter how you disconnect from the USB, it always reports Memory card in use.
What is supposed to happen is the phone is supposed to switch to a theme on the phone memory and unload the theme on the card, it does indeed switch themes, but does not unload the theme on the card, so the only way to free the card is to reboot the phone.
If anyone from Nokia is looking at this forum, you guys need to fix these little bugs with the firmware. A update to the OS the E71x is using would be nice by the way. I paid a lot of money for this unlocked phone and expect it to be rock solid.I had this problem with the memory card. All you do is set the USB connection to PC suit and not Mass Storage. If it's in PC suit mode you don't loose the memory card and it always let you access it. I never bother with mass storage anymore. Also set to don't ask if you want. I ahve no issues since I di this and am using the 200 firmware.
To transfer files to the card I go into my computer, double click the picture of the nokia E71 and then double click the memory card and access it that way. Hope this helps as it's a pain installing everything on the phone.
Just another quick tip if you download the themes through your phone like me once installed and after a re-start something may try and install and fail once your phone starts up. It will do this everytime you re-start your phone. To fix the issue you have to browse the memory card with 'view hidden folders' selected in Windows and delete certain sis files from a certain folder. I can't remember off the top of my head but it explains it in another post in this forum. I can't take the credit for it.
Ben
Maybe you are looking for
-
Hello, In various SQL versions it is possible to define a variable that will hold the name of the table and then use that variable in the FROM clause instead the actual table name. something like this: var_table(4) type c. var_table = 'tab1' select
-
Since upgrading to itunes 7 and updating the ipod software, my ipod no longer syncs with my iCal calendars - despite having the option selected to do so. I have tried restoring from scratch to no avail. It does work if I copy the calendars manually i
-
Connect String for the front end app to access Lite Database in the Client
Hi, I have been using an app developed in VB.net for accessing the Oracle Lite Database from the client machine. Can anyone please help me out how to set the Connect String in the config file of my front end app to access the Oracle Lite Database fro
-
Apple update not seeing Bootcamp 3.1 (WIN 7, 64 BIT)
ok i have this problem for a while now. I look in my "programs and features" the the control panel and it says im updated to 3.1 but when i run apple update it tells me i need to download and install 3.1. i have uninstalled and reinstalled the 3.0 fr
-
How do you import copyright controlled cds into Itunes?
Hi how do you import copyright controlled cds into Itunes? When i put the cd into my computer, Itunes does not read it like a regular cd. It does not show up in my source list. I just want to put the songs on the cd onto my ipod. The cd will play in