I am unable to accept a .doc file from a sender
FILE TRANSFER ERROR:
Could not receive file “FAIR v. Rumsfeld.doc” from Tiggsfrnpooh26:
An error occurred.
This is what comes up when i try to recieve it.
I have had no trouble with sending and recieving files in the past, though this is the first time I have tried to recieve a .doc file from someone. And that someone is using a PC.
Others I ahve recieved and sent files to with no problem were on macs, but i dont think that is the issue here.
I do have port 5190 open as usual.
Am i Missing something,
any questions will be answered right away.
Hi
The " v. " was the thing causing the problem.
12:23 PM Wednesday; March 29, 2006
Similar Messages
-
Unable to open skydrive docs files with Lumia
Hello, I can open doc files from skydrive with PC and browser, but not with Lumia phone office application. There is text : "there were some problems opening this file, some part may be missing. You may correct the problem opening and fixing the problem with PC" I opened original and skydrive saved files. They were working normally with Openoffice or with browser but not with lumia. Thank you for your help.
Solved!
Go to Solution.OpenOffice is known to not write fully Office compliant files. It may well be that is you open in Office and then save as a new file it will load up fine. OpenOffice != Office and do not let them make you believe it is !
Click on the blue Star Icon below if my advice has helped you or press the 'Accept As Solution' link if I solved your problem.. -
Unable to pick up the file from Receive Location
BizTalk is unable to pick up the files from receive location.
My admin console is working so slow.
It is showing the problem of snap-in as follows:
I have checked all my receive location and its masking,it is working fine.
Actually it is working fine in dev server(snap-in problem is not occuring in dev server ) but when I import MSI and binding in UAT server.
It is not picking up the file from receive location.
I want to know one more thing :if my message box database is not working fine,will it receive the files from receive location.
PrakashFor files not received by receive location. If the Receive Location is still enabled but files are not processed by Receive Location, then check whether the host instance configured with your receive location is running. If the host instance is in
running state, restart the host instance and try.
Regarding the error in the admin console as shown in the image, people started to see this issue with admin console from BizTalk 2009 onwards. This happens in cases like you have done some activity with console and before its been refreshed it you do more
activities like expanding the node you will see this error. Sometimes WMI is bit slowly to refresh your admin console screen. Just wait for few seconds untill the WMI screen is rendered completely. Ensure you have all the cumulative updates installed for your
version of BizTalk and also ensure the service pack for your OS is updated.
Obviously if message box is not working, files will not be received/processed. But if message box is not in healthy state this would affect all other application not just one and in-fact it would affect entire BizTalk not just Receive Locations.
To start analysing this file not been processed by Receive Location, start with checking the host instance as mentioned.
If this answers your question please mark it accordingly. If this post is helpful, please vote as helpful by clicking the upward arrow mark next to my reply. -
Adobe Bridge does not accept the NEF files from my new Nikon D800. I use the latest version, there are no updates
Hi,
CS6
Van: R_Kelly [email protected]
Verzonden: maandag 16 september 2013 18:42
Aan: Hans van Sloten
Onderwerp: Adobe Bridge does not accept the NEF files from my new Nikon D800. I use the latest version, there a
Re: Adobe Bridge does not accept the NEF files from my new Nikon D800. I use the latest version, there a
created by R_Kelly <http://forums.adobe.com/people/R_Kelly> in Photoshop for Beginners - View the full discussion <http://forums.adobe.com/message/5686078#5686078 -
Unable to install "InstallESD.dmg" file from OS X Mounstain Lion?
Hi,
Unable to install "InstallESD.dmg" file from OS X Mounstain Lion, i've downloaded OS X Mavericks and installed on other machine. However, i took backup of "Show Package Contents" before installing.When i try to install ""InstallESD.dmg" file some other Mac machine. When i double click on it its open Packages folder instead of installer.
Please suggest me, how can i install OS X Mavericks for My Mac machines.
Thanks in Advance,
Suresh Balakrishnan.Unfortunately with OS X Mavericks you can't use the InstallESD.dmg file as an installer. You have to use either DiskMaker X 3.0.4 or Mavericks Bootable Disk Creation Tool or do an Internet search for the Terminal command that can be used to create a bootable Mavericks installer on an external drive (e,g, USB thumb drive).
You will need the Install OS X Mavericks.app from the Mac App Store to use with all of the above solutions. -
How to send doc files from one system to another using XI
Hi All,
I have a requirement to pick the word doc files from one file system and send these word document files to ECC system place in ECC application server.Can we achieve this requirement using XI. If so how we can do this. also let me know can we convert these doc files into proxy and send to ECC?. Please let me know. Thanks.
Regards,
RajeshYes You Can
XI Converts Unstructured data(That is non -XML)Type- in your case word doc and maps it to Target structure.
You can either use content conversion
/people/venkat.donela/blog/2005/03/02/introduction-to-simplefile-xi-filescenario-and-complete-walk-through-for-starterspart1
/people/venkat.donela/blog/2005/03/03/introduction-to-simple-file-xi-filescenario-and-complete-walk-through-for-starterspart2
/people/venkat.donela/blog/2005/06/08/how-to-send-a-flat-file-with-various-field-lengths-and-variable-substructures-to-xi-30
/people/anish.abraham2/blog/2005/06/08/content-conversion-patternrandom-content-in-input-file
/people/shabarish.vijayakumar/blog/2005/08/17/nab-the-tab-file-adapter
/people/jeyakumar.muthu2/blog/2005/11/29/file-content-conversion-for-unequal-number-of-columns
/people/shabarish.vijayakumar/blog/2006/02/27/content-conversion-the-key-field-problem
/people/michal.krawczyk2/blog/2004/12/15/how-to-send-a-flat-file-with-fixed-lengths-to-xi-30-using-a-central-file-adapter
You can either built a adaptermodule for the same(U nedd to have Some Java knowledge)
You can also convert without creating any objects in integration directory link for the same is
/people/william.li/blog/2006/09/08/how-to-send-any-data-even-binary-through-xi-without-using-the-integration-repository
***********Please Reward Points If find Helpful********* -
my adobe elements version 12 is unable to read the raw files from my canon camera 70D.
You need Camera Raw 8.2 or higher.
Elements 12 shipped with 8.1.
Click Help > Updates to update Camera Raw -
Cant open doc files from the server on MacBook Air after upgrading to Maverick
Cant open doc files from the server on MacBook Air after upgrading to Maverick, I can only open up docx file. Thank you!
Thanks for the suggestion! I don't use Phantasm or VectorScribe (or any Astute Graphics plugins for that matter). I do, however, have a Wacom tablet and have a few plugins that concern using Blurb Book Creator as well as LiveSurface Context.
I did the very unfortunate and foolish act of upgrading to Maverick without a backup, so postponing isn't an option for me.
I geuss my question at this point would be, would it be worthwhile to wipe all the adobe products from my harddrive and re-install them? Or would that be a useless endeavor.
I don't have an external hard-drive so backing up and re-installing the entire OS would be a bit much. Any suggestions? -
Unable to view pdf, doc files in nokia 7210 supern...
Hi.....
Iam using nokia 7210supernova mobile. I cannot open pdf and doc files..It shows "fomat not supported". So I have installed mobilepdf.jar and eZreader. But still the error persists. and whenever i try to open from these applications it shows error as "insufficeint resources to perform the operation" and "object not supported"
What should i do to overcome this error... I have been trying from many days to solve it... Please help me...Try re-installing those two apps....and if problem persists then contact developers of those two apps and confirm that those two apps support nokia supernova 7210 or not
-
Not opening .doc files from cd??
Hi,
I have various .doc files on cd. I want to use pages to open them. When i drag them from the cd onto either the pages icon or try the same using "file, open" from within pages i get an error message saying that it cannot open the file.
If i drag the same .doc files onto the hard drive first i can open them in pages no problem.
I need to be able to open them from the cd. Does anyone know what is wrong here or how it can be fixed?
Many thanks.Hello
My guess is that the device must be set as read/write to permit to expand the Index.xml.gz file which contains the doc's description.
I just guess because I saw the Index.xml file during the save process but, even with huge documents I was unable to see the expansion process at work.
I was also able to see the Index.xml file if I double click the Index.xml.gz icon.
Yvan KOENIG (from FRANCE jeudi 21 février 2008 20:08:49) -
Opening .doc files from IFS
Hi,
I have a question about some functionality in the default web package with ifs. It is probably quite basic, but I am having difficulty with it. In the out of the box web ui, if I click on an uploaded .doc file, Microsoft Word gets loaded in my browser with the file openned.
I am using the JAVA API, and I have uploaded and foldered a .doc file. When I click on it, href="//computer/path/file.doc" word opens, but I get the file was not found.Any ideas?? Thank you.
IanIan
The decision on which application the browser runs is taken by the browser based on information supplied in the HTTP response.
Here's an updated version of the RenderContent method that gives you some degree of control over this process...
// $Header$
* Please complete these missing tags
* @author
* @rref
* @copyright
* @concurrency
* @see
package ifs.pm.common.jsp;
import oracle.ifs.adk.http.HttpUtils;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;
import javax.servlet.ServletInputStream;
import oracle.ifs.beans.Selector;
import oracle.ifs.beans.Format;
import java.util.Enumeration;
import java.util.Locale;
import java.net.URLEncoder;
import java.lang.Class;
import java.lang.reflect.Method;
import java.lang.reflect.InvocationTargetException;
import oracle.ifs.adk.security.IfsHttpLogin;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.io.FileOutputStream;
import java.io.File;
import ifs.pm.common.trace.Alert;
import oracle.ifs.beans.LibraryObject;
import oracle.ifs.beans.ClassObject;
import oracle.ifs.beans.Document;
import oracle.ifs.beans.LibraryObjectDefinition;
import oracle.ifs.beans.Attribute;
import oracle.ifs.common.AttributeValue;
import oracle.ifs.beans.PublicObject;
import oracle.ifs.beans.FolderPathResolver;
import oracle.ifs.beans.LibrarySession;
import oracle.ifs.common.IfsException;
import oracle.ifs.beans.LibraryService;
import oracle.ifs.beans.LibrarySession;
import oracle.ifs.common.CleartextCredential;
import oracle.ifs.common.ConnectOptions;
import java.util.Hashtable;
import java.util.Date;
import java.text.SimpleDateFormat;
public class JspHelper extends Object
public static final String ACTION = "Action";
public static final String OPERATION = "Operation";
public static final String POLICY = "Policy";
public static final String MIMETYPE = "MimeType";
public static final String OPEN = "Open";
public static final String DOWNLOAD = "Download";
public static final String RENDER = "Render";
public static final String WEBLOGON = "/Login";
public static final String USERNAME = "username";
public static final String PASSWORD = "password";
public static final String SERVICE = "service";
public static final String SCHEMA_PASSWORD = "schemapassword";
public static final String IFSHTTPLOGIN = "IfsHttpLogin";
public static final String IFSWEBROOT = "/ifs/webui";
public static final String IFSTIMEOUT_URL = "/html/timeout.html";
private static String m_ServletPath = null;
private static final boolean DEBUG = true;
private static final String OPEN_SAVEAS_DIALOG = "oracleifs/download";
* Please complete the missing tags for JspHelper
* @param
* @return
* @throws
* @pre
* @post
private static Hashtable characterEncoding = new Hashtable();
static {
characterEncoding.put("+","%2B");
characterEncoding.put("#","%23");
characterEncoding.put("&","%26");
characterEncoding.put(" ","%20");
characterEncoding.put("'","%27");
characterEncoding.put(":","%3A");
characterEncoding.put("(","%28");
characterEncoding.put(")","%29");
characterEncoding.put("-","%2D");
private static String getServletPath()
return m_ServletPath;
public static String generateURL(Long id)
// Creates an Encoded URL from a Docid
String url = "";
if (getServletPath() != null) {
url = getServletPath();
url = url + "/";
url = url + (String) characterEncoding.get(":");
url = url + id.toString();
return url;
public static String generateURL(String path)
// Creates an Encoded URL from a Docid
String url = "";
if (getServletPath() != null) {
url = getServletPath();
if (!path.startsWith("/")) {
url = url + "/";
url = url + encodePath(path);
return url;
private static void setupServletPath(HttpServletRequest req)
// If never initialized, get the servlet path and store
// in the static
if ( null == m_ServletPath )
String contextPath = null;
String servletPath = "";
// Start with an empth string
m_ServletPath = "";
//let's figure out whether we're running under Servlet API 2.2
//or an earlier version
Class c = req.getClass();
try
//getContextPath() is first defined in 2.2
Method m = c.getMethod("getContextPath", null);
contextPath = (String)m.invoke(req, null);
catch (NoSuchMethodException e1)
catch (InvocationTargetException e2)
catch (IllegalAccessException e3)
if (DEBUG) {
Alert.log("JspHelper.setupServletPath(): contextPath = " + contextPath);
servletPath = req.getServletPath();
if (DEBUG) {
Alert.log("JspHelper.setupServletPath(): servletPath = " + servletPath);
if ( null != contextPath )
m_ServletPath = contextPath;
if ( null != servletPath )
m_ServletPath += servletPath;
else
if (DEBUG) {
Alert.log("JspHelper.setupServletPath(): not first time through.");
if (DEBUG) {
Alert.log ("JspHelper.setupServletPath(): m_ServletPath = " + m_ServletPath);
private static String getReposPath( HttpServletRequest request )
String result = null;
String path = request.getParameter(DOCUMENT_PATH);
if (null == path) {
path = request.getParameter(ALTERNATIVE_PATH);
return getReposPath(path);
public static String getReposPath(String path)
if (DEBUG) {
Alert.log ("JspHelper.getReposPath(request): Initial Path = " + path);
if (path != null) {
if ( ( null != getServletPath() ) && path.startsWith(getServletPath())) {
path = path.substring(getServletPath().length());
if (DEBUG) {
Alert.log ("JspHelper.getReposPath(request): Stripped Path = " + path);
path = undoSubstitutions(path);
if (DEBUG) {
Alert.log ("JspHelper.getReposPath(request): Converted Path = " + path);
if (DEBUG) {
Alert.log("JspHelper.getReposPath(request) Final Path = " + path);
return path;
public static String encodePath(String path)
// Substitute '%', then everything else
path = replaceString(path,"%","%25");
return doSubstitutions(path);
public static String decodePath(String path)
path = undoSubstitutions(path);
return replaceString(path,"%25","%");
public static String doSubstitutions(String path)
String encodedPath = path;
Enumeration keys = characterEncoding.keys();
while (keys.hasMoreElements()) {
String source = (String) keys.nextElement();
String target = (String) characterEncoding.get(source);
encodedPath = replaceString(encodedPath,source,target);
return encodedPath;
public static String undoSubstitutions(String path)
String encodedPath = path;
Enumeration keys = characterEncoding.keys();
while (keys.hasMoreElements()) {
String source = (String) keys.nextElement();
String target = (String) characterEncoding.get(source);
encodedPath = replaceString(encodedPath,target,source);
return encodedPath;
public static String getReposPath( HttpServletRequest request )
return HttpUtils.getIfsPathFromJSPRedirect(request);
public static String generateURL(HttpServletRequest request, Long id)
return HttpUtils.getURLFromIfsPath(request,":" + id.toString());
public static String generateURL(HttpServletRequest request, String path)
return HttpUtils.getURLFromIfsPath(request,path);
public JspHelper()
IfsException.setVerboseMessage( true );
* Please complete the missing tags for getArgumentAsString
* @param
* @return
* @throws
* @pre
* @post
public static String getArgumentAsString( Object arg )
if( null == arg )
return "";
else
return arg.toString();
* Please complete the missing tags for getArgumentAsString
* @param
* @return
* @throws
* @pre
* @post
public static String getArgumentAsString( String formatMask, Date arg )
if( null == arg )
return "";
else
SimpleDateFormat sdf = new SimpleDateFormat( formatMask );
return sdf.format( arg );
* Please complete the missing tags for getSession
* @param
* @return
* @throws
* @pre
* @post
public static LibrarySession getSession( HttpServletRequest request, HttpServletResponse response )
throws IfsException
if( DEBUG )
Alert.log( "getSession(request,response): Entering Method." );
dumpServletParameters( request );
// setupServletPath(request);
LibrarySession ifsSession = null;
HttpSession httpSession = request.getSession( true );
if( null != httpSession )
IfsHttpLogin ifsLogin = ( IfsHttpLogin ) httpSession.getValue( IFSHTTPLOGIN );
if( ifsLogin != null )
ifsSession = ifsLogin.getSession();
if( null == ifsSession )
try
// String timeoutPath = generateURL(request,getTimeOutURL());
String timeoutPath = HttpUtils.getURLFromIfsPath( request, getTimeOutURL() );
if( DEBUG )
Alert.log( "getSession(request,response): Unable to get a valid Session = assuming Timeout problem. Redirecting to " + timeoutPath );
response.sendRedirect( timeoutPath );
catch( IOException ioe )
throw new IfsException( 9999, ioe );
return ifsSession;
* Please complete the missing tags for getObject
* @param
* @return
* @throws
* @pre
* @post
public static PublicObject getObject( HttpServletRequest request, HttpServletResponse response )
throws IfsException
// Will return null and set a Redirect to the Timeout Page if the Sesssion
// is null.
String path = null;
PublicObject po = null;
LibrarySession ifsSession = getSession( request, response );
if( null != ifsSession )
// path = getReposPath(request);
path = HttpUtils.getIfsPathFromJSPRedirect( request );
if( path.charAt( 1 ) == ':' )
Long docId = new Long( path.substring( 2 ) );
po = ifsSession.getPublicObject( docId );
else
FolderPathResolver fpr = new FolderPathResolver( ifsSession );
fpr.setRootFolder();
po = fpr.findPublicObjectByPath( path );
if( DEBUG )
Alert.log( "getObject(request,response): Object is a " + po.getClassname() );
po = po.getResolvedPublicObject();
return po;
* Please complete the missing tags for getExtendedAttributeValues
* @param
* @return
* @throws
* @pre
* @post
public static LibraryObjectDefinition getExtendedAttributeValues( LibraryObject lo, HttpServletRequest request )
throws IfsException
// Returns a Library Object Definition containing the Attribute Values for each
// Extended Attribute which appears as a parameter in the request obvject.
ClassObject co = lo.getClassObject();
Attribute [] attributes = co.getExtendedClassAttributes();
return getAttributeValues( attributes, request );
* Please complete the missing tags for getEffectiveAttributeValues
* @param
* @return
* @throws
* @pre
* @post
public static LibraryObjectDefinition getEffectiveAttributeValues( LibraryObject lo, HttpServletRequest request )
throws IfsException
// Returns a Library Object Definition containing the Attribute Values for each
// Extended Attribute which appears as a parameter in the request obvject.
ClassObject co = lo.getClassObject();
Attribute [] attributes = co.getEffectiveClassAttributes();
return getAttributeValues( attributes, request );
* Please complete the missing tags for getAttributeValues
* @param
* @return
* @throws
* @pre
* @post
public static LibraryObjectDefinition getAttributeValues( Attribute [] attributes, HttpServletRequest request )
throws IfsException
LibraryObjectDefinition def = new LibraryObjectDefinition();
if( attributes != null )
for( int i = 0; i < attributes.length; i++ )
AttributeValue av = getAttributeValue( attributes [ i ], request );
if( av != null )
def.setAttribute( av );
return def;
* Please complete the missing tags for getAttributeValue
* @param
* @return
* @throws
* @pre
* @post
public static AttributeValue getAttributeValue( Attribute attribute, HttpServl etRequest request )
throws IfsException
AttributeValue av = null;
String name = attribute.getName();
String newValue = request.getParameter( name );
if( newValue != null )
if( newValue.equals( "" ) )
av = AttributeValue.newNullAttributeValue( attribute.getDataType() );
else
av = AttributeValue.newAttributeValue( newValue );
av.setName( name );
return av;
* Please complete the missing tags for downloadContent
* @param
* @return
* @throws
* @pre
* @post
public static void downloadContent( HttpServletRequest request, HttpServletResponse response )
throws IfsException
boolean download = false;
String action = request.getParameter( ACTION );
if( action != null )
if( action.equals( DOWNLOAD ) )
download = true;
Alert.log( "JspHelper.downloadContent(): download = " + download );
try
Document doc = ( Document ) JspHelper.getObject( request, response );
OutputStream os = response.getOutputStream();
if( download )
response.setContentType( OPEN_SAVEAS_DIALOG );
response.setHeader( "Content-Disposition", "attachment; filename=" + doc.getName() );
else
response.setContentType( doc.getFormat().getMimeType() );
response.setHeader( "Content-Disposition", "inline; filename=" + doc.getName() );
response.setContentLength( ( int ) doc.getContentSize() );
InputStream is = doc.getContentStream();
byte [] bytesRead = new byte [ 1024 ];
for( int byteCount = is.read( bytesRead, 0, bytesRead.length );
byteCount > 0;
byteCount = is.read( bytesRead, 0, bytesRead.length ) )
os.write( bytesRead, 0, byteCount );
catch( Exception e )
throw new IfsException( 9999, e );
* Please complete the missing tags for dumpServletParameters
* @param
* @return
* @throws
* @pre
* @post
public static void dumpServletParameters( HttpServletRequest request )
// setupServletPath(request);
Enumeration parmList = request.getParameterNames();
Alert.log( "Parameter List:" );
while( parmList.hasMoreElements() )
String parmName = ( String ) parmList.nextElement();
Alert.log( " " + parmName );
Alert.log( "Parameter Processing Completed." );
* Please complete the missing tags for obtainSession
* @param
* @return
* @throws
* @pre
* @post
public static LibrarySession obtainSession( HttpServletRequest request, HttpServletResponse response )
throws IfsException
if( DEBUG )
Alert.log( "obtainSession(request,response): Servlet Parameters = " );
dumpServletParameters( request );
// setupServletPath(request);
HttpSession httpSession = request.getSession( true );
if( httpSession != null )
IfsHttpLogin ifsLogin = ( IfsHttpLogin ) httpSession.getValue( IFSHTTPLOGIN );
if( ifsLogin != null )
LibrarySession ifsSession = ifsLogin.getSession();
if( ifsSession != null )
return ifsSession;
if( DEBUG )
Alert.log( "JspHelper.obtainSession: Unable to get Session. - Attempting to create new Session" );
LibrarySession ifs = null;
String username = "guest";
String password = "welcome";
String service = "IfsDefault";
String schemaPassword = "manager";
String suppliedUsername = request.getParameter( USERNAME );
String suppliedPassword = request.getParameter( PASSWORD );
String suppliedService = request.getParameter( SERVICE );
String suppliedSchemaPassword = request.getParameter( SCHEMA_PASSWORD );
if( suppliedUsername != null )
username = suppliedUsername;
if( suppliedPassword != null )
password = suppliedUsername;
if( suppliedService != null )
service = suppliedService;
if( suppliedSchemaPassword != null )
schemaPassword = suppliedSchemaPassword;
if( DEBUG )
Alert.log( "JspHelper.obtainSession: Creating new Session." );
Alert.log( " Username = " + username );
Alert.log( " Password = " + password );
Alert.log( " Service = " + service );
Alert.log( " Schema Password = " + schemaPassword );
LibraryService ifsService = new LibraryService();
CleartextCredential me = new CleartextCredential( username, password );
ConnectOptions connect = new ConnectOptions();
connect.setLocale( Locale.getDefault() );
connect.setServiceName( service );
connect.setServicePassword( schemaPassword );
LibrarySession ifsSession = ifsService.connect( me, connect );
if( DEBUG )
Alert.log( "JspHelper.obtainSession: Session Created." );
JspLogin login = new JspLogin();
login.setSession( ifsSession );
httpSession.putValue( IFSHTTPLOGIN, login );
if( DEBUG )
Alert.log( "JspHelper.obtainSession: Login Object Saved." );
return ifsSession;
* Please complete the missing tags for replaceString
* @param
* @return
* @throws
* @pre
* @post
public static String replaceString( String string, String string1, String string2 )
int offset = string.indexOf( string1 );
switch( offset )
case - 1 :
return string;
case 0 :
return string2 + replaceString( string.substring( string1.length() ), string1, string2 );
default:
return string.substring( 0, offset ) + string2 + replaceString( string.substring( offset + string1.length() ), string1, string2 );
* Please complete the missing tags for printLink
* @param
* @return
* @throws
* @pre
* @post
public static void printLink( javax.servlet.jsp.JspWriter out,
String name,
String url,
String color )
throws java.io.IOException
if( null != url )
if( url.indexOf( "http://" ) != 0 )
url = "http://" + url;
out.println( "<BR><A HREF=\"" + url + "\"><FONT COLOR=\"" + color + "\"><B>" + name + "</B></FONT></A>" );
* Please complete the missing tags for printItem
* @param
* @return
* @throws
* @pre
* @post
public static void printItem( javax.servlet.jsp.JspWriter out,
String titleValue,
String dataValue,
String titleColor,
String dataColor )
throws java.io.IOException
if( null != dataValue )
out.println( "<FONT COLOR=\"" + titleColor + "\">" + titleValue + ": </FONT> <FONT COLOR=\"" + dataColor + "\"><B>" + dataValue + "</B></FONT><BR>" );
* Please complete the missing tags for printItem
* @param
* @return
* @throws
* @pre
* @post
public static void printItem( javax.servlet.jsp.JspWriter out,
String titleValue,
Integer dataValue,
String titleColor,
String dataColor )
throws java.io.IOException
if( null != dataValue )
printItem( out, titleValue, dataValue.toString(), titleColor, dataColor );
* Please complete the missing tags for printItem
* @param
* @return
* @throws
* @pre
* @post
public static void printItem( javax.servlet.jsp.JspWriter out,
String titleValue,
Boolean dataValue,
String titleColor,
String dataColor )
throws java.io.IOException
if( null != dataValue )
printItem( out, titleValue, dataValue.toString(), titleColor, dataColor );
* Please complete the missing tags for printItem
* @param
* @return
* @throws
* @pre
* @post
public static void printItem( javax.servlet.jsp.JspWriter out,
String titleValue,
Date dataValue,
String titleColor,
String dataColor )
throws java.io.IOException
if( null != dataValue )
printItem( out, titleValue, dataValue.toString(), titleColor, dataColor );
* Please complete the missing tags for renderContent
* @param
* @return
* @throws
* @pre
* @post
public static void renderContent( HttpServletRequest request, HttpServletResponse response )
throws IfsException
Document doc = ( Document ) JspHelper.getObject( request, response );
boolean download = false;
boolean renderedOutput = false;
String mimeType = null;
// Determine if we are opening or Downloading Content based on Action
String action = request.getParameter( ACTION );
if( action != null )
if( action.equals( DOWNLOAD ) )
download = true;
if( DEBUG )
Aler t.log( "JspHelper.downloadContent(): download = " + download );
// Determine is we want Raw or Rendered Content. For Rendered Content both
// Operation and Policy must be supplied.
String operation = request.getParameter( OPERATION );
String policy = request.getParameter( POLICY );
if( ( null != operation ) && ( null != policy ) )
renderedOutput = true;
if( DEBUG )
Alert.log( "JspHelper.downloadContent(): renderedOutput = " + renderedOutput );
// Determine if contentType comes from Document or is supplied explicity.
mimeType = request.getParameter( MIMETYPE );
if( null == mimeType )
mimeType = doc.getFormat().getMimeType();
if( DEBUG )
Alert.log( "JspHelper.downloadContent(): mimeType = " + mimeType );
// Process as Requested.
try
response.setContentType( mimeType );
String filename = doc.getName();
String fileExtension = filename.substring( filename.lastIndexOf( '.' ) + 1 );
filename = filename.substring( 0, filename.lastIndexOf( '.' ) - 1 );
Selector mySelector = new Selector( getSession( request, response ) );
mySelector.setSearchClassname( Format.CLASS_NAME );
mySelector.setSearchSelection( Format.MIMETYPE_ATTRIBUTE + "='" + mimeType + "'" );
if( mySelector.getItemCount() > 0 )
Format f = ( Format ) mySelector.getItems( 0 );
fileExtension = f.getExtension();
filename = filename + '.' + fileExtension;
if( DEBUG )
Alert.log( "JspHelper.RenderContent(): Filename = " + filename );
if( download )
response.setHeader( "Content-Disposition", "attachment; filename=" + filename );
else
response.setHeader( "Content-Disposition", "inline; filename=" + filename );
InputStream is;
if( renderedOutput )
is = doc.renderAsStream( operation, policy, null );
else
is = doc.getContentStream();
response.setContentLength( ( int ) doc.getContentSize() );
OutputStream os = response.getOutputStream();
byte [] bytesRead = new byte [ 1024 ];
for( int byteCount = is.read( bytesRead, 0, bytesRead.length );
byteCount > 0;
byteCount = is.read( bytesRead, 0, bytesRead.length ) )
os.write( bytesRead, 0, byteCount );
catch( Exception e )
throw new IfsException( 9999, e );
* Please complete the missing tags for dumpInputStream
* @param
* @return
* @throws
* @pre
* @post
public static void dumpInputStream( ServletInputStream sis )
throws IOException
FileOutputStream fos;
if( File.separator.equals( "\\" ) )
fos = new FileOutputStream( "C:\\temp\\request.txt" );
else
fos = new FileOutputStream( "/tmp/request.txt" );
byte [] bytes = new byte [ 1024 ];
for( int bytesRead = sis.readLine( bytes, 0, bytes.length );
bytesRead > 0;
bytesRead = sis.read( bytes, 0, bytes.length ) )
Alert.log( "JspHelper.dumpInputStream() BytesRead = " + bytesRead );
fos.write( bytes, 0, bytesRead );
fos.close();
* Please complete the missing tags for getTimeOutURL
* @param
* @return
* @throws
* @pre
* @post
private static String getTimeOutURL()
Locale locale = Locale.getDefault();
String country = locale.getCountry();
String language = locale.getLanguage().toLowerCase();
String localizedFolder = language;
if( country != null )
if( ( ! language.equalsIgnoreCase( "en" ) ) | |
( ( language.equalsIgnoreCase( "en" ) ) && ( ! country.equalsIgnoreCase( "US" ) ) ) )
language = language + "_" + country.toUpperCase();
return IFSWEBROOT + "/" + language + IFSTIMEOUT_URL;
null -
Unable to read a resources file from my page
Hi,
I am trying to read a file from the project resources and I can't have access to the physical file. I have the following code in my page:
javax.faces.context.ExternalContext ec = this.getExternalContext();
URL url = ec.getResource("/resources/displayPassengers.xsl");
InputSource inputSourceXSL = new InputSource(url.toExternalForm());
InputStream inpStreamXSL = null;
if (inputSourceXSL.getByteStream() != null) {
log("Loading xml file: " + url.toExternalForm());
inpStreamXSL = inputSourceXSL.getByteStream();
} else {
log("Unable to extract URL from Page context: WEB-INF/displayPassengers.xsl");
The url is not null.
The inputSourceXSL is not null and inputSourceXSL.getByteStream() is always null.
Please let me know how to access the file.
Rgrds.this should work
InputSource inputSourceXSL = new InputSource(url.openStream()); -
I have Acobat Pro DC and Adobe PDK Pack and I am still unable to oepn an PDF filed from my Outlook. So I have to save it on my computer but then I can only open it in Adobe Reader. Please help
Hello courtneym48375386,
Could you please let me know what version of Outlook are you using.
Please try opening some other PDF file and check if the same issue persists as this might be a document specific issue.
Also, what happens if you try opening the file in Acrobat?
Let me know.
Regards,
Anubha -
I am unable to attach a PDF file from Documents
I am unable to access and attach a PDF file from Documents
I assume you are trying to attach a PDF to an email. I can perform this task several ways.
With a Finder window open and the PDF showing in that window, drag the PDF to the Mail app icon on the dock. This creates a new email and attaches the PDF to it. (PDFs tend to attach in inline view mode, that is you can see the entire document. To see it as a file icon right click on the PDF text and select View as Icon.)
I can drag the PDF directly into an open new email message if both the email message and the PDF file can be seen.
There's an icon on the Mail toolbar that looks like a paper clip. Click on it to get a file selector and drill down until you see the PDF. Select it and click OK.
Select Attachments from the Edit menu and choose Attach file to end of message -
Can't open MS Word .doc files from SharePoint 2013 document library?
Hello,
I have uploaded some MS Word files with .doc extension into a SharePoint 2013 document library, but they don't open when clicked. I can do a number of things to the file, like view and edit properties, download and other things, but it does not
open up when mouse clicked. There are PDF files in the document library and they open up just fine. Any ideas?
I should add that MS Word 2010 .docx files can not be opened either.
Thanks.
PaulHi,
Whether you use office 2013.
Considering this .doc file can be smoothly opened in Office if you downloaded it to your local, it indicates that the Word document and Microsoft Word doesn’t have any problems. The issue may be caused by the compatibility between Office
and your site.
1.Check whether you have the SharePoint OpenDocuments Class add on enabled at first.
Internet Explorer >Tools iron > Manage add-ons >
Choose to Show All add-ons. Find SharePoint OpenDocuments Class and make sure it’s enabled.
2.go to Compatibility view settings > add your SharePoint site to compatibility view
3.go to Internet Options,
Advanced > Reset… > Check Delete personal settings and reset
Security > Trusted sites > sites > add SharePoint sites to trusted sites
4.If it doesn’t work, please open Word, go to Options > Trust Center > Trust Center Settings > Protected View > Uncheck all.
Best Regards,
Lisa Chen
Lisa Chen
TechNet Community Support
Maybe you are looking for
-
Upgrade from 10.2.0.4 to 11.1.0.6
Hi, I am planning to upgrade my production database from 10.2.0.4 to 11.1.0.6. I initially started with my development database but i get the following error when i ran the dbupgdiag.sql utility to verify the status of the 10.2.0.4 database as part o
-
Hi! When i run my appication client to connect to Oracle9i database i have a next exception: javax.ejb.CreateException: java.lang.IllegalStateException: Primary key not available. In Oracle i set a primary key field ID. Here is my code: /* Generated
-
hi all is there any way to set window property for report previewer in runtime such as maximizie window? thanks. shoja.
-
Render and record, export to tape question?
Hi, I have finished a ten minute HDV project. I now want to export to tape. (HDV Sony V1e) When I hit export - tape then hit the render and record box. This then brings up the Export to HDV (transcoding to HDV) box. The problem I have is that 10 min
-
Custom login module with 10.1.3
Hello all, I've been trying out Frank N's custom login module (http://www.oracle.com/technology/products/jdev/howtos/10g/jaassec/index.htm) with JDev 10.1.3/OC4J 10.1.3 and am not having much luck. Whenever I add <property name="role.mapping.dynamic"