This week's book giveaway is in the OCP forum.
We're giving away four copies of OCP Oracle Certified Professional Java SE 11 Developer Practice Tests and have Scott Selikoff and Jeanne Boyarsky on-line!
See this thread for details.
Win a copy of OCP Oracle Certified Professional Java SE 11 Developer Practice Tests this week in the OCP forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Jeanne Boyarsky
  • Ron McLeod
  • Tim Cooke
Sheriffs:
  • Devaka Cooray
  • paul wheaton
  • Mark Herschberg
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Frits Walraven
  • Jj Roberts
Bartenders:
  • Carey Brown
  • salvin francis
  • Piet Souris

Getting internal server error while uploading picture

 
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
When i am selecting a Pic and clicking on upload getting internal server error. while debugging the line at which i am getting internal server error is in Register class i.e ImgClipUtil clipUtil = new ImgClipUtil(Constants.IMG_STORE_URL + "/" + _photoName + Constants.IMG_TYPE_JPG);

UploadPhoto.jsp

<%@ page trimDirectiveWhitespaces="true"%>
<%@ page language="java" pageEncoding="UTF-8"%>
<%@ include file="/WEB-INF/jsp/common/taglib.jsp"%>
<script type="text/javascript">
   $(document).ready(function(e) {
   $('.uploadImage').click(function(e) {
   $('.upload').find('input[type=file]').trigger('click');
   });
   $('.upload').find('input[type=file]').change(function(e) {
   $('.uploadImage').val($(this)[0].files[0].name);
   alert($(this)[0].files[0].name);
   });
    });</script>
<div class="bodyMiddle fullWidth">
   <h1 class="h2"><s:text name="regist.title.page"/></h1>
   <ul class="rBrdcrumb">
       <li><a href="#" onclick="javascript:void();"><s:text name="regist.personal.information.title"/></a></li>
       <li><a href="#" onclick="javascript:void();"><s:text name="regist.contact.title"/></a></li>
       <li><a href="#" onclick="javascript:void();"><s:text name="regist.health.title"/></a></li>
       <li class="active"><a href="#" onclick="javascript:void();"><s:text name="regist.upload.photo.title"/></a></li>
   </ul>
   <div class="row registration">
       <form autocomplete="off" action="/regist/finishRegistration.jhtml" id="frmUploadPhoto" data-toggle="validator" role="form" method="post">
           <div class="col-sm-12">
               <h3><s:text name="regist.upload.photo.page.title"/></h3>
           </div>
           <div class="col-sm-5">
               <div class="form-group">
                   <div class="upload">
                       <input type="text" class="form-control uploadImage" placeholder="<s:text name="regist.upload.photo.label.browse.photo"/>">
                       <input class="btn red-gradient" type="button" id="btnUploadPhoto" value="<s:text name="regist.upload.photo.label.button.upload"/>">
                       <input type="file" name="photo" hidden="">
                   </div>
               </div>
               <p><s:text name="regist.upload.photo.message.constraint.size"/></p>
           </div>
           <div class="col-sm-7">
               <div class="uploadImageDemo"><img id="imgUploadedPhoto" src="/static/new_images/pic_20.jpg" alt=""/></div>
           </div>
           <div class="col-sm-12">
               <input type="submit" class="btn red-gradient" value="<s:text name="regist.upload.photo.label.button.finish"/>"/>
           </div>
       </form>
   </div>
</div>


When i am selecting a Pic and clicking on upload getting internal server error. while debugging the line at which i am getting internal server error is in Register class i.e ImgClipUtil clipUtil = new ImgClipUtil(Constants.IMG_STORE_URL + "/" + _photoName + Constants.IMG_TYPE_JPG);

UploadPhoto.jsp

<%@ page trimDirectiveWhitespaces="true"%>
<%@ page language="java" pageEncoding="UTF-8"%>
<%@ include file="/WEB-INF/jsp/common/taglib.jsp"%>
<script type="text/javascript">
   $(document).ready(function(e) {
   $('.uploadImage').click(function(e) {
   $('.upload').find('input[type=file]').trigger('click');
   });
   $('.upload').find('input[type=file]').change(function(e) {
   $('.uploadImage').val($(this)[0].files[0].name);
   alert($(this)[0].files[0].name);
   });
    });</script>
<div class="bodyMiddle fullWidth">
   <h1 class="h2"><s:text name="regist.title.page"/></h1>
   <ul class="rBrdcrumb">
       <li><a href="#" onclick="javascript:void();"><s:text name="regist.personal.information.title"/></a></li>
       <li><a href="#" onclick="javascript:void();"><s:text name="regist.contact.title"/></a></li>
       <li><a href="#" onclick="javascript:void();"><s:text name="regist.health.title"/></a></li>
       <li class="active"><a href="#" onclick="javascript:void();"><s:text name="regist.upload.photo.title"/></a></li>
   </ul>
   <div class="row registration">
       <form autocomplete="off" action="/regist/finishRegistration.jhtml" id="frmUploadPhoto" data-toggle="validator" role="form" method="post">
           <div class="col-sm-12">
               <h3><s:text name="regist.upload.photo.page.title"/></h3>
           </div>
           <div class="col-sm-5">
               <div class="form-group">
                   <div class="upload">
                       <input type="text" class="form-control uploadImage" placeholder="<s:text name="regist.upload.photo.label.browse.photo"/>">
                       <input class="btn red-gradient" type="button" id="btnUploadPhoto" value="<s:text name="regist.upload.photo.label.button.upload"/>">
                       <input type="file" name="photo" hidden="">
                   </div>
               </div>
               <p><s:text name="regist.upload.photo.message.constraint.size"/></p>
           </div>
           <div class="col-sm-7">
               <div class="uploadImageDemo"><img id="imgUploadedPhoto" src="/static/new_images/pic_20.jpg" alt=""/></div>
           </div>
           <div class="col-sm-12">
               <input type="submit" class="btn red-gradient" value="<s:text name="regist.upload.photo.label.button.finish"/>"/>
           </div>
       </form>
   </div>
</div>

Register.java

public String uploadPhoto_New() {
       String _locale = LocaleUtil.getUserLocale();
       String basePath = ActionUtil.getRequest().getScheme() + "://" + ActionUtil.getRequest().getServerName() + ":" + ActionUtil.getRequest().getServerPort();
       boolean hasError = false;

       if (photo == null) {
           hasError = true;
       }

       if (hasError) {
           String json = "{\"photoUrl\":null}";
           ActionUtil.printStr(json);
           return null;
       }

       try {
           //ä¿�å­˜ç”¨æˆ·ä¸Šä¼ çš„åŽŸå§‹å›¾ç‰‡
           String _photoName = ImgUploadUtil.uploadFile(photo);

           //å¯¹ç”¨æˆ·ä¸Šä¼ çš„åŽŸå§‹å›¾ç‰‡æŒ‰ç‰¹å®šçš„å°ºå¯¸åŽ‹ç¼©
           ImgClipUtil clipUtil = new ImgClipUtil(Constants.IMG_STORE_URL + "/" + _photoName + Constants.IMG_TYPE_JPG);
           String _resizedPhotoName = _photoName + "";
           clipUtil.resize(Constants.IMG_STORE_URL + "/" + _resizedPhotoName + Constants.IMG_TYPE_JPG, 150);

           MemberDto memberDtoFromSession = (MemberDto) ActionUtil.getSession().get(Constants.MEMBER_DTO);
           memberDtoFromSession.setPhoto(_resizedPhotoName);

           String json = "{\"photoUrl\":\"" + basePath + Constants.IMG_ACCESS_URL + "/" + _resizedPhotoName + Constants.IMG_TYPE_JPG + "\"}";
           ActionUtil.printStr(json);
           return null;
       } catch (Exception ex) {
           loger.error(ex, ex);
           String json = "{\"photoUrl\":null}";
           ActionUtil.printStr(json);
           return null;
       }
   }

ImgClipUtil.java

public ImgClipUtil(String _path) {
       try {
           info = new ImageInfo(_path);
           info.setCompression(CompressionType.JPEGCompression);
           info.setPreviewType(PreviewType.JPEGPreview);
           calculateSize(_path);
       } catch (MagickException e) {
           e.printStackTrace();
       }
   }
 
Master Rancher
Posts: 4801
50
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
What error do you see in the logs?
Complete with stack trace?
 
harshal mule
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
this is what i am getting

2018-01-24 17:51:26 [DEBUG]-[com.opensymphony.xwork2.util.logging.commons.CommonsLogger.debug(CommonsLogger.java:68)]: intercept '/regist/uploadPhoto' {
2018-01-24 17:51:26 [DEBUG]-[com.opensymphony.xwork2.util.logging.commons.CommonsLogger.debug(CommonsLogger.java:68)]: applied session locale=en_US
2018-01-24 17:51:26 [DEBUG]-[com.opensymphony.xwork2.util.logging.commons.CommonsLogger.debug(CommonsLogger.java:68)]: before Locale=en_US
2018-01-24 17:51:26 [DEBUG]-[com.opensymphony.xwork2.util.logging.commons.CommonsLogger.debug(CommonsLogger.java:68)]: Setting static parameters {}
2018-01-24 17:51:26 [DEBUG]-[com.opensymphony.xwork2.util.logging.commons.CommonsLogger.debug(CommonsLogger.java:68)]: Setting params NONE
2018-01-24 17:51:26 [DEBUG]-[com.opensymphony.xwork2.util.logging.commons.CommonsLogger.debug(CommonsLogger.java:68)]: Setting params photo => [ D:\workspace\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp1\work\Catalina\localhost\_\upload__3539b630_1612807a777__8000_00000003.tmp ] photoContentType => [ image/jpeg ] photoFileName => [ download.jpg ]
2018-01-24 17:51:26 [DEBUG]-[com.opensymphony.xwork2.util.logging.commons.CommonsLogger.debug(CommonsLogger.java:68)]: Property: photo
2018-01-24 17:51:26 [DEBUG]-[com.opensymphony.xwork2.util.logging.commons.CommonsLogger.debug(CommonsLogger.java:68)]: Class: com.m4g.wfn.lcb.action.RegistAction
2018-01-24 17:51:26 [DEBUG]-[com.opensymphony.xwork2.util.logging.commons.CommonsLogger.debug(CommonsLogger.java:68)]: field-level type converter for property [photo] = none found
2018-01-24 17:51:26 [DEBUG]-[com.opensymphony.xwork2.util.logging.commons.CommonsLogger.debug(CommonsLogger.java:68)]: global-level type converter for property [photo] = none found
2018-01-24 17:51:26 [DEBUG]-[com.opensymphony.xwork2.util.logging.commons.CommonsLogger.debug(CommonsLogger.java:68)]: falling back to default type converter [com.opensymphony.xwork2.conversion.impl.XWorkBasicConverter@6b1a5ceb]
2018-01-24 17:51:26 [DEBUG]-[com.opensymphony.xwork2.util.logging.commons.CommonsLogger.debug(CommonsLogger.java:68)]: Property: photoFileName
2018-01-24 17:51:26 [DEBUG]-[com.opensymphony.xwork2.util.logging.commons.CommonsLogger.debug(CommonsLogger.java:68)]: Class: com.m4g.wfn.lcb.action.RegistAction
2018-01-24 17:51:26 [DEBUG]-[com.opensymphony.xwork2.util.logging.commons.CommonsLogger.debug(CommonsLogger.java:68)]: field-level type converter for property [photoFileName] = none found
2018-01-24 17:51:26 [DEBUG]-[com.opensymphony.xwork2.util.logging.commons.CommonsLogger.debug(CommonsLogger.java:68)]: global-level type converter for property [photoFileName] = none found
2018-01-24 17:51:26 [DEBUG]-[com.opensymphony.xwork2.util.logging.commons.CommonsLogger.debug(CommonsLogger.java:68)]: falling back to default type converter [com.opensymphony.xwork2.conversion.impl.XWorkBasicConverter@6b1a5ceb]
2018-01-24 17:51:26 [DEBUG]-[com.opensymphony.xwork2.util.logging.commons.CommonsLogger.debug(CommonsLogger.java:68)]: Creating converter with name [string]
2018-01-24 17:51:26 [DEBUG]-[com.opensymphony.xwork2.util.logging.commons.CommonsLogger.debug(CommonsLogger.java:68)]: Converter of Type [com.opensymphony.xwork2.conversion.impl.StringConverter] with name [string], created!
2018-01-24 17:51:26 [DEBUG]-[com.opensymphony.xwork2.util.logging.commons.CommonsLogger.debug(CommonsLogger.java:68)]: Validating /regist/uploadPhoto with method uploadPhoto_New.
2018-01-24 17:51:26 [DEBUG]-[com.opensymphony.xwork2.util.logging.commons.CommonsLogger.debug(CommonsLogger.java:68)]: Invoking validate() on action com.m4g.wfn.lcb.action.RegistAction@692bc603
2018-01-24 17:51:26 [DEBUG]-[com.opensymphony.xwork2.util.logging.commons.CommonsLogger.debug(CommonsLogger.java:68)]: cannot find method [validateUploadPhoto_New] in action [com.m4g.wfn.lcb.action.RegistAction@692bc603]
2018-01-24 17:51:26 [DEBUG]-[com.opensymphony.xwork2.util.logging.commons.CommonsLogger.debug(CommonsLogger.java:68)]: cannot find method [validateDoUploadPhoto_New] in action [com.m4g.wfn.lcb.action.RegistAction@692bc603]
2018-01-24 17:51:26 [DEBUG]-[com.opensymphony.xwork2.util.logging.commons.CommonsLogger.debug(CommonsLogger.java:68)]: Executing action method = uploadPhoto_New
 
Marshal
Posts: 72036
312
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
. . . and welcome to the Ranch
 
Dave Tolls
Master Rancher
Posts: 4801
50
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
There's no errors in there.
Why do you think you have a problem with ImgClipUtil line?
I also don't see any of those log lines inside the code you posted, so can't track what the flow is.

Does your logging framework really print out the logger line-of-code and not the line-of-code the log call is made from?
Isn't that a bit useless?
 
harshal mule
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
i did not get what you are trying to say so can you please help me in understanding it and should i configure my log file.I am using log4j api

import org.apache.log4j.Logger;

public class Log {

static Logger log = Logger.getLogger(Log.class.getName());

   public static void logDebug(String message) {
log.debug(message);
}

public static void logInfo(String message) {
log.info(message);
}

}

log4j.properties

log4j.rootLogger=DEBUG,console,ERROR,A1,A2
log4j.appender.A1=org.apache.log4j.ConsoleAppender
log4j.appender.A1.layout=org.apache.log4j.PatternLayout
log4j.appender.A1.layout.ConversionPattern=%d{yyyy-MM-dd HH:mm:ss} [%p]-[%l]: %m%n

log4j.appender.A2=org.apache.log4j.DailyRollingFileAppender
#log4j.appender.A2.file=/rockstar-log/rockstar.log
log4j.appender.A2.file=/davinci-log/davinci.log
log4j.appender.A2.encoding=UTF-8
log4j.appender.A2.Append=true
log4j.appender.A2.layout=org.apache.log4j.PatternLayout
log4j.appender.A2.layout.ConversionPattern=%d{yyyy-MM-dd HH:mm:ss} [%p]-[%l]: %m%n

 
Dave Tolls
Master Rancher
Posts: 4801
50
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
OK, so first off how do you know that you have an error?

You say in your first post that you are getting the error on the ImgClipUtil line, but I don't see how you can know that.
An "internal server error" means that your code has thrown an exception.  That exception will be in the logs somewhere, possibly even in the server logs rather than the app logs.  In Tomcat that would be possibly catalina.out or the localhost one.

Until you can find that exception it is going to be very hard to figure out what has gone wrong.

As for your logging, you should not be logging via your own class.  You should be using the log4j class.
That's why all your log lines are saying they come from the one class, rather than the class you are attempting to log from.
 
harshal mule
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi i am getting this Exception

java.lang.NoClassDefFoundError: Could not initialize class magick.ImageInfo
at com.m4g.wfn.lcb.ImgClipUtil.<init>(ImgClipUtil.java:37)
at com.m4g.wfn.lcb.action.RegistAction.uploadPhoto_New(RegistAction.java:775)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at com.opensymphony.xwork2.DefaultActionInvocation.invokeAction(DefaultActionInvocation.java:453)
at com.opensymphony.xwork2.DefaultActionInvocation.invokeActionOnly(DefaultActionInvocation.java:292)
at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:255)
at org.apache.struts2.interceptor.debugging.DebuggingInterceptor.intercept(DebuggingInterceptor.java:256)
at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)
at com.opensymphony.xwork2.interceptor.DefaultWorkflowInterceptor.doIntercept(DefaultWorkflowInterceptor.java:176)
at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)
at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)
at com.opensymphony.xwork2.validator.ValidationInterceptor.doIntercept(ValidationInterceptor.java:265)
at org.apache.struts2.interceptor.validation.AnnotationValidationInterceptor.doIntercept(AnnotationValidationInterceptor.java:68)
at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)
at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)
at com.opensymphony.xwork2.interceptor.ConversionErrorInterceptor.intercept(ConversionErrorInterceptor.java:138)
at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)
at com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:211)
at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)
at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)
at com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:211)
at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)
at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)
at com.opensymphony.xwork2.interceptor.StaticParametersInterceptor.intercept(StaticParametersInterceptor.java:190)
at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)
at org.apache.struts2.interceptor.MultiselectInterceptor.intercept(MultiselectInterceptor.java:75)
at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)
at org.apache.struts2.interceptor.CheckboxInterceptor.intercept(CheckboxInterceptor.java:90)
at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)
at org.apache.struts2.interceptor.FileUploadInterceptor.intercept(FileUploadInterceptor.java:320)
at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)
at com.opensymphony.xwork2.interceptor.ModelDrivenInterceptor.intercept(ModelDrivenInterceptor.java:100)
at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)
at com.opensymphony.xwork2.interceptor.ScopedModelDrivenInterceptor.intercept(ScopedModelDrivenInterceptor.java:141)
at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)
at com.opensymphony.xwork2.interceptor.ChainingInterceptor.intercept(ChainingInterceptor.java:145)
at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)
at com.opensymphony.xwork2.interceptor.PrepareInterceptor.doIntercept(PrepareInterceptor.java:171)
at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)
at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)
at com.opensymphony.xwork2.interceptor.I18nInterceptor.intercept(I18nInterceptor.java:176)
at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)
at org.apache.struts2.interceptor.ServletConfigInterceptor.intercept(ServletConfigInterceptor.java:164)
at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)
at com.opensymphony.xwork2.interceptor.AliasInterceptor.intercept(AliasInterceptor.java:192)
at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)
at com.opensymphony.xwork2.interceptor.ExceptionMappingInterceptor.intercept(ExceptionMappingInterceptor.java:187)
at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)
at org.apache.struts2.impl.StrutsActionProxy.execute(StrutsActionProxy.java:54)
at org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:511)
at org.apache.struts2.dispatcher.ng.ExecuteOperations.executeAction(ExecuteOperations.java:77)
at org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.doFilter(StrutsPrepareAndExecuteFilter.java:91)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:96)
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:503)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:170)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:950)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:421)
at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1070)
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:611)
at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:316)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
at java.lang.Thread.run(Thread.java:745)
 
Dave Tolls
Master Rancher
Posts: 4801
50
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
There you go.
That class is not deployed with the webapp.
 
harshal mule
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
i have added jmagick jar file

info = new ImageInfo(_path);

After this line in ImgClipUtil method getting into jar file

 
Are we home yet? Wait, did we forget the tiny ad?
the value of filler advertising in 2021
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic