• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Liutauras Vilda
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Saloon Keepers:
  • Scott Selikoff
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
  • Frits Walraven
Bartenders:
  • Stephan van Hulst
  • Carey Brown

Portal 10.2 Deployment -- mdimport Error

 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi All,
I try to run the script created with workshop and I got error. Any idea what is mdimport task is doing?
There is absolutely NO documentation about it. Any help would be appreciated.

Part of the generated build script:
<target name="init" depends="check.setup,init.env,check.params,check.versions,init.typedefs" unless="init.executed">

<property name="init.executed" value="true"/>
<echo message="Using JDK: ${java.home}"/>
<echo message="WORKSPACE: ${workspace}"/>
<echo message="PROJ DIR: ${project.dir}"/>
<echo message="WLP HOME: ${wlp.home}"/>
<mdimport workspace="${workspace}/workspace.xml" pjdir="${project.dir}" echo="${echo.metadata}">
<option name="wlp.home" value="${wlp.home}"/>
</mdimport>

<path id="weblogic.jar.classpath">
<path location="${patch.home}/weblogic_patch.jar" />
<path location="${wl.home}/server/lib/weblogic.jar" />
</path>
</target>

RESULT:
Buildfile: build.xml
Trying to override old definition of task jspc

clean:
[mkdir] Created dir: /portalappdev/stc/stc_portal/selfcare/build/weboutput

clean.all:

check.setup:
[echo] Using project build file : /portalappdev/stc/stc_portal/selfcare/con
fig/env/oit.env
[echo] Using JDK: /opt/java6/jre
[echo] Using JDK Target version: ${java.target}
[echo] Using JDK Source version: ${java.source}
[echo] Using JDK bootclasspath: ${java.bootclasspath}

init.env:

check.params:

check.versions:

init.typedefs:
[echo] Using Workshop Libraries located in the /portalappdev/stc/stc_portal
/selfcare/workshop-lib directory.

init:
[echo] Using JDK: /opt/java6/jre
[echo] WORKSPACE: /portalappdev/stc/stc_portal/selfcare
[echo] PROJ DIR: /portalappdev/stc/stc_portal/selfcare
[echo] WLP HOME: /portalappdev/bea/wlportal_10.3

BUILD FAILED
/portalappdev/stc/stc_portal/selfcare/config/build.xml:82: java.lang.NullPointer
Exception

Line Number 82 is marked above.




 
author
Posts: 3285
13
Mac OS X Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi atultechm mahajan and welcome to Javaranch!
 
Martijn Verburg
author
Posts: 3285
13
Mac OS X Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
What JAR file did you import the mdimport task from?
 
AtulSha mahajan
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
number of war files reading from workspace.xml file... But when it reached at mdimport, it throws null pointer exception.
And the month ago same code was working fine.
 
author
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The mdimport task is not part of Ant. Where did that task come from? Apparently it was not registered correctly (look earlier in the build script).
 
AtulSha mahajan
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Please find the below mention details of build script error

BUILD FAILED
/portalappdev/stc/stc_portal/selfcare/config/build.xml:82: java.lang.NullPointer
Exception
at org.apache.tools.ant.Task.perform(Task.java:373)
at org.apache.tools.ant.Target.execute(Target.java:341)
at org.apache.tools.ant.Target.performTasks(Target.java:369)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
at org.apache.tools.ant.Project.executeTarget(Project.java:1185)
at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExe
cutor.java:40)
at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
at org.apache.tools.ant.Main.runBuild(Main.java:668)
at org.apache.tools.ant.Main.startAnt(Main.java:187)
at org.apache.tools.ant.launch.Launcher.run(Launcher.java:246)
at org.apache.tools.ant.launch.Launcher.main(Launcher.java:67)
Caused by: java.lang.NullPointerException
at java.io.FileInputStream.<init>(FileInputStream.java:103)
at com.bea.workshop.common.util.DomUtil.doc(DomUtil.java:73)
at com.bea.workshop.common.util.DomUtil.root(DomUtil.java:118)
at com.bea.workshop.cmdline.antlib.eclipse.wtp.WtpUtil.createVirtualFile
System(WtpUtil.java:63)
at com.bea.workshop.wls.antlib.mdimport.EarLibrariesContainerResolver.re
solve(EarLibrariesContainerResolver.java:42)
at com.bea.workshop.cmdline.antlib.eclipse.java.JavaImportParticipant.re
solve(JavaImportParticipant.java:383)
at com.bea.workshop.cmdline.antlib.eclipse.java.JavaImportParticipant.ge
tRawClasspath(JavaImportParticipant.java:257)
at com.bea.workshop.cmdline.antlib.eclipse.java.JavaImportParticipant.ge
tResolvedClasspath(JavaImportParticipant.java:280)
at com.bea.workshop.cmdline.antlib.eclipse.java.JavaImportParticipant.ex
ecute(JavaImportParticipant.java:147)
at com.bea.workshop.cmdline.antlib.eclipse.ImportProjectMetadataTask.exe
cute(ImportProjectMetadataTask.java:149)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
at org.apache.tools.ant.Task.perform(Task.java:364)
... 10 more
--- Nested Exception ---
java.lang.NullPointerException
at java.io.FileInputStream.<init>(FileInputStream.java:103)
at com.bea.workshop.common.util.DomUtil.doc(DomUtil.java:73)
at com.bea.workshop.common.util.DomUtil.root(DomUtil.java:118)
at com.bea.workshop.cmdline.antlib.eclipse.wtp.WtpUtil.createVirtualFile
System(WtpUtil.java:63)
at com.bea.workshop.wls.antlib.mdimport.EarLibrariesContainerResolver.re
solve(EarLibrariesContainerResolver.java:42)
at com.bea.workshop.cmdline.antlib.eclipse.java.JavaImportParticipant.re
solve(JavaImportParticipant.java:383)
at com.bea.workshop.cmdline.antlib.eclipse.java.JavaImportParticipant.ge
tRawClasspath(JavaImportParticipant.java:257)
at com.bea.workshop.cmdline.antlib.eclipse.java.JavaImportParticipant.ge
tResolvedClasspath(JavaImportParticipant.java:280)
at com.bea.workshop.cmdline.antlib.eclipse.java.JavaImportParticipant.ex
ecute(JavaImportParticipant.java:147)
at com.bea.workshop.cmdline.antlib.eclipse.ImportProjectMetadataTask.exe
cute(ImportProjectMetadataTask.java:149)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
at org.apache.tools.ant.Task.perform(Task.java:364)
at org.apache.tools.ant.Target.execute(Target.java:341)
at org.apache.tools.ant.Target.performTasks(Target.java:369)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
at org.apache.tools.ant.Project.executeTarget(Project.java:1185)
at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExe
cutor.java:40)
at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
at org.apache.tools.ant.Main.runBuild(Main.java:668)
at org.apache.tools.ant.Main.startAnt(Main.java:187)
at org.apache.tools.ant.launch.Launcher.run(Launcher.java:246)
at org.apache.tools.ant.launch.Launcher.main(Launcher.java:67)

Total time: 11 seconds
bash-4.0$


 
Peter Johnson
author
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Based on this:

--- Nested Exception ---
java.lang.NullPointerException
at java.io.FileInputStream.<init>(FileInputStream.java:103)
at com.bea.workshop.common.util.DomUtil.doc(DomUtil.java:73)



I suspect that you are doing something with WLS. Is that true? If so, the problem appears to be something in the WLS extensions to Ant, in which case I will move this port to the WLS forum.
 
This guy is skipping without a rope. At least, that's what this tiny ad said:
Smokeless wood heat with a rocket mass heater
https://woodheat.net
reply
    Bookmark Topic Watch Topic
  • New Topic