methods not visible

i keep getting an errors saying "methodName(value1, value2) from ClassName. is not visible.can anyone tell me why this is occurring and how do i fix it?
[166 byte] By [Dash161a] at [2007-11-26 18:09:16]
# 1
Provide the code snippet buddy... Its probably gotto do with your access modifier-TC
AbiSSa at 2007-7-9 5:41:10 > top of Java-index,Java Essentials,New To Java...
# 2
It's protected or package-private or private and you're trying to access it from somewhere that's not allowed by that. http://java.sun.com/docs/books/tutorial/java/javaOO/accesscontrol.html
jverda at 2007-7-9 5:41:10 > top of Java-index,Java Essentials,New To Java...
# 3

private String makePdfUrl(Node clientVersion, AlfrescoResolver alfrescoResolver)

{

String pdfurl = null;

if (clientVersion.hasAspect(ADPModel.ASPECT_PDFED))

{

logger.debug("Pdfed node found");

QNameNodeMap assocs = (QNameNodeMap)clientVersion.getAssociations();

List assocRefs = (List)assocs.get(ADPModel.ASSOC_PDF);

if (assocRefs != null && !assocRefs.isEmpty())

{

logger.debug("Valid pdf association found");

try

{

String pdfName = alfrescoResolver.modifyName(clientVersion.getName(), null, "pdf");

pdfurl = DownloadContentServlet.generateBrowserURL(((AssociationRef)assocRefs.get(0)).getTargetRef(), pdfName);

logger.debug("Built hi-res pdf url of " + pdfurl);

}

catch (Throwable e)

{

logger.error("Unable to build pdf url from association", e);

}

}

}

if (pdfurl == null)

{

String name = clientVersion.getName();

int pos = name.lastIndexOf(".");

if ( pos != -1 ) {

name = name.substring(0, pos);

}

name = name.replaceAll("[^-A-Za-z0-9_/\\.]", "_");

pdfurl = "/faces/" + adpServer.getViewDocServletName() + "/" + clientVersion.getId() + "/" + name + ".pdf";

}

The method declaration flags a warning "saying the method is never used locally"

Dash161a at 2007-7-9 5:41:10 > top of Java-index,Java Essentials,New To Java...
# 4
It's telling you that you've defined a method and never use it. Clearly you're making a mistake. The compiler just doesn't know whether that mistake as defining that method, or not using it.
jverda at 2007-7-9 5:41:11 > top of Java-index,Java Essentials,New To Java...
# 5
... and I suppose you're trying to access it externally, but its private.... Oooops!
corlettka at 2007-7-9 5:41:11 > top of Java-index,Java Essentials,New To Java...
# 6
> ... and I suppose you're trying to access it> externally, but its private.... Oooops!thanks i have resolved this issue.
Dash161a at 2007-7-9 5:41:11 > top of Java-index,Java Essentials,New To Java...