[JBossWS] - Re: SchemaTypeCreator.introspectJavaProperties Exception w/
by modkota
Hi ,
I am getting fallowing exception while making a service as webserice from JbossIDE. Can any one know what is the probelm actually.
Thanks in advance
Exception in thread "main" java.lang.NullPointerException
at org.jboss.ws.tools.schema.SchemaTypeCreator.introspectJavaProperties(SchemaTypeCreator.java:578)
at org.jboss.ws.tools.schema.SchemaTypeCreator.generateNewType(SchemaTypeCreator.java:332)
at org.jboss.ws.tools.schema.SchemaTypeCreator.getType(SchemaTypeCreator.java:273)
at org.jboss.ws.tools.schema.SchemaTypeCreator.generateType(SchemaTypeCreator.java:132)
at org.jboss.ws.tools.schema.SchemaTypeCreator.generateType(SchemaTypeCreator.java:127)
at org.jboss.ws.tools.schema.SchemaTypeCreator.createFieldParticle(SchemaTypeCreator.java:607)
at org.jboss.ws.tools.schema.SchemaTypeCreator.introspectJavaProperties(SchemaTypeCreator.java:592)
at org.jboss.ws.tools.schema.SchemaTypeCreator.generateNewType(SchemaTypeCreator.java:332)
at org.jboss.ws.tools.schema.SchemaTypeCreator.getType(SchemaTypeCreator.java:273)
at org.jboss.ws.tools.schema.SchemaTypeCreator.generateType(SchemaTypeCreator.java:132)
at org.jboss.ws.tools.schema.SchemaTypeCreator.generateType(SchemaTypeCreator.java:127)
at org.jboss.ws.tools.schema.SchemaTypeCreator.createFieldParticle(SchemaTypeCreator.java:607)
at org.jboss.ws.tools.schema.SchemaTypeCreator.introspectJavaProperties(SchemaTypeCreator.java:592)
at org.jboss.ws.tools.schema.SchemaTypeCreator.generateNewType(SchemaTypeCreator.java:332)
at org.jboss.ws.tools.schema.SchemaTypeCreator.getType(SchemaTypeCreator.java:273)
at org.jboss.ws.tools.schema.SchemaTypeCreator.generateType(SchemaTypeCreator.java:132)
at org.jboss.ws.tools.JavaToXSD.generateForSingleType(JavaToXSD.java:109)
at org.jboss.ws.tools.helpers.JavaToWSDLHelper.generateType(JavaToWSDLHelper.java:556)
at org.jboss.ws.tools.helpers.JavaToWSDLHelper.generateTypesForXSD(JavaToWSDLHelper.java:141)
at org.jboss.ws.tools.JavaToWSDL11.handleJavaToWSDLGeneration(JavaToWSDL11.java:245)
at org.jboss.ws.tools.JavaToWSDL11.generate(JavaToWSDL11.java:168)
at org.jboss.ws.tools.JavaToWSDL.generate(JavaToWSDL.java:318)
at org.jboss.ws.tools.helpers.ToolsHelper.handleJavaToWSDLGeneration(ToolsHelper.java:122)
at org.jboss.ws.tools.WSTools.process(WSTools.java:132)
at org.jboss.ws.tools.WSTools.generate(WSTools.java:120)
at org.jboss.ws.tools.WSTools.main(WSTools.java:61)
I hope this is not the problem with my code. Is there any configuration issues for this? This kind of exception I am getting for one service. But if I do a small service and making it as webservice from Jboss IDE I did not get any errors. Can anyone know what might the problem?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4126539#4126539
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4126539
18 years, 2 months
[JBoss Portal] - A typical problem with dashboard and editdashboard in cluste
by PVApparao
Hi
We are facing a typical issue with dashboard link and its funtionality in clustered version of jboss portal.
We are using jboss-portal 2.6.1 and application server is Jboss 4.05 GA.
When we form a cluster of 3 nodes the dashboard link and its functionality is not happening properly. for example when i click on dashboard link it is immediatly throwing 500 error, after few refreshes it is displaying properly. Then when clicked on edit dashboard link and create a new page, it is not reflecting the new page name in the select box of edit page and after few refreshes it is listing, then when we select perticular instance for that page it is getting refreshed and showing default page. This is the behaviour that is happening.
But when a single node is there all the functionality is happening properly.
I expected this behaviour mainly due to the cache and updated my server jboss cache to jboss-cache 1.4.1 SP1 and jgroups.jar that comes with the jboss-cache 1.4.1 SP1 distribution. But the problem was not resolved.
What would be the problem? and what is the solution to rectify this problem?
What version of the cache that is required to use?
Once again i am listing my configurations
1) Jboss-portal 2.6.1 ha.sar
2) Jboss 4.05 GA
3) jboss-cache.jar and jgroups.jar from jboss-cache 1.4.1 SP1 distribution
4) 3 node cluster, data base is oracle 10 g
5) Rest of the other configurations like hibernate every thing are default that comes with the server jboss 4.05 GA
6) java 1.5
Thanks in advance for any help.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4126537#4126537
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4126537
18 years, 2 months
[JBoss Seam] - Re: HTTPS redirection
by werner23
"matt.drees" wrote :
|
| This is what we're planning to do. I haven't tested it yet (don't have an ssl cert set up yet), but I think it should work. I'll report back if it doesn't.
|
| We use BIG-IP for loadbalancing and ssl decryption. For ssl requests, we've configured it to add a specific request header. I haven't tested this, but I think we only need to override Request.getScheme(), and not Request.getRequestURL().
|
|
| |
| | @Name("bigIpSslFilter")
| | @Scope(ScopeType.APPLICATION)
| | @BypassInterceptors
| | @org.jboss.seam.annotations.web.Filter
| | public class BigIpSslFilter implements Filter {
| |
| | public void destroy() {
| | }
| |
| | public void doFilter(ServletRequest request, ServletResponse response,
| | FilterChain filterChain) throws IOException, ServletException {
| | if (request instanceof HttpServletRequest) {
| | filterChain.doFilter(new BigIpSslRequest((HttpServletRequest) request), response);
| | } else {
| | filterChain.doFilter(request, response);
| | }
| | }
| |
| | public void init(FilterConfig filterConfig) throws ServletException {
| | }
| |
| | public static class BigIpSslRequest extends HttpServletRequestWrapper {
| |
| | public BigIpSslRequest(HttpServletRequest request) {
| | super(request);
| | }
| |
| | @Override
| | public String getScheme() {
| | String forwardedScheme = getRequest().getHeader("HTTP_X_FORWARDED_PROTO");
| | if (forwardedScheme != null && forwardedScheme.equals("https")) {
| | return "https";
| | }
| | return super.getScheme();
| | }
| |
| | @Override
| | public HttpServletRequest getRequest() {
| | return (HttpServletRequest) super.getRequest();
| | }
| | }
| | }
| |
|
| (btw, it's the same header that rails looks for to determine proxied https requests, since we also have some rails apps)
Sorry Matt, but your filter doesn't actually work, because Seam doesn't use the getScheme() method of the ServletRequest. This one works:
| @Name("forwardedHttpsDecoderFilter")
| @Scope(ScopeType.APPLICATION)
| @BypassInterceptors
| @Filter
| public class ForwardedHttpsDecoderFilter extends AbstractFilter {
|
| public static final String HEADER_HTTP_X_FORWARDED_PROTO = "HTTP_X_FORWARDED_PROTO";
|
| public static class SslRequest extends HttpServletRequestWrapper {
|
| public SslRequest(HttpServletRequest request) {
| super(request);
| }
|
| public HttpServletRequest getRequest() {
| return (HttpServletRequest) super.getRequest();
| }
|
| public StringBuffer getRequestURL() {
| StringBuffer requestURL = super.getRequestURL();
| if (requestURL.indexOf("http://") == 0) {
| requestURL.replace(0, 7, "https://");
| }
| return requestURL;
| }
| }
|
| public void doFilter(ServletRequest request, ServletResponse response,
| FilterChain filterChain) throws IOException, ServletException {
|
| if (request instanceof HttpServletRequest) {
| String forwardedScheme = ((HttpServletRequest) request).getHeader(HEADER_HTTP_X_FORWARDED_PROTO);
| if (forwardedScheme != null && forwardedScheme.equals("https")) {
| request = new SslRequest((HttpServletRequest) request);
| }
| }
| filterChain.doFilter(request, response);
| }
|
| public void destroy() {
| }
|
| public void init(FilterConfig filterConfig) throws ServletException {
| }
| }
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4126531#4126531
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4126531
18 years, 2 months