Issue with Unzip in V2 with templates
HI All,
I have been using the unzip functionality successfully in my V2 environment but I have an issue. Is it possible to unzip the files which then create the page hierarchy but force then to use a specific page group template.
At present when I unzip my file, the pages are created but they use a default page layout and I want them to use my page template.
Any ideas?
Thanks
Joel.
HI All,
I have been using the unzip functionality successfully in my V2 environment but I have an issue. Is it possible to unzip the files which then create the page hierarchy but force then to use a specific page group template.
At present when I unzip my file, the pages are created but they use a default page layout and I want them to use my page template.
Any ideas?
Thanks
Joel. I too would be interested to have this kind of feature working in Portal 902
Similar Messages
-
Issue with filtering values in Web Template
I am facing a problem with filtering values in Web Template.
I have two queries based on two different data providers. One query is getting data from an Info set and the other from a Remote Cube. I have a single navigational block to filter values for both these queries but the change gets reflected only on the variable of one query. The other reflects no change and shows all the values irrespective of the filter condition.
I have tried the option of setting in the properties of the navigational block, affected data providers as both your data providers.But no effect.
Can a single navigational block be used to filter values on 2 queries which are built on different data providers? If yes, can someone please tell me how it is possible?
Kindly let me know how can I make the changes appear in both the queries?I am using SAP BI 3.5.
Thanks & Regards,
SuchitraHi Peng,
Frank also published a fix for 11g R1: http://www.oracle.com/technology/products/jdev/tips/fnimphius/rc_expand_menu_on_mouse_over.html
function showMenu(event){
var adfRichMenu = event.getSource();
adfRichMenu.getPeer().show(null,true);
}This should work.
Luc Bors -
Problem with creating order through order template
Hi experts,
We have problem with creating order by order template. Extensions data available in order template is not sent to order. Extension data are showing upto order submission form. But after sucessful creation of order extension data are no longer available in CRM-ORDEr.
We are using ISA 4.0 with CRM 4.0.
We recently applied patches on CRM server. Before patching it was working fine.
Can you please suggest us to solve this issue?
Thanks in Advance.
Regards,
Murugan Arumugam.closed.
-
I would love some help with this issue. I have configured my SharePoint foundation 2010 site to use Claims Based Auth with Certificate authentication method with ADFS 2.0 I have a test account set up with lab.acme.com to use the ACS.
When I log into my site using Windows Auth, everything is great. However when I log in and select my ACS token issuer, I get sent, to the logon page of the ADFS, after selected the ADFS method. My browser prompt me which Certificate identity I want
to use to log in and after 3-5 second
and return me the logon page with error message “Authentication failed”
I base my setup on the technet article
http://blogs.technet.com/b/speschka/archive/2010/07/30/configuring-sharepoint-2010-and-adfs-v2-end-to-end.aspx
I validated than all my certificate are valid and able to retrieve the crl
I got in eventlog id 300
The Federation Service failed to issue a token as a result of an error during processing of the WS-Trust request.
Request type: http://schemas.xmlsoap.org/ws/2005/02/trust/RST/Issue
Additional Data
Exception details:
Microsoft.IdentityModel.SecurityTokenService.FailedAuthenticationException: MSIS3019: Authentication failed. ---> System.IdentityModel.Tokens.SecurityTokenValidationException:
ID4070: The X.509 certificate 'CN=Me, OU=People, O=Acme., C=COM' chain building failed. The certificate that was used has a trust chain that cannot be verified. Replace the certificate or change the certificateValidationMode. 'A certification chain processed
correctly, but one of the CA certificates is not trusted by the policy provider.
at Microsoft.IdentityModel.X509CertificateChain.Build(X509Certificate2 certificate)
at Microsoft.IdentityModel.Tokens.X509NTAuthChainTrustValidator.Validate(X509Certificate2 certificate)
at Microsoft.IdentityModel.Tokens.X509SecurityTokenHandler.ValidateToken(SecurityToken token)
at Microsoft.IdentityModel.Tokens.SecurityTokenElement.GetSubject()
at Microsoft.IdentityServer.Service.SecurityTokenService.MSISSecurityTokenService.GetOnBehalfOfPrincipal(RequestSecurityToken request, IClaimsPrincipal callerPrincipal)
--- End of inner exception stack trace ---
at Microsoft.IdentityServer.Service.SecurityTokenService.MSISSecurityTokenService.GetOnBehalfOfPrincipal(RequestSecurityToken request, IClaimsPrincipal callerPrincipal)
at Microsoft.IdentityServer.Service.SecurityTokenService.MSISSecurityTokenService.BeginGetScope(IClaimsPrincipal principal, RequestSecurityToken request, AsyncCallback callback, Object state)
at Microsoft.IdentityModel.SecurityTokenService.SecurityTokenService.BeginIssue(IClaimsPrincipal principal, RequestSecurityToken request, AsyncCallback callback, Object state)
at Microsoft.IdentityModel.Protocols.WSTrust.WSTrustServiceContract.DispatchRequestAsyncResult..ctor(DispatchContext dispatchContext, AsyncCallback asyncCallback, Object asyncState)
at Microsoft.IdentityModel.Protocols.WSTrust.WSTrustServiceContract.BeginDispatchRequest(DispatchContext dispatchContext, AsyncCallback asyncCallback, Object asyncState)
at Microsoft.IdentityModel.Protocols.WSTrust.WSTrustServiceContract.ProcessCoreAsyncResult..ctor(WSTrustServiceContract contract, DispatchContext dispatchContext, MessageVersion messageVersion, WSTrustResponseSerializer responseSerializer, WSTrustSerializationContext
serializationContext, AsyncCallback asyncCallback, Object asyncState)
at Microsoft.IdentityModel.Protocols.WSTrust.WSTrustServiceContract.BeginProcessCore(Message requestMessage, WSTrustRequestSerializer requestSerializer, WSTrustResponseSerializer responseSerializer, String requestAction, String responseAction, String
trustNamespace, AsyncCallback callback, Object state)
System.IdentityModel.Tokens.SecurityTokenValidationException: ID4070: The X.509 certificate 'CN=Me, OU=People, O=acme., C=com' chain building
failed. The certificate that was used has a trust chain that cannot be verified. Replace the certificate or change the certificateValidationMode. 'A certification chain processed correctly, but one of the CA certificates is not trusted by the policy provider.
at Microsoft.IdentityModel.X509CertificateChain.Build(X509Certificate2 certificate)
at Microsoft.IdentityModel.Tokens.X509NTAuthChainTrustValidator.Validate(X509Certificate2 certificate)
at Microsoft.IdentityModel.Tokens.X509SecurityTokenHandler.ValidateToken(SecurityToken token)
at Microsoft.IdentityModel.Tokens.SecurityTokenElement.GetSubject()
at Microsoft.IdentityServer.Service.SecurityTokenService.MSISSecurityTokenService.GetOnBehalfOfPrincipal(RequestSecurityToken request, IClaimsPrincipal callerPrincipal)
thx
Stef71This is perfectly correct on my case I was not adding the root properly you must add the CA and the ADFS as well, which is twice you can see below my results.
on my case was :
PS C:\Users\administrator.domain> $root = New-Object System.Security.Cryptography.X509Certificates.X509Certificate2("C:\
cer\SP2K10\ad0001.cer")
PS C:\Users\administrator.domain> New-SPTrustedRootAuthority -Name "domain.ad0001" -Certificate $root
Certificate : [Subject]
CN=domain.AD0001CA, DC=domain, DC=com
[Issuer]
CN=domain.AD0001CA, DC=portal, DC=com
[Serial Number]
blablabla
[Not Before]
22/07/2014 11:32:05
[Not After]
22/07/2024 11:42:00
[Thumbprint]
blablabla
Name : domain.ad0001
TypeName : Microsoft.SharePoint.Administration.SPTrustedRootAuthority
DisplayName : domain.ad0001
Id : blablabla
Status : Online
Parent : SPTrustedRootAuthorityManager
Version : 17164
Properties : {}
Farm : SPFarm Name=SharePoint_Config
UpgradedPersistedProperties : {}
PS C:\Users\administrator.domain> $cert = New-Object System.Security.Cryptography.X509Certificates.X509Certificate2("C:\
cer\SP2K10\ADFS_Signing.cer")
PS C:\Users\administrator.domain> New-SPTrustedRootAuthority -Name "Token Signing Cert" -Certificate $cert
Certificate : [Subject]
CN=ADFS Signing - adfs.domain
[Issuer]
CN=ADFS Signing - adfs.domain
[Serial Number]
blablabla
[Not Before]
23/07/2014 07:14:03
[Not After]
23/07/2015 07:14:03
[Thumbprint]
blablabla
Name : Token Signing Cert
TypeName : Microsoft.SharePoint.Administration.SPTrustedRootAuthority
DisplayName : Token Signing Cert
Id : blablabla
Status : Online
Parent : SPTrustedRootAuthorityManager
Version : 17184
Properties : {}
Farm : SPFarm Name=SharePoint_Config
UpgradedPersistedProperties : {}
PS C:\Users\administrator.PORTAL> -
Issue with Calendar not syncing with iPhone 3g
Issue with Calendar not syncing with iPhone 3g.
Solution
Create backup of your entire mailbox before starting (THIS IS IMPORTANT)
Create offline folder (.pst file) Check windows help on how to do this for your version.
Open folders view on Outlook
Right click on Calendar in tree view and 'copy to' offline .pst folder
Go back to main calendar view and delete all entries in your calendar.
Create simple cal entry and sync test with iphone
If this works then start dragging cal entries back from the offline folder into the main calendar then sync after each step....
I moved events in this order
-Yearly recurrences (ie Birthdays)
- Monthly recurrences
- weekly recurrences
- Daily recurrences
All appointments from the beginning of this year >> to the end of time!
If all these sync then the issue is with an older cal item and you have to decide if you actually need these in you current calendar.
I chose to leave these in the offline cal and if i need access them from there.
If at any point the sync fails then you know you have a corrupt cal entry in the block you just transferred. Move the offending items back into the offline folder and try again in smaller chunks until you identify the offending items and delete them and manually recreate them in your real calendar.
Also smart to run the inbox (.pst /.ost ) repair tools for your OS/Outlook version.
Fixed so far
XP Pro / Outlook 2008
XP Pro /Outlook 2003I just updated the firmware to iPhone 2.0.1 and the syncing works great both ways.
-
Compatible issues firefox v37.0.2 with att yahoo mail
6:43 PM 4/24/2015
Compatible issues firefox v37.0.2 with att yahoo mail
Hello: this is my first post,hope I am doing it properly.
I am using W7pro OS and ATT DSL 3.0Mbps dl
I noticed this week that I was unable to save attachments from my ATT Yahoo mail I could view them but no choice as to ware to save them--only choice (save to my comp.)But no ware to be found.
I reinstalled v 36.0.4-preventing auto upgrade-But still had same problem.
At this point contacted ATT support supervisor-we spent about 4hr working on problem--He was using your v 31.5.0--and had no problem accessing and saving attachments using remolt access on my comp.
We also found using my comp.FF v 36.0.4 & v 37.0.2 browser,that we could without any problems access an save attachments--AOL mail-- & mail2web.--& IE--Even when forwarding inaccessible mail to above sites.
He informed me that (ATT mail Yahoo)only uses resources to make them compatible with--Google IE & Chrome &Apple? (basically he was saying,that they would NOT commit resources to FF--any version)BUT he was not allowed to commit.
PS: The last time I know it worked ok was 3-18-15 I have 3 comp.2 wxp pro 1 w7 pro the same problem on all 3--so feel confident not OS related-but compatible problems with FF & yahoo mail.
The ATT support supervisor-was unable to determined the date they may have made changes on their site.without extensive research-which we decided wasn't worth the effort as they wouldn't look in to it.
I hope someone or FF will be able find a workaround-as I do not want to use the browsers they suggest. I LOVE FF.
Thank You GaryI have no idea what you are asking me to do ??--can you explain at a dummy
level--I wont be offended.
gary -
Is there any way, to create with Adobe Muse HTML-Mail Templates?
Is there any way, to create with Adobe Muse HTML-Mail Templates? or to convert the createt page to only html content? any other tool like an website copyer?
tanks for help!Off the top of my head, you should be able to create mail templates in muse BUT it will require very basic html/css knowledge on your part. I am assuming you want to do just the signature?
Create the design you would like on one page, dont do any kind of styling in a master page. Then export the site into a folder. Open the html file with notepad/ textedit and then copy just the code for JUST the template. Throw it in you mail app of choice and it should work.
This seems like something that would be done alot quicker in dreamweaver in design view.
PLEASE NOTE: ^i could be completely wrong - but in theory this may work. -
Issue when creating sales order with Sold-to/Ship-to Party's state
Hi All,
we have issue while creating Sales Order with picking up of State tax
for Ship-to-party & Sold-to-party.
<b>When we create a sales order, for the sold to party 140052732 and
ship to party 140052733 it is picking state tax. Which should not
suppose to pick? Because the partner is marked as tax exemption</b>.
Can any body tell me how can we solve this issue!
Why this is happening!
How to make not to pick tax when it is marked for tax exemtion.
As i am not Functional guy i am not aware what is happening here!
Can anybody solve this issue!
Thanks in advance.
Thanks,
Deep.Hi Deep
What do you mean by "It is picking up state tax"? Does it mean that in the pricing procedure it is picking up a condition type which is meant for state tax?
If so go and check the condition record meant for it. Follow the following steps
1) Go to Sales order
2) Select the line item for which the state tax is being picked.
3) In the condition tab select analysis.
4) In Analysis you shall find the condition type meant for state tax.
5) See which condition record has been found.
6) Go to VK12, enter the state tax condition type and check the condition record for that state tax.
7) If wrong correct it.
8) If anything else come back to the post and inform the details
Thanks
Regards
Sunil -
Issue when creating sales order with Sold-to/Ship-to Party's state tax
Hi All,
we have issue while creating Sales Order with picking up of State tax
for Ship-to-party & Sold-to-party.
<b>When we create a sales order, for the sold to party 140052732 and
ship to party 140052733 it is picking state tax. Which should not
suppose to pick? Because the partner is marked as tax exemption</b>.
Can any body tell me how can we solve this issue!
Why this is happening!
How to make not to pick tax when it is marked for tax exemtion.
As i am not Functional guy i am not aware what is happening here!
Can anybody solve this issue!
Thanks in advance.
Thanks,
Deep.Hi Deep
What do you mean by "It is picking up state tax"? Does it mean that in the pricing procedure it is picking up a condition type which is meant for state tax?
If so go and check the condition record meant for it. Follow the following steps
1) Go to Sales order
2) Select the line item for which the state tax is being picked.
3) In the condition tab select analysis.
4) In Analysis you shall find the condition type meant for state tax.
5) See which condition record has been found.
6) Go to VK12, enter the state tax condition type and check the condition record for that state tax.
7) If wrong correct it.
8) If anything else come back to the post and inform the details
Thanks
Regards
Sunil -
Issue in sending the email with XL attachment in ECC version
Hi,
I have an issue with sending the email with XL attachment. My program is sending a mail to the receiver with XLS as attachment. Recently we have migrated from 4.6B to ECC version. Same code was worked in 4.6B.But it is not working in ECC version.When i try to open the attachment, i get a Dialog Box with the following message
"The file is not in a recognizable format.
1. if you know the file is from another program whih is incompatible with Microsoft excel,click cancel,then open this file in its original application
2.If you suspect the file is damaged, click help for more information about solving theproblem.
3.if you still want to see what text is contained in the file, click OK.Then click the text import wizard. "
when i click OK, the excel sheet is opening with all required data.
Can anyone kindly tell me why this is happening.
I am also attaching part of the coding related to this requirement.
*& Form BUILD_XLS_DATA_TABLE
text
--> p1 text
<-- p2 text
FORM build_xls_data_table.
DATA: w_total(13),
w_clabs(13),
w_cinsm(13),
w_ceinm(13),
w_cretm(13),
w_cspem(13),
w_cumlm(13),
w_exp_date(8),
w_v_totalp(13),
w_min_rem(8),
w_ersda(10),
w_hsdat(10),
w_vfdat(10),
w_ship_date(10),
w_plnmg(13),
w_mhdrz(4).
CLEAR: w_total, w_clabs, w_cinsm, w_ceinm, w_cspem, w_exp_date,
w_v_totalp, w_min_rem, w_ersda, w_hsdat, w_vfdat, w_ship_date,
w_plnmg, w_mhdrz.
w_total = it_batch1-total.
w_clabs = it_batch1-clabs.
w_cinsm = it_batch1-cinsm.
w_ceinm = it_batch1-ceinm.
w_cspem = it_batch1-cspem.
w_cumlm = it_batch1-cumlm.
w_cretm = it_batch1-cretm.
w_exp_date = it_batch1-exp_date.
w_v_totalp = it_batch1-v_totalp.
w_min_rem = it_batch1-min_rem.
w_plnmg = it_batch1-plnmg.
w_mhdrz = it_batch1-mhdrz.
CONCATENATE it_batch1-ersda6(2) it_batch1-ersda4(2)
it_batch1-ersda+0(4) INTO w_ersda SEPARATED BY '.'.
CONCATENATE it_batch1-hsdat6(2) it_batch1-hsdat4(2)
it_batch1-hsdat+0(4) INTO w_hsdat SEPARATED BY '.'.
CONCATENATE it_batch1-vfdat6(2) it_batch1-vfdat4(2)
it_batch1-vfdat+0(4) INTO w_vfdat SEPARATED BY '.'.
CONCATENATE it_batch1-ship_date6(2) it_batch1-ship_date4(2)
it_batch1-ship_date+0(4) INTO w_ship_date SEPARATED BY '.'
CONCATENATE
it_batch1-werks it_batch1-mtart it_batch1-matnr it_batch1-maktg
it_batch1-prdha it_batch1-prctr it_batch1-ktext it_batch1-dispo
it_batch1-charg it_batch1-lgort it_batch1-herkl w_clabs
w_cinsm w_ceinm w_cretm w_cspem
w_cumlm w_total it_batch1-meins it_batch1-v_spr_unit
w_v_totalp it_batch1-waers w_plnmg it_batch1-meins
w_ersda w_hsdat w_vfdat w_exp_date
w_ship_date w_mhdrz w_min_rem it_batch1-zlifer
it_batch1-doknr it_batch1-dokar it_batch1-doktl it_batch1-dokvr
INTO L_STRING SEPARATED BY CON_TAB.
INTO l_string SEPARATED BY cl_abap_char_utilities=>horizontal_tab.
WHILE l_string <> space.
CALL FUNCTION 'TEXT_SPLIT'
EXPORTING
length = 255
text = l_string
as_character = 'X'
IMPORTING
line = it_attach
rest = l_string.
IF l_string = space.
CONCATENATE IT_ATTACH CON_CRET INTO IT_ATTACH.
CONCATENATE it_attach cl_abap_char_utilities=>cr_lf INTO it_attach.
APPEND it_attach.
CLEAR it_attach.
ELSE.
APPEND it_attach.
CLEAR it_attach.
ENDIF.
ENDWHILE.
move l_string to it_attach .
CONCATENATE it_attach cl_abap_char_utilities=>cr_lf INTO it_attach.
APPEND it_attach.
CLEAR it_attach.
ENDFORM. " BUILD_XLS_DATA_TABLE
*& Form SEND_FILE_AS_EMAIL_ATTACHMENT
text
--> p1 text
<-- p2 text
FORM send_file_as_email_attachment.
DATA:w_length TYPE i.
DATA: w_cnt TYPE i,
w_sent_all(1) TYPE c,
w_doc_data LIKE sodocchgi1,
gd_error TYPE sy-subrc,
gd_reciever TYPE sy-subrc,
t_attachment LIKE solisti1 OCCURS 0 WITH HEADER LINE.
Fill the document data.
w_doc_data-doc_size = 1.
Populate the subject/generic message attributes
w_doc_data-obj_langu = sy-langu.
w_doc_data-obj_name = 'SAPRPT'.
w_doc_data-obj_descr = text-034 .
w_doc_data-sensitivty = 'F'.
Fill the document data and get size of attachment
CLEAR w_doc_data.
DESCRIBE TABLE it_attach LINES w_cnt.
DESCRIBE TABLE it_message LINES w_cnt.
READ TABLE it_message INDEX w_cnt.
w_length = STRLEN( it_attach ).
w_doc_data-doc_size =
( w_cnt - 1 ) * 255 + STRLEN( it_message ).
w_doc_data-obj_langu = sy-langu.
w_doc_data-obj_name = 'SAPRPT'.
w_doc_data-obj_descr = text-034.
w_doc_data-sensitivty = 'F'.
CLEAR t_attachment.
REFRESH t_attachment.
t_attachment[] = it_attach[].
describe the body of the message
CLEAR t_packing_list.
REFRESH t_packing_list.
t_packing_list-transf_bin = space.
t_packing_list-head_start = 1.
t_packing_list-head_num = 0.
t_packing_list-body_start = 1.
***Start of changes by 501507008 on 29.01.2009
t_packing_list-obj_descr = 'MAIL BODY'.
***End of changes by 501507008 on 29.01.2009
DESCRIBE TABLE it_message LINES t_packing_list-body_num.
t_packing_list-doc_type = 'RAW'.
APPEND t_packing_list.
Create attachment notification
t_packing_list-transf_bin = 'X'.
t_packing_list-head_start = 1.
t_packing_list-head_num = 1.
t_packing_list-body_start = 1.
DESCRIBE TABLE t_attachment LINES t_packing_list-body_num.
t_packing_list-doc_type = 'XLS'.
t_packing_list-obj_descr = text-034.
t_packing_list-obj_name = 'filename'.
t_packing_list-doc_size = t_packing_list-body_num * 255.
APPEND t_packing_list.
Add the recipients email address
CLEAR t_receivers.
REFRESH t_receivers.
LOOP AT it_adr6.
t_receivers-receiver = it_adr6-smtp_addr.
t_receivers-rec_type = 'U'.
t_receivers-com_type = 'INT'.
t_receivers-notif_del = 'X'.
t_receivers-notif_ndel = 'X'.
APPEND t_receivers.
ENDLOOP.
CALL FUNCTION 'SO_DOCUMENT_SEND_API1'
EXPORTING
document_data = w_doc_data
put_in_outbox = 'X'
sender_address = ' '
sender_address_type = ' '
commit_work = 'X'
IMPORTING
sent_to_all = w_sent_all
TABLES
packing_list = t_packing_list
contents_bin = t_attachment
contents_txt = it_message
receivers = t_receivers
EXCEPTIONS
too_many_receivers = 1
document_not_sent = 2
document_type_not_exist = 3
operation_no_authorization = 4
parameter_error = 5
x_error = 6
enqueue_error = 7
OTHERS = 8.
CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
EXPORTING
document_data = w_doc_data
put_in_outbox = 'X'
commit_work = ' '
IMPORTING
sent_to_all =
new_object_id =
tables
packing_list = t_packing_list
contents_bin = t_attachment
contents_txt = it_message
receivers = t_receivers
contents_hex =
object_para =
object_parb =
exceptions
too_many_receivers = 1
document_not_sent = 2
document_type_not_exist = 3
operation_no_authorization = 4
parameter_error = 5
x_error = 6
enqueue_error = 7
OTHERS = 8.
IF sy-subrc <> 0.
ENDIF.
ENDFORM. " SEND_FILE_AS_EMAIL_ATTACHMENTHi,
could you tell me which opeion should i select in SCOT under INT node. I have tried with diffrent options. but no luck.
SAPscript/Smart Forms - No Conversion
ABAP List - No Conversion
Business Object/Link - No Conversion
RAW Text - No Conversion -
How do I fix the compatibility issue between my iPhone 4S with iOS 7 and my Pioneer car stereo? There was no problem with iOS 6, but now I get a message saying "this device is not compatible" and so I can't use Netflix for example. How do I fix it?
This is a typical response from the manufacturer. Did you try the fix that Lawrence mentioned. When Apple or any other phone manufacturer update phone software, they have the latest Bluetooth installed. It is usually the problem with the radio manufacturer that they devices are using the older Bluetooth protocols. You can try this support document http://support.apple.com/kb/TS3581 and see if anything there helps, but generally it requires the radio manufacturer to update their firmware.
-
UnZipping an archive with folders inside
Hello, everyone.
A friend of mine asked me to create him an "auto-downloader" type of program, to download a ZIP archive, then extract the information to the user's computer (no, it is not harmful).
Anyways, I've been trying mutliple ways, and I've come pretty far with the one I'm currently using. The only problem is, I'm using user.home as the file location for the zip, and creating a folder in there seems to just not want to work. This is the only way I could think of doing it, but I'm sure there are easier ways.. here's what I'm using:
import java.awt.BorderLayout;
import java.awt.Dimension;
import java.io.BufferedInputStream;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.net.URL;
import java.net.URLConnection;
import java.util.zip.ZipEntry;
import java.util.zip.ZipInputStream;
import javax.swing.JFrame;
import javax.swing.JProgressBar;
public class Updater extends Thread {
private String name;
public void get(String url, String fileName) {
name = fileName;
JFrame frame = new JFrame(name.replaceAll(".zip", "") + " update");
frame.setLocationRelativeTo(null);
frame.setLayout(new BorderLayout());
frame.setPreferredSize(new Dimension(500, 80));
frame.setResizable(false);
frame.setDefaultCloseOperation(JFrame.DO_NOTHING_ON_CLOSE);
Client client = new Client();
ClassLoader cl = getClass().getClassLoader();
try {
URLConnection connection = (new URL(url)).openConnection();
String f[] = url.split("/");
File file = new File(f[f.length - 1]);
int length = connection.getContentLength();
InputStream instream = connection.getInputStream();
try {
new File(updatedDirectory()).mkdir();
} catch (Exception e) {
e.printStackTrace();
FileOutputStream outstream = new FileOutputStream(updatedDirectory() + file);
int size = 0;
int copy = 0;
JProgressBar bar = new JProgressBar();
bar.setStringPainted(true);
bar.setMaximum(length);
frame.add(bar, "Center");
frame.pack();
frame.setVisible(true);
while ((copy = instream.read()) != -1) {
outstream.write(copy);
size++;
int percentage = (int) (((double) size / (double) length) * 100D);
bar.setValue(size);
bar.setString("Updating your " + name.replaceAll(".zip", "") + " - " + percentage + "% complete");
if (length != size) {
instream.close();
outstream.close();
} else {
instream.close();
outstream.close();
unzip();
//System.exit(0);
frame.setVisible(false);
} catch (Exception e) {
System.err.println("Error connecting to update server.");
e.printStackTrace();
private void unzip() {
try {
System.out.println(updatedDirectory() + "animations\\raw");
InputStream in = new BufferedInputStream(new FileInputStream(updatedDirectory() + name));
ZipInputStream zin = new ZipInputStream(in);
ZipEntry e;
//new File(updatedDirectory() + name.replaceAll(".zip", "")).mkdir();
if (!new File(updatedDirectory() + "animations\\raw").exists()) {
if (new File(updatedDirectory() + "animations\\raw").mkdir()) {
System.out.println("worked");
} else {
System.out.println("nope");
while ((e = zin.getNextEntry()) != null) {
unzip(zin, updatedDirectory() + e.getName());
zin.close();
} catch (Exception e) {
e.printStackTrace();
private void unzip(ZipInputStream zin, String s) throws IOException {
FileOutputStream out = new FileOutputStream(s);
byte[] b = new byte[1024];
int len = 0;
while ((len = zin.read(b)) != -1) {
out.write(b, 0, len);
out.close();
public final String updatedDirectory() {
//File file = new File(System.getProperty("user.home") + "\\info\\");
File file = new File("..\\");
if (file.exists() || file.mkdir()) {
//return System.getProperty("user.home") + "\\info\\";
return "..\\";
return null;
}Here's the ZIP archive I'm trying to download: http://www.2shared.com/file/Qu1cSWcl/cache.html
If what I've said before doesn't make sense (mind you me, it's 4 am and I'm about to crawl into bed), then I'll try to sum it up in a few short words below.
I'm trying to extract a ZIP archive with folders, every time I do, it stops halfway through and throws an error similar to this:
invalid cache index specified
..\animations\raw
java.io.FileNotFoundException: ..\animations\raw (The system cannot find the pat
h specified)
at java.io.FileOutputStream.open(Native Method)
at java.io.FileOutputStream.<init>(FileOutputStream.java:179)
at java.io.FileOutputStream.<init>(FileOutputStream.java:70)
at Updater.unzip(Updater.java:99)
at Updater.unzip(Updater.java:90)
at Updater.get(Updater.java:64)
at Client.main(Client.java:2548)
Press any key to continue . . .I'm just trying to be able to extract cache (ZIP ARCHIVE) which has folders inside. I've tried creating a directory for the folder, but it seems to not work, hence the "?" in the above error (i printed that if the directory failed to create a new directory, as seen in my above code). Once again, sorry if this isn't as understandable as it should be, I'm not myself without sleep :)
Also, do ignore the first print, 'invalid cache index specified', it's not related to the problem.
Edited by: aeternaly on Jul 2, 2010 4:04 AMSo your question is really about how to make a directory, then. Nothing at all to do with unzipping of archives.
If you can't create a directory, then perhaps there is some permissions problem. You don't have the authority to create directories in some directory. Or perhaps you're trying to use a name which isn't a valid directory name in your system. Or... there are many other possibilities. But anyway I recommend tossing all of that unzipping business out of your program and just trying to write something which creates a directory. Debug that first. -
i am having problems with my burst mode on my iphone 6 plus it is slower than the facetime camera after i updated to ios 8.3 apple please fix this issue i am fed up with all your mistakes
Gerald
If you had taken time to read the Terms of Use you agreed on joining this Community today you would have realised that Apple is not here
neither reading nor responding on this User Community
http://www.apple.com/feedback/ -
Issue: I synced my iphone with itunes, I then deleted many songs from the iphone, when I sync to itunes again is there any way to have itunes duplicate what it sees on the iphone rather than the other way around?
so, if I delete all music on itunes then connect my iphone all my music on the iphone will then be deleted?
-
Working with Flash content in XML template
My knowledge base of html and DWCS3 is limited. My knowledge of Flash CS3 is better and have built a web site using it.
This is a newbie DW question. Am working on an XML template, which contained the following folders:
site_flash folder containing: main_v8.swf, tfile_main.xml, style.css, index (firefox doc) (+gallery stuff)
flash folder containing: main_v8.swf, main_v8.fla, tfile_main.xml, AC_RunActiveContent (JSS file) (+gallery stuff)
I was told by the template people to use the site_flash folder but there are no visuals (Design views), to work with and could not access Flash through DW to alter the files in Flash. When I can get a Design view in DW, all I get is the f symbol. In all the tutorials I've watched on DW, there is a Design view to work with.
SO, I used the flash folder and adjusted the main layout in the .fla file to suit my needs, and worked on the tfile_main.xml document in DW and they seemed to be 'talking' as my changes were recognized. When I test the file from either Flash or DW, it is perfect. But when I run it from my test folder through the server, the page formatting is off (page pushed down, menu buttons squashed, etc). There is no style.css sheet in the flash folder.
Am willing to go back and start over with the site_flash folder with CSS page if this will resolve things, but don’t know how to edit the flash layout through DW. I need a Design view…am very weak in the html side of things.
Test run: http://www.mackenziemode.com.au/test.html
Any advice you can give would be helpful.
The Not-feeling-so-Handy Ma'amIn followup to my own frenzied query, in case anyone else is having the same problem, the solution to the 'squashed'
web site (that's works perfectly on testing outside the browser) is to upload the main.xml file in binary mode.
Maybe you are looking for
-
I have a mid 2012 MBP (MacbookPro9,1) running Mountain Lion 10.8.2. When I start a Time Machine backup to an external Western Digital HD (WD5000MT) connected using a Firewire 800 cable, my open programs stop responding and in general my computer fre
-
FINDING a matching value in any position in another column
One table with 2 address fields. For example: desc location: LNAME VARCHAR2(40) ADDRESS1 VARCHAR2(20) ADDRESS2 VARCHAR2(20) Select * from location: LNAME ADDRESS1 ADDRESS2 SMITH Henry Street 102 HENRY ST JONES SOUNDVIEW DR SS165 SOUNDVIEW DR ALLEN PA
-
SELECT IN query using ormExecuteQuery()
I'm trying to do a SELECT IN query using ormExecuteQuery(). Following is the code I have: Categories = ormExecuteQuery("from Category where Id IN (?)",[CategoryList]); It only works when there is 1 value in the CategoryList. i.e. This works: Catego
-
UPDATE involving the same table in sub query
DB version: 11.2 We have a table called SHP_GC_TRACK which has around 8 million records with partitions . In the below UPDATE, it is updating a column based on the SELECT on the same table in a subquery. UPDATE shp_gc_track a SET f_tran_proc = 'Y
-
How can I generate a TOC that could be available with PDF export tool
Hi, I would like to export a ibook author as a PDF document. Until now, I could see the TOC on my PDF. Nevertheless, as an ebook, everything is ok. Any help would be deeply appreciated it. BR Pedro